sinosoft-common-form 1.3.4 → 1.3.5
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 +383 -382
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { ref as q, reactive as H, shallowRef as W, h as Q, computed as P, onMounted as Z, watch as G, toRefs as J, resolveComponent as M, openBlock as n, createBlock as c, mergeProps as X, withModifiers as $, withCtx as s, createVNode as b, createElementBlock as r, Fragment as I, renderList as x, withDirectives as ee, createElementVNode as V, normalizeStyle as g, toDisplayString as p, createTextVNode as i, createCommentVNode as _, renderSlot as C, withKeys as v, normalizeClass as S, createSlots as le, vShow as oe, pushScopeId as ae, popScopeId as ne } from "vue";
|
|
2
|
+
const de = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjc1MDIgMS44NzY5NUgxMC4xMjUyVjAuODc2OTUzQzEwLjEyNTIgMC44MDgyMDMgMTAuMDY5IDAuNzUxOTUzIDEwLjAwMDIgMC43NTE5NTNIOS4xMjUyNUM5LjA1NjQ5IDAuNzUxOTUzIDkuMDAwMjUgMC44MDgyMDMgOS4wMDAyNSAwLjg3Njk1M1YxLjg3Njk1SDUuMDAwMjRWMC44NzY5NTNDNS4wMDAyNCAwLjgwODIwMyA0Ljk0Mzk5IDAuNzUxOTUzIDQuODc1MjQgMC43NTE5NTNINC4wMDAyNEMzLjkzMTQ5IDAuNzUxOTUzIDMuODc1MjQgMC44MDgyMDMgMy44NzUyNCAwLjg3Njk1M1YxLjg3Njk1SDEuMjUwMjRDMC45NzM2ODIgMS44NzY5NSAwLjc1MDI0NCAyLjEwMDM5IDAuNzUwMjQ0IDIuMzc2OTVWMTIuNzUyQzAuNzUwMjQ0IDEzLjAyODUgMC45NzM2ODIgMTMuMjUyIDEuMjUwMjQgMTMuMjUySDEyLjc1MDJDMTMuMDI2OCAxMy4yNTIgMTMuMjUwMiAxMy4wMjg1IDEzLjI1MDIgMTIuNzUyVjIuMzc2OTVDMTMuMjUwMiAyLjEwMDM5IDEzLjAyNjggMS44NzY5NSAxMi43NTAyIDEuODc2OTVaTTEyLjEyNTIgMTIuMTI3SDEuODc1MjRWNi4xODk0NUgxMi4xMjUyVjEyLjEyN1pNMS44NzUyNCA1LjEyNjk1VjMuMDAxOTVIMy44NzUyNFYzLjc1MTk1QzMuODc1MjQgMy44MjA3IDMuOTMxNDkgMy44NzY5NSA0LjAwMDI0IDMuODc2OTVINC44NzUyNEM0Ljk0Mzk5IDMuODc2OTUgNS4wMDAyNCAzLjgyMDcgNS4wMDAyNCAzLjc1MTk1VjMuMDAxOTVIOS4wMDAyNVYzLjc1MTk1QzkuMDAwMjUgMy44MjA3IDkuMDU2NDkgMy44NzY5NSA5LjEyNTI1IDMuODc2OTVIMTAuMDAwMkMxMC4wNjkgMy44NzY5NSAxMC4xMjUyIDMuODIwNyAxMC4xMjUyIDMuNzUxOTVWMy4wMDE5NUgxMi4xMjUyVjUuMTI2OTVIMS44NzUyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuODUiLz4KPC9zdmc+Cg==", se = {
|
|
3
3
|
props: {
|
|
4
4
|
fieldList: {
|
|
5
5
|
type: Array,
|
|
@@ -8,85 +8,86 @@ const ne = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZX
|
|
|
8
8
|
model: Object,
|
|
9
9
|
options: Object
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
11
|
+
setup(t, { emit: h }) {
|
|
12
|
+
const k = q(!0), o = H({
|
|
13
13
|
model: {}
|
|
14
|
-
}),
|
|
14
|
+
}), N = q(null), Y = W({
|
|
15
15
|
render() {
|
|
16
|
-
return
|
|
17
|
-
src:
|
|
16
|
+
return Q("img", {
|
|
17
|
+
src: de
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
if (
|
|
25
|
-
h(
|
|
20
|
+
}), y = P(() => Object.assign([], t.options)), D = () => {
|
|
21
|
+
o.model = t.model;
|
|
22
|
+
}, w = (a, d, u) => {
|
|
23
|
+
N.value && (d ? (k.value = !1, N.value.validate((f) => {
|
|
24
|
+
if (f)
|
|
25
|
+
h(u || "submit", o.model, a);
|
|
26
26
|
else
|
|
27
27
|
return !1;
|
|
28
|
-
}) :
|
|
29
|
-
},
|
|
30
|
-
h("selectChange",
|
|
31
|
-
},
|
|
32
|
-
h("radioChange",
|
|
33
|
-
},
|
|
34
|
-
h("checkChange",
|
|
35
|
-
},
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
}, L = (
|
|
39
|
-
|
|
40
|
-
}, A = (
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
h("dateChange",
|
|
44
|
-
}, E = (
|
|
45
|
-
h("inputBlur",
|
|
46
|
-
},
|
|
47
|
-
h("inputFocus",
|
|
48
|
-
},
|
|
49
|
-
h("inputChange",
|
|
50
|
-
},
|
|
51
|
-
h("inputInput",
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
|
|
28
|
+
})) : u === "reset" ? N.value.resetFields() : h(u || "submit", o.model, a));
|
|
29
|
+
}, U = (a, d) => {
|
|
30
|
+
h("selectChange", a, d);
|
|
31
|
+
}, F = (a, d) => {
|
|
32
|
+
h("radioChange", a, d);
|
|
33
|
+
}, z = (a, d) => {
|
|
34
|
+
h("checkChange", a, d);
|
|
35
|
+
}, O = (a, d) => {
|
|
36
|
+
const u = o.model[d].length;
|
|
37
|
+
u !== 1 && (u > 1 && o.model[d].shift(), h("checkChange", a, d));
|
|
38
|
+
}, L = (a, d, u) => {
|
|
39
|
+
w(a, d, u);
|
|
40
|
+
}, A = (a, d) => {
|
|
41
|
+
a && (d == null ? void 0 : d.key) === "Enter" && w(void 0, !0, "submit");
|
|
42
|
+
}, T = (a, d) => {
|
|
43
|
+
h("dateChange", a, d);
|
|
44
|
+
}, E = (a, d) => {
|
|
45
|
+
console.log(N.value), h("inputBlur", a, d);
|
|
46
|
+
}, B = (a, d) => {
|
|
47
|
+
h("inputFocus", a, d);
|
|
48
|
+
}, K = (a, d) => {
|
|
49
|
+
h("inputChange", a, d);
|
|
50
|
+
}, e = (a, d) => {
|
|
51
|
+
h("inputInput", a, d);
|
|
52
|
+
}, j = (a) => {
|
|
53
|
+
N.value.resetFields(a);
|
|
54
|
+
}, l = (a) => {
|
|
55
|
+
N.value.clearValidate(a);
|
|
56
56
|
};
|
|
57
57
|
return Z(() => {
|
|
58
|
-
|
|
59
|
-
}), G(() =>
|
|
60
|
-
|
|
58
|
+
D(), N.value.resetFields();
|
|
59
|
+
}), G(() => t.fieldList, (a, d) => {
|
|
60
|
+
a !== d && D();
|
|
61
61
|
}), {
|
|
62
|
-
...J(
|
|
63
|
-
formRef:
|
|
64
|
-
states:
|
|
65
|
-
formOptions:
|
|
66
|
-
onSubmit:
|
|
67
|
-
selectChange:
|
|
68
|
-
radioChange:
|
|
69
|
-
checkChange:
|
|
70
|
-
handleCheckedChange:
|
|
71
|
-
prefixIcon:
|
|
62
|
+
...J(o),
|
|
63
|
+
formRef: N,
|
|
64
|
+
states: o,
|
|
65
|
+
formOptions: y,
|
|
66
|
+
onSubmit: w,
|
|
67
|
+
selectChange: U,
|
|
68
|
+
radioChange: F,
|
|
69
|
+
checkChange: z,
|
|
70
|
+
handleCheckedChange: O,
|
|
71
|
+
prefixIcon: Y,
|
|
72
72
|
handleClick: L,
|
|
73
73
|
handleKeyUp: A,
|
|
74
|
-
resetFieldsTest:
|
|
75
|
-
clearValidateTest:
|
|
76
|
-
dateChange:
|
|
74
|
+
resetFieldsTest: j,
|
|
75
|
+
clearValidateTest: l,
|
|
76
|
+
dateChange: T,
|
|
77
77
|
inputBlur: E,
|
|
78
|
-
inputFocus:
|
|
79
|
-
inputChange:
|
|
80
|
-
inputInput:
|
|
78
|
+
inputFocus: B,
|
|
79
|
+
inputChange: K,
|
|
80
|
+
inputInput: e,
|
|
81
|
+
noFormRule: k
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
};
|
|
84
|
-
const re = (
|
|
85
|
-
const
|
|
86
|
-
for (const [
|
|
87
|
-
|
|
88
|
-
return
|
|
89
|
-
}, ue = (
|
|
85
|
+
const re = (t, h) => {
|
|
86
|
+
const k = t.__vccOpts || t;
|
|
87
|
+
for (const [o, N] of h)
|
|
88
|
+
k[o] = N;
|
|
89
|
+
return k;
|
|
90
|
+
}, ue = (t) => (ae("data-v-c3a9efbd"), t = t(), ne(), t), te = { class: "header-title" }, ce = { class: "title-content" }, pe = {
|
|
90
91
|
key: 0,
|
|
91
92
|
class: "custom-required"
|
|
92
93
|
}, ye = {
|
|
@@ -119,191 +120,191 @@ const re = (u, h) => {
|
|
|
119
120
|
}, Ie = {
|
|
120
121
|
key: 0,
|
|
121
122
|
class: "custom-required"
|
|
122
|
-
}, xe = /* @__PURE__ */ ue(() => /* @__PURE__ */
|
|
123
|
+
}, xe = /* @__PURE__ */ ue(() => /* @__PURE__ */ V("div", {
|
|
123
124
|
class: "line",
|
|
124
125
|
style: { "border-top": "1px solid #e8e8e8", width: "100%", height: "0px", margin: "20px 0" }
|
|
125
126
|
}, null, -1)), Ve = {
|
|
126
127
|
key: 0,
|
|
127
128
|
class: "custom-required"
|
|
128
129
|
};
|
|
129
|
-
function we(
|
|
130
|
-
const
|
|
131
|
-
return
|
|
130
|
+
function we(t, h, k, o, N, Y) {
|
|
131
|
+
const y = M("el-form-item"), D = M("el-input"), w = M("el-radio"), U = M("el-radio-group"), F = M("el-checkbox"), z = M("el-checkbox-group"), O = M("el-option"), L = M("el-select"), A = M("el-date-picker"), T = M("el-col"), E = M("el-row"), B = M("sinosoft-common-button"), K = M("el-form");
|
|
132
|
+
return n(), c(K, X({
|
|
132
133
|
"hide-required-asterisk": "",
|
|
133
134
|
onSubmit: h[0] || (h[0] = $(() => {
|
|
134
135
|
}, ["prevent"])),
|
|
135
|
-
model:
|
|
136
|
-
},
|
|
137
|
-
"label-position":
|
|
136
|
+
model: k.model
|
|
137
|
+
}, o.formOptions, {
|
|
138
|
+
"label-position": o.formOptions.labelPosition,
|
|
138
139
|
ref: "formRef"
|
|
139
140
|
}), {
|
|
140
|
-
default:
|
|
141
|
-
b(
|
|
142
|
-
default:
|
|
143
|
-
(
|
|
141
|
+
default: s(() => [
|
|
142
|
+
b(E, { gutter: 20 }, {
|
|
143
|
+
default: s(() => [
|
|
144
|
+
(n(!0), r(I, null, x(k.fieldList, (e, j) => ee((n(), c(T, {
|
|
144
145
|
xs: e.xs ? e.xs : 24,
|
|
145
146
|
sm: e.sm ? e.sm : 24,
|
|
146
147
|
md: e.md ? e.md : 8,
|
|
147
148
|
lg: e.lg ? e.lg : 8,
|
|
148
149
|
xl: e.xl ? e.xl : 8,
|
|
149
|
-
key:
|
|
150
|
+
key: j
|
|
150
151
|
}, {
|
|
151
|
-
default:
|
|
152
|
-
|
|
153
|
-
style:
|
|
152
|
+
default: s(() => [
|
|
153
|
+
V("div", {
|
|
154
|
+
style: g(e.style)
|
|
154
155
|
}, [
|
|
155
|
-
e.type === "title" ? (
|
|
156
|
-
default:
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
e.type === "title" ? (n(), c(y, { key: 0 }, {
|
|
157
|
+
default: s(() => [
|
|
158
|
+
V("div", te, [
|
|
159
|
+
V("span", ce, p(e.title), 1)
|
|
159
160
|
])
|
|
160
161
|
]),
|
|
161
162
|
_: 2
|
|
162
|
-
}, 1024)) : e.type === "name" ? (
|
|
163
|
+
}, 1024)) : e.type === "name" ? (n(), c(y, {
|
|
163
164
|
key: 1,
|
|
164
165
|
label: e.label,
|
|
165
|
-
disabled: e.disabled ||
|
|
166
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
166
167
|
class: "container_name"
|
|
167
168
|
}, {
|
|
168
|
-
label:
|
|
169
|
-
e.slotLabelName ?
|
|
169
|
+
label: s(() => [
|
|
170
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
170
171
|
key: 0,
|
|
171
|
-
style:
|
|
172
|
+
style: g(e.labelStyle)
|
|
172
173
|
}, [
|
|
173
|
-
i(
|
|
174
|
-
e.required ? (
|
|
174
|
+
i(p(e.label) + " ", 1),
|
|
175
|
+
e.required ? (n(), r("span", pe, "*")) : _("", !0)
|
|
175
176
|
], 4))
|
|
176
177
|
]),
|
|
177
|
-
default:
|
|
178
|
-
b(
|
|
179
|
-
rules: e.isHide ? [] : e.rules.nameEnFamily,
|
|
178
|
+
default: s(() => [
|
|
179
|
+
b(y, {
|
|
180
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules.nameEnFamily,
|
|
180
181
|
prop: e.field.nameEnFamily,
|
|
181
182
|
class: "item-name"
|
|
182
183
|
}, {
|
|
183
|
-
default:
|
|
184
|
-
b(
|
|
185
|
-
onBlur: (l) =>
|
|
186
|
-
onFocus: (l) =>
|
|
187
|
-
onChange: (l) =>
|
|
188
|
-
onInput: (l) =>
|
|
184
|
+
default: s(() => [
|
|
185
|
+
b(D, {
|
|
186
|
+
onBlur: (l) => o.inputBlur(l, e.field.nameEnFamily),
|
|
187
|
+
onFocus: (l) => o.inputFocus(l, e.field.nameEnFamily),
|
|
188
|
+
onChange: (l) => o.inputChange(l, e.field.nameEnFamily),
|
|
189
|
+
onInput: (l) => o.inputInput(l, e.field.nameEnFamily),
|
|
189
190
|
maxlength: e.maxlengthNameEnFamily,
|
|
190
|
-
modelValue:
|
|
191
|
-
"onUpdate:modelValue": (l) =>
|
|
191
|
+
modelValue: o.states.model[e.field.nameEnFamily],
|
|
192
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field.nameEnFamily] = l,
|
|
192
193
|
readonly: e.readonly,
|
|
193
194
|
type: e.type ? e.type : "text",
|
|
194
195
|
placeholder: e.placeholderNameEnFamily,
|
|
195
|
-
disabled: e.disabled ||
|
|
196
|
-
onKeyup:
|
|
196
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
197
|
+
onKeyup: v((l) => o.handleKeyUp(e.enterable), ["enter"])
|
|
197
198
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
198
199
|
]),
|
|
199
200
|
_: 2
|
|
200
201
|
}, 1032, ["rules", "prop"]),
|
|
201
|
-
b(
|
|
202
|
-
rules: e.isHide ? [] : e.rules.nameEn,
|
|
202
|
+
b(y, {
|
|
203
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules.nameEn,
|
|
203
204
|
prop: e.field.nameEn,
|
|
204
205
|
class: "item-name-right"
|
|
205
206
|
}, {
|
|
206
|
-
default:
|
|
207
|
-
b(
|
|
208
|
-
onBlur: (l) =>
|
|
209
|
-
onFocus: (l) =>
|
|
210
|
-
onChange: (l) =>
|
|
211
|
-
onInput: (l) =>
|
|
207
|
+
default: s(() => [
|
|
208
|
+
b(D, {
|
|
209
|
+
onBlur: (l) => o.inputBlur(l, e.field.nameEn),
|
|
210
|
+
onFocus: (l) => o.inputFocus(l, e.field.nameEn),
|
|
211
|
+
onChange: (l) => o.inputChange(l, e.field.nameEn),
|
|
212
|
+
onInput: (l) => o.inputInput(l, e.field.nameEn),
|
|
212
213
|
maxlength: e.maxlengthNameEn,
|
|
213
|
-
modelValue:
|
|
214
|
-
"onUpdate:modelValue": (l) =>
|
|
214
|
+
modelValue: o.states.model[e.field.nameEn],
|
|
215
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field.nameEn] = l,
|
|
215
216
|
readonly: e.readonly,
|
|
216
217
|
type: e.type ? e.type : "text",
|
|
217
218
|
placeholder: e.placeholderNameEn,
|
|
218
|
-
disabled: e.disabled ||
|
|
219
|
-
onKeyup:
|
|
219
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
220
|
+
onKeyup: v((l) => o.handleKeyUp(e.enterable), ["enter"])
|
|
220
221
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
221
222
|
]),
|
|
222
223
|
_: 2
|
|
223
224
|
}, 1032, ["rules", "prop"]),
|
|
224
|
-
b(
|
|
225
|
-
rules: e.isHide ? [] : e.rules.nameChFamily,
|
|
225
|
+
b(y, {
|
|
226
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules.nameChFamily,
|
|
226
227
|
prop: e.field.nameChFamily,
|
|
227
228
|
class: "item-name"
|
|
228
229
|
}, {
|
|
229
|
-
default:
|
|
230
|
-
b(
|
|
231
|
-
onBlur: (l) =>
|
|
232
|
-
onFocus: (l) =>
|
|
233
|
-
onChange: (l) =>
|
|
234
|
-
onInput: (l) =>
|
|
230
|
+
default: s(() => [
|
|
231
|
+
b(D, {
|
|
232
|
+
onBlur: (l) => o.inputBlur(l, e.field.nameChFamily),
|
|
233
|
+
onFocus: (l) => o.inputFocus(l, e.field.nameChFamily),
|
|
234
|
+
onChange: (l) => o.inputChange(l, e.field.nameChFamily),
|
|
235
|
+
onInput: (l) => o.inputInput(l, e.field.nameChFamily),
|
|
235
236
|
maxlength: e.maxlengthNameChFamily,
|
|
236
|
-
modelValue:
|
|
237
|
-
"onUpdate:modelValue": (l) =>
|
|
237
|
+
modelValue: o.states.model[e.field.nameChFamily],
|
|
238
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field.nameChFamily] = l,
|
|
238
239
|
readonly: e.readonly,
|
|
239
240
|
type: e.type ? e.type : "text",
|
|
240
241
|
placeholder: e.placeholderNameChFamily,
|
|
241
|
-
disabled: e.disabled ||
|
|
242
|
-
onKeyup:
|
|
242
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
243
|
+
onKeyup: v((l) => o.handleKeyUp(e.enterable), ["enter"])
|
|
243
244
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
244
245
|
]),
|
|
245
246
|
_: 2
|
|
246
247
|
}, 1032, ["rules", "prop"]),
|
|
247
|
-
b(
|
|
248
|
-
rules: e.isHide ? [] : e.rules.nameCh,
|
|
248
|
+
b(y, {
|
|
249
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules.nameCh,
|
|
249
250
|
prop: e.field.nameCh,
|
|
250
251
|
class: "item-name-right"
|
|
251
252
|
}, {
|
|
252
|
-
default:
|
|
253
|
-
b(
|
|
254
|
-
onBlur: (l) =>
|
|
255
|
-
onFocus: (l) =>
|
|
256
|
-
onChange: (l) =>
|
|
257
|
-
onInput: (l) =>
|
|
253
|
+
default: s(() => [
|
|
254
|
+
b(D, {
|
|
255
|
+
onBlur: (l) => o.inputBlur(l, e.field.nameCh),
|
|
256
|
+
onFocus: (l) => o.inputFocus(l, e.field.nameCh),
|
|
257
|
+
onChange: (l) => o.inputChange(l, e.field.nameCh),
|
|
258
|
+
onInput: (l) => o.inputInput(l, e.field.nameCh),
|
|
258
259
|
maxlength: e.maxlengthNameCh,
|
|
259
|
-
modelValue:
|
|
260
|
-
"onUpdate:modelValue": (l) =>
|
|
260
|
+
modelValue: o.states.model[e.field.nameCh],
|
|
261
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field.nameCh] = l,
|
|
261
262
|
readonly: e.readonly,
|
|
262
263
|
type: e.type ? e.type : "text",
|
|
263
264
|
placeholder: e.placeholderNameCh,
|
|
264
|
-
disabled: e.disabled ||
|
|
265
|
-
onKeyup:
|
|
265
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
266
|
+
onKeyup: v((l) => o.handleKeyUp(e.enterable), ["enter"])
|
|
266
267
|
}, null, 8, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
267
268
|
]),
|
|
268
269
|
_: 2
|
|
269
270
|
}, 1032, ["rules", "prop"])
|
|
270
271
|
]),
|
|
271
272
|
_: 2
|
|
272
|
-
}, 1032, ["label", "disabled"])) : e.type === "gender" ? (
|
|
273
|
+
}, 1032, ["label", "disabled"])) : e.type === "gender" ? (n(), c(y, {
|
|
273
274
|
key: 2,
|
|
274
275
|
label: e.label,
|
|
275
|
-
rules: e.isHide ? [] : e.rules,
|
|
276
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
276
277
|
prop: e.field
|
|
277
278
|
}, {
|
|
278
|
-
label:
|
|
279
|
-
e.slotLabelName ?
|
|
279
|
+
label: s(() => [
|
|
280
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
280
281
|
key: 0,
|
|
281
|
-
style:
|
|
282
|
+
style: g(e.labelStyle)
|
|
282
283
|
}, [
|
|
283
|
-
i(
|
|
284
|
-
e.required ? (
|
|
284
|
+
i(p(e.label) + " ", 1),
|
|
285
|
+
e.required ? (n(), r("span", ye, "*")) : _("", !0)
|
|
285
286
|
], 4))
|
|
286
287
|
]),
|
|
287
|
-
default:
|
|
288
|
-
b(
|
|
289
|
-
modelValue:
|
|
290
|
-
"onUpdate:modelValue": (l) =>
|
|
291
|
-
disabled: e.disabled ||
|
|
292
|
-
onChange: (l) =>
|
|
288
|
+
default: s(() => [
|
|
289
|
+
b(U, {
|
|
290
|
+
modelValue: o.states.model[e.field],
|
|
291
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field] = l,
|
|
292
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
293
|
+
onChange: (l) => o.radioChange(l, e.field)
|
|
293
294
|
}, {
|
|
294
|
-
default:
|
|
295
|
+
default: s(() => {
|
|
295
296
|
var l;
|
|
296
297
|
return [
|
|
297
|
-
(
|
|
298
|
-
var
|
|
299
|
-
return
|
|
300
|
-
label:
|
|
298
|
+
(n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
299
|
+
var d, u;
|
|
300
|
+
return n(), c(w, {
|
|
301
|
+
label: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
|
|
301
302
|
size: "large",
|
|
302
|
-
key:
|
|
303
|
+
key: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
|
|
303
304
|
}, {
|
|
304
|
-
default:
|
|
305
|
-
|
|
306
|
-
src:
|
|
305
|
+
default: s(() => [
|
|
306
|
+
V("img", {
|
|
307
|
+
src: a.code === "M" ? "http://192.168.5.200:9000/test/sex_img_M.png" : "http://192.168.5.200:9000/test/sex_img_F.png",
|
|
307
308
|
style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
|
|
308
309
|
alt: ""
|
|
309
310
|
}, null, 8, be)
|
|
@@ -317,43 +318,43 @@ function we(u, h, g, a, v, q) {
|
|
|
317
318
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
318
319
|
]),
|
|
319
320
|
_: 2
|
|
320
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (
|
|
321
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (n(), c(y, {
|
|
321
322
|
key: 3,
|
|
322
323
|
label: e.label,
|
|
323
|
-
rules: e.isHide ? [] : e.rules,
|
|
324
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
324
325
|
prop: e.field,
|
|
325
|
-
class:
|
|
326
|
+
class: S([e.labelNode ? "radio_Note" : "rule_err"])
|
|
326
327
|
}, {
|
|
327
|
-
label:
|
|
328
|
-
e.slotLabelName ?
|
|
328
|
+
label: s(() => [
|
|
329
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
329
330
|
key: 0,
|
|
330
|
-
style:
|
|
331
|
+
style: g(e.labelStyle)
|
|
331
332
|
}, [
|
|
332
|
-
i(
|
|
333
|
-
e.required ? (
|
|
333
|
+
i(p(e.label) + " ", 1),
|
|
334
|
+
e.required ? (n(), r("span", ie, "*")) : _("", !0)
|
|
334
335
|
], 4))
|
|
335
336
|
]),
|
|
336
|
-
default:
|
|
337
|
-
b(
|
|
338
|
-
modelValue:
|
|
339
|
-
"onUpdate:modelValue": (l) =>
|
|
340
|
-
disabled: e.disabled ||
|
|
341
|
-
onChange: (l) =>
|
|
337
|
+
default: s(() => [
|
|
338
|
+
b(U, {
|
|
339
|
+
modelValue: o.states.model[e.field],
|
|
340
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field] = l,
|
|
341
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
342
|
+
onChange: (l) => o.radioChange(l, e.field)
|
|
342
343
|
}, {
|
|
343
|
-
default:
|
|
344
|
+
default: s(() => {
|
|
344
345
|
var l;
|
|
345
346
|
return [
|
|
346
|
-
(
|
|
347
|
-
var
|
|
348
|
-
return
|
|
347
|
+
(n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
348
|
+
var d, u;
|
|
349
|
+
return n(), c(w, {
|
|
349
350
|
size: "large",
|
|
350
|
-
label:
|
|
351
|
-
key:
|
|
351
|
+
label: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
|
|
352
|
+
key: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
|
|
352
353
|
}, {
|
|
353
|
-
default:
|
|
354
|
-
var
|
|
354
|
+
default: s(() => {
|
|
355
|
+
var f;
|
|
355
356
|
return [
|
|
356
|
-
i(
|
|
357
|
+
i(p(a[((f = e.options) == null ? void 0 : f.labelkey) || "name"]), 1)
|
|
357
358
|
];
|
|
358
359
|
}),
|
|
359
360
|
_: 2
|
|
@@ -365,39 +366,39 @@ function we(u, h, g, a, v, q) {
|
|
|
365
366
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
366
367
|
]),
|
|
367
368
|
_: 2
|
|
368
|
-
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "radioNote" ? (
|
|
369
|
+
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "radioNote" ? (n(), c(y, {
|
|
369
370
|
key: 4,
|
|
370
371
|
label: e.label,
|
|
371
|
-
rules: e.isHide ? [] : e.rules,
|
|
372
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
372
373
|
prop: e.field,
|
|
373
|
-
class:
|
|
374
|
+
class: S([e.labelNode ? "radio_Note" : "rule_err"])
|
|
374
375
|
}, {
|
|
375
|
-
default:
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
e.required ? (
|
|
376
|
+
default: s(() => [
|
|
377
|
+
V("div", null, [
|
|
378
|
+
V("span", he, p(e.labelBefore), 1),
|
|
379
|
+
V("span", fe, p(e.labelNode), 1),
|
|
380
|
+
e.required ? (n(), r("span", ge, "*")) : _("", !0)
|
|
380
381
|
]),
|
|
381
|
-
b(
|
|
382
|
-
modelValue:
|
|
383
|
-
"onUpdate:modelValue": (l) =>
|
|
384
|
-
disabled: e.disabled ||
|
|
385
|
-
onChange: (l) =>
|
|
382
|
+
b(U, {
|
|
383
|
+
modelValue: o.states.model[e.field],
|
|
384
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field] = l,
|
|
385
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
386
|
+
onChange: (l) => o.radioChange(l, e.field)
|
|
386
387
|
}, {
|
|
387
|
-
default:
|
|
388
|
+
default: s(() => {
|
|
388
389
|
var l;
|
|
389
390
|
return [
|
|
390
|
-
(
|
|
391
|
-
var
|
|
392
|
-
return
|
|
391
|
+
(n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
392
|
+
var d, u;
|
|
393
|
+
return n(), c(w, {
|
|
393
394
|
size: "large",
|
|
394
|
-
label:
|
|
395
|
-
key:
|
|
395
|
+
label: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
|
|
396
|
+
key: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
|
|
396
397
|
}, {
|
|
397
|
-
default:
|
|
398
|
-
var
|
|
398
|
+
default: s(() => {
|
|
399
|
+
var f;
|
|
399
400
|
return [
|
|
400
|
-
i(
|
|
401
|
+
i(p(a[((f = e.options) == null ? void 0 : f.labelkey) || "name"]), 1)
|
|
401
402
|
];
|
|
402
403
|
}),
|
|
403
404
|
_: 2
|
|
@@ -409,44 +410,44 @@ function we(u, h, g, a, v, q) {
|
|
|
409
410
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
|
|
410
411
|
]),
|
|
411
412
|
_: 2
|
|
412
|
-
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "checkbox" ? (
|
|
413
|
+
}, 1032, ["label", "rules", "prop", "class"])) : e.type === "checkbox" ? (n(), c(y, {
|
|
413
414
|
key: 5,
|
|
414
415
|
label: e.label,
|
|
415
|
-
rules: e.isHide ? [] : e.rules,
|
|
416
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
416
417
|
prop: e.field
|
|
417
418
|
}, {
|
|
418
|
-
label:
|
|
419
|
-
e.slotLabelName ?
|
|
419
|
+
label: s(() => [
|
|
420
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
420
421
|
key: 0,
|
|
421
|
-
style:
|
|
422
|
+
style: g(e.labelStyle)
|
|
422
423
|
}, [
|
|
423
|
-
i(
|
|
424
|
-
e.required ? (
|
|
424
|
+
i(p(e.label) + " ", 1),
|
|
425
|
+
e.required ? (n(), r("span", Me, "*")) : _("", !0)
|
|
425
426
|
], 4))
|
|
426
427
|
]),
|
|
427
|
-
default:
|
|
428
|
+
default: s(() => [
|
|
428
429
|
b(z, {
|
|
429
|
-
modelValue:
|
|
430
|
-
"onUpdate:modelValue": (l) =>
|
|
431
|
-
onChange: (l) =>
|
|
432
|
-
disabled: e.disabled ||
|
|
433
|
-
style:
|
|
430
|
+
modelValue: o.states.model[e.field],
|
|
431
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field] = l,
|
|
432
|
+
onChange: (l) => o.checkChange(l, e.field),
|
|
433
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
434
|
+
style: g(
|
|
434
435
|
e.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
435
436
|
)
|
|
436
437
|
}, {
|
|
437
|
-
default:
|
|
438
|
+
default: s(() => {
|
|
438
439
|
var l;
|
|
439
440
|
return [
|
|
440
|
-
(
|
|
441
|
-
var
|
|
442
|
-
return
|
|
443
|
-
key:
|
|
444
|
-
label:
|
|
441
|
+
(n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
442
|
+
var d, u;
|
|
443
|
+
return n(), c(F, {
|
|
444
|
+
key: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
|
|
445
|
+
label: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
|
|
445
446
|
}, {
|
|
446
|
-
default:
|
|
447
|
-
var
|
|
447
|
+
default: s(() => {
|
|
448
|
+
var f;
|
|
448
449
|
return [
|
|
449
|
-
i(
|
|
450
|
+
i(p(a[((f = e.options) == null ? void 0 : f.labelkey) || "name"]), 1)
|
|
450
451
|
];
|
|
451
452
|
}),
|
|
452
453
|
_: 2
|
|
@@ -458,44 +459,44 @@ function we(u, h, g, a, v, q) {
|
|
|
458
459
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
459
460
|
]),
|
|
460
461
|
_: 2
|
|
461
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "checkboxRadio" ? (
|
|
462
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "checkboxRadio" ? (n(), c(y, {
|
|
462
463
|
key: 6,
|
|
463
464
|
label: e.label,
|
|
464
|
-
rules: e.isHide ? [] : e.rules,
|
|
465
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
465
466
|
prop: e.field
|
|
466
467
|
}, {
|
|
467
|
-
label:
|
|
468
|
-
e.slotLabelName ?
|
|
468
|
+
label: s(() => [
|
|
469
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
469
470
|
key: 0,
|
|
470
|
-
style:
|
|
471
|
+
style: g(e.labelStyle)
|
|
471
472
|
}, [
|
|
472
|
-
i(
|
|
473
|
-
e.required ? (
|
|
473
|
+
i(p(e.label) + " ", 1),
|
|
474
|
+
e.required ? (n(), r("span", _e, "*")) : _("", !0)
|
|
474
475
|
], 4))
|
|
475
476
|
]),
|
|
476
|
-
default:
|
|
477
|
+
default: s(() => [
|
|
477
478
|
b(z, {
|
|
478
|
-
modelValue:
|
|
479
|
-
"onUpdate:modelValue": (l) =>
|
|
480
|
-
onChange: (l) =>
|
|
481
|
-
disabled: e.disabled ||
|
|
482
|
-
style:
|
|
479
|
+
modelValue: o.states.model[e.field],
|
|
480
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field] = l,
|
|
481
|
+
onChange: (l) => o.handleCheckedChange(l, e.field),
|
|
482
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
483
|
+
style: g(
|
|
483
484
|
e.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
484
485
|
)
|
|
485
486
|
}, {
|
|
486
|
-
default:
|
|
487
|
+
default: s(() => {
|
|
487
488
|
var l;
|
|
488
489
|
return [
|
|
489
|
-
(
|
|
490
|
-
var
|
|
491
|
-
return
|
|
492
|
-
key:
|
|
493
|
-
label:
|
|
490
|
+
(n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
491
|
+
var d, u;
|
|
492
|
+
return n(), c(F, {
|
|
493
|
+
key: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
|
|
494
|
+
label: a[((u = e.options) == null ? void 0 : u.valueKey) || "code"]
|
|
494
495
|
}, {
|
|
495
|
-
default:
|
|
496
|
-
var
|
|
496
|
+
default: s(() => {
|
|
497
|
+
var f;
|
|
497
498
|
return [
|
|
498
|
-
i(
|
|
499
|
+
i(p(a[((f = e.options) == null ? void 0 : f.labelkey) || "name"]), 1)
|
|
499
500
|
];
|
|
500
501
|
}),
|
|
501
502
|
_: 2
|
|
@@ -507,107 +508,107 @@ function we(u, h, g, a, v, q) {
|
|
|
507
508
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "disabled", "style"])
|
|
508
509
|
]),
|
|
509
510
|
_: 2
|
|
510
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (
|
|
511
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (n(), c(y, {
|
|
511
512
|
key: 7,
|
|
512
513
|
label: e.label,
|
|
513
|
-
rules: e.isHide ? [] : e.rules,
|
|
514
|
-
disabled: e.disabled ||
|
|
514
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
515
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
515
516
|
prop: e.field
|
|
516
517
|
}, {
|
|
517
|
-
label:
|
|
518
|
-
e.slotLabelName ?
|
|
518
|
+
label: s(() => [
|
|
519
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
519
520
|
key: 0,
|
|
520
|
-
style:
|
|
521
|
+
style: g(e.labelStyle)
|
|
521
522
|
}, [
|
|
522
|
-
i(
|
|
523
|
-
e.required ? (
|
|
523
|
+
i(p(e.label) + " ", 1),
|
|
524
|
+
e.required ? (n(), r("span", Ce, "*")) : _("", !0)
|
|
524
525
|
], 4))
|
|
525
526
|
]),
|
|
526
|
-
default:
|
|
527
|
-
b(
|
|
528
|
-
onChange: (l) =>
|
|
529
|
-
modelValue:
|
|
530
|
-
"onUpdate:modelValue": (l) =>
|
|
531
|
-
disabled: e.disabled ||
|
|
527
|
+
default: s(() => [
|
|
528
|
+
b(L, {
|
|
529
|
+
onChange: (l) => o.selectChange(l, e.field),
|
|
530
|
+
modelValue: o.states.model[e.field],
|
|
531
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field] = l,
|
|
532
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
532
533
|
placeholder: e.placeholder,
|
|
533
534
|
clearable: e.clearable
|
|
534
535
|
}, {
|
|
535
|
-
default:
|
|
536
|
+
default: s(() => {
|
|
536
537
|
var l;
|
|
537
538
|
return [
|
|
538
|
-
(
|
|
539
|
-
var
|
|
540
|
-
return
|
|
541
|
-
key:
|
|
542
|
-
label:
|
|
543
|
-
value:
|
|
539
|
+
(n(!0), r(I, null, x((l = e.options) == null ? void 0 : l.data, (a) => {
|
|
540
|
+
var d, u, f;
|
|
541
|
+
return n(), c(O, {
|
|
542
|
+
key: a[((d = e.options) == null ? void 0 : d.valueKey) || "code"],
|
|
543
|
+
label: a[((u = e.options) == null ? void 0 : u.labelkey) || "name"],
|
|
544
|
+
value: a[((f = e.options) == null ? void 0 : f.valueKey) || "code"]
|
|
544
545
|
}, null, 8, ["label", "value"]);
|
|
545
546
|
}), 128))
|
|
546
547
|
];
|
|
547
548
|
}),
|
|
548
549
|
_: 2
|
|
549
550
|
}, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"]),
|
|
550
|
-
|
|
551
|
+
V("div", {
|
|
551
552
|
class: "item_tips_blow",
|
|
552
|
-
style:
|
|
553
|
-
},
|
|
553
|
+
style: g(e.tipsBlowStyle)
|
|
554
|
+
}, p(e.tipsBlow), 5)
|
|
554
555
|
]),
|
|
555
556
|
_: 2
|
|
556
|
-
}, 1032, ["label", "rules", "disabled", "prop"])) : e.type === "date" ? (
|
|
557
|
+
}, 1032, ["label", "rules", "disabled", "prop"])) : e.type === "date" ? (n(), c(y, {
|
|
557
558
|
key: 8,
|
|
558
559
|
label: e.label,
|
|
559
|
-
rules: e.isHide ? [] : e.rules,
|
|
560
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
560
561
|
prop: e.field
|
|
561
562
|
}, {
|
|
562
|
-
label:
|
|
563
|
-
e.slotLabelName ?
|
|
563
|
+
label: s(() => [
|
|
564
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
564
565
|
key: 0,
|
|
565
|
-
style:
|
|
566
|
+
style: g(e.labelStyle)
|
|
566
567
|
}, [
|
|
567
|
-
i(
|
|
568
|
-
e.required ? (
|
|
568
|
+
i(p(e.label) + " ", 1),
|
|
569
|
+
e.required ? (n(), r("span", Ne, "*")) : _("", !0)
|
|
569
570
|
], 4))
|
|
570
571
|
]),
|
|
571
|
-
default:
|
|
572
|
-
b(
|
|
572
|
+
default: s(() => [
|
|
573
|
+
b(A, {
|
|
573
574
|
format: "DD/MM/YYYY",
|
|
574
575
|
"value-format": "DD/MM/YYYY",
|
|
575
576
|
"disabled-date": e.disabledDate,
|
|
576
|
-
onChange: (l) =>
|
|
577
|
-
"prefix-icon":
|
|
578
|
-
modelValue:
|
|
579
|
-
"onUpdate:modelValue": (l) =>
|
|
580
|
-
disabled: e.disabled ||
|
|
577
|
+
onChange: (l) => o.dateChange(l, e.field),
|
|
578
|
+
"prefix-icon": o.prefixIcon,
|
|
579
|
+
modelValue: o.states.model[e.field],
|
|
580
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field] = l,
|
|
581
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
581
582
|
readonly: e.readonly,
|
|
582
583
|
type: e.type,
|
|
583
584
|
placeholder: e.placeholder || e.label
|
|
584
585
|
}, null, 8, ["disabled-date", "onChange", "prefix-icon", "modelValue", "onUpdate:modelValue", "disabled", "readonly", "type", "placeholder"])
|
|
585
586
|
]),
|
|
586
587
|
_: 2
|
|
587
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "daterange" ? (
|
|
588
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "daterange" ? (n(), c(y, {
|
|
588
589
|
key: 9,
|
|
589
590
|
label: e.label,
|
|
590
|
-
rules: e.isHide ? [] : e.rules,
|
|
591
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
591
592
|
prop: e.field
|
|
592
593
|
}, {
|
|
593
|
-
label:
|
|
594
|
-
e.slotLabelName ?
|
|
594
|
+
label: s(() => [
|
|
595
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
595
596
|
key: 0,
|
|
596
|
-
style:
|
|
597
|
+
style: g(e.labelStyle)
|
|
597
598
|
}, [
|
|
598
|
-
i(
|
|
599
|
-
e.required ? (
|
|
599
|
+
i(p(e.label) + " ", 1),
|
|
600
|
+
e.required ? (n(), r("span", ke, "*")) : _("", !0)
|
|
600
601
|
], 4))
|
|
601
602
|
]),
|
|
602
|
-
default:
|
|
603
|
-
b(
|
|
603
|
+
default: s(() => [
|
|
604
|
+
b(A, {
|
|
604
605
|
format: "DD/MM/YYYY",
|
|
605
606
|
"value-format": "DD/MM/YYYY",
|
|
606
607
|
"disabled-date": e.disabledDate,
|
|
607
|
-
onChange: (l) =>
|
|
608
|
-
modelValue:
|
|
609
|
-
"onUpdate:modelValue": (l) =>
|
|
610
|
-
"prefix-icon":
|
|
608
|
+
onChange: (l) => o.dateChange(l, e.field),
|
|
609
|
+
modelValue: o.states.model[e.field],
|
|
610
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field] = l,
|
|
611
|
+
"prefix-icon": o.prefixIcon,
|
|
611
612
|
type: "daterange",
|
|
612
613
|
"range-separator": "To",
|
|
613
614
|
"start-placeholder": e.startPlaceholder,
|
|
@@ -616,72 +617,72 @@ function we(u, h, g, a, v, q) {
|
|
|
616
617
|
}, null, 8, ["disabled-date", "onChange", "modelValue", "onUpdate:modelValue", "prefix-icon", "start-placeholder", "end-placeholder"])
|
|
617
618
|
]),
|
|
618
619
|
_: 2
|
|
619
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "slotItem" ? (
|
|
620
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "slotItem" ? (n(), c(y, {
|
|
620
621
|
key: 10,
|
|
621
622
|
label: e.label,
|
|
622
|
-
rules: e.isHide ? [] : e.rules,
|
|
623
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
623
624
|
prop: e.field,
|
|
624
625
|
class: "rule_err"
|
|
625
626
|
}, {
|
|
626
|
-
label:
|
|
627
|
-
e.slotLabelName ?
|
|
627
|
+
label: s(() => [
|
|
628
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
628
629
|
key: 0,
|
|
629
|
-
style:
|
|
630
|
+
style: g(e.labelStyle)
|
|
630
631
|
}, [
|
|
631
|
-
i(
|
|
632
|
-
e.required ? (
|
|
632
|
+
i(p(e.label) + " ", 1),
|
|
633
|
+
e.required ? (n(), r("span", De, "*")) : _("", !0)
|
|
633
634
|
], 4))
|
|
634
635
|
]),
|
|
635
|
-
default:
|
|
636
|
-
|
|
636
|
+
default: s(() => [
|
|
637
|
+
C(t.$slots, e.slotItemName, {}, void 0, !0)
|
|
637
638
|
]),
|
|
638
639
|
_: 2
|
|
639
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "phone" ? (
|
|
640
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "phone" ? (n(), c(y, {
|
|
640
641
|
key: 11,
|
|
641
642
|
label: e.label,
|
|
642
|
-
rules: e.isHide ? [] : e.rules.phoneNumber,
|
|
643
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules.phoneNumber,
|
|
643
644
|
prop: e.field.phoneNumber,
|
|
644
645
|
class: "phone_item"
|
|
645
646
|
}, {
|
|
646
|
-
label:
|
|
647
|
-
e.slotLabelName ?
|
|
647
|
+
label: s(() => [
|
|
648
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
648
649
|
key: 0,
|
|
649
|
-
style:
|
|
650
|
+
style: g(e.labelStyle)
|
|
650
651
|
}, [
|
|
651
|
-
i(
|
|
652
|
-
e.required ? (
|
|
652
|
+
i(p(e.label) + " ", 1),
|
|
653
|
+
e.required ? (n(), r("span", Ie, "*")) : _("", !0)
|
|
653
654
|
], 4))
|
|
654
655
|
]),
|
|
655
|
-
default:
|
|
656
|
-
b(
|
|
657
|
-
onBlur: (l) =>
|
|
658
|
-
onFocus: (l) =>
|
|
659
|
-
onChange: (l) =>
|
|
660
|
-
onInput: (l) =>
|
|
656
|
+
default: s(() => [
|
|
657
|
+
b(D, {
|
|
658
|
+
onBlur: (l) => o.inputBlur(l, e.field),
|
|
659
|
+
onFocus: (l) => o.inputFocus(l, e.field),
|
|
660
|
+
onChange: (l) => o.inputChange(l, e.field),
|
|
661
|
+
onInput: (l) => o.inputInput(l, e.field),
|
|
661
662
|
maxlength: e.maxlength,
|
|
662
|
-
modelValue:
|
|
663
|
-
"onUpdate:modelValue": (l) =>
|
|
664
|
-
disabled: e.disabled ||
|
|
663
|
+
modelValue: o.states.model[e.field.phoneNumber],
|
|
664
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field.phoneNumber] = l,
|
|
665
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
665
666
|
placeholder: e.placeholder || "请选择",
|
|
666
667
|
clearable: e.clearable
|
|
667
668
|
}, {
|
|
668
|
-
prepend:
|
|
669
|
+
prepend: s(() => {
|
|
669
670
|
var l;
|
|
670
671
|
return [
|
|
671
|
-
b(
|
|
672
|
-
disabled: e.disabled ||
|
|
673
|
-
modelValue:
|
|
674
|
-
"onUpdate:modelValue": (
|
|
672
|
+
b(L, {
|
|
673
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
674
|
+
modelValue: o.states.model[e.field.areaCode],
|
|
675
|
+
"onUpdate:modelValue": (a) => o.states.model[e.field.areaCode] = a,
|
|
675
676
|
placeholder: ((l = e.options) == null ? void 0 : l.placeholder) || "请选择",
|
|
676
677
|
style: { width: "115px" }
|
|
677
678
|
}, {
|
|
678
|
-
default:
|
|
679
|
-
var
|
|
679
|
+
default: s(() => {
|
|
680
|
+
var a;
|
|
680
681
|
return [
|
|
681
|
-
(
|
|
682
|
-
label:
|
|
683
|
-
value:
|
|
684
|
-
key:
|
|
682
|
+
(n(!0), r(I, null, x((a = e.options) == null ? void 0 : a.data, (d, u) => (n(), c(O, {
|
|
683
|
+
label: d.name,
|
|
684
|
+
value: d.code,
|
|
685
|
+
key: u
|
|
685
686
|
}, null, 8, ["label", "value"]))), 128))
|
|
686
687
|
];
|
|
687
688
|
}),
|
|
@@ -693,58 +694,58 @@ function we(u, h, g, a, v, q) {
|
|
|
693
694
|
}, 1032, ["onBlur", "onFocus", "onChange", "onInput", "maxlength", "modelValue", "onUpdate:modelValue", "disabled", "placeholder", "clearable"])
|
|
694
695
|
]),
|
|
695
696
|
_: 2
|
|
696
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "line" ? (
|
|
697
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "line" ? (n(), c(y, {
|
|
697
698
|
key: 12,
|
|
698
699
|
label: e.label
|
|
699
700
|
}, {
|
|
700
|
-
default:
|
|
701
|
+
default: s(() => [
|
|
701
702
|
xe
|
|
702
703
|
]),
|
|
703
704
|
_: 2
|
|
704
|
-
}, 1032, ["label"])) : (
|
|
705
|
+
}, 1032, ["label"])) : (n(), c(y, {
|
|
705
706
|
key: 13,
|
|
706
|
-
rules: e.isHide ? [] : e.rules,
|
|
707
|
+
rules: e.isHide || o.noFormRule ? [] : e.rules,
|
|
707
708
|
prop: e.field,
|
|
708
|
-
class:
|
|
709
|
+
class: S(e.prepend ? "input-item" : "")
|
|
709
710
|
}, {
|
|
710
|
-
label:
|
|
711
|
-
e.slotLabelName ?
|
|
711
|
+
label: s(() => [
|
|
712
|
+
e.slotLabelName ? C(t.$slots, e.slotLabelName, { key: 1 }, void 0, !0) : (n(), r("div", {
|
|
712
713
|
key: 0,
|
|
713
|
-
style:
|
|
714
|
+
style: g(e.labelStyle)
|
|
714
715
|
}, [
|
|
715
|
-
i(
|
|
716
|
-
e.required ? (
|
|
716
|
+
i(p(e.label) + " ", 1),
|
|
717
|
+
e.required ? (n(), r("span", Ve, "*")) : _("", !0)
|
|
717
718
|
], 4))
|
|
718
719
|
]),
|
|
719
|
-
default:
|
|
720
|
-
b(
|
|
721
|
-
onBlur: (l) =>
|
|
722
|
-
onFocus: (l) =>
|
|
723
|
-
onChange: (l) =>
|
|
724
|
-
onInput: (l) =>
|
|
720
|
+
default: s(() => [
|
|
721
|
+
b(D, {
|
|
722
|
+
onBlur: (l) => o.inputBlur(l, e.field),
|
|
723
|
+
onFocus: (l) => o.inputFocus(l, e.field),
|
|
724
|
+
onChange: (l) => o.inputChange(l, e.field),
|
|
725
|
+
onInput: (l) => o.inputInput(l, e.field),
|
|
725
726
|
maxlength: e.maxlength,
|
|
726
|
-
modelValue:
|
|
727
|
-
"onUpdate:modelValue": (l) =>
|
|
727
|
+
modelValue: o.states.model[e.field],
|
|
728
|
+
"onUpdate:modelValue": (l) => o.states.model[e.field] = l,
|
|
728
729
|
"show-word-limit": e.showWordLimit,
|
|
729
730
|
readonly: e.readonly,
|
|
730
731
|
type: e.type ? e.type : "text",
|
|
731
732
|
placeholder: e.placeholder || e.label,
|
|
732
|
-
disabled: e.disabled ||
|
|
733
|
+
disabled: e.disabled || o.formOptions.isDisabled,
|
|
733
734
|
showPassword: e.showPassword,
|
|
734
735
|
clearable: e.clearable,
|
|
735
|
-
onKeyup:
|
|
736
|
+
onKeyup: v((l) => o.handleKeyUp(e.enterable), ["enter"])
|
|
736
737
|
}, le({ _: 2 }, [
|
|
737
738
|
e.prepend ? {
|
|
738
739
|
name: "prepend",
|
|
739
|
-
fn:
|
|
740
|
-
i(
|
|
740
|
+
fn: s(() => [
|
|
741
|
+
i(p(e.prepend), 1)
|
|
741
742
|
]),
|
|
742
743
|
key: "0"
|
|
743
744
|
} : void 0,
|
|
744
745
|
e.append ? {
|
|
745
746
|
name: "append",
|
|
746
|
-
fn:
|
|
747
|
-
i(
|
|
747
|
+
fn: s(() => [
|
|
748
|
+
i(p(e.append), 1)
|
|
748
749
|
]),
|
|
749
750
|
key: "1"
|
|
750
751
|
} : void 0
|
|
@@ -756,19 +757,19 @@ function we(u, h, g, a, v, q) {
|
|
|
756
757
|
]),
|
|
757
758
|
_: 2
|
|
758
759
|
}, 1032, ["xs", "sm", "md", "lg", "xl"])), [
|
|
759
|
-
[
|
|
760
|
+
[oe, !e.isHide]
|
|
760
761
|
])), 128))
|
|
761
762
|
]),
|
|
762
763
|
_: 3
|
|
763
764
|
}),
|
|
764
|
-
b(
|
|
765
|
-
default:
|
|
766
|
-
|
|
767
|
-
model:
|
|
768
|
-
onBtnClick:
|
|
765
|
+
b(y, { class: "btnsItem" }, {
|
|
766
|
+
default: s(() => [
|
|
767
|
+
C(t.$slots, "buttons", {
|
|
768
|
+
model: k.model,
|
|
769
|
+
onBtnClick: o.onSubmit
|
|
769
770
|
}, () => [
|
|
770
|
-
(
|
|
771
|
-
e.isShow ? (
|
|
771
|
+
(n(!0), r(I, null, x(o.formOptions.btnConfig, (e, j) => (n(), r("div", { key: j }, [
|
|
772
|
+
e.isShow ? (n(), c(B, {
|
|
772
773
|
key: 0,
|
|
773
774
|
btnCode: e.btnCode,
|
|
774
775
|
plain: e.plain,
|
|
@@ -790,15 +791,15 @@ function we(u, h, g, a, v, q) {
|
|
|
790
791
|
size: e.size,
|
|
791
792
|
fontSize: e.fontSize,
|
|
792
793
|
fontWeight: e.fontWeight,
|
|
793
|
-
|
|
794
|
-
class:
|
|
795
|
-
onHandleClick: (l) =>
|
|
794
|
+
style: g(e.style),
|
|
795
|
+
class: S(e.class),
|
|
796
|
+
onHandleClick: (l) => o.handleClick(l, e.isRule, e.emitName)
|
|
796
797
|
}, {
|
|
797
|
-
default:
|
|
798
|
-
i(
|
|
798
|
+
default: s(() => [
|
|
799
|
+
i(p(e.name), 1)
|
|
799
800
|
]),
|
|
800
801
|
_: 2
|
|
801
|
-
}, 1032, ["btnCode", "plain", "primary", "info", "text", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "
|
|
802
|
+
}, 1032, ["btnCode", "plain", "primary", "info", "text", "link", "loading", "loadingColor", "width", "height", "circle", "color", "bgColor", "borderColor", "borderStyle", "borderWidth", "icon", "size", "fontSize", "fontWeight", "style", "class", "onHandleClick"])) : _("", !0)
|
|
802
803
|
]))), 128))
|
|
803
804
|
], !0)
|
|
804
805
|
]),
|
|
@@ -808,11 +809,11 @@ function we(u, h, g, a, v, q) {
|
|
|
808
809
|
_: 3
|
|
809
810
|
}, 16, ["model", "label-position"]);
|
|
810
811
|
}
|
|
811
|
-
const
|
|
812
|
-
function
|
|
813
|
-
|
|
812
|
+
const R = /* @__PURE__ */ re(se, [["render", we], ["__scopeId", "data-v-c3a9efbd"]]);
|
|
813
|
+
function m(t, h = {}) {
|
|
814
|
+
m.installed || (m.installed = !0, t.component("common-el-form", R));
|
|
814
815
|
}
|
|
815
|
-
|
|
816
|
+
R.install = m;
|
|
816
817
|
export {
|
|
817
|
-
|
|
818
|
+
R as default
|
|
818
819
|
};
|