sun-form-v3 1.0.120 → 1.0.121
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{index-iEzHMtJ6.js → index-B4f_u0Pp.js} +1 -1
- package/dist/{index-CDkXcvXV.js → index-BJVHRSvg.js} +1 -1
- package/dist/{index-BDfi_Ccr.js → index-D5Ty838k.js} +1 -1
- package/dist/{index-Cot8YloM.js → index-DVRd4rza.js} +1 -1
- package/dist/{index-seZY97YB.js → index-DbabiZa-.js} +1 -1
- package/dist/{index-BjwE1aQQ.js → index-Dr4QV2B_.js} +10179 -10119
- package/dist/index-kzElMYkk.js +256 -0
- package/dist/{index-BGwr07rO.js → index-y-p3rIHa.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +99 -99
- package/package.json +1 -1
- package/dist/index-j-KEXzR8.js +0 -183
@@ -0,0 +1,256 @@
|
|
1
|
+
import { resolveComponent as n, openBlock as b, createElementBlock as w, Fragment as g, createVNode as e, withCtx as p, unref as a, createBlock as f, createCommentVNode as v } from "vue";
|
2
|
+
const U = /* @__PURE__ */ Object.assign({ name: "config-input" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(V) {
|
15
|
+
let l = V;
|
16
|
+
return (_, o) => {
|
17
|
+
const d = n("el-option"), m = n("el-select"), u = n("common-label-container"), i = n("el-input"), s = n("el-input-number"), r = n("el-switch");
|
18
|
+
return b(), w(g, null, [
|
19
|
+
e(u, { label: "组件尺寸" }, {
|
20
|
+
default: p(() => [
|
21
|
+
e(m, {
|
22
|
+
modelValue: a(l).widget.props.size,
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => a(l).widget.props.size = t)
|
24
|
+
}, {
|
25
|
+
default: p(() => [
|
26
|
+
e(d, {
|
27
|
+
label: "大尺寸",
|
28
|
+
value: "large"
|
29
|
+
}),
|
30
|
+
e(d, {
|
31
|
+
label: "默认",
|
32
|
+
value: "default"
|
33
|
+
}),
|
34
|
+
e(d, {
|
35
|
+
label: "小尺寸",
|
36
|
+
value: "small"
|
37
|
+
})
|
38
|
+
]),
|
39
|
+
_: 1
|
40
|
+
}, 8, ["modelValue"])
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
e(u, { label: "组件类型" }, {
|
45
|
+
default: p(() => [
|
46
|
+
e(m, {
|
47
|
+
modelValue: a(l).widget.props.type,
|
48
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => a(l).widget.props.type = t)
|
49
|
+
}, {
|
50
|
+
default: p(() => [
|
51
|
+
e(d, {
|
52
|
+
label: "文字",
|
53
|
+
value: "text"
|
54
|
+
}),
|
55
|
+
e(d, {
|
56
|
+
label: "密码",
|
57
|
+
value: "password"
|
58
|
+
}),
|
59
|
+
e(d, {
|
60
|
+
label: "文本域",
|
61
|
+
value: "textarea"
|
62
|
+
}),
|
63
|
+
e(d, {
|
64
|
+
label: "数字",
|
65
|
+
value: "number"
|
66
|
+
})
|
67
|
+
]),
|
68
|
+
_: 1
|
69
|
+
}, 8, ["modelValue"])
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
}),
|
73
|
+
e(u, { label: "占位文字" }, {
|
74
|
+
default: p(() => [
|
75
|
+
e(i, {
|
76
|
+
modelValue: a(l).widget.props.placeholder,
|
77
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => a(l).widget.props.placeholder = t),
|
78
|
+
placeholder: "填写占位文字"
|
79
|
+
}, null, 8, ["modelValue"])
|
80
|
+
]),
|
81
|
+
_: 1
|
82
|
+
}),
|
83
|
+
e(u, { label: "前置内容文字" }, {
|
84
|
+
default: p(() => [
|
85
|
+
e(i, {
|
86
|
+
modelValue: a(l).widget.props.prependText,
|
87
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => a(l).widget.props.prependText = t),
|
88
|
+
placeholder: "填写末尾按钮文字"
|
89
|
+
}, null, 8, ["modelValue"])
|
90
|
+
]),
|
91
|
+
_: 1
|
92
|
+
}),
|
93
|
+
e(u, { label: "末尾按钮文字" }, {
|
94
|
+
default: p(() => [
|
95
|
+
e(i, {
|
96
|
+
modelValue: a(l).widget.props.appendText,
|
97
|
+
"onUpdate:modelValue": o[4] || (o[4] = (t) => a(l).widget.props.appendText = t),
|
98
|
+
placeholder: "填写末尾按钮文字"
|
99
|
+
}, null, 8, ["modelValue"])
|
100
|
+
]),
|
101
|
+
_: 1
|
102
|
+
}),
|
103
|
+
e(u, { label: "最大输入长度" }, {
|
104
|
+
default: p(() => [
|
105
|
+
e(s, {
|
106
|
+
class: "w-full",
|
107
|
+
placeholder: "填写最大输入长度",
|
108
|
+
modelValue: a(l).widget.props.maxlength,
|
109
|
+
"onUpdate:modelValue": o[5] || (o[5] = (t) => a(l).widget.props.maxlength = t),
|
110
|
+
min: 0,
|
111
|
+
"controls-position": "right"
|
112
|
+
}, null, 8, ["modelValue"])
|
113
|
+
]),
|
114
|
+
_: 1
|
115
|
+
}),
|
116
|
+
a(l).widget.props.type == "textarea" ? (b(), f(u, {
|
117
|
+
key: 0,
|
118
|
+
label: "行数"
|
119
|
+
}, {
|
120
|
+
default: p(() => [
|
121
|
+
e(s, {
|
122
|
+
class: "w-full",
|
123
|
+
placeholder: "填写行数",
|
124
|
+
modelValue: a(l).widget.props.rows,
|
125
|
+
"onUpdate:modelValue": o[6] || (o[6] = (t) => a(l).widget.props.rows = t),
|
126
|
+
min: 0,
|
127
|
+
"controls-position": "right"
|
128
|
+
}, null, 8, ["modelValue"])
|
129
|
+
]),
|
130
|
+
_: 1
|
131
|
+
})) : v("", !0),
|
132
|
+
e(u, { label: "常用验证" }, {
|
133
|
+
default: p(() => [
|
134
|
+
e(m, {
|
135
|
+
modelValue: a(l).widget.props.validate,
|
136
|
+
"onUpdate:modelValue": o[7] || (o[7] = (t) => a(l).widget.props.validate = t)
|
137
|
+
}, {
|
138
|
+
default: p(() => [
|
139
|
+
e(d, {
|
140
|
+
label: "数字",
|
141
|
+
value: "数字"
|
142
|
+
}),
|
143
|
+
e(d, {
|
144
|
+
label: "字母",
|
145
|
+
value: "字母"
|
146
|
+
}),
|
147
|
+
e(d, {
|
148
|
+
label: "数字字母",
|
149
|
+
value: "数字字母"
|
150
|
+
}),
|
151
|
+
e(d, {
|
152
|
+
label: "手机号",
|
153
|
+
value: "手机号"
|
154
|
+
}),
|
155
|
+
e(d, {
|
156
|
+
label: "邮箱",
|
157
|
+
value: "邮箱"
|
158
|
+
}),
|
159
|
+
e(d, {
|
160
|
+
label: "网址",
|
161
|
+
value: "网址"
|
162
|
+
}),
|
163
|
+
e(d, {
|
164
|
+
label: "非中文字符",
|
165
|
+
value: "非中文字符"
|
166
|
+
}),
|
167
|
+
e(d, {
|
168
|
+
label: "仅中文字符",
|
169
|
+
value: "仅中文字符"
|
170
|
+
}),
|
171
|
+
e(d, {
|
172
|
+
label: "正数",
|
173
|
+
value: "正数"
|
174
|
+
}),
|
175
|
+
e(d, {
|
176
|
+
label: "正整数",
|
177
|
+
value: "正整数"
|
178
|
+
}),
|
179
|
+
e(d, {
|
180
|
+
label: "负整数",
|
181
|
+
value: "负整数"
|
182
|
+
}),
|
183
|
+
e(d, {
|
184
|
+
label: "浮点数",
|
185
|
+
value: "浮点数"
|
186
|
+
}),
|
187
|
+
e(d, {
|
188
|
+
label: "日期",
|
189
|
+
value: "日期"
|
190
|
+
}),
|
191
|
+
e(d, {
|
192
|
+
label: "时间",
|
193
|
+
value: "时间"
|
194
|
+
}),
|
195
|
+
e(d, {
|
196
|
+
label: "身份证号",
|
197
|
+
value: "身份证号"
|
198
|
+
})
|
199
|
+
]),
|
200
|
+
_: 1
|
201
|
+
}, 8, ["modelValue"])
|
202
|
+
]),
|
203
|
+
_: 1
|
204
|
+
}),
|
205
|
+
e(u, { label: "是否去空格" }, {
|
206
|
+
default: p(() => [
|
207
|
+
e(r, {
|
208
|
+
modelValue: a(l).widget.props.isTrim,
|
209
|
+
"onUpdate:modelValue": o[8] || (o[8] = (t) => a(l).widget.props.isTrim = t)
|
210
|
+
}, null, 8, ["modelValue"])
|
211
|
+
]),
|
212
|
+
_: 1
|
213
|
+
}),
|
214
|
+
e(u, { label: "是否必填" }, {
|
215
|
+
default: p(() => [
|
216
|
+
e(r, {
|
217
|
+
modelValue: a(l).widget.props.required,
|
218
|
+
"onUpdate:modelValue": o[9] || (o[9] = (t) => a(l).widget.props.required = t)
|
219
|
+
}, null, 8, ["modelValue"])
|
220
|
+
]),
|
221
|
+
_: 1
|
222
|
+
}),
|
223
|
+
e(u, { label: "是否只读" }, {
|
224
|
+
default: p(() => [
|
225
|
+
e(r, {
|
226
|
+
modelValue: a(l).widget.props.readonly,
|
227
|
+
"onUpdate:modelValue": o[10] || (o[10] = (t) => a(l).widget.props.readonly = t)
|
228
|
+
}, null, 8, ["modelValue"])
|
229
|
+
]),
|
230
|
+
_: 1
|
231
|
+
}),
|
232
|
+
e(u, { label: "是否禁用" }, {
|
233
|
+
default: p(() => [
|
234
|
+
e(r, {
|
235
|
+
modelValue: a(l).widget.props.disabled,
|
236
|
+
"onUpdate:modelValue": o[11] || (o[11] = (t) => a(l).widget.props.disabled = t)
|
237
|
+
}, null, 8, ["modelValue"])
|
238
|
+
]),
|
239
|
+
_: 1
|
240
|
+
}),
|
241
|
+
e(u, { label: "显示限制字数" }, {
|
242
|
+
default: p(() => [
|
243
|
+
e(r, {
|
244
|
+
modelValue: a(l).widget.props.showLimit,
|
245
|
+
"onUpdate:modelValue": o[12] || (o[12] = (t) => a(l).widget.props.showLimit = t)
|
246
|
+
}, null, 8, ["modelValue"])
|
247
|
+
]),
|
248
|
+
_: 1
|
249
|
+
})
|
250
|
+
], 64);
|
251
|
+
};
|
252
|
+
}
|
253
|
+
});
|
254
|
+
export {
|
255
|
+
U as default
|
256
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as z, ref as x, resolveComponent as p, openBlock as k, createElementBlock as U, Fragment as O, createVNode as e, withCtx as l, createTextVNode as V, unref as u, isRef as J, createElementVNode as m } from "vue";
|
2
|
-
import { _ as E, c as H } from "./index-
|
2
|
+
import { _ as E, c as H } from "./index-Dr4QV2B_.js";
|
3
3
|
const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|