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