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
+66
View File
@@ -0,0 +1,66 @@
const group1 = [
{
text: 'Delaware',
id: 1
},
{
text: 'Florida',
id: 2
},
{
text: 'Georqia',
id: 3,
disabled: true
},
{
text: 'Indiana',
id: 4
}
];
const group2 = [
{
text: 'Alabama',
id: 5
},
{
text: 'Kansas',
id: 6
},
{
text: 'Louisiana',
id: 7
},
{
text: 'Texas',
id: 8
}
];
const group3 = [
{
text: 'Alabama',
id: 9
},
{
text: 'Kansas',
id: 10
}
];
export const enUSData = [
{
text: 'Group 1',
children: group1
},
{
text: 'Group 2',
children: group2
},
{
text: 'Group 3',
disabled: true,
children: group3
}
];