perf: formCreate

This commit is contained in:
xingyu4j
2025-04-25 17:26:28 +08:00
parent b42ce319d0
commit 65dda53fa6
3 changed files with 19 additions and 26 deletions

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') }}