From c682cc50d5b513878df78a6c7a2549dfb7175f25 Mon Sep 17 00:00:00 2001 From: "peipei.xpp" Date: Wed, 19 Aug 2020 14:51:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Collapse=20component=20u?= =?UTF-8?q?pdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/public/assets.json | 103 ++++++++++++------------------- 1 file changed, 41 insertions(+), 62 deletions(-) diff --git a/packages/demo/public/assets.json b/packages/demo/public/assets.json index f60a34342..e9b44add2 100644 --- a/packages/demo/public/assets.json +++ b/packages/demo/public/assets.json @@ -3831,38 +3831,24 @@ "subName": "" }, "props": [ - { - "name": "prefix", - "propType": "string", - "description": "样式前缀", - "defaultValue": "next-" - }, - { - "name": "style", - "propType": "object", - "description": "组件接受行内样式" - }, { "name": "dataSource", - "propType": { - "type": "instanceOf", - "value": "array" - }, + "propType": "Json", "description": "使用数据模型构建" }, { "name": "defaultExpandedKeys", "propType": { - "type": "instanceOf", - "value": "array" + "type": "arrayOf", + "value": "string" }, "description": "默认展开keys" }, { "name": "expandedKeys", "propType": { - "type": "instanceOf", - "value": "array" + "type": "arrayOf", + "value": "string" }, "description": "受控展开keys" }, @@ -3881,32 +3867,31 @@ "propType": "string", "description": "扩展class" }, + { + "name": "style", + "propType": "object", + "description": "组件接受行内样式" + }, { "name": "accordion", "propType": "bool", "description": "手风琴模式,一次只能打开一个", "defaultValue": false }, - { - "name": "children", - "propType": { - "type": "instanceOf", - "value": "node" - } - }, - { - "name": "id", - "propType": "string" - }, { "name": "rtl", "propType": "bool" } - ] + ], + "configure": { + "component": { + "isContainer": true + } + } }, { - "componentName": "Panel", - "title": "Panel", + "componentName": "Collapse.Panel", + "title": "Collapse.Panel", "docUrl": "", "screenshot": "", "npm": { @@ -3919,25 +3904,14 @@ }, "props": [ { - "name": "prefix", - "propType": "string", - "description": "样式类名的品牌前缀", - "defaultValue": "next-" + "name": "children", + "propType": "any" }, { "name": "style", "propType": "object", "description": "子组件接受行内样式" }, - { - "name": "children", - "propType": "any" - }, - { - "name": "isExpanded", - "propType": "bool", - "defaultValue": false - }, { "name": "disabled", "propType": "bool", @@ -3950,19 +3924,6 @@ "value": "node" }, "description": "标题" - }, - { - "name": "className", - "propType": "string", - "description": "扩展class" - }, - { - "name": "onClick", - "propType": "func" - }, - { - "name": "id", - "propType": "string" } ] }, @@ -14073,10 +14034,8 @@ "prefix": "next-" }, "children": [{ - "componentName": "Panel", + "componentName": "Collapse.Panel", "props": { - "prefix": "next-", - "isExpanded": true, "title": "面板标题" } }] @@ -14084,6 +14043,26 @@ } ] }, + { + "componentName": "Collapse.Panel", + "title": "折叠面板Panel", + "icon": "", + "package": "@alifd/next", + "library": "Next", + "snippets": [ + { + "title": "折叠面板Panel", + "screenshot": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_collapse.png", + "schema": { + "componentName": "Collapse.Panel", + "props": { + "prefix": "next-", + "title": "面板标题" + } + } + } + ] + }, { "componentName": "List", "title": "列表",