From 553f924889496844d86991f7b87ca6131cb70557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=A5=E5=B8=8C?= Date: Tue, 4 Aug 2020 02:17:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20use=20JsonSetter=20as=20d?= =?UTF-8?q?ataSource=20Setter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/public/assets.json | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/packages/demo/public/assets.json b/packages/demo/public/assets.json index ab5625c3f..de23a2dc8 100644 --- a/packages/demo/public/assets.json +++ b/packages/demo/public/assets.json @@ -2474,7 +2474,8 @@ "propType": { "type": "arrayOf", "value": "object" - } + }, + "setter": "JsonSetter" } ] }, @@ -2738,6 +2739,14 @@ { "name": "style", "propType": "object" + }, + { + "name": "dataSource", + "propType": { + "type": "arrayOf", + "value": "object" + }, + "setter": "JsonSetter" } ] }, @@ -13748,7 +13757,16 @@ "hasBorder": true, "expandTriggerType": "click", "resultAutoWidth": true, - "notFoundContent": "Not Found" + "notFoundContent": "Not Found", + "dataSource": [{ + "value": "2974", + "label": "西安", + "children": [ + { "value": "2975", "label": "西安市" }, + { "value": "2976", "label": "高陵县" }, + { "value": "2977", "label": "蓝田县" } + ] + }] } } }