Skip to content

Commit aed5aae

Browse files
committed
添加进度条
1 parent 5a911f3 commit aed5aae

File tree

4 files changed

+596
-0
lines changed

4 files changed

+596
-0
lines changed

designer-demo/public/mock/bundle.json

Lines changed: 287 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15048,6 +15048,281 @@
1504815048
}
1504915049
}
1505015050
},
15051+
{
15052+
"icon": "tile-x",
15053+
"name": {
15054+
"zh_CN": "进度条"
15055+
},
15056+
"component": "TinyProgress",
15057+
"description": "进度条",
15058+
"docUrl": "",
15059+
"screenshot": "",
15060+
"tags": "",
15061+
"keywords": "",
15062+
"devMode": "proCode",
15063+
"npm": {
15064+
"package": "@opentiny/vue",
15065+
"exportName": "Progress",
15066+
"version": "",
15067+
"destructuring": true
15068+
},
15069+
"group": "component",
15070+
"priority": 12,
15071+
"schema": {
15072+
"properties": [
15073+
{
15074+
"label": {
15075+
"zh_CN": "基础信息"
15076+
},
15077+
"description": {
15078+
"zh_CN": "基础信息"
15079+
},
15080+
"content": [
15081+
{
15082+
"property": "color",
15083+
"label": {
15084+
"text": {
15085+
"zh_CN": "进度条背景色(会覆盖 status 状态颜色)"
15086+
}
15087+
},
15088+
"required": false,
15089+
"readOnly": false,
15090+
"disabled": false,
15091+
"widget": {
15092+
"component": "MetaInput",
15093+
"props": {}
15094+
},
15095+
"description": {
15096+
"zh_CN": "进度条背景色(会覆盖 status 状态颜色)"
15097+
},
15098+
"labelPosition": "left"
15099+
},
15100+
{
15101+
"property": "format",
15102+
"label": {
15103+
"text": {
15104+
"zh_CN": "自定义进度条的文字"
15105+
}
15106+
},
15107+
"required": false,
15108+
"readOnly": false,
15109+
"disabled": false,
15110+
"widget": {
15111+
"component": "MetaInput",
15112+
"props": {}
15113+
},
15114+
"description": {
15115+
"zh_CN": "自定义进度条的文字"
15116+
},
15117+
"labelPosition": "left"
15118+
},
15119+
{
15120+
"property": "percentage",
15121+
"label": {
15122+
"text": {
15123+
"zh_CN": "百分比(必填)"
15124+
}
15125+
},
15126+
"required": true,
15127+
"readOnly": false,
15128+
"disabled": false,
15129+
"widget": {
15130+
"component": "MetaNumber",
15131+
"props": {}
15132+
},
15133+
"description": {
15134+
"zh_CN": "百分比(必填);该属性的可选值为 0-100"
15135+
},
15136+
"labelPosition": "left"
15137+
},
15138+
{
15139+
"property": "show-text",
15140+
"label": {
15141+
"text": {
15142+
"zh_CN": "是否显示进度条文字内容"
15143+
}
15144+
},
15145+
"required": false,
15146+
"readOnly": false,
15147+
"disabled": false,
15148+
"cols": 12,
15149+
"widget": {
15150+
"component": "MetaSwitch",
15151+
"props": {}
15152+
},
15153+
"description": {
15154+
"zh_CN": "是否显示进度条文字内容"
15155+
},
15156+
"labelPosition": "left"
15157+
},
15158+
{
15159+
"property": "status",
15160+
"label": {
15161+
"text": {
15162+
"zh_CN": "进度条当前状态"
15163+
}
15164+
},
15165+
"required": true,
15166+
"readOnly": false,
15167+
"disabled": false,
15168+
"cols": 12,
15169+
"widget": {
15170+
"component": "MetaSelect",
15171+
"props": {
15172+
"options": [
15173+
{
15174+
"label": "success",
15175+
"value": "success"
15176+
},
15177+
{
15178+
"label": "exception",
15179+
"value": "exception"
15180+
},
15181+
{
15182+
"label": "warning",
15183+
"value": "warning"
15184+
}
15185+
]
15186+
}
15187+
}
15188+
},
15189+
{
15190+
"property": "stroke-width",
15191+
"label": {
15192+
"text": {
15193+
"zh_CN": "line类型进度条的宽度"
15194+
}
15195+
},
15196+
"required": true,
15197+
"readOnly": false,
15198+
"disabled": false,
15199+
"widget": {
15200+
"component": "MetaNumber",
15201+
"props": {}
15202+
},
15203+
"description": {
15204+
"zh_CN": "line 类型进度条的宽度,单位 px0"
15205+
},
15206+
"labelPosition": "left"
15207+
},
15208+
{
15209+
"property": "text-inside",
15210+
"label": {
15211+
"text": {
15212+
"zh_CN": "进度条显示文字内置在进度条内"
15213+
}
15214+
},
15215+
"required": false,
15216+
"readOnly": false,
15217+
"disabled": false,
15218+
"cols": 12,
15219+
"widget": {
15220+
"component": "MetaSwitch",
15221+
"props": {}
15222+
},
15223+
"description": {
15224+
"zh_CN": "进度条显示文字内置在进度条内(只在 type=line 时可用)"
15225+
},
15226+
"labelPosition": "left"
15227+
},
15228+
{
15229+
"property": "type",
15230+
"label": {
15231+
"text": {
15232+
"zh_CN": "进度条类型"
15233+
}
15234+
},
15235+
"required": true,
15236+
"readOnly": false,
15237+
"disabled": false,
15238+
"cols": 12,
15239+
"widget": {
15240+
"component": "MetaSelect",
15241+
"props": {
15242+
"options": [
15243+
{
15244+
"label": "line",
15245+
"value": "line"
15246+
},
15247+
{
15248+
"label": "circle",
15249+
"value": "circle"
15250+
},
15251+
{
15252+
"label": "dashboard",
15253+
"value": "dashboard"
15254+
}
15255+
]
15256+
}
15257+
}
15258+
},
15259+
{
15260+
"property": "width",
15261+
"label": {
15262+
"text": {
15263+
"zh_CN": "环形进度条画布宽度"
15264+
}
15265+
},
15266+
"required": true,
15267+
"readOnly": false,
15268+
"disabled": false,
15269+
"widget": {
15270+
"component": "MetaNumber",
15271+
"props": {}
15272+
},
15273+
"description": {
15274+
"zh_CN": "环形进度条画布宽度(只在 type 为 circle 或 dashboard 时可用)"
15275+
},
15276+
"labelPosition": "left"
15277+
}
15278+
]
15279+
}
15280+
],
15281+
"events": {
15282+
"onClose": {
15283+
"label": {
15284+
"zh_CN": "关闭 alert 时触发的事件"
15285+
},
15286+
"description": {
15287+
"zh_CN": "关闭 alert 时触发的事件"
15288+
},
15289+
"type": "event",
15290+
"defaultValue": ""
15291+
}
15292+
}
15293+
},
15294+
"configure": {
15295+
"loop": true,
15296+
"condition": true,
15297+
"styles": true,
15298+
"isContainer": false,
15299+
"isModal": false,
15300+
"nestingRule": {
15301+
"childWhitelist": "",
15302+
"parentWhitelist": "",
15303+
"descendantBlacklist": "",
15304+
"ancestorWhitelist": ""
15305+
},
15306+
"isNullNode": false,
15307+
"isLayout": false,
15308+
"rootSelector": "",
15309+
"shortcuts": {
15310+
"properties": [
15311+
"data",
15312+
"show-checkbox"
15313+
]
15314+
},
15315+
"contextMenu": {
15316+
"actions": [
15317+
"create symbol"
15318+
],
15319+
"disable": [
15320+
"copy",
15321+
"remove"
15322+
]
15323+
}
15324+
}
15325+
},
1505115326
{
1505215327
"icon": "radio",
1505315328
"name": {
@@ -23185,6 +23460,18 @@
2318523460
]
2318623461
}
2318723462
},
23463+
{
23464+
"name": {
23465+
"zh_CN": "进度条"
23466+
},
23467+
"icon": "tile-x",
23468+
"screenshot": "",
23469+
"snippetName": "TinyProgress",
23470+
"schema": {
23471+
"componentName": "TinyProgress",
23472+
"props": {}
23473+
}
23474+
},
2318823475
{
2318923476
"name": {
2319023477
"zh_CN": "行"

0 commit comments

Comments
 (0)