sinosoft-common-form 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common-form.es.js +78 -78
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as
|
|
1
|
+
import { reactive as W, ref as Q, shallowRef as B, h as P, computed as R, onMounted as Z, watch as G, toRefs as J, resolveComponent as k, openBlock as o, createBlock as u, mergeProps as X, withModifiers as $, withCtx as d, createVNode as b, createElementBlock as s, Fragment as V, renderList as U, withDirectives as ee, createElementVNode as w, normalizeStyle as M, toDisplayString as y, createTextVNode as f, createCommentVNode as D, renderSlot as C, withKeys as O, normalizeClass as K, createSlots as le, vShow as ae, pushScopeId as oe, popScopeId as de } from "vue";
|
|
2
2
|
const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", ne = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
@@ -9,47 +9,47 @@ const se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
9
9
|
options: Object
|
|
10
10
|
},
|
|
11
11
|
setup(r, { emit: N }) {
|
|
12
|
-
const g =
|
|
12
|
+
const g = W({
|
|
13
13
|
model: {}
|
|
14
|
-
}), l =
|
|
14
|
+
}), l = Q(null), z = B({
|
|
15
15
|
render() {
|
|
16
16
|
return P("img", {
|
|
17
17
|
src: se
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
}), F = R(() => Object.assign([], r.options)),
|
|
20
|
+
}), F = R(() => Object.assign([], r.options)), c = () => {
|
|
21
21
|
g.model = r.model;
|
|
22
|
-
}, x = (t,
|
|
23
|
-
l.value && (
|
|
22
|
+
}, x = (t, p, e) => {
|
|
23
|
+
l.value && (p ? l.value.validate((v) => {
|
|
24
24
|
if (v)
|
|
25
25
|
N(e || "submit", g.model, t);
|
|
26
26
|
else
|
|
27
27
|
return !1;
|
|
28
28
|
}) : e === "reset" ? l.value.resetFields() : N(e || "submit", g.model, t));
|
|
29
|
-
}, j = (t,
|
|
30
|
-
N("selectChange", t,
|
|
31
|
-
}, I = (t,
|
|
32
|
-
N("radioChange", t,
|
|
33
|
-
}, L = (t,
|
|
34
|
-
N("checkChange", t,
|
|
35
|
-
}, A = (t,
|
|
36
|
-
const e = g.model[
|
|
37
|
-
e !== 1 && (e > 1 && g.model[
|
|
38
|
-
}, S = (t,
|
|
39
|
-
x(t,
|
|
40
|
-
}, T = (t,
|
|
41
|
-
t && (
|
|
42
|
-
}, E = (t) => {
|
|
43
|
-
N("dateChange", t);
|
|
29
|
+
}, j = (t, p) => {
|
|
30
|
+
N("selectChange", t, p);
|
|
31
|
+
}, I = (t, p) => {
|
|
32
|
+
N("radioChange", t, p);
|
|
33
|
+
}, L = (t, p) => {
|
|
34
|
+
N("checkChange", t, p);
|
|
35
|
+
}, A = (t, p) => {
|
|
36
|
+
const e = g.model[p].length;
|
|
37
|
+
e !== 1 && (e > 1 && g.model[p].shift(), N("checkChange", t, p));
|
|
38
|
+
}, S = (t, p, e) => {
|
|
39
|
+
x(t, p, e);
|
|
40
|
+
}, T = (t, p) => {
|
|
41
|
+
t && (p == null ? void 0 : p.key) === "Enter" && x(void 0, !0, "submit");
|
|
42
|
+
}, E = (t, p) => {
|
|
43
|
+
N("dateChange", t, p);
|
|
44
44
|
}, Y = (t) => {
|
|
45
45
|
l.value.resetFields(t);
|
|
46
46
|
}, q = (t) => {
|
|
47
47
|
l.value.clearValidate(t);
|
|
48
48
|
};
|
|
49
49
|
return Z(() => {
|
|
50
|
-
|
|
51
|
-
}), G(() => r.fieldList, (t,
|
|
52
|
-
t !==
|
|
50
|
+
c(), l.value.resetFields();
|
|
51
|
+
}), G(() => r.fieldList, (t, p) => {
|
|
52
|
+
t !== p && c();
|
|
53
53
|
}), {
|
|
54
54
|
...J(g),
|
|
55
55
|
formRef: l,
|
|
@@ -74,7 +74,7 @@ const re = (r, N) => {
|
|
|
74
74
|
for (const [l, z] of N)
|
|
75
75
|
g[l] = z;
|
|
76
76
|
return g;
|
|
77
|
-
}, te = (r) => (oe("data-v-
|
|
77
|
+
}, te = (r) => (oe("data-v-239b1353"), r = r(), de(), r), ue = { class: "header-title" }, pe = { class: "title-content" }, ce = {
|
|
78
78
|
key: 0,
|
|
79
79
|
class: "custom-required"
|
|
80
80
|
}, ye = {
|
|
@@ -115,8 +115,8 @@ const re = (r, N) => {
|
|
|
115
115
|
class: "custom-required"
|
|
116
116
|
};
|
|
117
117
|
function we(r, N, g, l, z, F) {
|
|
118
|
-
const
|
|
119
|
-
return o(), u(
|
|
118
|
+
const c = k("el-form-item"), x = k("el-input"), j = k("el-radio"), I = k("el-radio-group"), L = k("el-checkbox"), A = k("el-checkbox-group"), S = k("el-option"), T = k("el-select"), E = k("el-date-picker"), Y = k("el-col"), q = k("el-row"), t = k("sinosoft-common-button"), p = k("el-form");
|
|
119
|
+
return o(), u(p, X({
|
|
120
120
|
"hide-required-asterisk": "",
|
|
121
121
|
onSubmit: N[0] || (N[0] = $(() => {
|
|
122
122
|
}, ["prevent"])),
|
|
@@ -140,14 +140,14 @@ function we(r, N, g, l, z, F) {
|
|
|
140
140
|
w("div", {
|
|
141
141
|
style: M(e.style)
|
|
142
142
|
}, [
|
|
143
|
-
e.type === "title" ? (o(), u(
|
|
143
|
+
e.type === "title" ? (o(), u(c, { key: 0 }, {
|
|
144
144
|
default: d(() => [
|
|
145
145
|
w("div", ue, [
|
|
146
|
-
w("span", pe,
|
|
146
|
+
w("span", pe, y(e.title), 1)
|
|
147
147
|
])
|
|
148
148
|
]),
|
|
149
149
|
_: 2
|
|
150
|
-
}, 1024)) : e.type === "name" ? (o(), u(
|
|
150
|
+
}, 1024)) : e.type === "name" ? (o(), u(c, {
|
|
151
151
|
key: 1,
|
|
152
152
|
label: e.label,
|
|
153
153
|
disabled: e.disabled || l.formOptions.isDisabled,
|
|
@@ -158,19 +158,19 @@ function we(r, N, g, l, z, F) {
|
|
|
158
158
|
key: 0,
|
|
159
159
|
style: M(e.labelStyle)
|
|
160
160
|
}, [
|
|
161
|
-
f(
|
|
161
|
+
f(y(e.label) + " ", 1),
|
|
162
162
|
e.required ? (o(), s("span", ce, "*")) : D("", !0)
|
|
163
163
|
], 4))
|
|
164
164
|
]),
|
|
165
165
|
default: d(() => [
|
|
166
|
-
b(
|
|
166
|
+
b(c, {
|
|
167
167
|
rules: e.isHide ? [] : e.rules.nameEnFamily,
|
|
168
168
|
prop: e.field.nameEnFamily,
|
|
169
169
|
class: "item-name"
|
|
170
170
|
}, {
|
|
171
171
|
default: d(() => [
|
|
172
172
|
b(x, {
|
|
173
|
-
maxlength: e.
|
|
173
|
+
maxlength: e.maxlengthNameEnFamily,
|
|
174
174
|
modelValue: l.states.model[e.field.nameEnFamily],
|
|
175
175
|
"onUpdate:modelValue": (a) => l.states.model[e.field.nameEnFamily] = a,
|
|
176
176
|
"show-word-limit": "",
|
|
@@ -183,14 +183,14 @@ function we(r, N, g, l, z, F) {
|
|
|
183
183
|
]),
|
|
184
184
|
_: 2
|
|
185
185
|
}, 1032, ["rules", "prop"]),
|
|
186
|
-
b(
|
|
186
|
+
b(c, {
|
|
187
187
|
rules: e.isHide ? [] : e.rules.nameEn,
|
|
188
188
|
prop: e.field.nameEn,
|
|
189
189
|
class: "item-name-right"
|
|
190
190
|
}, {
|
|
191
191
|
default: d(() => [
|
|
192
192
|
b(x, {
|
|
193
|
-
maxlength: e.
|
|
193
|
+
maxlength: e.maxlengthNameEn,
|
|
194
194
|
modelValue: l.states.model[e.field.nameEn],
|
|
195
195
|
"onUpdate:modelValue": (a) => l.states.model[e.field.nameEn] = a,
|
|
196
196
|
readonly: e.readonly,
|
|
@@ -202,14 +202,14 @@ function we(r, N, g, l, z, F) {
|
|
|
202
202
|
]),
|
|
203
203
|
_: 2
|
|
204
204
|
}, 1032, ["rules", "prop"]),
|
|
205
|
-
b(
|
|
205
|
+
b(c, {
|
|
206
206
|
rules: e.isHide ? [] : e.rules.nameChFamily,
|
|
207
207
|
prop: e.field.nameChFamily,
|
|
208
208
|
class: "item-name"
|
|
209
209
|
}, {
|
|
210
210
|
default: d(() => [
|
|
211
211
|
b(x, {
|
|
212
|
-
maxlength: e.
|
|
212
|
+
maxlength: e.maxlengthNameChFamily,
|
|
213
213
|
modelValue: l.states.model[e.field.nameChFamily],
|
|
214
214
|
"onUpdate:modelValue": (a) => l.states.model[e.field.nameChFamily] = a,
|
|
215
215
|
readonly: e.readonly,
|
|
@@ -221,14 +221,14 @@ function we(r, N, g, l, z, F) {
|
|
|
221
221
|
]),
|
|
222
222
|
_: 2
|
|
223
223
|
}, 1032, ["rules", "prop"]),
|
|
224
|
-
b(
|
|
224
|
+
b(c, {
|
|
225
225
|
rules: e.isHide ? [] : e.rules.nameCh,
|
|
226
226
|
prop: e.field.nameCh,
|
|
227
227
|
class: "item-name-right"
|
|
228
228
|
}, {
|
|
229
229
|
default: d(() => [
|
|
230
230
|
b(x, {
|
|
231
|
-
maxlength: e.
|
|
231
|
+
maxlength: e.maxlengthNameCh,
|
|
232
232
|
modelValue: l.states.model[e.field.nameCh],
|
|
233
233
|
"onUpdate:modelValue": (a) => l.states.model[e.field.nameCh] = a,
|
|
234
234
|
readonly: e.readonly,
|
|
@@ -242,7 +242,7 @@ function we(r, N, g, l, z, F) {
|
|
|
242
242
|
}, 1032, ["rules", "prop"])
|
|
243
243
|
]),
|
|
244
244
|
_: 2
|
|
245
|
-
}, 1032, ["label", "disabled"])) : e.type === "gender" ? (o(), u(
|
|
245
|
+
}, 1032, ["label", "disabled"])) : e.type === "gender" ? (o(), u(c, {
|
|
246
246
|
key: 2,
|
|
247
247
|
label: e.label,
|
|
248
248
|
rules: e.isHide ? [] : e.rules,
|
|
@@ -253,7 +253,7 @@ function we(r, N, g, l, z, F) {
|
|
|
253
253
|
key: 0,
|
|
254
254
|
style: M(e.labelStyle)
|
|
255
255
|
}, [
|
|
256
|
-
f(
|
|
256
|
+
f(y(e.label) + " ", 1),
|
|
257
257
|
e.required ? (o(), s("span", ye, "*")) : D("", !0)
|
|
258
258
|
], 4))
|
|
259
259
|
]),
|
|
@@ -290,7 +290,7 @@ function we(r, N, g, l, z, F) {
|
|
|
290
290
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
291
291
|
]),
|
|
292
292
|
_: 2
|
|
293
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (o(), u(
|
|
293
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (o(), u(c, {
|
|
294
294
|
key: 3,
|
|
295
295
|
label: e.label,
|
|
296
296
|
rules: e.isHide ? [] : e.rules,
|
|
@@ -302,7 +302,7 @@ function we(r, N, g, l, z, F) {
|
|
|
302
302
|
key: 0,
|
|
303
303
|
style: M(e.labelStyle)
|
|
304
304
|
}, [
|
|
305
|
-
f(
|
|
305
|
+
f(y(e.label) + " ", 1),
|
|
306
306
|
e.required ? (o(), s("span", ie, "*")) : D("", !0)
|
|
307
307
|
], 4))
|
|
308
308
|
]),
|
|
@@ -326,7 +326,7 @@ function we(r, N, g, l, z, F) {
|
|
|
326
326
|
default: d(() => {
|
|
327
327
|
var _;
|
|
328
328
|
return [
|
|
329
|
-
f(
|
|
329
|
+
f(y(n[((_ = e.options) == null ? void 0 : _.labelkey) || "name"]), 1)
|
|
330
330
|
];
|
|
331
331
|
}),
|
|
332
332
|
_: 2
|
|
@@ -338,7 +338,7 @@ function we(r, N, g, l, z, F) {
|
|
|
338
338
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
339
339
|
]),
|
|
340
340
|
_: 2
|
|
341
|
-
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "radioNote" ? (o(), u(
|
|
341
|
+
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "radioNote" ? (o(), u(c, {
|
|
342
342
|
key: 4,
|
|
343
343
|
label: e.label,
|
|
344
344
|
rules: e.isHide ? [] : e.rules,
|
|
@@ -347,8 +347,8 @@ function we(r, N, g, l, z, F) {
|
|
|
347
347
|
}, {
|
|
348
348
|
default: d(() => [
|
|
349
349
|
w("div", null, [
|
|
350
|
-
w("span", he,
|
|
351
|
-
w("span", fe,
|
|
350
|
+
w("span", he, y(e.labelBefore), 1),
|
|
351
|
+
w("span", fe, y(e.labelNode), 1),
|
|
352
352
|
e.required ? (o(), s("span", Me, "*")) : D("", !0)
|
|
353
353
|
]),
|
|
354
354
|
b(I, {
|
|
@@ -370,7 +370,7 @@ function we(r, N, g, l, z, F) {
|
|
|
370
370
|
default: d(() => {
|
|
371
371
|
var _;
|
|
372
372
|
return [
|
|
373
|
-
f(
|
|
373
|
+
f(y(n[((_ = e.options) == null ? void 0 : _.labelkey) || "name"]), 1)
|
|
374
374
|
];
|
|
375
375
|
}),
|
|
376
376
|
_: 2
|
|
@@ -382,7 +382,7 @@ function we(r, N, g, l, z, F) {
|
|
|
382
382
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
383
383
|
]),
|
|
384
384
|
_: 2
|
|
385
|
-
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "checkbox" ? (o(), u(
|
|
385
|
+
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "checkbox" ? (o(), u(c, {
|
|
386
386
|
key: 5,
|
|
387
387
|
label: e.label,
|
|
388
388
|
rules: e.isHide ? [] : e.rules,
|
|
@@ -393,7 +393,7 @@ function we(r, N, g, l, z, F) {
|
|
|
393
393
|
key: 0,
|
|
394
394
|
style: M(e.labelStyle)
|
|
395
395
|
}, [
|
|
396
|
-
f(
|
|
396
|
+
f(y(e.label) + " ", 1),
|
|
397
397
|
e.required ? (o(), s("span", ge, "*")) : D("", !0)
|
|
398
398
|
], 4))
|
|
399
399
|
]),
|
|
@@ -419,7 +419,7 @@ function we(r, N, g, l, z, F) {
|
|
|
419
419
|
default: d(() => {
|
|
420
420
|
var _;
|
|
421
421
|
return [
|
|
422
|
-
f(
|
|
422
|
+
f(y(n[((_ = e.options) == null ? void 0 : _.labelkey) || "name"]), 1)
|
|
423
423
|
];
|
|
424
424
|
}),
|
|
425
425
|
_: 2
|
|
@@ -431,7 +431,7 @@ function we(r, N, g, l, z, F) {
|
|
|
431
431
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
432
432
|
]),
|
|
433
433
|
_: 2
|
|
434
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "checkboxRadio" ? (o(), u(
|
|
434
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "checkboxRadio" ? (o(), u(c, {
|
|
435
435
|
key: 6,
|
|
436
436
|
label: e.label,
|
|
437
437
|
rules: e.isHide ? [] : e.rules,
|
|
@@ -442,7 +442,7 @@ function we(r, N, g, l, z, F) {
|
|
|
442
442
|
key: 0,
|
|
443
443
|
style: M(e.labelStyle)
|
|
444
444
|
}, [
|
|
445
|
-
f(
|
|
445
|
+
f(y(e.label) + " ", 1),
|
|
446
446
|
e.required ? (o(), s("span", _e, "*")) : D("", !0)
|
|
447
447
|
], 4))
|
|
448
448
|
]),
|
|
@@ -468,7 +468,7 @@ function we(r, N, g, l, z, F) {
|
|
|
468
468
|
default: d(() => {
|
|
469
469
|
var _;
|
|
470
470
|
return [
|
|
471
|
-
f(
|
|
471
|
+
f(y(n[((_ = e.options) == null ? void 0 : _.labelkey) || "name"]), 1)
|
|
472
472
|
];
|
|
473
473
|
}),
|
|
474
474
|
_: 2
|
|
@@ -480,7 +480,7 @@ function we(r, N, g, l, z, F) {
|
|
|
480
480
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
481
481
|
]),
|
|
482
482
|
_: 2
|
|
483
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (o(), u(
|
|
483
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (o(), u(c, {
|
|
484
484
|
key: 7,
|
|
485
485
|
label: e.label,
|
|
486
486
|
rules: e.isHide ? [] : e.rules,
|
|
@@ -492,7 +492,7 @@ function we(r, N, g, l, z, F) {
|
|
|
492
492
|
key: 0,
|
|
493
493
|
style: M(e.labelStyle)
|
|
494
494
|
}, [
|
|
495
|
-
f(
|
|
495
|
+
f(y(e.label) + " ", 1),
|
|
496
496
|
e.required ? (o(), s("span", Ne, "*")) : D("", !0)
|
|
497
497
|
], 4))
|
|
498
498
|
]),
|
|
@@ -523,10 +523,10 @@ function we(r, N, g, l, z, F) {
|
|
|
523
523
|
w("div", {
|
|
524
524
|
class: "item_tips_blow",
|
|
525
525
|
style: M(e.tipsBlowStyle)
|
|
526
|
-
},
|
|
526
|
+
}, y(e.tipsBlow), 5)
|
|
527
527
|
]),
|
|
528
528
|
_: 2
|
|
529
|
-
}, 1032, ["label", "rules", "disabled", "prop"])) : e.type === "date" ? (o(), u(
|
|
529
|
+
}, 1032, ["label", "rules", "disabled", "prop"])) : e.type === "date" ? (o(), u(c, {
|
|
530
530
|
key: 8,
|
|
531
531
|
label: e.label,
|
|
532
532
|
rules: e.isHide ? [] : e.rules,
|
|
@@ -537,7 +537,7 @@ function we(r, N, g, l, z, F) {
|
|
|
537
537
|
key: 0,
|
|
538
538
|
style: M(e.labelStyle)
|
|
539
539
|
}, [
|
|
540
|
-
f(
|
|
540
|
+
f(y(e.label) + " ", 1),
|
|
541
541
|
e.required ? (o(), s("span", ke, "*")) : D("", !0)
|
|
542
542
|
], 4))
|
|
543
543
|
]),
|
|
@@ -546,7 +546,7 @@ function we(r, N, g, l, z, F) {
|
|
|
546
546
|
format: "DD/MM/YYYY",
|
|
547
547
|
"value-format": "DD/MM/YYYY",
|
|
548
548
|
"disabled-date": e.disabledDate,
|
|
549
|
-
onChange: l.dateChange,
|
|
549
|
+
onChange: (a) => l.dateChange(a, e.field),
|
|
550
550
|
"prefix-icon": l.prefixIcon,
|
|
551
551
|
modelValue: l.states.model[e.field],
|
|
552
552
|
"onUpdate:modelValue": (a) => l.states.model[e.field] = a,
|
|
@@ -557,7 +557,7 @@ function we(r, N, g, l, z, F) {
|
|
|
557
557
|
}, null, 8, ["disabled-date", "onChange", "prefix-icon", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"])
|
|
558
558
|
]),
|
|
559
559
|
_: 2
|
|
560
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "daterange" ? (o(), u(
|
|
560
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "daterange" ? (o(), u(c, {
|
|
561
561
|
key: 9,
|
|
562
562
|
label: e.label,
|
|
563
563
|
rules: e.isHide ? [] : e.rules,
|
|
@@ -568,7 +568,7 @@ function we(r, N, g, l, z, F) {
|
|
|
568
568
|
key: 0,
|
|
569
569
|
style: M(e.labelStyle)
|
|
570
570
|
}, [
|
|
571
|
-
f(
|
|
571
|
+
f(y(e.label) + " ", 1),
|
|
572
572
|
e.required ? (o(), s("span", De, "*")) : D("", !0)
|
|
573
573
|
], 4))
|
|
574
574
|
]),
|
|
@@ -577,7 +577,7 @@ function we(r, N, g, l, z, F) {
|
|
|
577
577
|
format: "DD/MM/YYYY",
|
|
578
578
|
"value-format": "DD/MM/YYYY",
|
|
579
579
|
"disabled-date": e.disabledDate,
|
|
580
|
-
onChange: l.dateChange,
|
|
580
|
+
onChange: (a) => l.dateChange(a, e.field),
|
|
581
581
|
modelValue: l.states.model[e.field],
|
|
582
582
|
"onUpdate:modelValue": (a) => l.states.model[e.field] = a,
|
|
583
583
|
"prefix-icon": l.prefixIcon,
|
|
@@ -589,7 +589,7 @@ function we(r, N, g, l, z, F) {
|
|
|
589
589
|
}, null, 8, ["disabled-date", "onChange", "modelValue", "onUpdate:modelValue", "prefix-icon", "start-placeholder", "end-placeholder"])
|
|
590
590
|
]),
|
|
591
591
|
_: 2
|
|
592
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "slotItem" ? (o(), u(
|
|
592
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "slotItem" ? (o(), u(c, {
|
|
593
593
|
key: 10,
|
|
594
594
|
label: e.label,
|
|
595
595
|
rules: e.isHide ? [] : e.rules,
|
|
@@ -601,7 +601,7 @@ function we(r, N, g, l, z, F) {
|
|
|
601
601
|
key: 0,
|
|
602
602
|
style: M(e.labelStyle)
|
|
603
603
|
}, [
|
|
604
|
-
f(
|
|
604
|
+
f(y(e.label) + " ", 1),
|
|
605
605
|
e.required ? (o(), s("span", Ce, "*")) : D("", !0)
|
|
606
606
|
], 4))
|
|
607
607
|
]),
|
|
@@ -609,7 +609,7 @@ function we(r, N, g, l, z, F) {
|
|
|
609
609
|
C(r.$slots, e.slotItemName, {}, void 0, !0)
|
|
610
610
|
]),
|
|
611
611
|
_: 2
|
|
612
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "phone" ? (o(), u(
|
|
612
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "phone" ? (o(), u(c, {
|
|
613
613
|
key: 11,
|
|
614
614
|
label: e.label,
|
|
615
615
|
rules: e.isHide ? [] : e.rules.phoneNumber,
|
|
@@ -621,7 +621,7 @@ function we(r, N, g, l, z, F) {
|
|
|
621
621
|
key: 0,
|
|
622
622
|
style: M(e.labelStyle)
|
|
623
623
|
}, [
|
|
624
|
-
f(
|
|
624
|
+
f(y(e.label) + " ", 1),
|
|
625
625
|
e.required ? (o(), s("span", xe, "*")) : D("", !0)
|
|
626
626
|
], 4))
|
|
627
627
|
]),
|
|
@@ -662,7 +662,7 @@ function we(r, N, g, l, z, F) {
|
|
|
662
662
|
}, 1032, ["maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"])
|
|
663
663
|
]),
|
|
664
664
|
_: 2
|
|
665
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "line" ? (o(), u(
|
|
665
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "line" ? (o(), u(c, {
|
|
666
666
|
key: 12,
|
|
667
667
|
label: e.label
|
|
668
668
|
}, {
|
|
@@ -670,7 +670,7 @@ function we(r, N, g, l, z, F) {
|
|
|
670
670
|
Ve
|
|
671
671
|
]),
|
|
672
672
|
_: 2
|
|
673
|
-
}, 1032, ["label"])) : (o(), u(
|
|
673
|
+
}, 1032, ["label"])) : (o(), u(c, {
|
|
674
674
|
key: 13,
|
|
675
675
|
rules: e.isHide ? [] : e.rules,
|
|
676
676
|
prop: e.field,
|
|
@@ -681,7 +681,7 @@ function we(r, N, g, l, z, F) {
|
|
|
681
681
|
key: 0,
|
|
682
682
|
style: M(e.labelStyle)
|
|
683
683
|
}, [
|
|
684
|
-
f(
|
|
684
|
+
f(y(e.label) + " ", 1),
|
|
685
685
|
e.required ? (o(), s("span", Ue, "*")) : D("", !0)
|
|
686
686
|
], 4))
|
|
687
687
|
]),
|
|
@@ -701,14 +701,14 @@ function we(r, N, g, l, z, F) {
|
|
|
701
701
|
e.prepend ? {
|
|
702
702
|
name: "prepend",
|
|
703
703
|
fn: d(() => [
|
|
704
|
-
f(
|
|
704
|
+
f(y(e.prepend), 1)
|
|
705
705
|
]),
|
|
706
706
|
key: "0"
|
|
707
707
|
} : void 0,
|
|
708
708
|
e.append ? {
|
|
709
709
|
name: "append",
|
|
710
710
|
fn: d(() => [
|
|
711
|
-
f(
|
|
711
|
+
f(y(e.append), 1)
|
|
712
712
|
]),
|
|
713
713
|
key: "1"
|
|
714
714
|
} : void 0
|
|
@@ -725,7 +725,7 @@ function we(r, N, g, l, z, F) {
|
|
|
725
725
|
]),
|
|
726
726
|
_: 3
|
|
727
727
|
}),
|
|
728
|
-
b(
|
|
728
|
+
b(c, { class: "btnsItem" }, {
|
|
729
729
|
default: d(() => [
|
|
730
730
|
C(r.$slots, "buttons", {
|
|
731
731
|
model: g.model,
|
|
@@ -759,7 +759,7 @@ function we(r, N, g, l, z, F) {
|
|
|
759
759
|
onHandleClick: (a) => l.handleClick(a, e.isRule, e.emitName)
|
|
760
760
|
}, {
|
|
761
761
|
default: d(() => [
|
|
762
|
-
f(
|
|
762
|
+
f(y(e.name), 1)
|
|
763
763
|
]),
|
|
764
764
|
_: 2
|
|
765
765
|
}, 1032, ["btnCode", "plain", "primary", "info", "text", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "styleObj", "class", "onHandleClick"])) : D("", !0)
|
|
@@ -772,11 +772,11 @@ function we(r, N, g, l, z, F) {
|
|
|
772
772
|
_: 3
|
|
773
773
|
}, 16, ["model", "label-position"]);
|
|
774
774
|
}
|
|
775
|
-
const
|
|
775
|
+
const m = /* @__PURE__ */ re(ne, [["render", we], ["__scopeId", "data-v-239b1353"]]);
|
|
776
776
|
function H(r, N = {}) {
|
|
777
|
-
H.installed || (H.installed = !0, r.component("common-el-form",
|
|
777
|
+
H.installed || (H.installed = !0, r.component("common-el-form", m));
|
|
778
778
|
}
|
|
779
|
-
|
|
779
|
+
m.install = H;
|
|
780
780
|
export {
|
|
781
|
-
|
|
781
|
+
m as default
|
|
782
782
|
};
|
package/common-form.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("vue")):typeof define=="function"&&define.amd?define(["vue"],k):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=k(e.Vue))})(this,function(e){"use strict";const k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",z={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(n,{emit:b}){const i=e.reactive({model:{}}),o=e.ref(null),C=e.shallowRef({render(){return e.h("img",{src:k})}}),E=e.computed(()=>Object.assign([],n.options)),r=()=>{i.model=n.model},h=(t,s,l)=>{o.value&&(s?o.value.validate(N=>{if(N)b(l||"submit",i.model,t);else return!1}):l==="reset"?o.value.resetFields():b(l||"submit",i.model,t))},f=(t,s)=>{b("selectChange",t,s)},g=(t,s)=>{b("radioChange",t,s)},x=(t,s)=>{b("checkChange",t,s)},M=(t,s)=>{const l=i.model[s].length;l!==1&&(l>1&&i.model[s].shift(),b("checkChange",t,s))},V=(t,s,l)=>{h(t,s,l)},_=(t,s)=>{t&&(s==null?void 0:s.key)==="Enter"&&h(void 0,!0,"submit")},D=t=>{b("dateChange",t)},m=t=>{o.value.resetFields(t)},S=t=>{o.value.clearValidate(t)};return e.onMounted(()=>{r(),o.value.resetFields()}),e.watch(()=>n.fieldList,(t,s)=>{t!==s&&r()}),{...e.toRefs(i),formRef:o,states:i,formOptions:E,onSubmit:h,selectChange:f,radioChange:g,checkChange:x,handleCheckedChange:M,prefixIcon:C,handleClick:V,handleKeyUp:_,resetFieldsTest:m,clearValidateTest:S,dateChange:D}}},$="",U=(n,b)=>{const i=n.__vccOpts||n;for(const[o,C]of b)i[o]=C;return i},j=n=>(e.pushScopeId("data-v-2c52589d"),n=n(),e.popScopeId(),n),I={class:"header-title"},T={class:"title-content"},L={key:0,class:"custom-required"},O={key:0,class:"custom-required"},A=["src"],K={key:0,class:"custom-required"},Y={class:"lable"},F={class:"lable_note"},q={key:0,class:"custom-required"},H={key:0,class:"custom-required"},W={key:0,class:"custom-required"},Q={key:0,class:"custom-required"},P={key:0,class:"custom-required"},R={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J=j(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),X={key:0,class:"custom-required"};function u(n,b,i,o,C,E){const r=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),f=e.resolveComponent("el-radio"),g=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-checkbox"),M=e.resolveComponent("el-checkbox-group"),V=e.resolveComponent("el-option"),_=e.resolveComponent("el-select"),D=e.resolveComponent("el-date-picker"),m=e.resolveComponent("el-col"),S=e.resolveComponent("el-row"),t=e.resolveComponent("sinosoft-common-button"),s=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(s,e.mergeProps({"hide-required-asterisk":"",onSubmit:b[0]||(b[0]=e.withModifiers(()=>{},["prevent"])),model:i.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(S,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.fieldList,(l,N)=>e.withDirectives((e.openBlock(),e.createBlock(m,{xs:l.xs?l.xs:24,sm:l.sm?l.sm:24,md:l.md?l.md:8,lg:l.lg?l.lg:8,xl:l.xl?l.xl:8,key:N},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(r,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",I,[e.createElementVNode("span",T,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(r,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isDisabled,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",L,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(r,{rules:l.isHide?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,"show-word-limit":"",readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(r,{rules:l.isHide?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(r,{rules:l.isHide?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(r,{rules:l.isHide?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field.nameCh],"onUpdate:modelValue":a=>o.states.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(r,{key:2,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",O,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(f,{label:d[((c=l.options)==null?void 0:c.valueKey)||"code"],size:"large",key:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,A)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(r,{key:3,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",K,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((c=l.options)==null?void 0:c.valueKey)||"code"],key:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(r,{key:4,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",Y,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",F,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)]),e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((c=l.options)==null?void 0:c.valueKey)||"code"],key:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(r,{key:5,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.checkChange(a,l.field),disabled:l.disabled||o.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(x,{key:d[((c=l.options)==null?void 0:c.valueKey)||"code"],label:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"?(e.openBlock(),e.createBlock(r,{key:6,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.handleCheckedChange(a,l.field),disabled:l.disabled||o.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(x,{key:d[((c=l.options)==null?void 0:c.valueKey)||"code"],label:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"?(e.openBlock(),e.createBlock(r,{key:7,label:l.label,rules:l.isHide?[]:l.rules,disabled:l.disabled||o.formOptions.isDisabled,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(_,{onChange:a=>o.selectChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p,y;return e.openBlock(),e.createBlock(V,{key:d[((c=l.options)==null?void 0:c.valueKey)||"code"],label:d[((p=l.options)==null?void 0:p.labelkey)||"name"],value:d[((y=l.options)==null?void 0:y.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(r,{key:8,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(D,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o.dateChange,"prefix-icon":o.prefixIcon,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(r,{key:9,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",R,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(D,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:o.dateChange,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"prefix-icon":o.prefixIcon,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(r,{key:10,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.renderSlot(n.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(r,{key:11,label:l.label,rules:l.isHide?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":a=>o.states.model[l.field.phoneNumber]=a,disabled:l.disabled||o.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var a;return[e.createVNode(_,{disabled:l.disabled||o.formOptions.isDisabled,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":d=>o.states.model[l.field.areaCode]=d,placeholder:((a=l.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:e.withCtx(()=>{var d;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((d=l.options)==null?void 0:d.data,(c,p)=>(e.openBlock(),e.createBlock(V,{label:c.name,value:c.code,key:p},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(r,{key:12,label:l.label},{default:e.withCtx(()=>[J]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(r,{key:13,rules:l.isHide?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.prepend),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(r,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"buttons",{model:i.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[l.isShow?(e.openBlock(),e.createBlock(t,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,styleObj:{...l.style},class:e.normalizeClass(l.class),onHandleClick:a=>o.handleClick(a,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","styleObj","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const w=U(z,[["render",u],["__scopeId","data-v-2c52589d"]]);function B(n,b={}){B.installed||(B.installed=!0,n.component("common-el-form",w))}return w.install=B,w});
|
|
1
|
+
(function(e,k){typeof exports=="object"&&typeof module<"u"?module.exports=k(require("vue")):typeof define=="function"&&define.amd?define(["vue"],k):(e=typeof globalThis<"u"?globalThis:e||self,e.Form=k(e.Vue))})(this,function(e){"use strict";const k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==",z={props:{fieldList:{type:Array,required:!0},model:Object,options:Object},setup(n,{emit:b}){const i=e.reactive({model:{}}),o=e.ref(null),C=e.shallowRef({render(){return e.h("img",{src:k})}}),E=e.computed(()=>Object.assign([],n.options)),s=()=>{i.model=n.model},h=(t,r,l)=>{o.value&&(r?o.value.validate(N=>{if(N)b(l||"submit",i.model,t);else return!1}):l==="reset"?o.value.resetFields():b(l||"submit",i.model,t))},f=(t,r)=>{b("selectChange",t,r)},g=(t,r)=>{b("radioChange",t,r)},x=(t,r)=>{b("checkChange",t,r)},M=(t,r)=>{const l=i.model[r].length;l!==1&&(l>1&&i.model[r].shift(),b("checkChange",t,r))},V=(t,r,l)=>{h(t,r,l)},_=(t,r)=>{t&&(r==null?void 0:r.key)==="Enter"&&h(void 0,!0,"submit")},D=(t,r)=>{b("dateChange",t,r)},m=t=>{o.value.resetFields(t)},S=t=>{o.value.clearValidate(t)};return e.onMounted(()=>{s(),o.value.resetFields()}),e.watch(()=>n.fieldList,(t,r)=>{t!==r&&s()}),{...e.toRefs(i),formRef:o,states:i,formOptions:E,onSubmit:h,selectChange:f,radioChange:g,checkChange:x,handleCheckedChange:M,prefixIcon:C,handleClick:V,handleKeyUp:_,resetFieldsTest:m,clearValidateTest:S,dateChange:D}}},$="",U=(n,b)=>{const i=n.__vccOpts||n;for(const[o,C]of b)i[o]=C;return i},j=n=>(e.pushScopeId("data-v-239b1353"),n=n(),e.popScopeId(),n),I={class:"header-title"},T={class:"title-content"},L={key:0,class:"custom-required"},O={key:0,class:"custom-required"},A=["src"],K={key:0,class:"custom-required"},F={class:"lable"},Y={class:"lable_note"},q={key:0,class:"custom-required"},H={key:0,class:"custom-required"},W={key:0,class:"custom-required"},Q={key:0,class:"custom-required"},P={key:0,class:"custom-required"},R={key:0,class:"custom-required"},Z={key:0,class:"custom-required"},G={key:0,class:"custom-required"},J=j(()=>e.createElementVNode("div",{class:"line",style:{"border-top":"1px solid #e8e8e8",width:"100%",height:"0px",margin:"20px 0"}},null,-1)),X={key:0,class:"custom-required"};function u(n,b,i,o,C,E){const s=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-input"),f=e.resolveComponent("el-radio"),g=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-checkbox"),M=e.resolveComponent("el-checkbox-group"),V=e.resolveComponent("el-option"),_=e.resolveComponent("el-select"),D=e.resolveComponent("el-date-picker"),m=e.resolveComponent("el-col"),S=e.resolveComponent("el-row"),t=e.resolveComponent("sinosoft-common-button"),r=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(r,e.mergeProps({"hide-required-asterisk":"",onSubmit:b[0]||(b[0]=e.withModifiers(()=>{},["prevent"])),model:i.model},o.formOptions,{"label-position":o.formOptions.labelPosition,ref:"formRef"}),{default:e.withCtx(()=>[e.createVNode(S,{gutter:20},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.fieldList,(l,N)=>e.withDirectives((e.openBlock(),e.createBlock(m,{xs:l.xs?l.xs:24,sm:l.sm?l.sm:24,md:l.md?l.md:8,lg:l.lg?l.lg:8,xl:l.xl?l.xl:8,key:N},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(l.style)},[l.type==="title"?(e.openBlock(),e.createBlock(s,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",I,[e.createElementVNode("span",T,e.toDisplayString(l.title),1)])]),_:2},1024)):l.type==="name"?(e.openBlock(),e.createBlock(s,{key:1,label:l.label,disabled:l.disabled||o.formOptions.isDisabled,class:"container_name"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",L,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(s,{rules:l.isHide?[]:l.rules.nameEnFamily,prop:l.field.nameEnFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlengthNameEnFamily,modelValue:o.states.model[l.field.nameEnFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameEnFamily]=a,"show-word-limit":"",readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEnFamily,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide?[]:l.rules.nameEn,prop:l.field.nameEn,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlengthNameEn,modelValue:o.states.model[l.field.nameEn],"onUpdate:modelValue":a=>o.states.model[l.field.nameEn]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameEn,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide?[]:l.rules.nameChFamily,prop:l.field.nameChFamily,class:"item-name"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlengthNameChFamily,modelValue:o.states.model[l.field.nameChFamily],"onUpdate:modelValue":a=>o.states.model[l.field.nameChFamily]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameChFamily,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),e.createVNode(s,{rules:l.isHide?[]:l.rules.nameCh,prop:l.field.nameCh,class:"item-name-right"},{default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlengthNameCh,modelValue:o.states.model[l.field.nameCh],"onUpdate:modelValue":a=>o.states.model[l.field.nameCh]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholderNameCh,disabled:l.disabled||o.formOptions.isDisabled,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},null,8,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","disabled"])):l.type==="gender"?(e.openBlock(),e.createBlock(s,{key:2,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",O,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(f,{label:d[((c=l.options)==null?void 0:c.valueKey)||"code"],size:"large",key:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.code==="M"?"http://192.168.5.200:9000/test/sex_img_M.png":"http://192.168.5.200:9000/test/sex_img_F.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,A)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop"])):l.type==="radio"?(e.openBlock(),e.createBlock(s,{key:3,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",K,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((c=l.options)==null?void 0:c.valueKey)||"code"],key:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="radioNote"?(e.openBlock(),e.createBlock(s,{key:4,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field,class:e.normalizeClass([l.labelNode?"radio_Note":"rule_err"])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",F,e.toDisplayString(l.labelBefore),1),e.createElementVNode("span",Y,e.toDisplayString(l.labelNode),1),l.required?(e.openBlock(),e.createElementBlock("span",q,"*")):e.createCommentVNode("",!0)]),e.createVNode(g,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,onChange:a=>o.radioChange(a,l.field)},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(f,{size:"large",label:d[((c=l.options)==null?void 0:c.valueKey)||"code"],key:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]),_:2},1032,["label","rules","prop","class"])):l.type==="checkbox"?(e.openBlock(),e.createBlock(s,{key:5,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",H,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.checkChange(a,l.field),disabled:l.disabled||o.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(x,{key:d[((c=l.options)==null?void 0:c.valueKey)||"code"],label:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="checkboxRadio"?(e.openBlock(),e.createBlock(s,{key:6,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",W,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(M,{modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,onChange:a=>o.handleCheckedChange(a,l.field),disabled:l.disabled||o.formOptions.isDisabled,style:e.normalizeStyle(l.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p;return e.openBlock(),e.createBlock(x,{key:d[((c=l.options)==null?void 0:c.valueKey)||"code"],label:d[((p=l.options)==null?void 0:p.valueKey)||"code"]},{default:e.withCtx(()=>{var y;return[e.createTextVNode(e.toDisplayString(d[((y=l.options)==null?void 0:y.labelkey)||"name"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange","disabled","style"])]),_:2},1032,["label","rules","prop"])):l.type==="select"?(e.openBlock(),e.createBlock(s,{key:7,label:l.label,rules:l.isHide?[]:l.rules,disabled:l.disabled||o.formOptions.isDisabled,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Q,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(_,{onChange:a=>o.selectChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,placeholder:l.placeholder,clearable:l.clearable},{default:e.withCtx(()=>{var a;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.options)==null?void 0:a.data,d=>{var c,p,y;return e.openBlock(),e.createBlock(V,{key:d[((c=l.options)==null?void 0:c.valueKey)||"code"],label:d[((p=l.options)==null?void 0:p.labelkey)||"name"],value:d[((y=l.options)==null?void 0:y.valueKey)||"code"]},null,8,["label","value"])}),128))]}),_:2},1032,["onChange","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"]),e.createElementVNode("div",{class:"item_tips_blow",style:e.normalizeStyle(l.tipsBlowStyle)},e.toDisplayString(l.tipsBlow),5)]),_:2},1032,["label","rules","disabled","prop"])):l.type==="date"?(e.openBlock(),e.createBlock(s,{key:8,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",P,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(D,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),"prefix-icon":o.prefixIcon,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,disabled:l.disabled||o.formOptions.isDisabled,readonly:l.readonly,type:l.type,placeholder:l.placeholder||l.label},null,8,["disabled-date","onChange","prefix-icon","modelValue","onUpdate:modelValue","disabled","readonly","type","placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="daterange"?(e.openBlock(),e.createBlock(s,{key:9,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",R,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(D,{format:"DD/MM/YYYY","value-format":"DD/MM/YYYY","disabled-date":l.disabledDate,onChange:a=>o.dateChange(a,l.field),modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,"prefix-icon":o.prefixIcon,type:"daterange","range-separator":"To","start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,size:"large"},null,8,["disabled-date","onChange","modelValue","onUpdate:modelValue","prefix-icon","start-placeholder","end-placeholder"])]),_:2},1032,["label","rules","prop"])):l.type==="slotItem"?(e.openBlock(),e.createBlock(s,{key:10,label:l.label,rules:l.isHide?[]:l.rules,prop:l.field,class:"rule_err"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",Z,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.renderSlot(n.$slots,l.slotItemName,{},void 0,!0)]),_:2},1032,["label","rules","prop"])):l.type==="phone"?(e.openBlock(),e.createBlock(s,{key:11,label:l.label,rules:l.isHide?[]:l.rules.phoneNumber,prop:l.field.phoneNumber,class:"phone_item"},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",G,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field.phoneNumber],"onUpdate:modelValue":a=>o.states.model[l.field.phoneNumber]=a,disabled:l.disabled||o.formOptions.isDisabled,placeholder:l.placeholder||"请选择",clearable:l.clearable},{prepend:e.withCtx(()=>{var a;return[e.createVNode(_,{disabled:l.disabled||o.formOptions.isDisabled,modelValue:o.states.model[l.field.areaCode],"onUpdate:modelValue":d=>o.states.model[l.field.areaCode]=d,placeholder:((a=l.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:e.withCtx(()=>{var d;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((d=l.options)==null?void 0:d.data,(c,p)=>(e.openBlock(),e.createBlock(V,{label:c.name,value:c.code,key:p},null,8,["label","value"]))),128))]}),_:2},1032,["disabled","modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["maxlength","modelValue","onUpdate:modelValue","disabled","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])):l.type==="line"?(e.openBlock(),e.createBlock(s,{key:12,label:l.label},{default:e.withCtx(()=>[J]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(s,{key:13,rules:l.isHide?[]:l.rules,prop:l.field,class:e.normalizeClass(l.prepend?"input-item":"")},{label:e.withCtx(()=>[l.slotLabelName?e.renderSlot(n.$slots,l.slotLabelName,{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.labelStyle)},[e.createTextVNode(e.toDisplayString(l.label)+" ",1),l.required?(e.openBlock(),e.createElementBlock("span",X,"*")):e.createCommentVNode("",!0)],4))]),default:e.withCtx(()=>[e.createVNode(h,{maxlength:l.maxlength,modelValue:o.states.model[l.field],"onUpdate:modelValue":a=>o.states.model[l.field]=a,readonly:l.readonly,type:l.type?l.type:"text",placeholder:l.placeholder||l.label,disabled:l.disabled||o.formOptions.isDisabled,showPassword:l.showPassword,clearable:l.clearable,onKeyup:e.withKeys(a=>o.handleKeyUp(l.enterable),["enter"])},e.createSlots({_:2},[l.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.prepend),1)]),key:"0"}:void 0,l.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.append),1)]),key:"1"}:void 0]),1032,["maxlength","modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop","class"]))],4)]),_:2},1032,["xs","sm","md","lg","xl"])),[[e.vShow,!l.isHide]])),128))]),_:3}),e.createVNode(s,{class:"btnsItem"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"buttons",{model:i.model,onBtnClick:o.onSubmit},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formOptions.btnConfig,(l,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[l.isShow?(e.openBlock(),e.createBlock(t,{key:0,btnCode:l.btnCode,plain:l.plain,primary:l.primary,info:l.info,text:l.text,link:l.link,loading:l.loading,loadingColor:l.loadingColor,width:l.width,height:l.height,circle:l.circle,color:l.color,bgColor:l.bgColor,borderColor:l.borderColor,borderStyle:l.borderStyle,borderWidth:l.borderWidth,icon:l.icon,size:l.size,fontSize:l.fontSize,fontWeight:l.fontWeight,styleObj:{...l.style},class:e.normalizeClass(l.class),onHandleClick:a=>o.handleClick(a,l.isRule,l.emitName)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["btnCode","plain","primary","info","text","link","loading","loadingColor","width","height","circle","color","bgColor","borderColor","borderStyle","borderWidth","icon","size","fontSize","fontWeight","styleObj","class","onHandleClick"])):e.createCommentVNode("",!0)]))),128))],!0)]),_:3})]),_:3},16,["model","label-position"])}const w=U(z,[["render",u],["__scopeId","data-v-239b1353"]]);function B(n,b={}){B.installed||(B.installed=!0,n.component("common-el-form",w))}return w.install=B,w});
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";[data-v-
|
|
1
|
+
@charset "UTF-8";[data-v-239b1353] .el-date-editor{height:60px!important;width:100%!important}.form-item[data-v-239b1353]{width:50%;display:inline-block;padding-right:0;box-sizing:border-box}[data-v-239b1353] .el-input__inner{height:42px;color:#1d1d1d}[data-v-239b1353] .el-card__body{padding:0}[data-v-239b1353] .el-input__inner::placeholder{font-family:Roboto;font-size:14px;font-weight:400;line-height:22px;letter-spacing:0em;text-align:left;color:#6e6e73}[data-v-239b1353] .el-form-item__label{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Medium;height:auto!important}.form-item-title[data-v-239b1353]{width:100%}[data-v-239b1353] .el-checkbox-group .el-checkbox{display:flex}[data-v-239b1353] .el-radio-group{height:62px;line-height:62px}[data-v-239b1353] .el-radio-group .el-radio{height:auto}.rule_err[data-v-239b1353] .el-form-item__content,.radio_Note[data-v-239b1353] .el-form-item__content{display:block}.radio_Note .lable[data-v-239b1353]{font-size:16px;line-height:22px;color:#1d1d1d;font-weight:400;font-family:Roboto Medium}.radio_Note .lable_note[data-v-239b1353]{font-size:16px;line-height:22px;color:#6e6e73;font-weight:400;font-family:Roboto Medium}.container_name[data-v-239b1353] .el-form-item__content{align-items:start}[data-v-239b1353] .el-form-item__error{position:relative}.item-name[data-v-239b1353]{width:51%;padding-right:20px;padding-bottom:12px;box-sizing:border-box}.item-name-right[data-v-239b1353]{width:49%;padding-bottom:12px;padding-right:0}.btnsItem[data-v-239b1353]{width:100%;margin:0 auto;justify-content:right}.btnsItem[data-v-239b1353] .el-form-item__content{justify-content:right}label[data-v-239b1353]{display:block}.title-content[data-v-239b1353]{font-size:22px;line-height:30px;color:#1d1d1d;font-weight:300;font-family:Roboto Medium}[data-v-239b1353] .el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{background-color:#fff}[data-v-239b1353] .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca;box-shadow:none!important}.phone_item[data-v-239b1353] .el-input__wrapper{border-left:0px!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.phone_item[data-v-239b1353] .el-input-group__prepend{box-shadow:none!important}.phone_item[data-v-239b1353] .el-input-group__prepend .el-input__wrapper{height:60px;border-radius:8px;border:1px solid #c7c8ca!important;padding-left:16px;padding-right:16px;border-right:0px!important;box-shadow:none!important;border-radius:8px 0 0 8px/8px 0px 0px 8px!important}.phone_item[data-v-239b1353] .el-input-group__prepend .el-input__wrapper .el-input__suffix{display:none;width:0!important}.phone_item[data-v-239b1353] .el-input-group__prepend:hover{box-shadow:none!important}.phone_item[data-v-239b1353] .el-input-group__prepend:hover .el-input__wrapper:hover{border:none;border-right:0px!important;box-shadow:none!important;padding-left:16px;padding-right:16px}.phone_item[data-v-239b1353] .el-input-group__prepend:hover .el-input__wrapper:hover .el-input__suffix{display:none;width:0!important}.input-item[data-v-239b1353] .el-input-group__prepend{border:1px solid #c7c8ca!important;border-top-left-radius:8px;border-bottom-left-radius:8px;border-right:0px!important;box-shadow:none!important;background-color:unset!important;padding:0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Medium}.input-item[data-v-239b1353] .el-input__wrapper{border-left:0px!important;border-right:0px!important;border-radius:0!important}.input-item[data-v-239b1353] .el-input-group__append{border:1px solid #c7c8ca!important;border-top-right-radius:8px;border-bottom-right-radius:8px;border-left:0px!important;box-shadow:none!important;background-color:unset!important;padding:0 16px;font-size:14px;line-height:22px;color:#0b0b0b;font-weight:400;font-family:Roboto Medium}[data-v-239b1353] .el-select{width:100%}.custom-required[data-v-239b1353]{content:"*";color:#e2a650;margin-left:4px}.item_tips_blow[data-v-239b1353]{font-size:14px;line-height:22px;color:#00000073;font-weight:400;font-family:Roboto Medium;width:100%;word-wrap:break-word;white-space:normal}
|