docs(TreeSelect): add custom content demo (#4272)

This commit is contained in:
neverland
2019-08-28 15:09:18 +08:00
committed by GitHub
parent ac193fef3c
commit 9c68de0d88
6 changed files with 252 additions and 146 deletions
+65
View File
@@ -0,0 +1,65 @@
const zhejiang = [
{
text: '杭州',
id: 1
},
{
text: '温州',
id: 2
},
{
text: '宁波',
id: 3,
disabled: true
},
{
text: '义乌',
id: 4
}
];
const jiangsu = [
{
text: '南京',
id: 5
},
{
text: '无锡',
id: 6
},
{
text: '徐州',
id: 7
},
{
text: '苏州',
id: 8
}
];
const fujian = [
{
text: '泉州',
id: 9
},
{
text: '厦门',
id: 10
}
];
export const zhCNData = [
{
text: '浙江',
children: zhejiang
},
{
text: '江苏',
children: jiangsu
},
{
text: '福建',
disabled: true,
children: fujian
}
];