Skip to content

Commit 6c05230

Browse files
committed
Fix Lint
1 parent 36eb8ad commit 6c05230

File tree

6 files changed

+44
-45
lines changed

6 files changed

+44
-45
lines changed

src/components/InputArea.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ export default {
4141
return
4242
}
4343
44-
if(typeof insert === 'function')
45-
insert = insert()
44+
if (typeof insert === 'function') { insert = insert() }
4645
4746
if (!Array.isArray(insert)) {
4847
insert = [insert, '']
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export default {
2-
name: 'delete',
3-
icon: 'fa-strikethrough',
4-
title: '删除线',
5-
action: {
6-
insert: ['~~', '~~']
7-
}
8-
}
2+
name: 'delete',
3+
icon: 'fa-strikethrough',
4+
title: '删除线',
5+
action: {
6+
insert: ['~~', '~~']
7+
}
8+
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
export default function header(level) {
2-
return {
3-
name: 'h' + level,
4-
icon: 'icon-blold',
5-
content: 'H' + level,
6-
title: level + '级标题',
7-
action: {
8-
insert: function () {
9-
let output = "";
10-
for(let i = 0;i < level; i++) {
11-
output += "#"
12-
}
13-
return output + " "
14-
}
1+
export default function header (level) {
2+
return {
3+
name: 'h' + level,
4+
icon: 'icon-blold',
5+
content: 'H' + level,
6+
title: level + '级标题',
7+
action: {
8+
insert: function () {
9+
let output = ''
10+
for (let i = 0; i < level; i++) {
11+
output += '#'
1512
}
13+
return output + ' '
14+
}
1615
}
17-
}
16+
}
17+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export default {
2-
name: 'hr',
3-
icon: 'fa-minus',
4-
title: '分割线',
5-
action: {
6-
insert: "------------"
7-
}
8-
}
2+
name: 'hr',
3+
icon: 'fa-minus',
4+
title: '分割线',
5+
action: {
6+
insert: '------------'
7+
}
8+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export default {
2-
name: 'ol',
3-
icon: 'fa-list-ol',
4-
title: '有序列表',
5-
action: {
6-
insert: "1. "
7-
}
8-
}
2+
name: 'ol',
3+
icon: 'fa-list-ol',
4+
title: '有序列表',
5+
action: {
6+
insert: '1. '
7+
}
8+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export default {
2-
name: 'ul',
3-
icon: 'fa-list-ul',
4-
title: '无序列表',
5-
action: {
6-
insert: "- "
7-
}
8-
}
2+
name: 'ul',
3+
icon: 'fa-list-ul',
4+
title: '无序列表',
5+
action: {
6+
insert: '- '
7+
}
8+
}

0 commit comments

Comments
 (0)