From 5495b76602aae73551009e1cdbd8b00256d8e813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=98=8A=E7=BF=94?= <673686754@qq.com> Date: Tue, 28 Aug 2018 16:20:16 +0800 Subject: [PATCH] =?UTF-8?q?d2-crud=20=E8=A1=A8=E5=8D=95=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: fdb0d1333ab90454a80078a692de62d68b528de5 [formerly fdb0d1333ab90454a80078a692de62d68b528de5 [formerly fdb0d1333ab90454a80078a692de62d68b528de5 [formerly fdb0d1333ab90454a80078a692de62d68b528de5 [formerly ad69fa918cb6a7c8be79693dd9d459ff24bd8850 [formerly d44f36c938ac0604b92959028777e5d8edd8b259]]]]] Former-commit-id: af610347b31ca2bf8277d8fefeb4831899ff8ed3 Former-commit-id: 1e5e4c58322d87756e2fc181607ee89e8a00c323 Former-commit-id: 6fb929e6919d633754f6ed05c1c0dc5fc52b1053 [formerly e009db20b84c2ceb15aad1f1a49e1e034aebcd3f] Former-commit-id: 9d4cd83c14915b798c77101bfc0e1a75677e054c Former-commit-id: ae9f646e106466297f17ce2acef5c3b6d40b2a16 Former-commit-id: 483af02ce21d32235ee89fa772aaf8559a13affd Former-commit-id: 93fff30eff6af98e6cc3f6d2194d187119ba1ef7 Former-commit-id: a557fac7e8617f522e810894526221fce2931c0a --- docs/zh/ecosystem-d2-crud/example.md | 1 + src/menu/modules/demo-d2-crud.js | 3 +- src/pages/demo/d2-crud/demo16/code.js | 2 +- src/pages/demo/d2-crud/demo16/doc.md | 2 +- src/pages/demo/d2-crud/demo16/index.vue | 2 +- src/pages/demo/d2-crud/demo22/code.js | 110 +++++++++++++++++++++ src/pages/demo/d2-crud/demo22/doc.md | 1 + src/pages/demo/d2-crud/demo22/index.vue | 126 ++++++++++++++++++++++++ src/router/routes.js.REMOVED.git-id | 2 +- 9 files changed, 244 insertions(+), 5 deletions(-) create mode 100644 src/pages/demo/d2-crud/demo22/code.js create mode 100644 src/pages/demo/d2-crud/demo22/doc.md create mode 100644 src/pages/demo/d2-crud/demo22/index.vue 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 `