From b6b9c8f56a271a4295a646eb778a568c3adcbf1c Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 16 May 2023 16:54:31 +0800 Subject: [PATCH] feat: codegen use code editor pre --- src/views/infra/codegen/components/PreviewModal.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/infra/codegen/components/PreviewModal.vue b/src/views/infra/codegen/components/PreviewModal.vue index b0810d5d..70b54efa 100644 --- a/src/views/infra/codegen/components/PreviewModal.vue +++ b/src/views/infra/codegen/components/PreviewModal.vue @@ -5,6 +5,7 @@ 复制 -
{{ item.code }}
+
@@ -28,6 +29,7 @@ import { ref, unref } from 'vue' import { Card, Tabs } from 'ant-design-vue' import { BasicTree } from '@/components/Tree' import { BasicModal, useModalInner } from '@/components/Modal' +import { CodeEditor, MODE } from '@/components/CodeEditor' import { previewCodegen } from '@/api/infra/codegen' import { CodegenPreviewVO } from '@/api/infra/codegen/types' import { handleTree2 } from '@/utils/tree' @@ -42,6 +44,7 @@ const { createMessage } = useMessage() const fileTree = ref([]) const activeKey = ref('') +const modeValue = ref(MODE.JS) const previewCodes = ref() const [registerModal, { setModalProps }] = useModalInner(async (data) => {