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 }) => {
1212
1313 // mode
1414 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' ) ;
1523 // placeholder
1624 await import ( 'codemirror/addon/display/placeholder' ) ;
1725 // active-line
Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ Optional value:`edit` `editable` `preview`。
3434- type:` String `
3535- default: ` '' `
3636
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+
3744### placeholder
3845
3946- type:` String `
Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ sidebarDepth: 2
3838
3939正常模式下编辑器的高度。
4040
41+ ### tabSize
42+
43+ - 类型:` Number `
44+ - 默认值: ` 2 `
45+
46+ 编辑和预览时制表符的长度,编辑器和预览组件都支持该属性。
47+
4148### placeholder
4249
4350- 类型:` String `
You can’t perform that action at this time.
0 commit comments