From 322c52ce866a74431533b56f6e7cc8be5a61fe5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BE=E5=87=A0=E6=B5=B7?= Date: Wed, 7 Oct 2020 23:45:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20lint=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/view/admin/admin-tag/admin-tag.module.ts | 2 +- src/app/view/write/editor-md/editor-md.directive.ts | 4 ++-- src/app/view/write/write.component.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/view/admin/admin-tag/admin-tag.module.ts b/src/app/view/admin/admin-tag/admin-tag.module.ts index 9301f15..97c2040 100644 --- a/src/app/view/admin/admin-tag/admin-tag.module.ts +++ b/src/app/view/admin/admin-tag/admin-tag.module.ts @@ -5,7 +5,7 @@ import {AdminTagComponent} from './admin-tag.component'; import {FormsModule} from '@angular/forms'; import {CommonTableModule} from '../components/common-table/common-table.module'; import {EditableTagModule} from '../components/editable-tag/editable-tag.module'; -import {NzButtonModule, NzCardModule, NzIconModule, NzTabsModule} from "ng-zorro-antd"; +import {NzButtonModule, NzCardModule, NzIconModule, NzTabsModule} from 'ng-zorro-antd'; @NgModule({ diff --git a/src/app/view/write/editor-md/editor-md.directive.ts b/src/app/view/write/editor-md/editor-md.directive.ts index 10712fa..3aacff9 100644 --- a/src/app/view/write/editor-md/editor-md.directive.ts +++ b/src/app/view/write/editor-md/editor-md.directive.ts @@ -10,7 +10,7 @@ declare var $: any; export class EditorMdDirective implements AfterViewInit { @Input() editormdConfig: EditorConfig; // 配置选项 - @Output() onEditorChange: EventEmitter = new EventEmitter(); // 发射器 + @Output() editorChange: EventEmitter = new EventEmitter(); // 发射器 editor: any; // editormd编辑器 constructor(@Attribute('id') private id: string) { @@ -19,7 +19,7 @@ export class EditorMdDirective implements AfterViewInit { ngAfterViewInit(): void { this.editor = editormd(this.id, this.editormdConfig); // 创建编辑器 - const out = this.onEditorChange; + const out = this.editorChange; const textarea = $('#' + this.id + ' :first'); // 获取textarea元素 // 当编辑器内容改变时,触发textarea的change事件 diff --git a/src/app/view/write/write.component.html b/src/app/view/write/write.component.html index 148fb06..26f8786 100644 --- a/src/app/view/write/write.component.html +++ b/src/app/view/write/write.component.html @@ -4,7 +4,7 @@ -
+
@@ -22,4 +22,4 @@ - \ No newline at end of file +