docs: 增加表单对比文档说明

This commit is contained in:
parisma 2023-03-01 17:12:47 +08:00 committed by roymondchen
parent dd884b96ba
commit bf5844c72a
2 changed files with 16 additions and 0 deletions

View File

@ -366,6 +366,15 @@ export default defineConfig({
link: '/form-config/relate.md', link: '/form-config/relate.md',
} }
] ]
},
{
text: '表单对比',
items: [
{
text: '表单对比',
link: '/form-config/compare.md',
}
]
} }
] ]
}, },

View File

@ -0,0 +1,7 @@
# 表单对比
tmagic-form可以支持两个版本的表单值对比如果有容器嵌套将在tab标签页展示对应tab下存在的差异数便于在复杂嵌套表单场景下直观的看到差异情况
## 使用方法
在初始化表单时,需要传入当前版本的表单值,上一版本的表单值,以及表单配置,具体可参见[Form Playground](https://tencent.github.io/tmagic-editor/playground/index.html#/form)的demo演示
## 效果展示
<img src="https://vip.image.video.qpic.cn/vupload/20230301/c626071677661813135.png" alt="表单对比"/>