fix: 🐛 Card component's settings

This commit is contained in:
牧毅 2020-08-07 21:05:52 +08:00
parent eb525ad15a
commit f44e7abf34

View File

@ -1947,30 +1947,13 @@
"subName": "" "subName": ""
}, },
"props": [ "props": [
{
"name": "prefix",
"propType": "string",
"defaultValue": "next-"
},
{
"name": "rtl",
"propType": "bool"
},
{
"name": "media",
"propType": {
"type": "instanceOf",
"value": "node"
},
"description": "卡片的上的图片 / 视频"
},
{ {
"name": "title", "name": "title",
"propType": { "propType": {
"type": "instanceOf", "type": "instanceOf",
"value": "node" "value": "node"
}, },
"description": "卡片的标题" "description": "标题"
}, },
{ {
"name": "subTitle", "name": "subTitle",
@ -1978,7 +1961,35 @@
"type": "instanceOf", "type": "instanceOf",
"value": "node" "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", "name": "actions",
@ -1986,19 +1997,7 @@
"type": "instanceOf", "type": "instanceOf",
"value": "node" "value": "node"
}, },
"description": "卡片操作组,位置在卡片底部" "description": "底部操作组"
},
{
"name": "showTitleBullet",
"propType": "bool",
"description": "是否显示标题的项目符号",
"defaultValue": true
},
{
"name": "showHeadDivider",
"propType": "bool",
"description": "是否展示头部的分隔线",
"defaultValue": true
}, },
{ {
"name": "contentHeight", "name": "contentHeight",
@ -2012,36 +2011,25 @@
"description": "内容区域的固定高度", "description": "内容区域的固定高度",
"defaultValue": 120 "defaultValue": 120
}, },
{
"name": "extra",
"propType": {
"type": "instanceOf",
"value": "node"
},
"description": "标题区域的用户自定义内容"
},
{
"name": "free",
"propType": "bool",
"description": "是否开启自由模式开启后card 将使用子组件配合使用, 设置此项后 title, subtitle, 等等属性都将失效",
"defaultValue": false
},
{ {
"name": "className", "name": "className",
"propType": "string" "propType": "string"
}, },
{
"name": "children",
"propType": {
"type": "instanceOf",
"value": "node"
}
},
{ {
"name": "style", "name": "style",
"propType": "object" "propType": "object"
},
{
"name": "rtl",
"propType": "bool",
"description": "文本方向是从右向左"
}
],
"configure": {
"component": {
"isContainer": true
}
} }
]
}, },
{ {
"componentName": "CardHeader", "componentName": "CardHeader",
@ -12986,50 +12974,35 @@
{ {
"componentName": "Card", "componentName": "Card",
"title": "卡片", "title": "卡片",
"icon": "", "icon": "https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_card.png",
"package": "@alife/next", "package": "@alife/next",
"library": "Next", "library": "Next",
"snippets": [ "snippets": [
{ {
"screenshot": "https://img.alicdn.com/tfs/TB1CHN3u4z1gK0jSZSgXXavwpXa-112-64.png", "screenshot": "https://img.alicdn.com/tfs/TB1CHN3u4z1gK0jSZSgXXavwpXa-112-64.png",
"label": "普通型", "title": "普通型",
"schema": { "schema": {
"componentName": "Card", "componentName": "Card",
"props": {}, "props": {
"children": [ "title": "普通型卡片"
{ },
"componentName": "CardContent" "children": []
}
]
} }
}, },
{ {
"screenshot": "https://img.alicdn.com/tfs/TB1.Ut6u4D1gK0jSZFKXXcJrVXa-112-64.png", "screenshot": "https://img.alicdn.com/tfs/TB1.Ut6u4D1gK0jSZFKXXcJrVXa-112-64.png",
"label": "自定义", "title": "自定义",
"schema": { "schema": {
"componentName": "Card", "componentName": "Card",
"props": { "props": {
"__slot__extra": true, "title": "自定义卡片",
"extra": { "extra": {
"type": "JSBlock", "type": "JSSlot"
"value": { }
"componentName": "Slot",
"props": {
"slotName": "extra",
"slotTitle": "自定义内容"
}, },
"condition": true,
"children": [] "children": []
} }
} }
},
"children": [
{
"componentName": "CardContent"
}
]
}
}
] ]
}, },
{ {