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