You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-20Lines changed: 26 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
# Introduction
9
9
10
-
The codemirror component of vue3. This component is developed based on [Codemirror 5](http://codemirror.net/5/) and only vue3 is supported.
10
+
The codemirror component of vue3. This component is developed based on [Codemirror 5](http://codemirror.net/5/) and only vue3 is supported.
11
11
12
12
In addition to the officially supported modes, the log output presentation mode is added, out of the box, but not necessarily suitable for all scenarios.
|**options**|[Configuration options of codemirror5][cm_config_url]|[EditorConfiguration][cm_editor_type_url]|[DEFAULT_OPTIONS][default_options_url]|
112
-
|**placeholder**| Editor placeholder content to introduce codemirror related files |`string`| "" |
113
-
|**border**| Whether to display editor borders |`boolean`|`false`|
114
-
|**width**| width |`string`|`100% `|
115
-
|**height**| height |`string`|`100% `|
116
-
|**original-style**| Using the original style, disable the second modification of the style for this component (but does not affect width, height, and border) |` boolean`|`false`|
117
-
|**KeepCursorInEnd**| Always keep the mouse position on the last line |`boolean`|`false`|
118
-
|**merge**| merge mode, can also be used as diff pattern |`boolean`|`false`|
119
-
|*name*| Name, which is passed to the textarea inside the component(This is useless🙃) |`string`| - |
|**options**|[Configuration options of codemirror5][cm_config_url]|[EditorConfiguration][cm_editor_type_url]|[DEFAULT_OPTIONS][default_options_url]|
118
+
|**placeholder**| Editor placeholder content to introduce codemirror related files |`string`| "" |
119
+
|**border**| Whether to display editor borders |`boolean`|`false`|
120
+
|**width**| width |`string`|`100% `|
121
+
|**height**| height |`string`|`100% `|
122
+
|**original-style**| Using the original style, disable the second modification of the style for this component (but does not affect width, height, and border) |` boolean`|`false`|
123
+
|**KeepCursorInEnd**| Always keep the mouse position on the last line |`boolean`|`false`|
124
+
|**merge**| merge mode, can also be used as diff pattern |`boolean`|`false`|
125
+
|_name_| Name, which is passed to the textarea inside the component(This is useless🙃) |`string`| - |
121
126
122
127
## Events
128
+
123
129
### Component Events
130
+
124
131
> The following three are only the events encapsulated by this component. Please refer to more events [Codemirror Events](./events#codemirror-events)
The codemirror component of vue3. This component is developed based on [Codemirror 5](http://codemirror.net/5/) and only vue3 is supported.
9
+
10
+
The codemirror component of vue3. This component is developed based on [Codemirror 5](http://codemirror.net/5/) and only vue3 is supported.
10
11
11
12
In addition to the officially supported modes, the log output presentation mode is added, out of the box, but not necessarily suitable for all scenarios.
0 commit comments