From f44e7abf34193f5b45ec3e35aa72779fb1dc20d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=A7=E6=AF=85?= Date: Fri, 7 Aug 2020 21:05:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Card=20component's=20sett?= =?UTF-8?q?ings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/public/assets.json | 131 ++++++++++++------------------- 1 file changed, 52 insertions(+), 79 deletions(-) diff --git a/packages/demo/public/assets.json b/packages/demo/public/assets.json index a48384a25..2caf8ae3f 100644 --- a/packages/demo/public/assets.json +++ b/packages/demo/public/assets.json @@ -1947,30 +1947,13 @@ "subName": "" }, "props": [ - { - "name": "prefix", - "propType": "string", - "defaultValue": "next-" - }, - { - "name": "rtl", - "propType": "bool" - }, - { - "name": "media", - "propType": { - "type": "instanceOf", - "value": "node" - }, - "description": "卡片的上的图片 / 视频" - }, { "name": "title", "propType": { "type": "instanceOf", "value": "node" }, - "description": "卡片的标题" + "description": "标题" }, { "name": "subTitle", @@ -1978,7 +1961,35 @@ "type": "instanceOf", "value": "node" }, - "description": "卡片的副标题" + "description": "副标题" + }, + { + "name": "extra", + "propType": { + "type": "instanceOf", + "value": "node" + }, + "description": "标题栏用户自定义内容" + }, + { + "name": "showTitleBullet", + "propType": "bool", + "description": "标题的项目符号", + "defaultValue": true + }, + { + "name": "showHeadDivider", + "propType": "bool", + "description": "头部分隔线", + "defaultValue": true + }, + { + "name": "media", + "propType": { + "type": "instanceOf", + "value": "node" + }, + "description": "顶部的图片/视频" }, { "name": "actions", @@ -1986,19 +1997,7 @@ "type": "instanceOf", "value": "node" }, - "description": "卡片操作组,位置在卡片底部" - }, - { - "name": "showTitleBullet", - "propType": "bool", - "description": "是否显示标题的项目符号", - "defaultValue": true - }, - { - "name": "showHeadDivider", - "propType": "bool", - "description": "是否展示头部的分隔线", - "defaultValue": true + "description": "底部操作组" }, { "name": "contentHeight", @@ -2012,36 +2011,25 @@ "description": "内容区域的固定高度", "defaultValue": 120 }, - { - "name": "extra", - "propType": { - "type": "instanceOf", - "value": "node" - }, - "description": "标题区域的用户自定义内容" - }, - { - "name": "free", - "propType": "bool", - "description": "是否开启自由模式,开启后card 将使用子组件配合使用, 设置此项后 title, subtitle, 等等属性都将失效", - "defaultValue": false - }, { "name": "className", "propType": "string" }, - { - "name": "children", - "propType": { - "type": "instanceOf", - "value": "node" - } - }, { "name": "style", "propType": "object" + }, + { + "name": "rtl", + "propType": "bool", + "description": "文本方向是从右向左" } - ] + ], + "configure": { + "component": { + "isContainer": true + } + } }, { "componentName": "CardHeader", @@ -12986,48 +12974,33 @@ { "componentName": "Card", "title": "卡片", - "icon": "", + "icon": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_card.png", "package": "@alife/next", "library": "Next", "snippets": [ { "screenshot": "https://img.alicdn.com/tfs/TB1CHN3u4z1gK0jSZSgXXavwpXa-112-64.png", - "label": "普通型", + "title": "普通型", "schema": { "componentName": "Card", - "props": {}, - "children": [ - { - "componentName": "CardContent" - } - ] + "props": { + "title": "普通型卡片" + }, + "children": [] } }, { "screenshot": "https://img.alicdn.com/tfs/TB1.Ut6u4D1gK0jSZFKXXcJrVXa-112-64.png", - "label": "自定义", + "title": "自定义", "schema": { "componentName": "Card", "props": { - "__slot__extra": true, + "title": "自定义卡片", "extra": { - "type": "JSBlock", - "value": { - "componentName": "Slot", - "props": { - "slotName": "extra", - "slotTitle": "自定义内容" - }, - "condition": true, - "children": [] - } + "type": "JSSlot" } }, - "children": [ - { - "componentName": "CardContent" - } - ] + "children": [] } } ]