File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,6 @@ onMounted(() => {
49
49
stateRef: state ,
50
50
containerRef: container ,
51
51
})
52
-
53
- /** DEBUGGING the variables exposed by defineExpose */
54
- // await nextTick()
55
- // console.log('test: ', view.value)
56
52
})
57
53
58
54
onBeforeUnmount (() => {
Original file line number Diff line number Diff line change @@ -5,13 +5,19 @@ import type { Ref } from '#imports'
5
5
6
6
export interface NuxtCodeMirrorProps
7
7
extends Omit < EditorStateConfig , 'doc' | 'extensions' > {
8
- /** value of the auto created model in the editor. */
8
+ /** value of the auto created model in the editor. Works as underlying logic of a V-Model */
9
9
modelValue ?: string
10
+ /** The height value of the editor. */
10
11
height ?: string
12
+ /** The minimum height value of the editor. */
11
13
minHeight ?: string
14
+ /** The maximum height value of the editor. */
12
15
maxHeight ?: string
16
+ /** The width value of the editor. */
13
17
width ?: string
18
+ /** The minimum width value of the editor. */
14
19
minWidth ?: string
20
+ /** The maximum width value of the editor. */
15
21
maxWidth ?: string
16
22
/** focus on the editor. */
17
23
autoFocus ?: boolean
@@ -81,8 +87,11 @@ export interface NuxtCodeMirrorProps
81
87
export interface UseCodeMirrorProps extends NuxtCodeMirrorProps {
82
88
/** Container element of the CodeMirror instance */
83
89
container ?: HTMLDivElement | null
90
+ /** The EditorView of the CodeMirror instance */
84
91
viewRef : Ref < EditorView | undefined >
92
+ /** The EditorState of the CodeMirror instance */
85
93
stateRef : Ref < EditorState | undefined >
94
+ /** Editor element of the CodeMirror instance */
86
95
containerRef : Ref < HTMLDivElement | null >
87
96
}
88
97
You can’t perform that action at this time.
0 commit comments