File tree Expand file tree Collapse file tree 4 files changed +69
-162
lines changed
Expand file tree Collapse file tree 4 files changed +69
-162
lines changed Original file line number Diff line number Diff line change @@ -341,13 +341,13 @@ onMounted(() => {
341341
342342| Function / Parameter | Description |
343343| -------------------- | --------------------------------------------------------------------------------------------------- |
344+ | view | Get and set [ EditorView] ( https://codemirror.net/docs/ref/#view.EditorView ) . |
344345| selection | Get and set the [ EditorSelection] ( https://codemirror.net/docs/ref/#state.EditorSelection ) instance. |
345346| cursor | Get and set the [ cursor] ( https://codemirror.net/docs/ref/#state.EditorSelection^cursor ) location. |
346- | state | Get and set [ EditorState] ( https://codemirror.net/docs/ref/#state.EditorState ) . |
347347| json | Get and set state to a JSON-serializable object. |
348348| focus | Get and set [ focus] ( https://codemirror.net/docs/ref/#view.EditorView.focus ) . |
349- | lint | Force run linter (Only if ` linter ` prop is specified) |
350- | forceReconfigure | Re register all extensions. |
349+ | lint() | Force run linter (Only if ` linter ` prop is specified) |
350+ | forceReconfigure() | Re register all extensions. |
351351
352352### CodeMirror5 backward compatible functions
353353
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://json.schemastore.org/package.json" ,
33 "name" : " vue-codemirror6" ,
4- "version" : " 1.1.17.beta " ,
4+ "version" : " 1.1.17" ,
55 "license" : " MIT" ,
66 "description" : " CodeMirror6 Component for vue2 and vue3." ,
77 "keywords" : [
Original file line number Diff line number Diff line change @@ -42,11 +42,6 @@ const linter: LintSource = esLint(
4242 },
4343 }
4444);
45-
46- /** Get ViewUpdate for update lint error count. */
47- const onUpdate = (update : ViewUpdate ) => {
48- errorCount .value = diagnosticCount (update .state );
49- };
5045 </script >
5146
5247<!-- eslint-disable vuejs-accessibility/label-has-for -->
@@ -63,7 +58,6 @@ const onUpdate = (update: ViewUpdate) => {
6358 class =" mb-3"
6459 gutter
6560 wrap
66- @Update =" onUpdate"
6761 />
6862 <div class =" row mb-3" >
6963 <div class =" col-6" >
You can’t perform that action at this time.
0 commit comments