fix: build error for CodeEditor

This commit is contained in:
无木 2021-09-18 12:29:54 +08:00
parent 02eabe1f9f
commit 6c08dae921
2 changed files with 6 additions and 8 deletions

View File

@ -8,18 +8,11 @@
/>
</div>
</template>
<script lang="ts">
export const MODE = {
JSON: 'application/json',
html: 'htmlmixed',
js: 'javascript',
};
</script>
<script lang="ts" setup>
import { computed } from 'vue';
import CodeMirrorEditor from './codemirror/CodeMirror.vue';
import { isString } from '/@/utils/is';
import type { MODE } from './typing';
const props = defineProps({
value: { type: [Object, String] as PropType<Record<string, any> | string> },

View File

@ -0,0 +1,5 @@
export const MODE = {
JSON: 'application/json',
html: 'htmlmixed',
js: 'javascript',
};