Skip to content

Commit

Permalink
chore: props and readme doc
Browse files Browse the repository at this point in the history
1. the wrong spelling of `default`
2. add `forceLinting` props in readme
  • Loading branch information
KrialY committed Feb 19, 2024
1 parent be2bd4a commit 7fa6df8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://codemirror.net/docs/ref/#lint.linter^config> |
| forceLinting | boolean | see <https://codemirror.net/docs/ref/#lint.forceLinting> |
| 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 <https://codemirror.net/docs/ref/#lint.lintGutter^config> |
| tag | string | HTML tags used in the component. (Default is `div` tag.) |
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeMirror.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export default defineComponent({
*/
gutter: {
type: Boolean,
defalt: false,
default: false,
},
/**
* Gutter Config
Expand Down

0 comments on commit 7fa6df8

Please sign in to comment.