File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ export default async ({ Vue }) => {
12
12
13
13
// mode
14
14
await import ( 'codemirror/mode/markdown/markdown' ) ;
15
+ await import ( 'codemirror/mode/javascript/javascript' ) ;
16
+ await import ( 'codemirror/mode/css/css' ) ;
17
+ await import ( 'codemirror/mode/htmlmixed/htmlmixed' ) ;
18
+ await import ( 'codemirror/mode/vue/vue' ) ;
19
+ // edit
20
+ await import ( 'codemirror/addon/edit/closebrackets' ) ;
21
+ await import ( 'codemirror/addon/edit/closetag' ) ;
22
+ await import ( 'codemirror/addon/edit/matchbrackets' ) ;
15
23
// placeholder
16
24
await import ( 'codemirror/addon/display/placeholder' ) ;
17
25
// active-line
Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ Optional value:`edit` `editable` `preview`。
34
34
- type:` String `
35
35
- default: ` '' `
36
36
37
+ ### tabSize
38
+
39
+ - 类型:` Number `
40
+ - 默认值: ` 2 `
41
+
42
+ The length of the tab character when editing and previewing. Both the editor and preview components support this property.
43
+
37
44
### placeholder
38
45
39
46
- type:` String `
Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ sidebarDepth: 2
38
38
39
39
正常模式下编辑器的高度。
40
40
41
+ ### tabSize
42
+
43
+ - 类型:` Number `
44
+ - 默认值: ` 2 `
45
+
46
+ 编辑和预览时制表符的长度,编辑器和预览组件都支持该属性。
47
+
41
48
### placeholder
42
49
43
50
- 类型:` String `
You can’t perform that action at this time.
0 commit comments