vue-codemirror6 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -405
- package/dist/composables/useCodeMirror.d.ts +381 -0
- package/dist/helpers/h-demi.d.ts +42 -0
- package/dist/helpers/vue-flags.d.ts +11 -0
- package/dist/index.d.ts +298 -502
- package/dist/index.es.js +5 -382
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/s~0.es.js +389 -0
- package/dist/s~0.es.js.map +1 -0
- package/dist/types/CodeMirrorExposed.d.ts +70 -0
- package/dist/types/Meta.d.ts +18 -0
- package/dist/wc-auto.d.ts +18 -0
- package/dist/wc-auto.es.js +17 -0
- package/dist/wc-auto.es.js.map +1 -0
- package/dist/wc-auto.umd.js +11 -0
- package/dist/wc.d.ts +63 -0
- package/dist/wc.es.js +40 -0
- package/dist/wc.es.js.map +1 -0
- package/dist/wc.umd.js +11 -0
- package/package.json +78 -53
- package/README.ja.md +0 -447
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue-codemirror6
|
|
3
|
+
*
|
|
4
|
+
* @description CodeMirror6 Component for vue2 and vue3.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 1.8.1
|
|
8
|
+
* @see {@link https://github.com/logue/vue-codemirror6}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { type LanguageSupport } from '@codemirror/language';
|
|
12
|
+
import { type LintSource } from '@codemirror/lint';
|
|
13
|
+
import { EditorSelection, EditorState, type Extension, type SelectionRange, type StateField, type Text } from '@codemirror/state';
|
|
14
|
+
import { EditorView, type KeyBinding, type ViewUpdate } from '@codemirror/view';
|
|
15
|
+
import { type ExtractPropTypes, type PropType, type Ref, type ShallowRef, type WritableComputedRef } from 'vue-demi';
|
|
16
|
+
import type { StyleSpec } from 'style-mod';
|
|
17
|
+
/** `CodeMirror` component props definition. */
|
|
18
|
+
export declare const codeMirrorProps: {
|
|
19
|
+
/** Model value */
|
|
20
|
+
readonly modelValue: {
|
|
21
|
+
readonly type: PropType<string | Text>;
|
|
22
|
+
readonly default: '';
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Theme
|
|
26
|
+
*
|
|
27
|
+
* @see {@link https://codemirror.net/docs/ref/#view.EditorView^theme}
|
|
28
|
+
*/
|
|
29
|
+
readonly theme: {
|
|
30
|
+
readonly type: PropType<Record<string, StyleSpec>>;
|
|
31
|
+
readonly default: () => {};
|
|
32
|
+
};
|
|
33
|
+
/** Dark Mode */
|
|
34
|
+
readonly dark: {
|
|
35
|
+
readonly type: BooleanConstructor;
|
|
36
|
+
readonly default: false;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Use Basic Setup
|
|
40
|
+
*
|
|
41
|
+
* This will enable the basic setup for the editor.
|
|
42
|
+
*
|
|
43
|
+
* @see {@link https://codemirror.net/docs/ref/#codemirror.basicSetup}
|
|
44
|
+
*/
|
|
45
|
+
readonly basic: {
|
|
46
|
+
readonly type: BooleanConstructor;
|
|
47
|
+
readonly default: false;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Use Minimal Setup (The basic setting has priority.)
|
|
51
|
+
*
|
|
52
|
+
* @see {@link https://codemirror.net/docs/ref/#codemirror.minimalSetup}
|
|
53
|
+
*/
|
|
54
|
+
readonly minimal: {
|
|
55
|
+
readonly type: BooleanConstructor;
|
|
56
|
+
readonly default: false;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Placeholder
|
|
60
|
+
*
|
|
61
|
+
* @see {@link https://codemirror.net/docs/ref/#view.placeholder}
|
|
62
|
+
*/
|
|
63
|
+
readonly placeholder: {
|
|
64
|
+
readonly type: PropType<string | HTMLElement>;
|
|
65
|
+
readonly default: undefined;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Line wrapping
|
|
69
|
+
*
|
|
70
|
+
* An extension that enables line wrapping in the editor (by setting CSS white-space to pre-wrap in the content).
|
|
71
|
+
*
|
|
72
|
+
* @see {@link https://codemirror.net/docs/ref/#view.EditorView%5ElineWrapping}
|
|
73
|
+
*/
|
|
74
|
+
readonly wrap: {
|
|
75
|
+
readonly type: BooleanConstructor;
|
|
76
|
+
readonly default: false;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Allow tab key indent.
|
|
80
|
+
*
|
|
81
|
+
* This will enable the tab key to indent the current line or selection.
|
|
82
|
+
*
|
|
83
|
+
* @see {@link https://codemirror.net/examples/tab/}
|
|
84
|
+
*/
|
|
85
|
+
readonly tab: {
|
|
86
|
+
readonly type: BooleanConstructor;
|
|
87
|
+
readonly default: false;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Tab character
|
|
91
|
+
*
|
|
92
|
+
* This is the unit of indentation used when the editor is configured to indent with tabs.
|
|
93
|
+
* It is also used to determine the size of the tab character when the editor is configured to use tabs for indentation..
|
|
94
|
+
*
|
|
95
|
+
* @see {@link https://codemirror.net/docs/ref/#state.EditorState^indentUnit}
|
|
96
|
+
*/
|
|
97
|
+
readonly indentUnit: {
|
|
98
|
+
readonly type: StringConstructor;
|
|
99
|
+
readonly default: undefined;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Allow Multiple Selection.
|
|
103
|
+
*
|
|
104
|
+
* This allows the editor to have multiple selections at the same time.
|
|
105
|
+
* This is useful for editing multiple parts of the document at once.
|
|
106
|
+
* If this is set to true, the editor will allow multiple selections.
|
|
107
|
+
* If this is set to false, the editor will only allow a single selection.
|
|
108
|
+
*
|
|
109
|
+
* @see {@link https://codemirror.net/docs/ref/#state.EditorState^allowMultipleSelections}
|
|
110
|
+
*/
|
|
111
|
+
readonly allowMultipleSelections: {
|
|
112
|
+
readonly type: BooleanConstructor;
|
|
113
|
+
readonly default: false;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Tab size
|
|
117
|
+
*
|
|
118
|
+
* This is the number of spaces that a tab character represents in the editor.
|
|
119
|
+
* It is used to determine the size of the tab character when the editor is configured to use tabs for indentation.
|
|
120
|
+
* If this is set to a number, the editor will use that number of spaces for each tab character.
|
|
121
|
+
*
|
|
122
|
+
* @see {@link https://codemirror.net/docs/ref/#state.EditorState^tabSize}
|
|
123
|
+
*/
|
|
124
|
+
readonly tabSize: {
|
|
125
|
+
readonly type: NumberConstructor;
|
|
126
|
+
readonly default: undefined;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Set line break (separetor) char.
|
|
130
|
+
*
|
|
131
|
+
* This is the character that is used to separate lines in the editor.
|
|
132
|
+
* It is used to determine the line break character when the editor is configured to use a specific line break character.
|
|
133
|
+
*
|
|
134
|
+
* @see {@link https://codemirror.net/docs/ref/#state.EditorState^lineSeparator}
|
|
135
|
+
*/
|
|
136
|
+
readonly lineSeparator: {
|
|
137
|
+
readonly type: StringConstructor;
|
|
138
|
+
readonly default: undefined;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Readonly
|
|
142
|
+
*
|
|
143
|
+
* This is a CodeMirror Facet that allows you to set the editor to read-only mode.
|
|
144
|
+
* When this is set to true, the editor will not allow any changes to be made to the document.
|
|
145
|
+
* This is useful for displaying code that should not be edited, such as documentation or examples.
|
|
146
|
+
* If this is set to false, the editor will allow changes to be made to the document.
|
|
147
|
+
*
|
|
148
|
+
* @see {@link https://codemirror.net/docs/ref/#state.EditorState^readOnly}
|
|
149
|
+
*/
|
|
150
|
+
readonly readonly: {
|
|
151
|
+
readonly type: BooleanConstructor;
|
|
152
|
+
readonly default: false;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Disable input.
|
|
156
|
+
*
|
|
157
|
+
* This is the reversed value of the CodeMirror editable.
|
|
158
|
+
* Similar to `readonly`, but setting this value to true disables dragging.
|
|
159
|
+
*
|
|
160
|
+
* @see {@link https://codemirror.net/docs/ref/#view.EditorView^editable}
|
|
161
|
+
*/
|
|
162
|
+
readonly disabled: {
|
|
163
|
+
readonly type: BooleanConstructor;
|
|
164
|
+
readonly default: false;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Additional Extension
|
|
168
|
+
*
|
|
169
|
+
* You can use this to add any additional extensions that you want to use in the editor.
|
|
170
|
+
*
|
|
171
|
+
* @see {@link https://codemirror.net/docs/ref/#state.Extension}
|
|
172
|
+
*/
|
|
173
|
+
readonly extensions: {
|
|
174
|
+
readonly type: PropType<Extension[]>;
|
|
175
|
+
readonly default: () => never[];
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Language Phreses
|
|
179
|
+
*
|
|
180
|
+
* This is a CodeMirror Facet that allows you to define custom phrases for the editor.
|
|
181
|
+
* It can be used to override default phrases or add new ones.
|
|
182
|
+
* This is useful for translating the editor to different languages or for customizing the editor's UI.
|
|
183
|
+
*
|
|
184
|
+
* @see {@link https://codemirror.net/examples/translate/}
|
|
185
|
+
*/
|
|
186
|
+
readonly phrases: {
|
|
187
|
+
readonly type: PropType<Record<string, string>>;
|
|
188
|
+
readonly default: undefined;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* CodeMirror Language
|
|
192
|
+
*
|
|
193
|
+
* This is a CodeMirror Facet that allows you to define the language of the editor.
|
|
194
|
+
* It can be used to enable syntax highlighting and other language-specific features.
|
|
195
|
+
* It is useful for displaying code in a specific language, such as JavaScript, Python, or HTML.
|
|
196
|
+
*
|
|
197
|
+
* @see {@link https://codemirror.net/docs/ref/#language}
|
|
198
|
+
*/
|
|
199
|
+
readonly lang: {
|
|
200
|
+
readonly type: PropType<LanguageSupport>;
|
|
201
|
+
readonly default: undefined;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* CodeMirror Linter
|
|
205
|
+
*
|
|
206
|
+
* This is a CodeMirror Facet that allows you to define a linter for the editor.
|
|
207
|
+
* It can be used to check the code for errors and warnings, and to provide feedback to the user.
|
|
208
|
+
* It is useful for displaying code in a specific language, such as JavaScript, Python, or HTML.
|
|
209
|
+
* This is useful for providing feedback to the user about the code they are writing.
|
|
210
|
+
*
|
|
211
|
+
* @see {@link https://codemirror.net/docs/ref/#lint.linter}
|
|
212
|
+
*/
|
|
213
|
+
readonly linter: {
|
|
214
|
+
readonly type: PropType<LintSource>;
|
|
215
|
+
readonly default: undefined;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Linter Config
|
|
219
|
+
*
|
|
220
|
+
* This is a CodeMirror Facet that allows you to define the configuration for the linter.
|
|
221
|
+
* It can be used to specify options for the linter, such as the severity of errors and warnings, and to customize the behavior of the linter.
|
|
222
|
+
* This is useful for providing feedback to the user about the code they are writing.
|
|
223
|
+
*
|
|
224
|
+
* @see {@link https://codemirror.net/docs/ref/#lint.linter^config}
|
|
225
|
+
*/
|
|
226
|
+
readonly linterConfig: {
|
|
227
|
+
readonly type: ObjectConstructor;
|
|
228
|
+
readonly default: () => {};
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Forces any linters configured to run when the editor is idle to run right away.
|
|
232
|
+
*
|
|
233
|
+
* This is useful for running linters on the initial load of the editor, or when the user has made changes to the code and wants to see the results immediately.
|
|
234
|
+
*
|
|
235
|
+
* @see {@link https://codemirror.net/docs/ref/#lint.forceLinting}
|
|
236
|
+
*/
|
|
237
|
+
readonly forceLinting: {
|
|
238
|
+
readonly type: BooleanConstructor;
|
|
239
|
+
readonly default: false;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* Show Linter Gutter
|
|
243
|
+
*
|
|
244
|
+
* An area to 🔴 the lines with errors will be displayed.
|
|
245
|
+
* This feature is not enabled if `linter` is not specified.
|
|
246
|
+
*
|
|
247
|
+
* @see {@link https://codemirror.net/docs/ref/#lint.lintGutter}
|
|
248
|
+
*/
|
|
249
|
+
readonly gutter: {
|
|
250
|
+
readonly type: BooleanConstructor;
|
|
251
|
+
readonly default: false;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Gutter Config
|
|
255
|
+
*
|
|
256
|
+
* This is a CodeMirror Facet that allows you to define the configuration for the gutter.
|
|
257
|
+
* It can be used to specify options for the gutter, such as the size of the gutter, the position of the gutter, and to customize the behavior of the gutter.
|
|
258
|
+
* This is useful for providing feedback to the user about the code they are writing.
|
|
259
|
+
*
|
|
260
|
+
* @see {@link https://codemirror.net/docs/ref/#lint.lintGutter^config}
|
|
261
|
+
*/
|
|
262
|
+
readonly gutterConfig: {
|
|
263
|
+
readonly type: ObjectConstructor;
|
|
264
|
+
readonly default: undefined;
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* Using tag
|
|
268
|
+
*/
|
|
269
|
+
readonly tag: {
|
|
270
|
+
readonly type: StringConstructor;
|
|
271
|
+
readonly default: 'div';
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Allows an external update to scroll the form.
|
|
275
|
+
*
|
|
276
|
+
* This is useful for scrolling the editor to a specific position when the user has made changes to the code and wants to see the results immediately.
|
|
277
|
+
* If this is set to true, the editor will scroll to the position specified in the transaction.
|
|
278
|
+
* If this is set to false, the editor will not scroll to the position specified in the transaction.
|
|
279
|
+
*
|
|
280
|
+
* @see {@link https://codemirror.net/docs/ref/#state.TransactionSpec.scrollIntoView}
|
|
281
|
+
*/
|
|
282
|
+
readonly scrollIntoView: {
|
|
283
|
+
readonly type: BooleanConstructor;
|
|
284
|
+
readonly default: true;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Preserve the current scroll position on external updates.
|
|
288
|
+
*
|
|
289
|
+
* This keeps the editor's own scroll container from jumping when
|
|
290
|
+
* `modelValue` is updated from outside the component.
|
|
291
|
+
*
|
|
292
|
+
* @see {@link https://codemirror.net/docs/ref/#view.EditorView.scrollSnapshot}
|
|
293
|
+
*/
|
|
294
|
+
readonly preserveScrollPosition: {
|
|
295
|
+
readonly type: BooleanConstructor;
|
|
296
|
+
readonly default: false;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Key map
|
|
300
|
+
* This is a CodeMirror Facet that allows you to define custom key bindings.
|
|
301
|
+
* It can be used to override default key bindings or add new ones.
|
|
302
|
+
*
|
|
303
|
+
* @see {@link https://codemirror.net/docs/ref/#view.keymap}
|
|
304
|
+
*/
|
|
305
|
+
readonly keymap: {
|
|
306
|
+
readonly type: PropType<KeyBinding[]>;
|
|
307
|
+
readonly default: () => never[];
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
/** Resolved prop types for {@link codeMirrorProps}. */
|
|
311
|
+
export type CodeMirrorProps = ExtractPropTypes<typeof codeMirrorProps>;
|
|
312
|
+
/** `CodeMirror` component emits definition. */
|
|
313
|
+
export declare const codeMirrorEmits: {
|
|
314
|
+
/** Model Update */
|
|
315
|
+
'update:modelValue': (_value?: string | Text) => boolean;
|
|
316
|
+
/** CodeMirror ViewUpdate */
|
|
317
|
+
update: (_value: ViewUpdate) => boolean;
|
|
318
|
+
/** CodeMirror onReady */
|
|
319
|
+
ready: (_value: {
|
|
320
|
+
view: EditorView;
|
|
321
|
+
state: EditorState;
|
|
322
|
+
container: HTMLElement;
|
|
323
|
+
}) => boolean;
|
|
324
|
+
/** CodeMirror onFocus */
|
|
325
|
+
focus: (_value: boolean) => boolean;
|
|
326
|
+
/** State Changed */
|
|
327
|
+
change: (_value: EditorState) => boolean;
|
|
328
|
+
/** CodeMirror onDestroy */
|
|
329
|
+
destroy: () => boolean;
|
|
330
|
+
};
|
|
331
|
+
/** Typed `emit` function matching {@link codeMirrorEmits}. */
|
|
332
|
+
export type CodeMirrorEmit = {
|
|
333
|
+
(event: 'update:modelValue', value: string | Text): void;
|
|
334
|
+
(event: 'update', value: ViewUpdate): void;
|
|
335
|
+
(event: 'ready', value: {
|
|
336
|
+
view: EditorView;
|
|
337
|
+
state: EditorState;
|
|
338
|
+
container: HTMLElement;
|
|
339
|
+
}): void;
|
|
340
|
+
(event: 'focus', value: boolean): void;
|
|
341
|
+
(event: 'change', value: EditorState): void;
|
|
342
|
+
(event: 'destroy'): void;
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* Sets up a CodeMirror 6 editor instance bound to `props` and reports
|
|
346
|
+
* changes back through `emit`.
|
|
347
|
+
*
|
|
348
|
+
* This encapsulates all editor lifecycle, reactivity, and command logic so
|
|
349
|
+
* it can be reused outside of the `CodeMirror` component (e.g. in a custom
|
|
350
|
+
* render function or another component).
|
|
351
|
+
*
|
|
352
|
+
* @param props - Resolved `CodeMirror` component props.
|
|
353
|
+
* @param emit - Typed emit function.
|
|
354
|
+
*/
|
|
355
|
+
export declare function useCodeMirror(props: CodeMirrorProps, emit: CodeMirrorEmit): {
|
|
356
|
+
editor: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
357
|
+
view: ShallowRef<EditorView | undefined>;
|
|
358
|
+
cursor: WritableComputedRef<number, number>;
|
|
359
|
+
selection: WritableComputedRef<EditorSelection | undefined, EditorSelection | undefined>;
|
|
360
|
+
focus: WritableComputedRef<boolean, boolean>;
|
|
361
|
+
length: Ref<number, number>;
|
|
362
|
+
json: WritableComputedRef<Record<string, StateField<unknown>> | undefined, Record<string, StateField<unknown>> | undefined>;
|
|
363
|
+
diagnosticCount: Ref<number, number>;
|
|
364
|
+
dom: HTMLElement | undefined;
|
|
365
|
+
lint: () => void;
|
|
366
|
+
forceReconfigure: () => void;
|
|
367
|
+
getRange: (from?: number, to?: number) => string | undefined;
|
|
368
|
+
getLine: (number: number) => string | undefined;
|
|
369
|
+
lineCount: () => number;
|
|
370
|
+
getCursor: () => number;
|
|
371
|
+
listSelections: () => readonly SelectionRange[];
|
|
372
|
+
getSelection: () => string;
|
|
373
|
+
getSelections: () => string[];
|
|
374
|
+
somethingSelected: () => boolean;
|
|
375
|
+
replaceRange: (replacement: string | Text, from: number, to: number) => void;
|
|
376
|
+
replaceSelection: (replacement: string | Text) => void;
|
|
377
|
+
setCursor: (position: number) => void;
|
|
378
|
+
setSelection: (anchor: number, head?: number) => void;
|
|
379
|
+
setSelections: (ranges: readonly SelectionRange[], primary?: number) => void;
|
|
380
|
+
extendSelectionsBy: (f: (range: SelectionRange) => number) => void;
|
|
381
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue-codemirror6
|
|
3
|
+
*
|
|
4
|
+
* @description CodeMirror6 Component for vue2 and vue3.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 1.8.1
|
|
8
|
+
* @see {@link https://github.com/logue/vue-codemirror6}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* h-demi - h function for Vue 2 and 3
|
|
13
|
+
*
|
|
14
|
+
* @see {@link https://github.com/vueuse/vue-demi/issues/65}
|
|
15
|
+
*/
|
|
16
|
+
import { type Component, type VNode, type VNodeProps } from 'vue-demi';
|
|
17
|
+
type Options = VNodeProps & {
|
|
18
|
+
class?: string;
|
|
19
|
+
domProps?: VNodeProps;
|
|
20
|
+
on?: Record<string, () => void>;
|
|
21
|
+
props?: VNodeProps;
|
|
22
|
+
style?: string;
|
|
23
|
+
'aria-hidden'?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Cross-version `h` (hyperscript) function that normalizes Vue 2 style
|
|
27
|
+
* options (`props`, `domProps`, `on`) into Vue 3's flat VNode data object.
|
|
28
|
+
*
|
|
29
|
+
* @param type - Element tag name or component.
|
|
30
|
+
* @param options - VNode options, accepting both Vue 2 and Vue 3 shapes.
|
|
31
|
+
* @param children - Child VNode(s).
|
|
32
|
+
* @returns Created VNode.
|
|
33
|
+
*/
|
|
34
|
+
export default function h(type: string | Component, options?: Options, children?: VNode | VNode[]): VNode;
|
|
35
|
+
/**
|
|
36
|
+
* Normalize a default slot into a VNode array, invoking it if it is a function.
|
|
37
|
+
*
|
|
38
|
+
* @param defaultSlots - Default slot content or slot function.
|
|
39
|
+
* @returns Resolved VNode array.
|
|
40
|
+
*/
|
|
41
|
+
export declare const slot: (defaultSlots: (() => VNode[]) | VNode[] | undefined) => VNode[];
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue-codemirror6
|
|
3
|
+
*
|
|
4
|
+
* @description CodeMirror6 Component for vue2 and vue3.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 1.8.1
|
|
8
|
+
* @see {@link https://github.com/logue/vue-codemirror6}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
declare const g: Record<string, unknown>;
|