Skip to content

Commit 4dac218

Browse files
committed
手机端文本组件
1 parent c8fa5b6 commit 4dac218

7 files changed

Lines changed: 450 additions & 60 deletions

File tree

designer-demo/public/mock/bundle.json

Lines changed: 230 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23953,7 +23953,7 @@
2395323953
"disabled": false,
2395423954
"cols": 12,
2395523955
"widget": {
23956-
"component": "MetaBindI18n",
23956+
"component": "ColorConfigurator",
2395723957
"props": {}
2395823958
},
2395923959
"description": {
@@ -26019,7 +26019,7 @@
2601926019
"readOnly": false,
2602026020
"disabled": false,
2602126021
"widget": {
26022-
"component": "MetaInput",
26022+
"component": "ColorConfigurator",
2602326023
"props": {}
2602426024
},
2602526025
"description": {
@@ -26076,7 +26076,7 @@
2607626076
"readOnly": false,
2607726077
"disabled": false,
2607826078
"widget": {
26079-
"component": "MetaInput",
26079+
"component": "ColorConfigurator",
2608026080
"props": {}
2608126081
},
2608226082
"description": {
@@ -26887,7 +26887,7 @@
2688726887
"props": {}
2688826888
},
2688926889
"description": {
26890-
"zh_CN": "显示在输入框中的格式"
26890+
"zh_CN": "显示在输入框中的格式(日期时间时必须输入,格式为:yyyy-MM-dd hh:mm:ss)"
2689126891
},
2689226892
"labelPosition": "left"
2689326893
},
@@ -26949,25 +26949,6 @@
2694926949
"description": {
2695026950
"zh_CN": "禁用"
2695126951
}
26952-
},
26953-
{
26954-
"property": "readonly",
26955-
"label": {
26956-
"text": {
26957-
"zh_CN": "是否只读"
26958-
}
26959-
},
26960-
"required": true,
26961-
"readOnly": false,
26962-
"disabled": false,
26963-
"cols": 12,
26964-
"widget": {
26965-
"component": "MetaSwitch",
26966-
"props": {}
26967-
},
26968-
"description": {
26969-
"zh_CN": ""
26970-
}
2697126952
}
2697226953
]
2697326954
}
@@ -27692,7 +27673,7 @@
2769227673
"readOnly": false,
2769327674
"disabled": false,
2769427675
"widget": {
27695-
"component": "MetaBindI18n",
27676+
"component": "ColorConfigurator",
2769627677
"props": {}
2769727678
},
2769827679
"description": {
@@ -28398,7 +28379,7 @@
2839828379
"readOnly": false,
2839928380
"disabled": false,
2840028381
"widget": {
28401-
"component": "MetaBindI18n",
28382+
"component": "ColorConfigurator",
2840228383
"props": {}
2840328384
},
2840428385
"description": {
@@ -30287,7 +30268,6 @@
3028730268
{
3028830269
"property": "text",
3028930270
"type": "string",
30290-
"defaultValue": "文本文案",
3029130271
"label": {
3029230272
"text": {
3029330273
"zh_CN": "文本文案"
@@ -30313,7 +30293,7 @@
3031330293
"zh_CN": "文本主题"
3031430294
}
3031530295
},
30316-
"required": true,
30296+
"required": false,
3031730297
"readOnly": false,
3031830298
"disabled": false,
3031930299
"cols": 12,
@@ -30330,7 +30310,7 @@
3033030310
"value": "success"
3033130311
},
3033230312
{
30333-
"label": "信息按钮",
30313+
"label": "信息",
3033430314
"value": "info"
3033530315
},
3033630316
{
@@ -30348,6 +30328,212 @@
3034830328
"zh_CN": "文本主题"
3034930329
},
3035030330
"labelPosition": "left"
30331+
},
30332+
{
30333+
"property": "mode",
30334+
"label": {
30335+
"text": {
30336+
"zh_CN": "匹配模式"
30337+
}
30338+
},
30339+
"required": true,
30340+
"readOnly": false,
30341+
"disabled": false,
30342+
"cols": 12,
30343+
"widget": {
30344+
"component": "MetaSelect",
30345+
"props": {
30346+
"options": [
30347+
{
30348+
"label": "普通文本",
30349+
"value": "text"
30350+
},
30351+
{
30352+
"label": "金额",
30353+
"value": "price"
30354+
},
30355+
{
30356+
"label": "手机号",
30357+
"value": "phone"
30358+
},
30359+
{
30360+
"label": "姓名",
30361+
"value": "name"
30362+
},
30363+
{
30364+
"label": "日期",
30365+
"value": "date"
30366+
},
30367+
{
30368+
"label": "链接",
30369+
"value": "link"
30370+
}
30371+
]
30372+
}
30373+
},
30374+
"description": {
30375+
"zh_CN": "匹配模式"
30376+
},
30377+
"labelPosition": "left"
30378+
},
30379+
{
30380+
"property": "decoration",
30381+
"label": {
30382+
"text": {
30383+
"zh_CN": "文字装饰"
30384+
}
30385+
},
30386+
"required": false,
30387+
"readOnly": false,
30388+
"disabled": false,
30389+
"cols": 12,
30390+
"widget": {
30391+
"component": "MetaSelect",
30392+
"props": {
30393+
"options": [
30394+
{
30395+
"label": "无",
30396+
"value": "none"
30397+
},
30398+
{
30399+
"label": "下划线",
30400+
"value": "underline"
30401+
},
30402+
{
30403+
"label": "中划线",
30404+
"value": "line-through"
30405+
}
30406+
]
30407+
}
30408+
},
30409+
"description": {
30410+
"zh_CN": "匹配模式"
30411+
},
30412+
"labelPosition": "left"
30413+
},
30414+
{
30415+
"property": "color",
30416+
"type": "string",
30417+
"label": {
30418+
"text": {
30419+
"zh_CN": "文本颜色"
30420+
}
30421+
},
30422+
"cols": 12,
30423+
"hidden": false,
30424+
"required": false,
30425+
"readOnly": false,
30426+
"disabled": false,
30427+
"widget": {
30428+
"component": "ColorConfigurator",
30429+
"props": {}
30430+
},
30431+
"description": {
30432+
"zh_CN": ""
30433+
}
30434+
},
30435+
{
30436+
"property": "size",
30437+
"type": "string",
30438+
"label": {
30439+
"text": {
30440+
"zh_CN": "字体大小"
30441+
}
30442+
},
30443+
"cols": 12,
30444+
"hidden": false,
30445+
"required": false,
30446+
"readOnly": false,
30447+
"disabled": false,
30448+
"widget": {
30449+
"component": "MetaInput",
30450+
"props": {}
30451+
},
30452+
"description": {
30453+
"zh_CN": ""
30454+
}
30455+
},
30456+
{
30457+
"property": "bold",
30458+
"label": {
30459+
"text": {
30460+
"zh_CN": "是否粗体"
30461+
}
30462+
},
30463+
"required": false,
30464+
"readOnly": false,
30465+
"disabled": false,
30466+
"cols": 12,
30467+
"widget": {
30468+
"component": "MetaSwitch",
30469+
"props": {}
30470+
},
30471+
"description": {
30472+
"zh_CN": "是否粗体"
30473+
}
30474+
},
30475+
{
30476+
"property": "iconStyle",
30477+
"type": "string",
30478+
"label": {
30479+
"text": {
30480+
"zh_CN": "图标大小"
30481+
}
30482+
},
30483+
"cols": 12,
30484+
"hidden": false,
30485+
"required": false,
30486+
"readOnly": false,
30487+
"disabled": false,
30488+
"widget": {
30489+
"component": "MetaInput",
30490+
"props": {}
30491+
},
30492+
"description": {
30493+
"zh_CN": ""
30494+
}
30495+
},
30496+
{
30497+
"property": "prefixIcon",
30498+
"type": "string",
30499+
"label": {
30500+
"text": {
30501+
"zh_CN": "前置图标"
30502+
}
30503+
},
30504+
"cols": 12,
30505+
"hidden": false,
30506+
"required": false,
30507+
"readOnly": false,
30508+
"disabled": false,
30509+
"widget": {
30510+
"component": "MetaColorPicker",
30511+
"props": {}
30512+
},
30513+
"description": {
30514+
"zh_CN": ""
30515+
}
30516+
},
30517+
{
30518+
"property": "suffixIcon",
30519+
"type": "string",
30520+
"label": {
30521+
"text": {
30522+
"zh_CN": "后置图标"
30523+
}
30524+
},
30525+
"cols": 12,
30526+
"hidden": false,
30527+
"required": false,
30528+
"readOnly": false,
30529+
"disabled": false,
30530+
"widget": {
30531+
"component": "MetaColorPicker",
30532+
"props": {}
30533+
},
30534+
"description": {
30535+
"zh_CN": ""
30536+
}
3035130537
}
3035230538
]
3035330539
}
@@ -33574,7 +33760,21 @@
3357433760
"label": {
3357533761
"zh_CN": "手机端组件"
3357633762
},
33577-
"children": [
33763+
"children": [
33764+
{
33765+
"name": {
33766+
"zh_CN": "文本"
33767+
},
33768+
"icon": "text",
33769+
"screenshot": "",
33770+
"snippetName": "uText",
33771+
"schema": {
33772+
"componentName": "uText",
33773+
"props": {
33774+
"text": "文本文案"
33775+
}
33776+
}
33777+
},
3357833778
{
3357933779
"name": {
3358033780
"zh_CN": "图标"
@@ -33851,7 +34051,7 @@
3385134051

3385234052
]
3385334053
}
33854-
],
34054+
] ,
3385534055
"packages": [
3385634056
{
3385734057
"name": "TinyVueHuicharts组件库",

materials/components/TinyTag.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
"disabled": false,
189189
"cols": 12,
190190
"widget": {
191-
"component": "MetaBindI18n",
191+
"component": "ColorConfigurator",
192192
"props": {}
193193
},
194194
"description": {

materials/components/UCard.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"readOnly": false,
6060
"disabled": false,
6161
"widget": {
62-
"component": "MetaInput",
62+
"component": "ColorConfigurator",
6363
"props": {}
6464
},
6565
"description": {
@@ -116,7 +116,7 @@
116116
"readOnly": false,
117117
"disabled": false,
118118
"widget": {
119-
"component": "MetaInput",
119+
"component": "ColorConfigurator",
120120
"props": {}
121121
},
122122
"description": {

0 commit comments

Comments
 (0)