Skip to content

Commit c8fa5b6

Browse files
committed
弹出框配置
1 parent 0c7ff98 commit c8fa5b6

4 files changed

Lines changed: 83 additions & 28 deletions

File tree

designer-demo/public/mock/bundle.json

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26266,7 +26266,7 @@
2626626266
"slots": {
2626726267
"default ": {
2626826268
"label": {
26269-
"zh_CN": "default "
26269+
"zh_CN": "default"
2627026270
},
2627126271
"description": {
2627226272
"zh_CN": "组件默认插槽"
@@ -28533,15 +28533,12 @@
2853328533
},
2853428534
"content": [
2853528535
{
28536-
"property": "show",
28536+
"property": "modelValue",
2853728537
"label": {
2853828538
"text": {
2853928539
"zh_CN": "显示对话框"
2854028540
}
2854128541
},
28542-
"cols": 12,
28543-
"rules": [],
28544-
"hidden": false,
2854528542
"required": true,
2854628543
"readOnly": false,
2854728544
"disabled": false,
@@ -28551,7 +28548,8 @@
2855128548
},
2855228549
"description": {
2855328550
"zh_CN": "显示对话框"
28554-
}
28551+
},
28552+
"labelPosition": "top"
2855528553
},
2855628554
{
2855728555
"property": "content",
@@ -28571,7 +28569,28 @@
2857128569
"props": {}
2857228570
},
2857328571
"description": {
28574-
"zh_CN": "标题"
28572+
"zh_CN": "内容"
28573+
}
28574+
},
28575+
{
28576+
"property": "show-cancel-button",
28577+
"label": {
28578+
"text": {
28579+
"zh_CN": "是否显示取消按钮"
28580+
}
28581+
},
28582+
"cols": 12,
28583+
"rules": [],
28584+
"hidden": false,
28585+
"required": true,
28586+
"readOnly": false,
28587+
"disabled": false,
28588+
"widget": {
28589+
"component": "MetaSwitch",
28590+
"props": {}
28591+
},
28592+
"description": {
28593+
"zh_CN": "是否显示取消按钮"
2857528594
}
2857628595
},
2857728596
{
@@ -28588,7 +28607,7 @@
2858828607
"readOnly": false,
2858928608
"disabled": false,
2859028609
"widget": {
28591-
"component": "MetaInput",
28610+
"component": "MetaSwitch",
2859228611
"props": {}
2859328612
},
2859428613
"description": {
@@ -29350,15 +29369,12 @@
2935029369
},
2935129370
"content": [
2935229371
{
29353-
"property": "show",
29372+
"property": "modelValue",
2935429373
"label": {
2935529374
"text": {
2935629375
"zh_CN": "显示弹出层"
2935729376
}
2935829377
},
29359-
"cols": 12,
29360-
"rules": [],
29361-
"hidden": false,
2936229378
"required": true,
2936329379
"readOnly": false,
2936429380
"disabled": false,
@@ -29368,7 +29384,8 @@
2936829384
},
2936929385
"description": {
2937029386
"zh_CN": "显示弹出层"
29371-
}
29387+
},
29388+
"labelPosition": "top"
2937229389
},
2937329390
{
2937429391
"property": "mode",
@@ -29439,6 +29456,16 @@
2943929456
]
2944029457
}
2944129458
],
29459+
"slots": {
29460+
"default ": {
29461+
"label": {
29462+
"zh_CN": "default"
29463+
},
29464+
"description": {
29465+
"zh_CN": "组件默认插槽"
29466+
}
29467+
}
29468+
},
2944229469
"events": {
2944329470
"onChange": {
2944429471
"label": {

materials/components/UCard.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
"slots": {
307307
"default ": {
308308
"label": {
309-
"zh_CN": "default "
309+
"zh_CN": "default"
310310
},
311311
"description": {
312312
"zh_CN": "组件默认插槽"

materials/components/UModal.json

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,51 @@
3030
},
3131
"content": [
3232
{
33-
"property": "show",
33+
"property": "modelValue",
3434
"label": {
3535
"text": {
3636
"zh_CN": "显示对话框"
3737
}
3838
},
39+
"required": true,
40+
"readOnly": false,
41+
"disabled": false,
42+
"widget": {
43+
"component": "MetaSwitch",
44+
"props": {}
45+
},
46+
"description": {
47+
"zh_CN": "显示对话框"
48+
},
49+
"labelPosition": "top"
50+
},
51+
{
52+
"property": "content",
53+
"label": {
54+
"text": {
55+
"zh_CN": "内容"
56+
}
57+
},
3958
"cols": 12,
4059
"rules": [],
4160
"hidden": false,
4261
"required": true,
4362
"readOnly": false,
4463
"disabled": false,
4564
"widget": {
46-
"component": "MetaSwitch",
65+
"component": "MetaInput",
4766
"props": {}
4867
},
4968
"description": {
50-
"zh_CN": "显示对话框"
69+
"zh_CN": "内容"
5170
}
5271
},
72+
5373
{
54-
"property": "content",
74+
"property": "show-cancel-button",
5575
"label": {
5676
"text": {
57-
"zh_CN": "内容"
77+
"zh_CN": "是否显示取消按钮"
5878
}
5979
},
6080
"cols": 12,
@@ -64,11 +84,11 @@
6484
"readOnly": false,
6585
"disabled": false,
6686
"widget": {
67-
"component": "MetaInput",
87+
"component": "MetaSwitch",
6888
"props": {}
6989
},
7090
"description": {
71-
"zh_CN": "标题"
91+
"zh_CN": "是否显示取消按钮"
7292
}
7393
},
7494
{
@@ -85,7 +105,7 @@
85105
"readOnly": false,
86106
"disabled": false,
87107
"widget": {
88-
"component": "MetaInput",
108+
"component": "MetaSwitch",
89109
"props": {}
90110
},
91111
"description": {

materials/components/UPopup.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,12 @@
3030
},
3131
"content": [
3232
{
33-
"property": "show",
33+
"property": "modelValue",
3434
"label": {
3535
"text": {
3636
"zh_CN": "显示弹出层"
3737
}
3838
},
39-
"cols": 12,
40-
"rules": [],
41-
"hidden": false,
4239
"required": true,
4340
"readOnly": false,
4441
"disabled": false,
@@ -48,8 +45,9 @@
4845
},
4946
"description": {
5047
"zh_CN": "显示弹出层"
51-
}
52-
},
48+
},
49+
"labelPosition": "top"
50+
},
5351
{
5452
"property": "mode",
5553
"type": "string",
@@ -119,6 +117,16 @@
119117
]
120118
}
121119
],
120+
"slots": {
121+
"default ": {
122+
"label": {
123+
"zh_CN": "default"
124+
},
125+
"description": {
126+
"zh_CN": "组件默认插槽"
127+
}
128+
}
129+
},
122130
"events": {
123131
"onChange": {
124132
"label": {

0 commit comments

Comments
 (0)