fix: build error for `CodeEditor`
This commit is contained in:
parent
02eabe1f9f
commit
6c08dae921
|
|
@ -8,18 +8,11 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
export const MODE = {
|
|
||||||
JSON: 'application/json',
|
|
||||||
html: 'htmlmixed',
|
|
||||||
js: 'javascript',
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import CodeMirrorEditor from './codemirror/CodeMirror.vue';
|
import CodeMirrorEditor from './codemirror/CodeMirror.vue';
|
||||||
import { isString } from '/@/utils/is';
|
import { isString } from '/@/utils/is';
|
||||||
|
import type { MODE } from './typing';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
value: { type: [Object, String] as PropType<Record<string, any> | string> },
|
value: { type: [Object, String] as PropType<Record<string, any> | string> },
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
export const MODE = {
|
||||||
|
JSON: 'application/json',
|
||||||
|
html: 'htmlmixed',
|
||||||
|
js: 'javascript',
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue