From bf5844c72a79d248147453c7a76602daad282ed8 Mon Sep 17 00:00:00 2001 From: parisma Date: Wed, 1 Mar 2023 17:12:47 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=A2=9E=E5=8A=A0=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=AF=B9=E6=AF=94=E6=96=87=E6=A1=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.ts | 9 +++++++++ docs/form-config/compare.md | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 docs/form-config/compare.md diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index cecf37d2..dc2f7bbc 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -366,6 +366,15 @@ export default defineConfig({ link: '/form-config/relate.md', } ] + }, + { + text: '表单对比', + items: [ + { + text: '表单对比', + link: '/form-config/compare.md', + } + ] } ] }, diff --git a/docs/form-config/compare.md b/docs/form-config/compare.md new file mode 100644 index 00000000..12fad615 --- /dev/null +++ b/docs/form-config/compare.md @@ -0,0 +1,7 @@ +# 表单对比 +tmagic-form可以支持两个版本的表单值对比,如果有容器嵌套,将在tab标签页展示对应tab下存在的差异数,便于在复杂嵌套表单场景下直观的看到差异情况 +## 使用方法 +在初始化表单时,需要传入当前版本的表单值,上一版本的表单值,以及表单配置,具体可参见[Form Playground](https://tencent.github.io/tmagic-editor/playground/index.html#/form)的demo演示 +## 效果展示 +表单对比 +