Skip to content

Commit 1bdcc8e

Browse files
committed
chore(doc): API desc
1 parent 0e5659f commit 1bdcc8e

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,18 @@ app.use(VueCodemirror, {
121121

122122
### Component Props
123123

124-
| prop | description | type | default |
125-
| :------------ | :-------------------------------------------------------- | :----------------------- | :------ |
126-
| autofocus | Focus editor immediately after mounted. | `Boolean` | `false` |
127-
| disabled | Disable input behavior and disable change state. | `Boolean` | `false` |
128-
| indentWithTab | Bind keyboard Tab key event. | `Boolean` | `true` |
129-
| tabSize | Specify the indent when the Tab key is pressed. | `Number` | `2` |
130-
| placeholder | Display when empty. | `String` | `''` |
131-
| style | The CSS style object that acts on the CodeMirror itself. | `Object` | `{}` |
132-
| extensions | Passed to CodeMirror `EditorState.create({ extensions })` | `Extension` | `[]` |
133-
| selection | Passed to CodeMirror `EditorState.create({ selection })` | `EditorSelection` | - |
134-
| root | Passed to CodeMirror `new EditorView({ root })` | `ShadowRoot \| Document` | - |
124+
| prop | description | type | default |
125+
| :------------ | :----------------------------------------------------------------------- | :----------------------- | :------ |
126+
| modelValue | The input values accepted by the component also support two-way binding. | `String` | `''` |
127+
| autofocus | Focus editor immediately after mounted. | `Boolean` | `false` |
128+
| disabled | Disable input behavior and disable change state. | `Boolean` | `false` |
129+
| indentWithTab | Bind keyboard Tab key event. | `Boolean` | `true` |
130+
| tabSize | Specify the indent when the Tab key is pressed. | `Number` | `2` |
131+
| placeholder | Display when empty. | `String` | `''` |
132+
| style | The CSS style object that acts on the CodeMirror itself. | `Object` | `{}` |
133+
| extensions | Passed to CodeMirror `EditorState.create({ extensions })` | `Extension` | `[]` |
134+
| selection | Passed to CodeMirror `EditorState.create({ selection })` | `EditorSelection` | - |
135+
| root | Passed to CodeMirror `new EditorView({ root })` | `ShadowRoot \| Document` | - |
135136

136137
### Component Events
137138

0 commit comments

Comments
 (0)