fix: 🐛 use JsonSetter as dataSource Setter

This commit is contained in:
春希 2020-08-04 02:17:04 +08:00
parent e4a28c4df7
commit 553f924889

View File

@ -2474,7 +2474,8 @@
"propType": { "propType": {
"type": "arrayOf", "type": "arrayOf",
"value": "object" "value": "object"
} },
"setter": "JsonSetter"
} }
] ]
}, },
@ -2738,6 +2739,14 @@
{ {
"name": "style", "name": "style",
"propType": "object" "propType": "object"
},
{
"name": "dataSource",
"propType": {
"type": "arrayOf",
"value": "object"
},
"setter": "JsonSetter"
} }
] ]
}, },
@ -13748,7 +13757,16 @@
"hasBorder": true, "hasBorder": true,
"expandTriggerType": "click", "expandTriggerType": "click",
"resultAutoWidth": true, "resultAutoWidth": true,
"notFoundContent": "Not Found" "notFoundContent": "Not Found",
"dataSource": [{
"value": "2974",
"label": "西安",
"children": [
{ "value": "2975", "label": "西安市" },
{ "value": "2976", "label": "高陵县" },
{ "value": "2977", "label": "蓝田县" }
]
}]
} }
} }
} }