sun-form-v3 1.0.79 → 1.0.80
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index-BRM5MvQH.js +189 -0
- package/dist/index-CITbTrFx.js +33 -0
- package/dist/index-D1Uhevdr.js +78 -0
- package/dist/index-DIwhu60e.js +73 -0
- package/dist/{index-DmlyKQU2.js → index-YCzX4CbR.js} +17 -8
- package/dist/index-mdiGENIF.js +288 -0
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +14321 -9311
- package/dist/sun-form-v3.umd.js +50 -18
- package/package.json +7 -7
@@ -0,0 +1,189 @@
|
|
1
|
+
import { resolveComponent as i, openBlock as g, createElementBlock as V, Fragment as b, createVNode as e, withCtx as t, unref as a } from "vue";
|
2
|
+
const _ = /* @__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(m) {
|
15
|
+
let l = m;
|
16
|
+
return (w, o) => {
|
17
|
+
const r = i("common-icon-choose"), n = i("common-label-container"), u = i("el-option"), s = i("el-select"), p = i("el-switch");
|
18
|
+
return g(), V(b, null, [
|
19
|
+
e(n, { label: "图标选择" }, {
|
20
|
+
default: t(() => [
|
21
|
+
e(r, {
|
22
|
+
modelValue: a(l).widget.props.icon,
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => a(l).widget.props.icon = d)
|
24
|
+
}, null, 8, ["modelValue"])
|
25
|
+
]),
|
26
|
+
_: 1
|
27
|
+
}),
|
28
|
+
e(n, { label: "组件尺寸" }, {
|
29
|
+
default: t(() => [
|
30
|
+
e(s, {
|
31
|
+
modelValue: a(l).widget.props.size,
|
32
|
+
"onUpdate:modelValue": o[1] || (o[1] = (d) => a(l).widget.props.size = d)
|
33
|
+
}, {
|
34
|
+
default: t(() => [
|
35
|
+
e(u, {
|
36
|
+
label: "大尺寸",
|
37
|
+
value: "large"
|
38
|
+
}),
|
39
|
+
e(u, {
|
40
|
+
label: "默认",
|
41
|
+
value: "default"
|
42
|
+
}),
|
43
|
+
e(u, {
|
44
|
+
label: "小尺寸",
|
45
|
+
value: "small"
|
46
|
+
})
|
47
|
+
]),
|
48
|
+
_: 1
|
49
|
+
}, 8, ["modelValue"])
|
50
|
+
]),
|
51
|
+
_: 1
|
52
|
+
}),
|
53
|
+
e(n, { label: "组件对齐" }, {
|
54
|
+
default: t(() => [
|
55
|
+
e(s, {
|
56
|
+
modelValue: a(l).widget.props.align,
|
57
|
+
"onUpdate:modelValue": o[2] || (o[2] = (d) => a(l).widget.props.align = d)
|
58
|
+
}, {
|
59
|
+
default: t(() => [
|
60
|
+
e(u, {
|
61
|
+
label: "居左",
|
62
|
+
value: "left"
|
63
|
+
}),
|
64
|
+
e(u, {
|
65
|
+
label: "居中",
|
66
|
+
value: "center"
|
67
|
+
}),
|
68
|
+
e(u, {
|
69
|
+
label: "居右",
|
70
|
+
value: "right"
|
71
|
+
})
|
72
|
+
]),
|
73
|
+
_: 1
|
74
|
+
}, 8, ["modelValue"])
|
75
|
+
]),
|
76
|
+
_: 1
|
77
|
+
}),
|
78
|
+
e(n, { label: "组件类型" }, {
|
79
|
+
default: t(() => [
|
80
|
+
e(s, {
|
81
|
+
modelValue: a(l).widget.props.type,
|
82
|
+
"onUpdate:modelValue": o[3] || (o[3] = (d) => a(l).widget.props.type = d)
|
83
|
+
}, {
|
84
|
+
default: t(() => [
|
85
|
+
e(u, {
|
86
|
+
label: "primary",
|
87
|
+
value: "primary"
|
88
|
+
}),
|
89
|
+
e(u, {
|
90
|
+
label: "success",
|
91
|
+
value: "success"
|
92
|
+
}),
|
93
|
+
e(u, {
|
94
|
+
label: "info",
|
95
|
+
value: "info"
|
96
|
+
}),
|
97
|
+
e(u, {
|
98
|
+
label: "warning",
|
99
|
+
value: "warning"
|
100
|
+
}),
|
101
|
+
e(u, {
|
102
|
+
label: "danger",
|
103
|
+
value: "danger"
|
104
|
+
})
|
105
|
+
]),
|
106
|
+
_: 1
|
107
|
+
}, 8, ["modelValue"])
|
108
|
+
]),
|
109
|
+
_: 1
|
110
|
+
}),
|
111
|
+
e(n, { label: "是否朴素按钮" }, {
|
112
|
+
default: t(() => [
|
113
|
+
e(p, {
|
114
|
+
modelValue: a(l).widget.props.isPlain,
|
115
|
+
"onUpdate:modelValue": o[4] || (o[4] = (d) => a(l).widget.props.isPlain = d)
|
116
|
+
}, null, 8, ["modelValue"])
|
117
|
+
]),
|
118
|
+
_: 1
|
119
|
+
}),
|
120
|
+
e(n, { label: "是否文字按钮" }, {
|
121
|
+
default: t(() => [
|
122
|
+
e(p, {
|
123
|
+
modelValue: a(l).widget.props.isText,
|
124
|
+
"onUpdate:modelValue": o[5] || (o[5] = (d) => a(l).widget.props.isText = d)
|
125
|
+
}, null, 8, ["modelValue"])
|
126
|
+
]),
|
127
|
+
_: 1
|
128
|
+
}),
|
129
|
+
e(n, { label: "是否背景颜色" }, {
|
130
|
+
default: t(() => [
|
131
|
+
e(p, {
|
132
|
+
modelValue: a(l).widget.props.isTextBgColor,
|
133
|
+
"onUpdate:modelValue": o[6] || (o[6] = (d) => a(l).widget.props.isTextBgColor = d)
|
134
|
+
}, null, 8, ["modelValue"])
|
135
|
+
]),
|
136
|
+
_: 1
|
137
|
+
}),
|
138
|
+
e(n, { label: "是否链接按钮" }, {
|
139
|
+
default: t(() => [
|
140
|
+
e(p, {
|
141
|
+
modelValue: a(l).widget.props.isLink,
|
142
|
+
"onUpdate:modelValue": o[7] || (o[7] = (d) => a(l).widget.props.isLink = d)
|
143
|
+
}, null, 8, ["modelValue"])
|
144
|
+
]),
|
145
|
+
_: 1
|
146
|
+
}),
|
147
|
+
e(n, { label: "是否圆角按钮" }, {
|
148
|
+
default: t(() => [
|
149
|
+
e(p, {
|
150
|
+
modelValue: a(l).widget.props.isRound,
|
151
|
+
"onUpdate:modelValue": o[8] || (o[8] = (d) => a(l).widget.props.isRound = d)
|
152
|
+
}, null, 8, ["modelValue"])
|
153
|
+
]),
|
154
|
+
_: 1
|
155
|
+
}),
|
156
|
+
e(n, { label: "是否圆形按钮" }, {
|
157
|
+
default: t(() => [
|
158
|
+
e(p, {
|
159
|
+
modelValue: a(l).widget.props.isCircle,
|
160
|
+
"onUpdate:modelValue": o[9] || (o[9] = (d) => a(l).widget.props.isCircle = d)
|
161
|
+
}, null, 8, ["modelValue"])
|
162
|
+
]),
|
163
|
+
_: 1
|
164
|
+
}),
|
165
|
+
e(n, { label: "是否加载中" }, {
|
166
|
+
default: t(() => [
|
167
|
+
e(p, {
|
168
|
+
modelValue: a(l).widget.props.isLoading,
|
169
|
+
"onUpdate:modelValue": o[10] || (o[10] = (d) => a(l).widget.props.isLoading = d)
|
170
|
+
}, null, 8, ["modelValue"])
|
171
|
+
]),
|
172
|
+
_: 1
|
173
|
+
}),
|
174
|
+
e(n, { label: "是否禁用" }, {
|
175
|
+
default: t(() => [
|
176
|
+
e(p, {
|
177
|
+
modelValue: a(l).widget.props.disabled,
|
178
|
+
"onUpdate:modelValue": o[11] || (o[11] = (d) => a(l).widget.props.disabled = d)
|
179
|
+
}, null, 8, ["modelValue"])
|
180
|
+
]),
|
181
|
+
_: 1
|
182
|
+
})
|
183
|
+
], 64);
|
184
|
+
};
|
185
|
+
}
|
186
|
+
});
|
187
|
+
export {
|
188
|
+
_ as default
|
189
|
+
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { resolveComponent as o, openBlock as c, createBlock as i, withCtx as m, createVNode as d, unref as n } from "vue";
|
2
|
+
const _ = /* @__PURE__ */ Object.assign({ name: "config-homepage" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(l) {
|
15
|
+
let e = l;
|
16
|
+
return (s, t) => {
|
17
|
+
const p = o("el-input"), a = o("common-label-container");
|
18
|
+
return c(), i(a, { label: "页面高度" }, {
|
19
|
+
default: m(() => [
|
20
|
+
d(p, {
|
21
|
+
modelValue: n(e).widget.props.height,
|
22
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => n(e).widget.props.height = r),
|
23
|
+
placeholder: "填写页面高度"
|
24
|
+
}, null, 8, ["modelValue"])
|
25
|
+
]),
|
26
|
+
_: 1
|
27
|
+
});
|
28
|
+
};
|
29
|
+
}
|
30
|
+
});
|
31
|
+
export {
|
32
|
+
_ as default
|
33
|
+
};
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import { resolveComponent as a, openBlock as c, createElementBlock as _, Fragment as b, createVNode as e, withCtx as d, unref as t } from "vue";
|
2
|
+
const V = /* @__PURE__ */ Object.assign({ name: "config-select" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(s) {
|
15
|
+
let l = s;
|
16
|
+
return (g, o) => {
|
17
|
+
const u = a("el-option"), i = a("el-select"), p = a("common-label-container"), m = a("el-input"), r = a("el-switch");
|
18
|
+
return c(), _(b, null, [
|
19
|
+
e(p, { label: "组件尺寸" }, {
|
20
|
+
default: d(() => [
|
21
|
+
e(i, {
|
22
|
+
modelValue: t(l).widget.props.size,
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => t(l).widget.props.size = n)
|
24
|
+
}, {
|
25
|
+
default: d(() => [
|
26
|
+
e(u, {
|
27
|
+
label: "大尺寸",
|
28
|
+
value: "large"
|
29
|
+
}),
|
30
|
+
e(u, {
|
31
|
+
label: "默认",
|
32
|
+
value: "default"
|
33
|
+
}),
|
34
|
+
e(u, {
|
35
|
+
label: "小尺寸",
|
36
|
+
value: "small"
|
37
|
+
})
|
38
|
+
]),
|
39
|
+
_: 1
|
40
|
+
}, 8, ["modelValue"])
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
e(p, { label: "占位文字" }, {
|
45
|
+
default: d(() => [
|
46
|
+
e(m, {
|
47
|
+
modelValue: t(l).widget.props.placeholder,
|
48
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => t(l).widget.props.placeholder = n),
|
49
|
+
placeholder: "填写占位文字"
|
50
|
+
}, null, 8, ["modelValue"])
|
51
|
+
]),
|
52
|
+
_: 1
|
53
|
+
}),
|
54
|
+
e(p, { label: "是否必填" }, {
|
55
|
+
default: d(() => [
|
56
|
+
e(r, {
|
57
|
+
modelValue: t(l).widget.props.required,
|
58
|
+
"onUpdate:modelValue": o[2] || (o[2] = (n) => t(l).widget.props.required = n)
|
59
|
+
}, null, 8, ["modelValue"])
|
60
|
+
]),
|
61
|
+
_: 1
|
62
|
+
}),
|
63
|
+
e(p, { label: "是否禁用" }, {
|
64
|
+
default: d(() => [
|
65
|
+
e(r, {
|
66
|
+
modelValue: t(l).widget.props.disabled,
|
67
|
+
"onUpdate:modelValue": o[3] || (o[3] = (n) => t(l).widget.props.disabled = n)
|
68
|
+
}, null, 8, ["modelValue"])
|
69
|
+
]),
|
70
|
+
_: 1
|
71
|
+
})
|
72
|
+
], 64);
|
73
|
+
};
|
74
|
+
}
|
75
|
+
});
|
76
|
+
export {
|
77
|
+
V as default
|
78
|
+
};
|
@@ -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
|
+
};
|
@@ -14,7 +14,7 @@ const x = /* @__PURE__ */ Object.assign({ name: "config-input" }, {
|
|
14
14
|
setup(s) {
|
15
15
|
let l = s;
|
16
16
|
return (f, o) => {
|
17
|
-
const u = n("el-option"), i = n("el-select"), a = n("common-label-container"),
|
17
|
+
const u = n("el-option"), i = n("el-select"), a = n("common-label-container"), r = n("el-input"), V = n("el-input-number"), m = n("el-switch");
|
18
18
|
return g(), w(b, null, [
|
19
19
|
e(a, { label: "组件尺寸" }, {
|
20
20
|
default: p(() => [
|
@@ -64,7 +64,7 @@ const x = /* @__PURE__ */ Object.assign({ name: "config-input" }, {
|
|
64
64
|
}),
|
65
65
|
e(a, { label: "占位文字" }, {
|
66
66
|
default: p(() => [
|
67
|
-
e(
|
67
|
+
e(r, {
|
68
68
|
modelValue: t(l).widget.props.placeholder,
|
69
69
|
"onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.placeholder = d),
|
70
70
|
placeholder: "填写占位文字"
|
@@ -74,7 +74,7 @@ const x = /* @__PURE__ */ Object.assign({ name: "config-input" }, {
|
|
74
74
|
}),
|
75
75
|
e(a, { label: "前置内容文字" }, {
|
76
76
|
default: p(() => [
|
77
|
-
e(
|
77
|
+
e(r, {
|
78
78
|
modelValue: t(l).widget.props.prependText,
|
79
79
|
"onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.prependText = d),
|
80
80
|
placeholder: "填写末尾按钮文字"
|
@@ -84,7 +84,7 @@ const x = /* @__PURE__ */ Object.assign({ name: "config-input" }, {
|
|
84
84
|
}),
|
85
85
|
e(a, { label: "末尾按钮文字" }, {
|
86
86
|
default: p(() => [
|
87
|
-
e(
|
87
|
+
e(r, {
|
88
88
|
modelValue: t(l).widget.props.appendText,
|
89
89
|
"onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.appendText = d),
|
90
90
|
placeholder: "填写末尾按钮文字"
|
@@ -107,7 +107,7 @@ const x = /* @__PURE__ */ Object.assign({ name: "config-input" }, {
|
|
107
107
|
}),
|
108
108
|
e(a, { label: "是否去空格" }, {
|
109
109
|
default: p(() => [
|
110
|
-
e(
|
110
|
+
e(m, {
|
111
111
|
modelValue: t(l).widget.props.isTrim,
|
112
112
|
"onUpdate:modelValue": o[6] || (o[6] = (d) => t(l).widget.props.isTrim = d)
|
113
113
|
}, null, 8, ["modelValue"])
|
@@ -116,7 +116,7 @@ const x = /* @__PURE__ */ Object.assign({ name: "config-input" }, {
|
|
116
116
|
}),
|
117
117
|
e(a, { label: "是否必填" }, {
|
118
118
|
default: p(() => [
|
119
|
-
e(
|
119
|
+
e(m, {
|
120
120
|
modelValue: t(l).widget.props.required,
|
121
121
|
"onUpdate:modelValue": o[7] || (o[7] = (d) => t(l).widget.props.required = d)
|
122
122
|
}, null, 8, ["modelValue"])
|
@@ -125,7 +125,7 @@ const x = /* @__PURE__ */ Object.assign({ name: "config-input" }, {
|
|
125
125
|
}),
|
126
126
|
e(a, { label: "是否只读" }, {
|
127
127
|
default: p(() => [
|
128
|
-
e(
|
128
|
+
e(m, {
|
129
129
|
modelValue: t(l).widget.props.readonly,
|
130
130
|
"onUpdate:modelValue": o[8] || (o[8] = (d) => t(l).widget.props.readonly = d)
|
131
131
|
}, null, 8, ["modelValue"])
|
@@ -134,12 +134,21 @@ const x = /* @__PURE__ */ Object.assign({ name: "config-input" }, {
|
|
134
134
|
}),
|
135
135
|
e(a, { label: "是否禁用" }, {
|
136
136
|
default: p(() => [
|
137
|
-
e(
|
137
|
+
e(m, {
|
138
138
|
modelValue: t(l).widget.props.disabled,
|
139
139
|
"onUpdate:modelValue": o[9] || (o[9] = (d) => t(l).widget.props.disabled = d)
|
140
140
|
}, null, 8, ["modelValue"])
|
141
141
|
]),
|
142
142
|
_: 1
|
143
|
+
}),
|
144
|
+
e(a, { label: "显示限制字数" }, {
|
145
|
+
default: p(() => [
|
146
|
+
e(m, {
|
147
|
+
modelValue: t(l).widget.props.showLimit,
|
148
|
+
"onUpdate:modelValue": o[10] || (o[10] = (d) => t(l).widget.props.showLimit = d)
|
149
|
+
}, null, 8, ["modelValue"])
|
150
|
+
]),
|
151
|
+
_: 1
|
143
152
|
})
|
144
153
|
], 64);
|
145
154
|
};
|