diff --git a/docs/zh/ecosystem-d2-crud/example.md b/docs/zh/ecosystem-d2-crud/example.md index 6b70eb86..1edccd8f 100644 --- a/docs/zh/ecosystem-d2-crud/example.md +++ b/docs/zh/ecosystem-d2-crud/example.md @@ -30,3 +30,4 @@ | 自定义操作列 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo19) | | 表单组件渲染 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo20) | | 表单布局 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo21) | +| 表单校验 | [点我查看](https://fairyever.gitee.io/d2-admin-preview/#/demo/d2-crud/demo22) | diff --git a/src/menu/modules/demo-d2-crud.js b/src/menu/modules/demo-d2-crud.js index eddfdd5c..076c58ab 100644 --- a/src/menu/modules/demo-d2-crud.js +++ b/src/menu/modules/demo-d2-crud.js @@ -32,7 +32,8 @@ export default { { path: `${pre}demo18`, title: '删除数据' }, { path: `${pre}demo19`, title: '自定义操作列' }, { path: `${pre}demo20`, title: '表单组件渲染' }, - { path: `${pre}demo21`, title: '表单布局' } + { path: `${pre}demo21`, title: '表单布局' }, + { path: `${pre}demo22`, title: '表单校验' } ] } ])('/demo/d2-crud/') diff --git a/src/pages/demo/d2-crud/demo16/code.js b/src/pages/demo/d2-crud/demo16/code.js index 593ffeac..98efda0a 100644 --- a/src/pages/demo/d2-crud/demo16/code.js +++ b/src/pages/demo/d2-crud/demo16/code.js @@ -4,7 +4,7 @@ export default `