From 47de150bbe57b7b2c507761b22021e784dd8c4e7 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 | 1 + 3 files changed, 70 insertions(+), 1 deletion(-) 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 659e98a8..0208bfc5 100644 --- a/src/components/demo-components/form.vue +++ b/src/components/demo-components/form.vue @@ -92,6 +92,9 @@ + + + @@ -121,7 +124,7 @@