sun-form-v3 1.0.79 → 1.0.81
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index-B8uiRDMK.js +18053 -0
- package/dist/index-BVfC-7wG.js +79 -0
- package/dist/{index-DmlyKQU2.js → index-BYSQOsYK.js} +63 -34
- package/dist/index-Bb57DL9x.js +87 -0
- package/dist/index-C0NmmaE2.js +252 -0
- package/dist/index-CITbTrFx.js +33 -0
- package/dist/index-CvnfmMTc.js +202 -0
- package/dist/index-CxNAuKj7.js +160 -0
- package/dist/index-DIwhu60e.js +73 -0
- package/dist/index-DM5DPltp.js +86 -0
- package/dist/index-DVgKDMax.js +86 -0
- package/dist/index-DZCE0-H_.js +581 -0
- package/dist/index-XP0bVDnU.js +90 -0
- package/dist/index-c0zw96Jm.js +139 -0
- package/dist/index-eJQFWCeP.js +113 -0
- package/dist/index-zkXVDNsL.js +184 -0
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +2 -11870
- package/dist/sun-form-v3.umd.js +50 -18
- package/package.json +7 -7
@@ -0,0 +1,202 @@
|
|
1
|
+
import { resolveComponent as i, openBlock as m, createElementBlock as b, Fragment as f, createVNode as e, withCtx as a, unref as t, createBlock as U, createCommentVNode as _ } from "vue";
|
2
|
+
const x = /* @__PURE__ */ Object.assign({ name: "config-button" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(g) {
|
15
|
+
let l = g;
|
16
|
+
const V = (r) => !!l.widget.props.hasOwnProperty(r);
|
17
|
+
return (r, o) => {
|
18
|
+
const w = i("common-icon-choose"), n = i("common-label-container"), u = i("el-option"), s = i("el-select"), p = i("el-switch");
|
19
|
+
return m(), b(f, null, [
|
20
|
+
e(n, { label: "图标选择" }, {
|
21
|
+
default: a(() => [
|
22
|
+
e(w, {
|
23
|
+
modelValue: t(l).widget.props.icon,
|
24
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => t(l).widget.props.icon = d)
|
25
|
+
}, null, 8, ["modelValue"])
|
26
|
+
]),
|
27
|
+
_: 1
|
28
|
+
}),
|
29
|
+
e(n, { label: "组件尺寸" }, {
|
30
|
+
default: a(() => [
|
31
|
+
e(s, {
|
32
|
+
modelValue: t(l).widget.props.size,
|
33
|
+
"onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).widget.props.size = d)
|
34
|
+
}, {
|
35
|
+
default: a(() => [
|
36
|
+
e(u, {
|
37
|
+
label: "大尺寸",
|
38
|
+
value: "large"
|
39
|
+
}),
|
40
|
+
e(u, {
|
41
|
+
label: "默认",
|
42
|
+
value: "default"
|
43
|
+
}),
|
44
|
+
e(u, {
|
45
|
+
label: "小尺寸",
|
46
|
+
value: "small"
|
47
|
+
})
|
48
|
+
]),
|
49
|
+
_: 1
|
50
|
+
}, 8, ["modelValue"])
|
51
|
+
]),
|
52
|
+
_: 1
|
53
|
+
}),
|
54
|
+
e(n, { label: "组件对齐" }, {
|
55
|
+
default: a(() => [
|
56
|
+
e(s, {
|
57
|
+
modelValue: t(l).widget.props.align,
|
58
|
+
"onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.align = d)
|
59
|
+
}, {
|
60
|
+
default: a(() => [
|
61
|
+
e(u, {
|
62
|
+
label: "居左",
|
63
|
+
value: "left"
|
64
|
+
}),
|
65
|
+
e(u, {
|
66
|
+
label: "居中",
|
67
|
+
value: "center"
|
68
|
+
}),
|
69
|
+
e(u, {
|
70
|
+
label: "居右",
|
71
|
+
value: "right"
|
72
|
+
})
|
73
|
+
]),
|
74
|
+
_: 1
|
75
|
+
}, 8, ["modelValue"])
|
76
|
+
]),
|
77
|
+
_: 1
|
78
|
+
}),
|
79
|
+
e(n, { label: "组件类型" }, {
|
80
|
+
default: a(() => [
|
81
|
+
e(s, {
|
82
|
+
modelValue: t(l).widget.props.type,
|
83
|
+
"onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.type = d)
|
84
|
+
}, {
|
85
|
+
default: a(() => [
|
86
|
+
e(u, {
|
87
|
+
label: "primary",
|
88
|
+
value: "primary"
|
89
|
+
}),
|
90
|
+
e(u, {
|
91
|
+
label: "success",
|
92
|
+
value: "success"
|
93
|
+
}),
|
94
|
+
e(u, {
|
95
|
+
label: "info",
|
96
|
+
value: "info"
|
97
|
+
}),
|
98
|
+
e(u, {
|
99
|
+
label: "warning",
|
100
|
+
value: "warning"
|
101
|
+
}),
|
102
|
+
e(u, {
|
103
|
+
label: "danger",
|
104
|
+
value: "danger"
|
105
|
+
})
|
106
|
+
]),
|
107
|
+
_: 1
|
108
|
+
}, 8, ["modelValue"])
|
109
|
+
]),
|
110
|
+
_: 1
|
111
|
+
}),
|
112
|
+
e(n, { label: "是否朴素按钮" }, {
|
113
|
+
default: a(() => [
|
114
|
+
e(p, {
|
115
|
+
modelValue: t(l).widget.props.isPlain,
|
116
|
+
"onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.isPlain = d)
|
117
|
+
}, null, 8, ["modelValue"])
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
}),
|
121
|
+
e(n, { label: "是否文字按钮" }, {
|
122
|
+
default: a(() => [
|
123
|
+
e(p, {
|
124
|
+
modelValue: t(l).widget.props.isText,
|
125
|
+
"onUpdate:modelValue": o[5] || (o[5] = (d) => t(l).widget.props.isText = d)
|
126
|
+
}, null, 8, ["modelValue"])
|
127
|
+
]),
|
128
|
+
_: 1
|
129
|
+
}),
|
130
|
+
e(n, { label: "是否背景颜色" }, {
|
131
|
+
default: a(() => [
|
132
|
+
e(p, {
|
133
|
+
modelValue: t(l).widget.props.isTextBgColor,
|
134
|
+
"onUpdate:modelValue": o[6] || (o[6] = (d) => t(l).widget.props.isTextBgColor = d)
|
135
|
+
}, null, 8, ["modelValue"])
|
136
|
+
]),
|
137
|
+
_: 1
|
138
|
+
}),
|
139
|
+
e(n, { label: "是否链接按钮" }, {
|
140
|
+
default: a(() => [
|
141
|
+
e(p, {
|
142
|
+
modelValue: t(l).widget.props.isLink,
|
143
|
+
"onUpdate:modelValue": o[7] || (o[7] = (d) => t(l).widget.props.isLink = d)
|
144
|
+
}, null, 8, ["modelValue"])
|
145
|
+
]),
|
146
|
+
_: 1
|
147
|
+
}),
|
148
|
+
e(n, { label: "是否圆角按钮" }, {
|
149
|
+
default: a(() => [
|
150
|
+
e(p, {
|
151
|
+
modelValue: t(l).widget.props.isRound,
|
152
|
+
"onUpdate:modelValue": o[8] || (o[8] = (d) => t(l).widget.props.isRound = d)
|
153
|
+
}, null, 8, ["modelValue"])
|
154
|
+
]),
|
155
|
+
_: 1
|
156
|
+
}),
|
157
|
+
e(n, { label: "是否圆形按钮" }, {
|
158
|
+
default: a(() => [
|
159
|
+
e(p, {
|
160
|
+
modelValue: t(l).widget.props.isCircle,
|
161
|
+
"onUpdate:modelValue": o[9] || (o[9] = (d) => t(l).widget.props.isCircle = d)
|
162
|
+
}, null, 8, ["modelValue"])
|
163
|
+
]),
|
164
|
+
_: 1
|
165
|
+
}),
|
166
|
+
e(n, { label: "是否加载中" }, {
|
167
|
+
default: a(() => [
|
168
|
+
e(p, {
|
169
|
+
modelValue: t(l).widget.props.isLoading,
|
170
|
+
"onUpdate:modelValue": o[10] || (o[10] = (d) => t(l).widget.props.isLoading = d)
|
171
|
+
}, null, 8, ["modelValue"])
|
172
|
+
]),
|
173
|
+
_: 1
|
174
|
+
}),
|
175
|
+
e(n, { label: "是否禁用" }, {
|
176
|
+
default: a(() => [
|
177
|
+
e(p, {
|
178
|
+
modelValue: t(l).widget.props.disabled,
|
179
|
+
"onUpdate:modelValue": o[11] || (o[11] = (d) => t(l).widget.props.disabled = d)
|
180
|
+
}, null, 8, ["modelValue"])
|
181
|
+
]),
|
182
|
+
_: 1
|
183
|
+
}),
|
184
|
+
V("isSide") ? (m(), U(n, {
|
185
|
+
key: 0,
|
186
|
+
label: "是否侧边按钮"
|
187
|
+
}, {
|
188
|
+
default: a(() => [
|
189
|
+
e(p, {
|
190
|
+
modelValue: t(l).widget.props.isSide,
|
191
|
+
"onUpdate:modelValue": o[12] || (o[12] = (d) => t(l).widget.props.isSide = d)
|
192
|
+
}, null, 8, ["modelValue"])
|
193
|
+
]),
|
194
|
+
_: 1
|
195
|
+
})) : _("", !0)
|
196
|
+
], 64);
|
197
|
+
};
|
198
|
+
}
|
199
|
+
});
|
200
|
+
export {
|
201
|
+
x as default
|
202
|
+
};
|
@@ -0,0 +1,160 @@
|
|
1
|
+
import { resolveComponent as n, openBlock as m, createElementBlock as f, Fragment as U, createVNode as t, withCtx as d, unref as l, createBlock as g, createCommentVNode as V } from "vue";
|
2
|
+
const S = /* @__PURE__ */ Object.assign({ name: "config-form" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(i) {
|
15
|
+
let e = i;
|
16
|
+
return (_, o) => {
|
17
|
+
const b = n("el-input"), p = n("common-label-container"), u = n("el-radio-button"), w = n("el-radio-group"), r = n("el-switch"), s = n("common-api-config");
|
18
|
+
return m(), f(U, null, [
|
19
|
+
t(p, { label: "表单高度" }, {
|
20
|
+
default: d(() => [
|
21
|
+
t(b, {
|
22
|
+
modelValue: l(e).widget.props.height,
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => l(e).widget.props.height = a),
|
24
|
+
placeholder: "填写表单容器高度"
|
25
|
+
}, null, 8, ["modelValue"])
|
26
|
+
]),
|
27
|
+
_: 1
|
28
|
+
}),
|
29
|
+
t(p, { label: "提交按钮文字" }, {
|
30
|
+
default: d(() => [
|
31
|
+
t(b, {
|
32
|
+
modelValue: l(e).widget.props.submitButtonText,
|
33
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => l(e).widget.props.submitButtonText = a),
|
34
|
+
placeholder: "填写提交按钮文字"
|
35
|
+
}, null, 8, ["modelValue"])
|
36
|
+
]),
|
37
|
+
_: 1
|
38
|
+
}),
|
39
|
+
t(p, { label: "表单类型" }, {
|
40
|
+
default: d(() => [
|
41
|
+
t(w, {
|
42
|
+
modelValue: l(e).widget.props.formType,
|
43
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => l(e).widget.props.formType = a)
|
44
|
+
}, {
|
45
|
+
default: d(() => [
|
46
|
+
t(u, {
|
47
|
+
value: "Create",
|
48
|
+
label: "新增"
|
49
|
+
}),
|
50
|
+
t(u, {
|
51
|
+
value: "Update",
|
52
|
+
label: "修改"
|
53
|
+
}),
|
54
|
+
t(u, {
|
55
|
+
value: "Detail",
|
56
|
+
label: "详情"
|
57
|
+
})
|
58
|
+
]),
|
59
|
+
_: 1
|
60
|
+
}, 8, ["modelValue"])
|
61
|
+
]),
|
62
|
+
_: 1
|
63
|
+
}),
|
64
|
+
t(p, { label: "按钮位置" }, {
|
65
|
+
default: d(() => [
|
66
|
+
t(w, {
|
67
|
+
modelValue: l(e).widget.props.buttonAlign,
|
68
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => l(e).widget.props.buttonAlign = a)
|
69
|
+
}, {
|
70
|
+
default: d(() => [
|
71
|
+
t(u, {
|
72
|
+
value: "left",
|
73
|
+
label: "左侧"
|
74
|
+
}),
|
75
|
+
t(u, {
|
76
|
+
value: "right",
|
77
|
+
label: "右侧"
|
78
|
+
})
|
79
|
+
]),
|
80
|
+
_: 1
|
81
|
+
}, 8, ["modelValue"])
|
82
|
+
]),
|
83
|
+
_: 1
|
84
|
+
}),
|
85
|
+
t(p, { label: "底部显示底色" }, {
|
86
|
+
default: d(() => [
|
87
|
+
t(r, {
|
88
|
+
modelValue: l(e).widget.props.hasFooterBg,
|
89
|
+
"onUpdate:modelValue": o[4] || (o[4] = (a) => l(e).widget.props.hasFooterBg = a)
|
90
|
+
}, null, 8, ["modelValue"])
|
91
|
+
]),
|
92
|
+
_: 1
|
93
|
+
}),
|
94
|
+
t(p, { label: "是否显示底部" }, {
|
95
|
+
default: d(() => [
|
96
|
+
t(r, {
|
97
|
+
modelValue: l(e).widget.props.hasFooter,
|
98
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => l(e).widget.props.hasFooter = a)
|
99
|
+
}, null, 8, ["modelValue"])
|
100
|
+
]),
|
101
|
+
_: 1
|
102
|
+
}),
|
103
|
+
t(p, { label: "显示提交按钮" }, {
|
104
|
+
default: d(() => [
|
105
|
+
t(r, {
|
106
|
+
modelValue: l(e).widget.props.hasSubmitButton,
|
107
|
+
"onUpdate:modelValue": o[6] || (o[6] = (a) => l(e).widget.props.hasSubmitButton = a)
|
108
|
+
}, null, 8, ["modelValue"])
|
109
|
+
]),
|
110
|
+
_: 1
|
111
|
+
}),
|
112
|
+
t(p, { label: "显示重置按钮" }, {
|
113
|
+
default: d(() => [
|
114
|
+
t(r, {
|
115
|
+
modelValue: l(e).widget.props.hasResetButton,
|
116
|
+
"onUpdate:modelValue": o[7] || (o[7] = (a) => l(e).widget.props.hasResetButton = a)
|
117
|
+
}, null, 8, ["modelValue"])
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
}),
|
121
|
+
t(p, { label: "新增数据" }, {
|
122
|
+
default: d(() => [
|
123
|
+
l(e).widget.props.apiSetCreate ? (m(), g(s, {
|
124
|
+
key: 0,
|
125
|
+
designer: i.designer,
|
126
|
+
modelValue: l(e).widget.props.apiSetCreate,
|
127
|
+
"onUpdate:modelValue": o[8] || (o[8] = (a) => l(e).widget.props.apiSetCreate = a)
|
128
|
+
}, null, 8, ["designer", "modelValue"])) : V("", !0)
|
129
|
+
]),
|
130
|
+
_: 1
|
131
|
+
}),
|
132
|
+
t(p, { label: "修改数据" }, {
|
133
|
+
default: d(() => [
|
134
|
+
l(e).widget.props.apiSetUpdate ? (m(), g(s, {
|
135
|
+
key: 0,
|
136
|
+
designer: i.designer,
|
137
|
+
modelValue: l(e).widget.props.apiSetUpdate,
|
138
|
+
"onUpdate:modelValue": o[9] || (o[9] = (a) => l(e).widget.props.apiSetUpdate = a)
|
139
|
+
}, null, 8, ["designer", "modelValue"])) : V("", !0)
|
140
|
+
]),
|
141
|
+
_: 1
|
142
|
+
}),
|
143
|
+
t(p, { label: "详情数据" }, {
|
144
|
+
default: d(() => [
|
145
|
+
l(e).widget.props.apiSetDetail ? (m(), g(s, {
|
146
|
+
key: 0,
|
147
|
+
designer: i.designer,
|
148
|
+
modelValue: l(e).widget.props.apiSetDetail,
|
149
|
+
"onUpdate:modelValue": o[10] || (o[10] = (a) => l(e).widget.props.apiSetDetail = a)
|
150
|
+
}, null, 8, ["designer", "modelValue"])) : V("", !0)
|
151
|
+
]),
|
152
|
+
_: 1
|
153
|
+
})
|
154
|
+
], 64);
|
155
|
+
};
|
156
|
+
}
|
157
|
+
});
|
158
|
+
export {
|
159
|
+
S as default
|
160
|
+
};
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { resolveComponent as m, openBlock as r, createElementBlock as s, Fragment as g, createVNode as o, withCtx as n, unref as t } from "vue";
|
2
|
+
const w = /* @__PURE__ */ Object.assign({ name: "config-modal" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(i) {
|
15
|
+
let e = i;
|
16
|
+
return (V, l) => {
|
17
|
+
const p = m("el-input"), a = m("common-label-container"), u = m("el-switch");
|
18
|
+
return r(), s(g, null, [
|
19
|
+
o(a, { label: "弹窗标题" }, {
|
20
|
+
default: n(() => [
|
21
|
+
o(p, {
|
22
|
+
modelValue: t(e).widget.props.title,
|
23
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => t(e).widget.props.title = d),
|
24
|
+
placeholder: "填写弹窗标题"
|
25
|
+
}, null, 8, ["modelValue"])
|
26
|
+
]),
|
27
|
+
_: 1
|
28
|
+
}),
|
29
|
+
o(a, { label: "弹窗宽度" }, {
|
30
|
+
default: n(() => [
|
31
|
+
o(p, {
|
32
|
+
modelValue: t(e).widget.props.modalWidth,
|
33
|
+
"onUpdate:modelValue": l[1] || (l[1] = (d) => t(e).widget.props.modalWidth = d),
|
34
|
+
placeholder: "填写弹窗宽度"
|
35
|
+
}, null, 8, ["modelValue"])
|
36
|
+
]),
|
37
|
+
_: 1
|
38
|
+
}),
|
39
|
+
o(a, { label: "弹窗高度" }, {
|
40
|
+
default: n(() => [
|
41
|
+
o(p, {
|
42
|
+
modelValue: t(e).widget.props.modalHeight,
|
43
|
+
"onUpdate:modelValue": l[2] || (l[2] = (d) => t(e).widget.props.modalHeight = d),
|
44
|
+
placeholder: "填写弹窗高度"
|
45
|
+
}, null, 8, ["modelValue"])
|
46
|
+
]),
|
47
|
+
_: 1
|
48
|
+
}),
|
49
|
+
o(a, { label: "是否显示按钮栏" }, {
|
50
|
+
default: n(() => [
|
51
|
+
o(u, {
|
52
|
+
modelValue: t(e).widget.props.hasFooter,
|
53
|
+
"onUpdate:modelValue": l[3] || (l[3] = (d) => t(e).widget.props.hasFooter = d)
|
54
|
+
}, null, 8, ["modelValue"])
|
55
|
+
]),
|
56
|
+
_: 1
|
57
|
+
}),
|
58
|
+
o(a, { label: "是否隐藏确定键" }, {
|
59
|
+
default: n(() => [
|
60
|
+
o(u, {
|
61
|
+
modelValue: t(e).widget.props.hideConfirm,
|
62
|
+
"onUpdate:modelValue": l[4] || (l[4] = (d) => t(e).widget.props.hideConfirm = d)
|
63
|
+
}, null, 8, ["modelValue"])
|
64
|
+
]),
|
65
|
+
_: 1
|
66
|
+
})
|
67
|
+
], 64);
|
68
|
+
};
|
69
|
+
}
|
70
|
+
});
|
71
|
+
export {
|
72
|
+
w as default
|
73
|
+
};
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { resolveComponent as u, openBlock as r, createElementBlock as b, Fragment as g, createVNode as e, withCtx as a, unref as t } from "vue";
|
2
|
+
const f = /* @__PURE__ */ Object.assign({ name: "config-checkbox" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(i) {
|
15
|
+
let l = i;
|
16
|
+
return (V, o) => {
|
17
|
+
const s = u("el-option"), m = u("el-select"), n = u("common-label-container"), p = u("el-switch");
|
18
|
+
return r(), b(g, null, [
|
19
|
+
e(n, { label: "组件尺寸" }, {
|
20
|
+
default: a(() => [
|
21
|
+
e(m, {
|
22
|
+
modelValue: t(l).widget.props.size,
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => t(l).widget.props.size = d)
|
24
|
+
}, {
|
25
|
+
default: a(() => [
|
26
|
+
e(s, {
|
27
|
+
label: "大尺寸",
|
28
|
+
value: "large"
|
29
|
+
}),
|
30
|
+
e(s, {
|
31
|
+
label: "默认",
|
32
|
+
value: "default"
|
33
|
+
}),
|
34
|
+
e(s, {
|
35
|
+
label: "小尺寸",
|
36
|
+
value: "small"
|
37
|
+
})
|
38
|
+
]),
|
39
|
+
_: 1
|
40
|
+
}, 8, ["modelValue"])
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
e(n, { label: "是否按钮" }, {
|
45
|
+
default: a(() => [
|
46
|
+
e(p, {
|
47
|
+
modelValue: t(l).widget.props.isButton,
|
48
|
+
"onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).widget.props.isButton = d)
|
49
|
+
}, null, 8, ["modelValue"])
|
50
|
+
]),
|
51
|
+
_: 1
|
52
|
+
}),
|
53
|
+
e(n, { label: "是否块状" }, {
|
54
|
+
default: a(() => [
|
55
|
+
e(p, {
|
56
|
+
modelValue: t(l).widget.props.isBlock,
|
57
|
+
"onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.isBlock = d)
|
58
|
+
}, null, 8, ["modelValue"])
|
59
|
+
]),
|
60
|
+
_: 1
|
61
|
+
}),
|
62
|
+
e(n, { label: "是否必填" }, {
|
63
|
+
default: a(() => [
|
64
|
+
e(p, {
|
65
|
+
modelValue: t(l).widget.props.required,
|
66
|
+
"onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.required = d)
|
67
|
+
}, null, 8, ["modelValue"])
|
68
|
+
]),
|
69
|
+
_: 1
|
70
|
+
}),
|
71
|
+
e(n, { label: "是否禁用" }, {
|
72
|
+
default: a(() => [
|
73
|
+
e(p, {
|
74
|
+
modelValue: t(l).widget.props.disabled,
|
75
|
+
"onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.disabled = d)
|
76
|
+
}, null, 8, ["modelValue"])
|
77
|
+
]),
|
78
|
+
_: 1
|
79
|
+
})
|
80
|
+
], 64);
|
81
|
+
};
|
82
|
+
}
|
83
|
+
});
|
84
|
+
export {
|
85
|
+
f as default
|
86
|
+
};
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { resolveComponent as u, openBlock as m, createElementBlock as g, Fragment as V, createVNode as e, withCtx as a, unref as t } from "vue";
|
2
|
+
const f = /* @__PURE__ */ Object.assign({ name: "config-radio" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(i) {
|
15
|
+
let l = i;
|
16
|
+
return (b, o) => {
|
17
|
+
const s = u("el-option"), r = u("el-select"), n = u("common-label-container"), p = u("el-switch");
|
18
|
+
return m(), g(V, null, [
|
19
|
+
e(n, { label: "组件尺寸" }, {
|
20
|
+
default: a(() => [
|
21
|
+
e(r, {
|
22
|
+
modelValue: t(l).widget.props.size,
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => t(l).widget.props.size = d)
|
24
|
+
}, {
|
25
|
+
default: a(() => [
|
26
|
+
e(s, {
|
27
|
+
label: "大尺寸",
|
28
|
+
value: "large"
|
29
|
+
}),
|
30
|
+
e(s, {
|
31
|
+
label: "默认",
|
32
|
+
value: "default"
|
33
|
+
}),
|
34
|
+
e(s, {
|
35
|
+
label: "小尺寸",
|
36
|
+
value: "small"
|
37
|
+
})
|
38
|
+
]),
|
39
|
+
_: 1
|
40
|
+
}, 8, ["modelValue"])
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
e(n, { label: "是否按钮" }, {
|
45
|
+
default: a(() => [
|
46
|
+
e(p, {
|
47
|
+
modelValue: t(l).widget.props.isButton,
|
48
|
+
"onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).widget.props.isButton = d)
|
49
|
+
}, null, 8, ["modelValue"])
|
50
|
+
]),
|
51
|
+
_: 1
|
52
|
+
}),
|
53
|
+
e(n, { label: "是否块状" }, {
|
54
|
+
default: a(() => [
|
55
|
+
e(p, {
|
56
|
+
modelValue: t(l).widget.props.isBlock,
|
57
|
+
"onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.isBlock = d)
|
58
|
+
}, null, 8, ["modelValue"])
|
59
|
+
]),
|
60
|
+
_: 1
|
61
|
+
}),
|
62
|
+
e(n, { label: "是否必填" }, {
|
63
|
+
default: a(() => [
|
64
|
+
e(p, {
|
65
|
+
modelValue: t(l).widget.props.required,
|
66
|
+
"onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.required = d)
|
67
|
+
}, null, 8, ["modelValue"])
|
68
|
+
]),
|
69
|
+
_: 1
|
70
|
+
}),
|
71
|
+
e(n, { label: "是否禁用" }, {
|
72
|
+
default: a(() => [
|
73
|
+
e(p, {
|
74
|
+
modelValue: t(l).widget.props.disabled,
|
75
|
+
"onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.disabled = d)
|
76
|
+
}, null, 8, ["modelValue"])
|
77
|
+
]),
|
78
|
+
_: 1
|
79
|
+
})
|
80
|
+
], 64);
|
81
|
+
};
|
82
|
+
}
|
83
|
+
});
|
84
|
+
export {
|
85
|
+
f as default
|
86
|
+
};
|