perf: formCreate

pull/83/head
xingyu4j 2025-04-25 17:26:28 +08:00
parent b42ce319d0
commit 65dda53fa6
3 changed files with 19 additions and 26 deletions

View File

@ -29,7 +29,6 @@
"@form-create/ant-design-vue": "catalog:",
"@form-create/antd-designer": "catalog:",
"@tinymce/tinymce-vue": "catalog:",
"@types/lodash.clonedeep": "catalog:",
"@vben/access": "workspace:*",
"@vben/common-ui": "workspace:*",
"@vben/constants": "workspace:*",
@ -57,6 +56,7 @@
"vue-router": "catalog:"
},
"devDependencies": {
"@types/crypto-js": "catalog:"
"@types/crypto-js": "catalog:",
"@types/lodash.clonedeep": "catalog:"
}
}

View File

@ -156,29 +156,22 @@ onMounted(async () => {
<template>
<Page auto-content-height>
<div class="m-4">
<FcDesigner ref="designer" height="100vh" :config="designerConfig">
<template #handle>
<Button size="small" type="primary" ghost @click="showJson">
生成JSON
</Button>
<Button size="small" type="primary" ghost @click="showOption">
生成Options
</Button>
<Button size="small" type="primary" ghost @click="showTemplate">
生成组件
</Button>
</template>
</FcDesigner>
</div>
<FcDesigner ref="designer" height="90vh" :config="designerConfig">
<template #handle>
<Button size="small" type="primary" ghost @click="showJson">
生成JSON
</Button>
<Button size="small" type="primary" ghost @click="showOption">
生成Options
</Button>
<Button size="small" type="primary" ghost @click="showTemplate">
生成组件
</Button>
</template>
</FcDesigner>
<!-- 弹窗表单预览 -->
<Modal
:title="dialogTitle"
:footer="false"
:fullscreen-button="false"
max-height="600"
>
<Modal :title="dialogTitle" :footer="false" :fullscreen-button="false">
<div>
<Button style="float: right" @click="copy(formData)">
{{ $t('common.copy') }}

View File

@ -683,9 +683,6 @@ importers:
'@tinymce/tinymce-vue':
specifier: 'catalog:'
version: 6.1.0(vue@3.5.13(typescript@5.8.3))
'@types/lodash.clonedeep':
specifier: 'catalog:'
version: 4.5.9
'@vben/access':
specifier: workspace:*
version: link:../../packages/effects/access
@ -765,6 +762,9 @@ importers:
'@types/crypto-js':
specifier: 'catalog:'
version: 4.2.2
'@types/lodash.clonedeep':
specifier: 'catalog:'
version: 4.5.9
apps/web-ele:
dependencies: