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演示 +## 效果展示 +表单对比 +