From 7fa6df83260e9a90fd65929d39f708aef50190ed Mon Sep 17 00:00:00 2001 From: yuankailong <947102061@qq.com> Date: Mon, 19 Feb 2024 22:55:20 +0800 Subject: [PATCH] chore: props and readme doc 1. the wrong spelling of `default` 2. add `forceLinting` props in readme --- README.md | 1 + src/components/CodeMirror.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a67e19..de0998f 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ This component can handle bidirectional binding by `v-model` like a general Vue | extensions | Extension[] | Includes enhancements to extend CodeMirror. | | linter | LintSource | Set Linter. Enter a linter (eg `esLint([arbitrary rule])` function for `@codemirror/lang-javascript`, `jsonParseLinter()`function for`@codemirror/json`). See the sources for various language libraries for more information. | | linterConfig | Object | see | +| forceLinting | boolean | see | | gutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. | | gutterConfig | Object | see | | tag | string | HTML tags used in the component. (Default is `div` tag.) | diff --git a/src/components/CodeMirror.ts b/src/components/CodeMirror.ts index 392ef18..b55c86a 100644 --- a/src/components/CodeMirror.ts +++ b/src/components/CodeMirror.ts @@ -241,7 +241,7 @@ export default defineComponent({ */ gutter: { type: Boolean, - defalt: false, + default: false, }, /** * Gutter Config