From 9ebb67c067b5781488a0be6304cbeea28375296d Mon Sep 17 00:00:00 2001 From: "jenson.liuzx" Date: Tue, 16 Jul 2019 14:46:52 +0800 Subject: [PATCH] feat: add category demo Closes #29 --- .../demo-components/components/datas/data5.js | 57 +++++++++++++++++++ src/components/demo-components/form.vue | 13 ++++- src/js/model/Form.js | 3 +- 3 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 src/components/demo-components/components/datas/data5.js diff --git a/src/components/demo-components/components/datas/data5.js b/src/components/demo-components/components/datas/data5.js new file mode 100644 index 00000000..38baac3f --- /dev/null +++ b/src/components/demo-components/components/datas/data5.js @@ -0,0 +1,57 @@ +export default [ + { + id: 101911, + name: '游族网络股份有限公司' + }, + { + id: 101894, + name: '网易(杭州)网络有限公司' + }, + { + id: 101731, + name: '杭州实业' + }, + { + id: 101708, + name: 'STEELE猫咪有限公司' + }, + { + id: 70642, + name: '大众点评', + externalName: '' + }, + { + id: 20262, + name: '产品测试验收公司(切勿修改)' + }, + { + id: 50, + name: '上海希格斯网络科技有限公司上海希格斯网络科技有限公司' + }, + { + id: 9, + name: '阿里巴巴14', + children: [ + { + id: 29, + name: '阿里巴巴29' + }, + { + id: 39, + name: '阿里巴巴39' + }, + { + id: 49, + name: '阿里巴巴49' + }, + { + id: 59, + name: '阿里巴巴59' + } + ] + }, + { + id: 7, + name: '阿里巴巴12' + } +]; diff --git a/src/components/demo-components/form.vue b/src/components/demo-components/form.vue index 60faafc8..c32c00bf 100644 --- a/src/components/demo-components/form.vue +++ b/src/components/demo-components/form.vue @@ -92,6 +92,9 @@ + + + @@ -120,7 +123,7 @@