Skip to content

Commit a949094

Browse files
committed
chore(code): 代码规范
1 parent a73e131 commit a949094

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# http://editorconfig.org
1+
# https://editorconfig.org
22

33
# top-most EditorConfig file
44
root = true

src/components/MarkdownEditor/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
import Editor from 'tui-editor';
1313
import defaultOptions from './defaultOptions';
1414
15-
@Component
15+
@Component({
16+
name: 'MarkdownEditor'
17+
})
1618
export default class MarkdownEditor extends Vue {
1719
@Prop({default: ''}) value!: string;
1820
@Prop({

src/components/Tinymce/dynamicLoadScript.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const dynamicLoadScript = (src, callback) => {
3434
}
3535

3636
function stdOnEnd(script) {
37-
// tslint:disable-next-line:space-before-function-paren
3837
script.onload = function () {
3938
// this.onload = null here is necessary
4039
// because even IE9 works not like others
@@ -44,15 +43,13 @@ const dynamicLoadScript = (src, callback) => {
4443
}
4544
callbacks = null;
4645
};
47-
// tslint:disable-next-line:space-before-function-paren
4846
script.onerror = function () {
4947
this.onerror = this.onload = null;
5048
cb(new Error('Failed to load ' + src), script);
5149
};
5250
}
5351

5452
function ieOnEnd(script) {
55-
// tslint:disable-next-line:space-before-function-paren
5653
script.onreadystatechange = function () {
5754
if (this.readyState !== 'complete' && this.readyState !== 'loaded') return;
5855
this.onreadystatechange = null;

0 commit comments

Comments
 (0)