Skip to content

Commit 5d61e2c

Browse files
committed
新增卡片
1 parent 66d8774 commit 5d61e2c

File tree

6 files changed

+534
-1
lines changed

6 files changed

+534
-1
lines changed

designer-demo/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<link rel="stylesheet" href="/public/fonts/noto-sans-sc/chinese-simplified-700.css">
88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
99
<title>Vite + Vue</title>
10+
1011
</head>
1112
<body>
1213
<div id="app"></div>

designer-demo/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
html {
19-
font-size: 16px;
19+
font-size: 14px;
2020
scroll-behavior: smooth;
2121
}
2222

designer-demo/public/mock/bundle.json

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6470,6 +6470,246 @@
64706470
}
64716471
}
64726472
},
6473+
{
6474+
"icon": "single-page",
6475+
"name": {
6476+
"zh_CN": "卡片"
6477+
},
6478+
"component": "TinyCard",
6479+
"description": "卡片",
6480+
"docUrl": "",
6481+
"screenshot": "",
6482+
"tags": "",
6483+
"keywords": "",
6484+
"devMode": "proCode",
6485+
"npm": {
6486+
"package": "@opentiny/vue",
6487+
"exportName": "Card",
6488+
"version": "",
6489+
"destructuring": true
6490+
},
6491+
"group": "component",
6492+
"priority": 12,
6493+
"schema": {
6494+
"properties": [
6495+
{
6496+
"label": {
6497+
"zh_CN": "基础信息"
6498+
},
6499+
"description": {
6500+
"zh_CN": "基础信息"
6501+
},
6502+
"content": [
6503+
{
6504+
"property": "auto-width",
6505+
"label": {
6506+
"text": {
6507+
"zh_CN": "卡片的宽度是否自动撑开"
6508+
}
6509+
},
6510+
"required": false,
6511+
"readOnly": false,
6512+
"disabled": false,
6513+
"cols": 12,
6514+
"widget": {
6515+
"component": "MetaSwitch",
6516+
"props": {}
6517+
},
6518+
"description": {
6519+
"zh_CN": "卡片的宽度是否自动撑开"
6520+
},
6521+
"labelPosition": "left"
6522+
},
6523+
{
6524+
"property": "custom-class",
6525+
"label": {
6526+
"text": {
6527+
"zh_CN": "卡片的class"
6528+
}
6529+
},
6530+
"required": false,
6531+
"readOnly": false,
6532+
"disabled": false,
6533+
"widget": {
6534+
"component": "MetaInput",
6535+
"props": {}
6536+
},
6537+
"description": {
6538+
"zh_CN": "卡片的class"
6539+
},
6540+
"labelPosition": "left"
6541+
},
6542+
{
6543+
"property": "height",
6544+
"label": {
6545+
"text": {
6546+
"zh_CN": "卡片内容区域的高度"
6547+
}
6548+
},
6549+
"required": false,
6550+
"readOnly": false,
6551+
"disabled": false,
6552+
"widget": {
6553+
"component": "MetaInput",
6554+
"props": {}
6555+
},
6556+
"description": {
6557+
"zh_CN": "卡片内容区域的高度"
6558+
},
6559+
"labelPosition": "left"
6560+
},
6561+
{
6562+
"property": "src",
6563+
"label": {
6564+
"text": {
6565+
"zh_CN": "图片或者视频的地址"
6566+
}
6567+
},
6568+
"required": true,
6569+
"readOnly": false,
6570+
"disabled": false,
6571+
"widget": {
6572+
"component": "MetaInput",
6573+
"props": {}
6574+
},
6575+
"description": {
6576+
"zh_CN": "图片或者视频的地址"
6577+
},
6578+
"labelPosition": "left"
6579+
},
6580+
{
6581+
"property": "type",
6582+
"label": {
6583+
"text": {
6584+
"zh_CN": "设置卡片类型"
6585+
}
6586+
},
6587+
"required": true,
6588+
"readOnly": false,
6589+
"disabled": false,
6590+
"cols": 12,
6591+
"widget": {
6592+
"component": "MetaSelect",
6593+
"props": {
6594+
"options": [
6595+
{
6596+
"label": "text",
6597+
"value": "text"
6598+
},
6599+
{
6600+
"label": "image",
6601+
"value": "image"
6602+
},
6603+
{
6604+
"label": "video",
6605+
"value": "video"
6606+
},
6607+
{
6608+
"label": "logo",
6609+
"value": "logo"
6610+
}
6611+
]
6612+
}
6613+
}
6614+
},
6615+
{
6616+
"property": "title",
6617+
"label": {
6618+
"text": {
6619+
"zh_CN": "卡片的标题"
6620+
}
6621+
},
6622+
"required": true,
6623+
"readOnly": false,
6624+
"disabled": false,
6625+
"widget": {
6626+
"component": "MetaInput",
6627+
"props": {}
6628+
},
6629+
"description": {
6630+
"zh_CN": "卡片的标题"
6631+
},
6632+
"labelPosition": "left"
6633+
}
6634+
]
6635+
}
6636+
],
6637+
"slots": {
6638+
"default": {
6639+
"label": {
6640+
"zh_CN": "default"
6641+
},
6642+
"description": {
6643+
"zh_CN": "组件默认插槽"
6644+
}
6645+
},
6646+
"footer": {
6647+
"label": {
6648+
"zh_CN": "footer"
6649+
},
6650+
"description": {
6651+
"zh_CN": "组件底部插槽"
6652+
}
6653+
},
6654+
"title": {
6655+
"label": {
6656+
"zh_CN": "title"
6657+
},
6658+
"description": {
6659+
"zh_CN": "标题插槽"
6660+
}
6661+
},
6662+
"title-left": {
6663+
"label": {
6664+
"zh_CN": "title-left"
6665+
},
6666+
"description": {
6667+
"zh_CN": "标题左侧插槽"
6668+
}
6669+
},
6670+
"title-right": {
6671+
"label": {
6672+
"zh_CN": "title-right"
6673+
},
6674+
"description": {
6675+
"zh_CN": "标题右侧插槽"
6676+
}
6677+
}
6678+
},
6679+
"events": {}
6680+
},
6681+
"configure": {
6682+
"loop": true,
6683+
"condition": true,
6684+
"styles": true,
6685+
"isContainer": false,
6686+
"isModal": false,
6687+
"nestingRule": {
6688+
"childWhitelist": "",
6689+
"parentWhitelist": "",
6690+
"descendantBlacklist": "",
6691+
"ancestorWhitelist": ""
6692+
},
6693+
"isNullNode": false,
6694+
"isLayout": false,
6695+
"rootSelector": "",
6696+
"shortcuts": {
6697+
"properties": [
6698+
"data",
6699+
"show-checkbox"
6700+
]
6701+
},
6702+
"contextMenu": {
6703+
"actions": [
6704+
"create symbol"
6705+
],
6706+
"disable": [
6707+
"copy",
6708+
"remove"
6709+
]
6710+
}
6711+
}
6712+
},
64736713
{
64746714
"name": {
64756715
"zh_CN": "走马灯"
@@ -22585,6 +22825,20 @@
2258522825
}
2258622826
}
2258722827
},
22828+
{
22829+
"name": {
22830+
"zh_CN": "卡片"
22831+
},
22832+
"icon": "single-page",
22833+
"screenshot": "",
22834+
"snippetName": "TinyCard",
22835+
"schema": {
22836+
"componentName": "TinyCard",
22837+
"props": {
22838+
"description": "卡片"
22839+
}
22840+
}
22841+
},
2258822842
{
2258922843
"name": {
2259022844
"zh_CN": "走马灯"

0 commit comments

Comments
 (0)