Commit 6c08dae92107def0eea4717368d89de21b44a2ce
1 parent
02eabe1f
fix: build error for `CodeEditor`
Showing
2 changed files
with
6 additions
and
8 deletions
src/components/CodeEditor/src/CodeEditor.vue
... | ... | @@ -8,18 +8,11 @@ |
8 | 8 | /> |
9 | 9 | </div> |
10 | 10 | </template> |
11 | - | |
12 | -<script lang="ts"> | |
13 | - export const MODE = { | |
14 | - JSON: 'application/json', | |
15 | - html: 'htmlmixed', | |
16 | - js: 'javascript', | |
17 | - }; | |
18 | -</script> | |
19 | 11 | <script lang="ts" setup> |
20 | 12 | import { computed } from 'vue'; |
21 | 13 | import CodeMirrorEditor from './codemirror/CodeMirror.vue'; |
22 | 14 | import { isString } from '/@/utils/is'; |
15 | + import type { MODE } from './typing'; | |
23 | 16 | |
24 | 17 | const props = defineProps({ |
25 | 18 | value: { type: [Object, String] as PropType<Record<string, any> | string> }, | ... | ... |