We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e2b66e commit 7e7db8eCopy full SHA for 7e7db8e
packages/index.ts
@@ -1,9 +1,19 @@
1
import _CodeMirror from "codemirror";
2
import type { App } from "vue";
3
-import type { EditorConfiguration } from "codemirror";
+import type { EditorConfiguration, Editor } from "codemirror";
4
import VueCodemirror from "./src/components/index.vue";
5
import "./src/style/index.css";
6
7
+interface CmComp {
8
+ cminstance: Editor;
9
+ resize: (
10
+ width?: string | number | null,
11
+ height?: string | number | null
12
+ ) => void;
13
+ refresh: () => void;
14
+ destroy: () => void;
15
+}
16
+export type CmComponentRef = CmComp | null;
17
declare interface InstallConfig {
18
options: EditorConfiguration;
19
componentName: string;
0 commit comments