sinosoft-common-form 1.0.1 → 1.0.2
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 +574 -426
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/README.md +0 -229
package/common-form.es.js
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as j, ref as W, computed as $, resolveComponent as k, openBlock as s, createBlock as y, withCtx as o, createVNode as d, mergeProps as D, withModifiers as Q, createElementBlock as _, Fragment as U, renderList as x, normalizeClass as m, createElementVNode as P, toDisplayString as K, createTextVNode as w, withKeys as h, createCommentVNode as z, normalizeStyle as ee, renderSlot as le, pushScopeId as ae, popScopeId as oe } from "vue";
|
|
2
|
+
const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAAXNSR0IArs4c6QAAA+dJREFUWEftl1+IG1UUxr9zJ+6ubWkyM0oF6cIktRQsLUUUWiiWPllw8UFZEGtc9UERbBLXIhTEWR/KUtpNZgWrPli7FqUoKogKUrQ++GIptWsrVZoMtFpEyJ100do/yT0Sa2P+TJNJdrLtg/OYnHvO737nm3vPEG7Sh25SLvwP1m1nFlSxTTZHfvVKG5SABeZlTHRJMCRr9GN+T+xoPXzfwZiZ7kqXRirEDwN4EMzGNQAi/AxQ7lbSDp7MRuWCgVkvyjV0BXsZvKGpleeEoInlUf3twzaV/drcF8WqKiXS3k4GtgOsNShBOLR4SBv9YTLmtfNd6GC2zWLGk28x8HRzYQK9Pqzrqeup1LdWVqH2l7x9YE62QmFfwTGfCvp2hqqYlSk6UNjWAkU4NBwztgRRqvZiBN1BpzgrIzdC4RuAmzZL3sDg4Oqfdi0+1ylH6K3cZPPQmZI8zoyVzcWFEGP5rL6/G6hqbCitjKeLNjNe8TH7iaSur7VtUgsOtmKaB1XeO8vg232Kj7qO+UG3UKEoFk/Lx5j5gI/hfx+OGXd2Y/hQPRZPyW99TnYQialCTh/vRa15KxZ/SUb5EiSYRYvpNbE5P6V/fUPAEpniA0rhC5/iFxbphn7Spss3BMxKF18F42WfU/5IwTHv6xVq/q1My8+ZeUsLANGMmzOeWBCwFZniqALF64ux4hSAO3zADhPwZUNsBJ+5u43ZoLCBD9iV43O3lSvlj5h5Y9DktXuPMJHPGhNExEHXBgarJrzb5oG/PPkGA08GLHBRAGN5xzwYML4W1hXYtVWJlNyuCJN+x0QdwG8QkYfcbPS7bqFazG+li++AKXl1QiBPkHgkn4t95ZfYysgRUvweA0t8PPa9NjA0cnrXol+uB5VIlzYrVh8CrAPEIJ5xc+ZYrf31C62UVA1ji8C0mzWrBvd9/p3pP2Xw8H9+ok+WRPSts7vpz3ZKtc5uxK5j1A7qhlZaqWKjOYlec3NGy+DXsJkdfyzDhcsfg3k9gSbzOX1HEJNbaTkN5ufrc7mOWeOZN1g1cXXCgHv+/tPZWMMR0Vax+YAR0d5CzniuF/N2WhNPyepn3bM9KUag2aSur+tl0GsHdvVLyjvG4DU9gf3z2hK9r7HmKIFiJxWC/C8UzApVUsz8aHN8G4/JAsBWkALhx5DrOkbtymswfzwl32Xw1vCLds5IoAMFx3jc9xxLvFBczhWcYGBp51ThRRAwRxpW56fMs75g1R/j4+fv5XJ5BsCq8Eq3zXSKIpFkYU/0SH2U7115z5t8izw1t06o8lqQGOoLIKuLSkSOG6uWHjv6DF1prtHTJd4X0KakfwOtY3o2ZXuVHAAAAABJRU5ErkJggg==", Y = (g) => (ae("data-v-f2e8b0ed"), g = g(), oe(), g), re = { class: "header-title" }, se = /* @__PURE__ */ Y(() => /* @__PURE__ */ P("span", { class: "title-left" }, null, -1)), pe = { class: "title-content" }, ne = /* @__PURE__ */ Y(() => /* @__PURE__ */ P("img", {
|
|
3
|
+
src: de,
|
|
4
|
+
style: { width: "19px", "margin-right": "10px" },
|
|
5
|
+
alt: ""
|
|
6
|
+
}, null, -1)), ue = { class: "item-address" }, te = {
|
|
3
7
|
key: 0,
|
|
4
8
|
class: "item-address"
|
|
5
|
-
},
|
|
9
|
+
}, ce = {
|
|
6
10
|
key: 1,
|
|
7
11
|
class: "item-address"
|
|
8
|
-
},
|
|
12
|
+
}, ye = ["src"], be = /* @__PURE__ */ j({
|
|
9
13
|
__name: "Index",
|
|
10
14
|
props: {
|
|
11
|
-
fieldList:
|
|
12
|
-
model:
|
|
13
|
-
options:
|
|
15
|
+
fieldList: {},
|
|
16
|
+
model: {},
|
|
17
|
+
options: {}
|
|
14
18
|
},
|
|
15
19
|
emits: ["submit", "reset", "cancel"],
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
20
|
+
setup(g, { expose: B, emit: S }) {
|
|
21
|
+
const b = g, a = W({}), C = W(), A = $(() => Object.assign({
|
|
18
22
|
labelPosition: "top",
|
|
19
23
|
disabled: !1
|
|
20
24
|
// showButtonText: true,
|
|
@@ -22,395 +26,539 @@ const se = (U) => (ne("data-v-999098b8"), U = U(), re(), U), ue = { class: "head
|
|
|
22
26
|
// submitButtonText: '提交',
|
|
23
27
|
// resetButtonText: '重置',
|
|
24
28
|
// cancelButtonText: '取消'
|
|
25
|
-
},
|
|
26
|
-
console.log(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
}, b == null ? void 0 : b.options));
|
|
30
|
+
console.log(b == null ? void 0 : b.options, "_oppppppppppp0ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp", A), B({
|
|
31
|
+
formRef: C
|
|
32
|
+
}), (() => {
|
|
33
|
+
b.fieldList.map((u) => {
|
|
34
|
+
const V = u.type === "checkbox" ? [] : "";
|
|
35
|
+
if (console.log("itttttttt", u.field, u.field != null), u.field && typeof u.field == "object") {
|
|
36
|
+
console.log("it999999999999999999999999999t", u.field, typeof u.field);
|
|
37
|
+
for (let n of Object.keys(u.field))
|
|
38
|
+
b.model ? a.value = b.model : a.value[u.field[n]] = u.value || V;
|
|
39
|
+
}
|
|
40
|
+
b.model ? a.value = b.model : a.value[u.field] = u.value || V;
|
|
41
|
+
});
|
|
42
|
+
})();
|
|
43
|
+
const H = (u) => {
|
|
44
|
+
u && u.validate((V) => {
|
|
45
|
+
if (V)
|
|
46
|
+
S("submit", a.value);
|
|
40
47
|
else
|
|
41
48
|
return !1;
|
|
42
49
|
});
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
|
|
50
|
+
}, f = (u) => {
|
|
51
|
+
u && H(C.value);
|
|
52
|
+
}, I = (u) => {
|
|
53
|
+
u && (console.log("prossss", b.model, a.value), console.log("prossss", b.model, a.value), u.resetFields());
|
|
47
54
|
};
|
|
48
|
-
return (
|
|
49
|
-
const
|
|
50
|
-
return
|
|
51
|
-
default:
|
|
52
|
-
|
|
53
|
-
onSubmit:
|
|
55
|
+
return (u, V) => {
|
|
56
|
+
const n = k("el-form-item"), L = k("el-button"), E = k("el-radio"), G = k("el-radio-group"), N = k("el-option"), F = k("el-select"), i = k("el-input"), O = k("el-checkbox"), M = k("el-checkbox-group"), X = k("el-date-picker"), T = k("el-form"), q = k("el-card");
|
|
57
|
+
return s(), y(q, { class: "mb-5" }, {
|
|
58
|
+
default: o(() => [
|
|
59
|
+
d(T, D({
|
|
60
|
+
onSubmit: V[3] || (V[3] = Q(() => {
|
|
54
61
|
}, ["prevent"])),
|
|
55
62
|
model: a.value
|
|
56
|
-
},
|
|
57
|
-
"label-position":
|
|
63
|
+
}, A.value, {
|
|
64
|
+
"label-position": A.value.labelPosition,
|
|
58
65
|
ref_key: "formRef",
|
|
59
|
-
ref:
|
|
66
|
+
ref: C
|
|
60
67
|
}), {
|
|
61
|
-
default:
|
|
62
|
-
(
|
|
63
|
-
key:
|
|
64
|
-
class:
|
|
65
|
-
e.type === "title" || e.type === "address" ? "form-item-title" : "form-item"
|
|
66
|
-
)
|
|
68
|
+
default: o(() => [
|
|
69
|
+
(s(!0), _(U, null, x(u.fieldList, (e, J) => (s(), _("div", {
|
|
70
|
+
key: J,
|
|
71
|
+
class: m(e.type === "title" || e.type === "address" ? "form-item-title" : "form-item")
|
|
67
72
|
}, [
|
|
68
|
-
e.type === "title" ? (
|
|
69
|
-
default:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
e.type === "title" ? (s(), y(n, { key: 0 }, {
|
|
74
|
+
default: o(() => [
|
|
75
|
+
P("div", re, [
|
|
76
|
+
se,
|
|
77
|
+
P("span", pe, K(e.title), 1)
|
|
73
78
|
])
|
|
74
79
|
]),
|
|
75
80
|
_: 2
|
|
76
|
-
}, 1024)) : e.type === "address" ? (
|
|
81
|
+
}, 1024)) : e.type === "address" ? (s(), y(n, {
|
|
77
82
|
key: 1,
|
|
78
83
|
rules: e.rules,
|
|
79
84
|
prop: [e.field],
|
|
80
85
|
class: "container-address"
|
|
81
86
|
}, {
|
|
82
|
-
default:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
default: o(() => [
|
|
88
|
+
d(L, {
|
|
89
|
+
style: { "margin-bottom": "20px", "margin-right": "60px" },
|
|
90
|
+
onClick: u.downLoad
|
|
91
|
+
}, {
|
|
92
|
+
default: o(() => [
|
|
93
|
+
ne,
|
|
94
|
+
w(" 載入已有地址 ")
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["onClick"]),
|
|
98
|
+
d(G, {
|
|
99
|
+
style: { "margin-bottom": "20px" },
|
|
100
|
+
modelValue: a.value[e.field.addressLang],
|
|
101
|
+
"onUpdate:modelValue": (l) => a.value[e.field.addressLang] = l,
|
|
102
|
+
disabled: e.disabled
|
|
103
|
+
}, {
|
|
104
|
+
default: o(() => {
|
|
105
|
+
var l;
|
|
106
|
+
return [
|
|
107
|
+
(s(!0), _(U, null, x((l = e.optionsLang) == null ? void 0 : l.data, (r) => {
|
|
108
|
+
var p, t;
|
|
109
|
+
return s(), y(E, {
|
|
110
|
+
label: r[((p = e.optionsLang) == null ? void 0 : p.valueKey) || "value"],
|
|
111
|
+
size: "large",
|
|
112
|
+
key: r[((t = e.optionsLang) == null ? void 0 : t.valueKey) || "value"]
|
|
113
|
+
}, {
|
|
114
|
+
default: o(() => {
|
|
115
|
+
var c;
|
|
116
|
+
return [
|
|
117
|
+
w(K(r[((c = e.optionsLang) == null ? void 0 : c.labelkey) || "label"]), 1)
|
|
118
|
+
];
|
|
119
|
+
}),
|
|
120
|
+
_: 2
|
|
121
|
+
}, 1032, ["label"]);
|
|
122
|
+
}), 128))
|
|
123
|
+
];
|
|
124
|
+
}),
|
|
125
|
+
_: 2
|
|
126
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
|
127
|
+
P("div", ue, [
|
|
128
|
+
d(n, {
|
|
129
|
+
rules: e.rules.addressNation,
|
|
130
|
+
prop: [e.field.addressNation],
|
|
131
|
+
style: { display: "inline-block!important", "margin-right": "40px", width: "20%" }
|
|
88
132
|
}, {
|
|
89
|
-
default:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
133
|
+
default: o(() => {
|
|
134
|
+
var l;
|
|
135
|
+
return [
|
|
136
|
+
d(F, {
|
|
137
|
+
modelValue: a.value[e.field.addressNation],
|
|
138
|
+
"onUpdate:modelValue": (r) => a.value[e.field.addressNation] = r,
|
|
139
|
+
placeholder: ((l = e.optionsSelectNation) == null ? void 0 : l.placeholder) || "请选择",
|
|
140
|
+
clearable: e.clearable
|
|
141
|
+
}, {
|
|
142
|
+
default: o(() => {
|
|
143
|
+
var r;
|
|
144
|
+
return [
|
|
145
|
+
(s(!0), _(U, null, x((r = e.optionsSelectNation) == null ? void 0 : r.data, (p) => {
|
|
146
|
+
var t, c, v;
|
|
147
|
+
return s(), y(N, {
|
|
148
|
+
key: p[((t = e.optionsSelectNation) == null ? void 0 : t.valueKey) || "value"],
|
|
149
|
+
label: p[((c = e.optionsSelectNation) == null ? void 0 : c.labelkey) || "label"],
|
|
150
|
+
value: p[((v = e.optionsSelectNation) == null ? void 0 : v.valueKey) || "value"]
|
|
151
|
+
}, null, 8, ["label", "value"]);
|
|
152
|
+
}), 128))
|
|
153
|
+
];
|
|
154
|
+
}),
|
|
155
|
+
_: 2
|
|
156
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])
|
|
157
|
+
];
|
|
158
|
+
}),
|
|
159
|
+
_: 2
|
|
160
|
+
}, 1032, ["rules", "prop"]),
|
|
161
|
+
d(n, {
|
|
162
|
+
rules: e.rules.addressCity,
|
|
163
|
+
prop: [e.field.addressCity],
|
|
164
|
+
style: { display: "inline-block!important", "margin-right": "40px", width: "20%" }
|
|
99
165
|
}, {
|
|
100
|
-
default:
|
|
166
|
+
default: o(() => {
|
|
101
167
|
var l;
|
|
102
168
|
return [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
169
|
+
d(F, {
|
|
170
|
+
modelValue: a.value[e.field.addressCity],
|
|
171
|
+
"onUpdate:modelValue": (r) => a.value[e.field.addressCity] = r,
|
|
172
|
+
placeholder: ((l = e.optionsSelectCity) == null ? void 0 : l.placeholder) || "请选择",
|
|
173
|
+
clearable: e.clearable
|
|
174
|
+
}, {
|
|
175
|
+
default: o(() => {
|
|
176
|
+
var r;
|
|
177
|
+
return [
|
|
178
|
+
(s(!0), _(U, null, x((r = e.optionsSelectCity) == null ? void 0 : r.data, (p) => {
|
|
179
|
+
var t, c, v;
|
|
180
|
+
return s(), y(N, {
|
|
181
|
+
key: p[((t = e.optionsSelectCity) == null ? void 0 : t.valueKey) || "value"],
|
|
182
|
+
label: p[((c = e.optionsSelectCity) == null ? void 0 : c.labelkey) || "label"],
|
|
183
|
+
value: p[((v = e.optionsSelectCity) == null ? void 0 : v.valueKey) || "value"]
|
|
184
|
+
}, null, 8, ["label", "value"]);
|
|
185
|
+
}), 128))
|
|
186
|
+
];
|
|
187
|
+
}),
|
|
188
|
+
_: 2
|
|
189
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])
|
|
119
190
|
];
|
|
120
191
|
}),
|
|
121
192
|
_: 2
|
|
122
|
-
}, 1032, ["
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
return [
|
|
200
|
-
(d(!0), _(C, null, P((l = e.optionsSelectAreaC) == null ? void 0 : l.data, (s) => {
|
|
201
|
-
var v, h, i;
|
|
202
|
-
return d(), u(L, {
|
|
203
|
-
key: s[((v = e.optionsSelectAreaC) == null ? void 0 : v.valueKey) || "value"],
|
|
204
|
-
label: s[((h = e.optionsSelectAreaC) == null ? void 0 : h.labelkey) || "label"],
|
|
205
|
-
value: s[((i = e.optionsSelectAreaC) == null ? void 0 : i.valueKey) || "value"]
|
|
206
|
-
}, null, 8, ["label", "value"]);
|
|
207
|
-
}), 128))
|
|
208
|
-
];
|
|
209
|
-
}),
|
|
210
|
-
_: 2
|
|
211
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])
|
|
212
|
-
]),
|
|
213
|
-
r(b, {
|
|
214
|
-
class: "item-address",
|
|
215
|
-
modelValue: a.value[e.field.addressStreet],
|
|
216
|
-
"onUpdate:modelValue": (l) => a.value[e.field.addressStreet] = l,
|
|
217
|
-
readonly: e.readonly,
|
|
218
|
-
type: e.type ?? "text",
|
|
219
|
-
placeholder: "输入街道名称和编号",
|
|
220
|
-
disabled: e.disabled,
|
|
221
|
-
showPassword: e.showPassword,
|
|
222
|
-
clearable: e.clearable,
|
|
223
|
-
onKeyup: V((l) => y(e.enterable), ["enter"])
|
|
224
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "disabled", "showPassword", "clearable", "onKeyup"]),
|
|
225
|
-
r(b, {
|
|
226
|
-
class: "item-address",
|
|
227
|
-
modelValue: a.value[e.field.addressHouse],
|
|
228
|
-
"onUpdate:modelValue": (l) => a.value[e.field.addressHouse] = l,
|
|
229
|
-
readonly: e.readonly,
|
|
230
|
-
type: e.type ?? "text",
|
|
231
|
-
placeholder: "屋院名稱",
|
|
232
|
-
disabled: e.disabled,
|
|
233
|
-
showPassword: e.showPassword,
|
|
234
|
-
clearable: e.clearable,
|
|
235
|
-
onKeyup: V((l) => y(e.enterable), ["enter"])
|
|
236
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "disabled", "showPassword", "clearable", "onKeyup"]),
|
|
237
|
-
r(b, {
|
|
238
|
-
class: "item-address",
|
|
239
|
-
modelValue: a.value[e.field.addressMansion],
|
|
240
|
-
"onUpdate:modelValue": (l) => a.value[e.field.addressMansion] = l,
|
|
241
|
-
readonly: e.readonly,
|
|
242
|
-
type: e.type ?? "text",
|
|
243
|
-
placeholder: "大廈名稱",
|
|
244
|
-
disabled: e.disabled,
|
|
245
|
-
showPassword: e.showPassword,
|
|
246
|
-
clearable: e.clearable,
|
|
247
|
-
onKeyup: V((l) => y(e.enterable), ["enter"])
|
|
248
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "disabled", "showPassword", "clearable", "onKeyup"]),
|
|
249
|
-
a.value.addressLang == "1" ? (d(), _("div", ye, [
|
|
250
|
-
r(b, {
|
|
251
|
-
style: { width: "24%" },
|
|
252
|
-
modelValue: a.value[e.field.block],
|
|
253
|
-
"onUpdate:modelValue": (l) => a.value[e.field.block] = l,
|
|
193
|
+
}, 1032, ["rules", "prop"]),
|
|
194
|
+
d(n, {
|
|
195
|
+
rules: e.rules.addressArea,
|
|
196
|
+
prop: [e.field.addressArea],
|
|
197
|
+
style: { display: "inline-block!important", "margin-right": "40px", width: "20%" }
|
|
198
|
+
}, {
|
|
199
|
+
default: o(() => {
|
|
200
|
+
var l;
|
|
201
|
+
return [
|
|
202
|
+
d(F, {
|
|
203
|
+
modelValue: a.value[e.field.addressArea],
|
|
204
|
+
"onUpdate:modelValue": (r) => a.value[e.field.addressArea] = r,
|
|
205
|
+
placeholder: ((l = e.optionsSelectArea) == null ? void 0 : l.placeholder) || "请选择",
|
|
206
|
+
clearable: e.clearable
|
|
207
|
+
}, {
|
|
208
|
+
default: o(() => {
|
|
209
|
+
var r;
|
|
210
|
+
return [
|
|
211
|
+
(s(!0), _(U, null, x((r = e.optionsSelectArea) == null ? void 0 : r.data, (p) => {
|
|
212
|
+
var t, c, v;
|
|
213
|
+
return s(), y(N, {
|
|
214
|
+
key: p[((t = e.optionsSelectArea) == null ? void 0 : t.valueKey) || "value"],
|
|
215
|
+
label: p[((c = e.optionsSelectArea) == null ? void 0 : c.labelkey) || "label"],
|
|
216
|
+
value: p[((v = e.optionsSelectArea) == null ? void 0 : v.valueKey) || "value"]
|
|
217
|
+
}, null, 8, ["label", "value"]);
|
|
218
|
+
}), 128))
|
|
219
|
+
];
|
|
220
|
+
}),
|
|
221
|
+
_: 2
|
|
222
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])
|
|
223
|
+
];
|
|
224
|
+
}),
|
|
225
|
+
_: 2
|
|
226
|
+
}, 1032, ["rules", "prop"]),
|
|
227
|
+
d(n, {
|
|
228
|
+
rules: e.rules.addressAreaC,
|
|
229
|
+
prop: [e.field.addressAreaC],
|
|
230
|
+
style: { display: "inline-block!important", "margin-right": "40px", width: "20%" }
|
|
231
|
+
}, {
|
|
232
|
+
default: o(() => {
|
|
233
|
+
var l;
|
|
234
|
+
return [
|
|
235
|
+
d(F, {
|
|
236
|
+
modelValue: a.value[e.field.addressAreaC],
|
|
237
|
+
"onUpdate:modelValue": (r) => a.value[e.field.addressAreaC] = r,
|
|
238
|
+
placeholder: ((l = e.optionsSelectAreaC) == null ? void 0 : l.placeholder) || "请选择",
|
|
239
|
+
clearable: e.clearable
|
|
240
|
+
}, {
|
|
241
|
+
default: o(() => {
|
|
242
|
+
var r;
|
|
243
|
+
return [
|
|
244
|
+
(s(!0), _(U, null, x((r = e.optionsSelectAreaC) == null ? void 0 : r.data, (p) => {
|
|
245
|
+
var t, c, v;
|
|
246
|
+
return s(), y(N, {
|
|
247
|
+
key: p[((t = e.optionsSelectAreaC) == null ? void 0 : t.valueKey) || "value"],
|
|
248
|
+
label: p[((c = e.optionsSelectAreaC) == null ? void 0 : c.labelkey) || "label"],
|
|
249
|
+
value: p[((v = e.optionsSelectAreaC) == null ? void 0 : v.valueKey) || "value"]
|
|
250
|
+
}, null, 8, ["label", "value"]);
|
|
251
|
+
}), 128))
|
|
252
|
+
];
|
|
253
|
+
}),
|
|
254
|
+
_: 2
|
|
255
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])
|
|
256
|
+
];
|
|
257
|
+
}),
|
|
258
|
+
_: 2
|
|
259
|
+
}, 1032, ["rules", "prop"])
|
|
260
|
+
]),
|
|
261
|
+
d(n, {
|
|
262
|
+
rules: e.rules.addressStreet,
|
|
263
|
+
prop: [e.field.addressStreet],
|
|
264
|
+
class: "item-address"
|
|
265
|
+
}, {
|
|
266
|
+
default: o(() => [
|
|
267
|
+
d(i, {
|
|
268
|
+
modelValue: a.value[e.field.addressStreet],
|
|
269
|
+
"onUpdate:modelValue": (l) => a.value[e.field.addressStreet] = l,
|
|
254
270
|
readonly: e.readonly,
|
|
255
271
|
type: e.type ?? "text",
|
|
256
|
-
placeholder:
|
|
272
|
+
placeholder: e.field.placeholderAddressStreet,
|
|
257
273
|
disabled: e.disabled,
|
|
258
274
|
showPassword: e.showPassword,
|
|
259
275
|
clearable: e.clearable,
|
|
260
|
-
onKeyup:
|
|
261
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
276
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
277
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
278
|
+
]),
|
|
279
|
+
_: 2
|
|
280
|
+
}, 1032, ["rules", "prop"]),
|
|
281
|
+
d(n, {
|
|
282
|
+
rules: e.rules.addressHouse,
|
|
283
|
+
prop: [e.field.addressHouse],
|
|
284
|
+
class: "item-address"
|
|
285
|
+
}, {
|
|
286
|
+
default: o(() => [
|
|
287
|
+
d(i, {
|
|
288
|
+
modelValue: a.value[e.field.addressHouse],
|
|
289
|
+
"onUpdate:modelValue": (l) => a.value[e.field.addressHouse] = l,
|
|
267
290
|
readonly: e.readonly,
|
|
268
291
|
type: e.type ?? "text",
|
|
269
|
-
placeholder:
|
|
292
|
+
placeholder: e.field.placeholderAddressHouse,
|
|
270
293
|
disabled: e.disabled,
|
|
271
294
|
showPassword: e.showPassword,
|
|
272
295
|
clearable: e.clearable,
|
|
273
|
-
onKeyup:
|
|
274
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
296
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
297
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
298
|
+
]),
|
|
299
|
+
_: 2
|
|
300
|
+
}, 1032, ["rules", "prop"]),
|
|
301
|
+
d(n, {
|
|
302
|
+
rules: e.rules.addressMansion,
|
|
303
|
+
prop: [e.field.addressMansion],
|
|
304
|
+
class: "item-address"
|
|
305
|
+
}, {
|
|
306
|
+
default: o(() => [
|
|
307
|
+
d(i, {
|
|
308
|
+
class: "item-address",
|
|
309
|
+
modelValue: a.value[e.field.addressMansion],
|
|
310
|
+
"onUpdate:modelValue": (l) => a.value[e.field.addressMansion] = l,
|
|
280
311
|
readonly: e.readonly,
|
|
281
312
|
type: e.type ?? "text",
|
|
282
|
-
placeholder:
|
|
313
|
+
placeholder: e.field.placeholderAddressMansion,
|
|
283
314
|
disabled: e.disabled,
|
|
284
315
|
showPassword: e.showPassword,
|
|
285
316
|
clearable: e.clearable,
|
|
286
|
-
onKeyup:
|
|
287
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
317
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
318
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
319
|
+
]),
|
|
320
|
+
_: 2
|
|
321
|
+
}, 1032, ["rules", "prop"]),
|
|
322
|
+
a.value.addressLang == "1" ? (s(), _("div", te, [
|
|
323
|
+
d(n, {
|
|
324
|
+
rules: e.rules.block,
|
|
325
|
+
prop: [e.field.block],
|
|
326
|
+
style: { display: "inline-block!important", width: "24%" }
|
|
327
|
+
}, {
|
|
328
|
+
default: o(() => [
|
|
329
|
+
d(i, {
|
|
330
|
+
modelValue: a.value[e.field.block],
|
|
331
|
+
"onUpdate:modelValue": (l) => a.value[e.field.block] = l,
|
|
332
|
+
readonly: e.readonly,
|
|
333
|
+
type: e.type ?? "text",
|
|
334
|
+
placeholder: e.field.placeholderBlock,
|
|
335
|
+
disabled: e.disabled,
|
|
336
|
+
showPassword: e.showPassword,
|
|
337
|
+
clearable: e.clearable,
|
|
338
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
339
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
340
|
+
]),
|
|
341
|
+
_: 2
|
|
342
|
+
}, 1032, ["rules", "prop"]),
|
|
343
|
+
w(" 座 "),
|
|
344
|
+
d(n, {
|
|
345
|
+
rules: e.rules.floor,
|
|
346
|
+
prop: [e.field.floor],
|
|
347
|
+
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
348
|
+
}, {
|
|
349
|
+
default: o(() => [
|
|
350
|
+
d(i, {
|
|
351
|
+
modelValue: a.value[e.field.floor],
|
|
352
|
+
"onUpdate:modelValue": (l) => a.value[e.field.floor] = l,
|
|
353
|
+
readonly: e.readonly,
|
|
354
|
+
type: e.type ?? "text",
|
|
355
|
+
placeholder: e.field.placeholderFloor,
|
|
356
|
+
disabled: e.disabled,
|
|
357
|
+
showPassword: e.showPassword,
|
|
358
|
+
clearable: e.clearable,
|
|
359
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
360
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
361
|
+
]),
|
|
362
|
+
_: 2
|
|
363
|
+
}, 1032, ["rules", "prop"]),
|
|
364
|
+
w(" 樓 "),
|
|
365
|
+
d(n, {
|
|
366
|
+
rules: e.rules.flat,
|
|
367
|
+
prop: [e.field.flat],
|
|
368
|
+
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
369
|
+
}, {
|
|
370
|
+
default: o(() => [
|
|
371
|
+
d(i, {
|
|
372
|
+
modelValue: a.value[e.field.flat],
|
|
373
|
+
"onUpdate:modelValue": (l) => a.value[e.field.flat] = l,
|
|
374
|
+
readonly: e.readonly,
|
|
375
|
+
type: e.type ?? "text",
|
|
376
|
+
placeholder: e.field.placeholderFlat,
|
|
377
|
+
disabled: e.disabled,
|
|
378
|
+
showPassword: e.showPassword,
|
|
379
|
+
clearable: e.clearable,
|
|
380
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
381
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
382
|
+
]),
|
|
383
|
+
_: 2
|
|
384
|
+
}, 1032, ["rules", "prop"]),
|
|
385
|
+
w(" 室 ")
|
|
386
|
+
])) : z("", !0),
|
|
387
|
+
a.value.addressLang == "2" ? (s(), _("div", ce, [
|
|
388
|
+
d(n, {
|
|
389
|
+
rules: e.rules.block,
|
|
390
|
+
prop: [e.field.block],
|
|
391
|
+
style: { display: "inline-block!important", width: "24%" }
|
|
392
|
+
}, {
|
|
393
|
+
default: o(() => [
|
|
394
|
+
d(i, {
|
|
395
|
+
modelValue: a.value[e.field.block],
|
|
396
|
+
"onUpdate:modelValue": (l) => a.value[e.field.block] = l,
|
|
397
|
+
readonly: e.readonly,
|
|
398
|
+
type: e.type ?? "text",
|
|
399
|
+
placeholder: e.field.placeholderBlock,
|
|
400
|
+
disabled: e.disabled,
|
|
401
|
+
showPassword: e.showPassword,
|
|
402
|
+
clearable: e.clearable,
|
|
403
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
404
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
405
|
+
]),
|
|
406
|
+
_: 2
|
|
407
|
+
}, 1032, ["rules", "prop"]),
|
|
408
|
+
w(" Block "),
|
|
409
|
+
d(n, {
|
|
410
|
+
rules: e.rules.floor,
|
|
411
|
+
prop: [e.field.floor],
|
|
412
|
+
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
413
|
+
}, {
|
|
414
|
+
default: o(() => [
|
|
415
|
+
d(i, {
|
|
416
|
+
modelValue: a.value[e.field.floor],
|
|
417
|
+
"onUpdate:modelValue": (l) => a.value[e.field.floor] = l,
|
|
418
|
+
readonly: e.readonly,
|
|
419
|
+
type: e.type ?? "text",
|
|
420
|
+
placeholder: e.rules.placeholderFloor,
|
|
421
|
+
disabled: e.disabled,
|
|
422
|
+
showPassword: e.showPassword,
|
|
423
|
+
clearable: e.clearable,
|
|
424
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
425
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
426
|
+
]),
|
|
427
|
+
_: 2
|
|
428
|
+
}, 1032, ["rules", "prop"]),
|
|
429
|
+
w(" Floor "),
|
|
430
|
+
d(n, {
|
|
431
|
+
rules: e.rules.flat,
|
|
432
|
+
prop: [e.field.flat],
|
|
433
|
+
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
434
|
+
}, {
|
|
435
|
+
default: o(() => [
|
|
436
|
+
d(i, {
|
|
437
|
+
modelValue: a.value[e.field.flat],
|
|
438
|
+
"onUpdate:modelValue": (l) => a.value[e.field.flat] = l,
|
|
439
|
+
readonly: e.readonly,
|
|
440
|
+
type: e.type ?? "text",
|
|
441
|
+
placeholder: e.rules.placeholderFlat,
|
|
442
|
+
disabled: e.disabled,
|
|
443
|
+
showPassword: e.showPassword,
|
|
444
|
+
clearable: e.clearable,
|
|
445
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
446
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
447
|
+
]),
|
|
448
|
+
_: 2
|
|
449
|
+
}, 1032, ["rules", "prop"]),
|
|
450
|
+
w(" Flat ")
|
|
451
|
+
])) : z("", !0)
|
|
452
|
+
]),
|
|
453
|
+
_: 2
|
|
454
|
+
}, 1032, ["rules", "prop"])) : e.type === "name" ? (s(), y(n, {
|
|
455
|
+
key: 2,
|
|
456
|
+
label: e.label,
|
|
457
|
+
class: "container"
|
|
458
|
+
}, {
|
|
459
|
+
default: o(() => [
|
|
460
|
+
d(n, {
|
|
461
|
+
rules: e.rules.nameEnFamily,
|
|
462
|
+
prop: [e.field.nameEnFamily],
|
|
463
|
+
class: "item-name"
|
|
464
|
+
}, {
|
|
465
|
+
default: o(() => [
|
|
466
|
+
d(i, {
|
|
467
|
+
modelValue: a.value[e.field.nameEnFamily],
|
|
468
|
+
"onUpdate:modelValue": (l) => a.value[e.field.nameEnFamily] = l,
|
|
295
469
|
readonly: e.readonly,
|
|
296
470
|
type: e.type ?? "text",
|
|
297
|
-
placeholder:
|
|
471
|
+
placeholder: e.placeholderNameEnFamily,
|
|
298
472
|
disabled: e.disabled,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
473
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
474
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
475
|
+
]),
|
|
476
|
+
_: 2
|
|
477
|
+
}, 1032, ["rules", "prop"]),
|
|
478
|
+
d(n, {
|
|
479
|
+
rules: e.rules.nameChFamily,
|
|
480
|
+
prop: [e.field.nameChFamily],
|
|
481
|
+
class: "item-name"
|
|
482
|
+
}, {
|
|
483
|
+
default: o(() => [
|
|
484
|
+
d(i, {
|
|
485
|
+
modelValue: a.value[e.field.nameChFamily],
|
|
486
|
+
"onUpdate:modelValue": (l) => a.value[e.field.nameChFamily] = l,
|
|
308
487
|
readonly: e.readonly,
|
|
309
488
|
type: e.type ?? "text",
|
|
310
|
-
placeholder:
|
|
489
|
+
placeholder: e.placeholderNameChFamily,
|
|
311
490
|
disabled: e.disabled,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
491
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
492
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
493
|
+
]),
|
|
494
|
+
_: 2
|
|
495
|
+
}, 1032, ["rules", "prop"]),
|
|
496
|
+
d(n, {
|
|
497
|
+
rules: e.rules.nameEn,
|
|
498
|
+
prop: [e.field.nameEn],
|
|
499
|
+
class: "item-name"
|
|
500
|
+
}, {
|
|
501
|
+
default: o(() => [
|
|
502
|
+
d(i, {
|
|
503
|
+
modelValue: a.value[e.field.nameEn],
|
|
504
|
+
"onUpdate:modelValue": (l) => a.value[e.field.nameEn] = l,
|
|
321
505
|
readonly: e.readonly,
|
|
322
506
|
type: e.type ?? "text",
|
|
323
|
-
placeholder:
|
|
507
|
+
placeholder: e.placeholderNameEn,
|
|
324
508
|
disabled: e.disabled,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
readonly: e.readonly,
|
|
349
|
-
type: e.type ?? "text",
|
|
350
|
-
placeholder: e.placeholderNameEnFamily,
|
|
351
|
-
disabled: e.disabled,
|
|
352
|
-
onKeyup: V((o) => y(e.enterable), ["enter"])
|
|
353
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"]),
|
|
354
|
-
r(b, {
|
|
355
|
-
class: "item-name",
|
|
356
|
-
modelValue: a.value[e.field.nameChFamily],
|
|
357
|
-
"onUpdate:modelValue": (o) => a.value[e.field.nameChFamily] = o,
|
|
358
|
-
readonly: e.readonly,
|
|
359
|
-
type: e.type ?? "text",
|
|
360
|
-
placeholder: e.placeholderNameChFamily,
|
|
361
|
-
disabled: e.disabled,
|
|
362
|
-
onKeyup: V((o) => y(e.enterable), ["enter"])
|
|
363
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"]),
|
|
364
|
-
r(b, {
|
|
365
|
-
class: "item-name",
|
|
366
|
-
modelValue: a.value[e.field.nameEn],
|
|
367
|
-
"onUpdate:modelValue": (o) => a.value[e.field.nameEn] = o,
|
|
368
|
-
readonly: e.readonly,
|
|
369
|
-
type: e.type ?? "text",
|
|
370
|
-
placeholder: e.placeholderNameEn,
|
|
371
|
-
disabled: e.disabled,
|
|
372
|
-
onKeyup: V((o) => y(e.enterable), ["enter"])
|
|
373
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"]),
|
|
374
|
-
r(b, {
|
|
375
|
-
class: "item-name",
|
|
376
|
-
modelValue: a.value[e.field.nameCh],
|
|
377
|
-
"onUpdate:modelValue": (o) => a.value[e.field.nameCh] = o,
|
|
378
|
-
readonly: e.readonly,
|
|
379
|
-
type: e.type ?? "text",
|
|
380
|
-
placeholder: e.placeholderNameCh,
|
|
381
|
-
disabled: e.disabled,
|
|
382
|
-
onKeyup: V((o) => y(e.enterable), ["enter"])
|
|
383
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
509
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
510
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
511
|
+
]),
|
|
512
|
+
_: 2
|
|
513
|
+
}, 1032, ["rules", "prop"]),
|
|
514
|
+
d(n, {
|
|
515
|
+
rules: e.rules.nameCh,
|
|
516
|
+
prop: [e.field.nameCh],
|
|
517
|
+
class: "item-name"
|
|
518
|
+
}, {
|
|
519
|
+
default: o(() => [
|
|
520
|
+
d(i, {
|
|
521
|
+
modelValue: a.value[e.field.nameCh],
|
|
522
|
+
"onUpdate:modelValue": (l) => a.value[e.field.nameCh] = l,
|
|
523
|
+
readonly: e.readonly,
|
|
524
|
+
type: e.type ?? "text",
|
|
525
|
+
placeholder: e.placeholderNameCh,
|
|
526
|
+
disabled: e.disabled,
|
|
527
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
528
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
529
|
+
]),
|
|
530
|
+
_: 2
|
|
531
|
+
}, 1032, ["rules", "prop"])
|
|
384
532
|
]),
|
|
385
533
|
_: 2
|
|
386
|
-
}, 1032, ["label"
|
|
534
|
+
}, 1032, ["label"])) : e.type === "gender" ? (s(), y(n, {
|
|
387
535
|
key: 3,
|
|
388
536
|
label: e.label,
|
|
389
537
|
rules: e.rules,
|
|
390
|
-
prop: [e.field
|
|
538
|
+
prop: [e.field]
|
|
391
539
|
}, {
|
|
392
|
-
default:
|
|
393
|
-
|
|
394
|
-
modelValue: a.value[e.field
|
|
395
|
-
"onUpdate:modelValue": (
|
|
540
|
+
default: o(() => [
|
|
541
|
+
d(G, {
|
|
542
|
+
modelValue: a.value[e.field],
|
|
543
|
+
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
396
544
|
disabled: e.disabled
|
|
397
545
|
}, {
|
|
398
|
-
default:
|
|
399
|
-
var
|
|
546
|
+
default: o(() => {
|
|
547
|
+
var l;
|
|
400
548
|
return [
|
|
401
|
-
(
|
|
402
|
-
var
|
|
403
|
-
return
|
|
404
|
-
label:
|
|
549
|
+
(s(!0), _(U, null, x((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
550
|
+
var p, t;
|
|
551
|
+
return s(), y(E, {
|
|
552
|
+
label: r[((p = e.options) == null ? void 0 : p.valueKey) || "value"],
|
|
405
553
|
size: "large",
|
|
406
|
-
key:
|
|
554
|
+
key: r[((t = e.options) == null ? void 0 : t.valueKey) || "value"]
|
|
407
555
|
}, {
|
|
408
|
-
default:
|
|
409
|
-
|
|
410
|
-
src:
|
|
556
|
+
default: o(() => [
|
|
557
|
+
P("img", {
|
|
558
|
+
src: r.label === "男" ? "../../public/man.png" : "../../public/woman.png",
|
|
411
559
|
style: { width: "44px", height: "44px", "margin-right": "4px" },
|
|
412
560
|
alt: ""
|
|
413
|
-
}, null, 8,
|
|
561
|
+
}, null, 8, ye)
|
|
414
562
|
]),
|
|
415
563
|
_: 2
|
|
416
564
|
}, 1032, ["label"]);
|
|
@@ -421,32 +569,32 @@ const se = (U) => (ne("data-v-999098b8"), U = U(), re(), U), ue = { class: "head
|
|
|
421
569
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
422
570
|
]),
|
|
423
571
|
_: 2
|
|
424
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (
|
|
572
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (s(), y(n, {
|
|
425
573
|
key: 4,
|
|
426
574
|
label: e.label,
|
|
427
575
|
rules: e.rules,
|
|
428
|
-
prop: [e.field
|
|
576
|
+
prop: [e.field]
|
|
429
577
|
}, {
|
|
430
|
-
default:
|
|
431
|
-
|
|
432
|
-
modelValue: a.value[e.field
|
|
433
|
-
"onUpdate:modelValue": (
|
|
578
|
+
default: o(() => [
|
|
579
|
+
d(G, {
|
|
580
|
+
modelValue: a.value[e.field],
|
|
581
|
+
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
434
582
|
disabled: e.disabled
|
|
435
583
|
}, {
|
|
436
|
-
default:
|
|
437
|
-
var
|
|
584
|
+
default: o(() => {
|
|
585
|
+
var l;
|
|
438
586
|
return [
|
|
439
|
-
(
|
|
440
|
-
var
|
|
441
|
-
return
|
|
442
|
-
label:
|
|
587
|
+
(s(!0), _(U, null, x((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
588
|
+
var p, t;
|
|
589
|
+
return s(), y(E, {
|
|
590
|
+
label: r[((p = e.options) == null ? void 0 : p.valueKey) || "value"],
|
|
443
591
|
size: "large",
|
|
444
|
-
key:
|
|
592
|
+
key: r[((t = e.options) == null ? void 0 : t.valueKey) || "value"]
|
|
445
593
|
}, {
|
|
446
|
-
default:
|
|
447
|
-
var
|
|
594
|
+
default: o(() => {
|
|
595
|
+
var c;
|
|
448
596
|
return [
|
|
449
|
-
w(
|
|
597
|
+
w(K(r[((c = e.options) == null ? void 0 : c.labelkey) || "label"]), 1)
|
|
450
598
|
];
|
|
451
599
|
}),
|
|
452
600
|
_: 2
|
|
@@ -458,34 +606,34 @@ const se = (U) => (ne("data-v-999098b8"), U = U(), re(), U), ue = { class: "head
|
|
|
458
606
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
459
607
|
]),
|
|
460
608
|
_: 2
|
|
461
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "checkbox" ? (
|
|
609
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "checkbox" ? (s(), y(n, {
|
|
462
610
|
key: 5,
|
|
463
611
|
label: e.label,
|
|
464
612
|
rules: e.rules,
|
|
465
|
-
prop: [e.field
|
|
613
|
+
prop: [e.field]
|
|
466
614
|
}, {
|
|
467
|
-
default:
|
|
468
|
-
|
|
469
|
-
modelValue: a.value[e.field
|
|
470
|
-
"onUpdate:modelValue": (
|
|
615
|
+
default: o(() => [
|
|
616
|
+
d(M, {
|
|
617
|
+
modelValue: a.value[e.field],
|
|
618
|
+
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
471
619
|
disabled: e.disabled,
|
|
472
|
-
style:
|
|
620
|
+
style: ee(
|
|
473
621
|
e.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
474
622
|
)
|
|
475
623
|
}, {
|
|
476
|
-
default:
|
|
477
|
-
var
|
|
624
|
+
default: o(() => {
|
|
625
|
+
var l;
|
|
478
626
|
return [
|
|
479
|
-
(
|
|
480
|
-
var
|
|
481
|
-
return
|
|
482
|
-
key:
|
|
483
|
-
label:
|
|
627
|
+
(s(!0), _(U, null, x((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
628
|
+
var p, t;
|
|
629
|
+
return s(), y(O, {
|
|
630
|
+
key: r[((p = e.options) == null ? void 0 : p.valueKey) || "value"],
|
|
631
|
+
label: r[((t = e.options) == null ? void 0 : t.valueKey) || "value"]
|
|
484
632
|
}, {
|
|
485
|
-
default:
|
|
486
|
-
var
|
|
633
|
+
default: o(() => {
|
|
634
|
+
var c;
|
|
487
635
|
return [
|
|
488
|
-
w(
|
|
636
|
+
w(K(r[((c = e.options) == null ? void 0 : c.labelkey) || "label"]), 1)
|
|
489
637
|
];
|
|
490
638
|
}),
|
|
491
639
|
_: 2
|
|
@@ -497,30 +645,30 @@ const se = (U) => (ne("data-v-999098b8"), U = U(), re(), U), ue = { class: "head
|
|
|
497
645
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "style"])
|
|
498
646
|
]),
|
|
499
647
|
_: 2
|
|
500
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (
|
|
648
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (s(), y(n, {
|
|
501
649
|
key: 6,
|
|
502
650
|
label: e.label,
|
|
503
651
|
rules: e.rules,
|
|
504
|
-
prop: [e.field
|
|
652
|
+
prop: [e.field]
|
|
505
653
|
}, {
|
|
506
|
-
default:
|
|
507
|
-
var
|
|
654
|
+
default: o(() => {
|
|
655
|
+
var l;
|
|
508
656
|
return [
|
|
509
|
-
|
|
510
|
-
modelValue: a.value[e.field
|
|
511
|
-
"onUpdate:modelValue": (
|
|
512
|
-
placeholder: ((
|
|
657
|
+
d(F, {
|
|
658
|
+
modelValue: a.value[e.field],
|
|
659
|
+
"onUpdate:modelValue": (r) => a.value[e.field] = r,
|
|
660
|
+
placeholder: ((l = e.options) == null ? void 0 : l.placeholder) || "请选择",
|
|
513
661
|
clearable: e.clearable
|
|
514
662
|
}, {
|
|
515
|
-
default:
|
|
516
|
-
var
|
|
663
|
+
default: o(() => {
|
|
664
|
+
var r;
|
|
517
665
|
return [
|
|
518
|
-
(
|
|
519
|
-
var
|
|
520
|
-
return
|
|
521
|
-
key:
|
|
522
|
-
label:
|
|
523
|
-
value:
|
|
666
|
+
(s(!0), _(U, null, x((r = e.options) == null ? void 0 : r.data, (p) => {
|
|
667
|
+
var t, c, v;
|
|
668
|
+
return s(), y(N, {
|
|
669
|
+
key: p[((t = e.options) == null ? void 0 : t.valueKey) || "value"],
|
|
670
|
+
label: p[((c = e.options) == null ? void 0 : c.labelkey) || "label"],
|
|
671
|
+
value: p[((v = e.options) == null ? void 0 : v.valueKey) || "value"]
|
|
524
672
|
}, null, 8, ["label", "value"]);
|
|
525
673
|
}), 128))
|
|
526
674
|
];
|
|
@@ -530,81 +678,81 @@ const se = (U) => (ne("data-v-999098b8"), U = U(), re(), U), ue = { class: "head
|
|
|
530
678
|
];
|
|
531
679
|
}),
|
|
532
680
|
_: 2
|
|
533
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "datetime" ? (
|
|
681
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "datetime" ? (s(), y(n, {
|
|
534
682
|
key: 7,
|
|
535
683
|
label: e.label,
|
|
536
684
|
rules: e.rules,
|
|
537
|
-
prop: [e.field
|
|
685
|
+
prop: [e.field]
|
|
538
686
|
}, {
|
|
539
|
-
default:
|
|
540
|
-
|
|
687
|
+
default: o(() => [
|
|
688
|
+
d(X, {
|
|
541
689
|
modelValue: a.value[e.field],
|
|
542
|
-
"onUpdate:modelValue": (
|
|
690
|
+
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
543
691
|
readonly: e.readonly,
|
|
544
692
|
type: "datetime",
|
|
545
693
|
placeholder: e.placeholder || e.label,
|
|
546
|
-
"default-time":
|
|
694
|
+
"default-time": u.defaultTime,
|
|
547
695
|
"value-format": e.format || "YYYY-MM-DD HH:mm:ss"
|
|
548
696
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "placeholder", "default-time", "value-format"])
|
|
549
697
|
]),
|
|
550
698
|
_: 2
|
|
551
|
-
}, 1032, ["label", "rules", "prop"])) : (
|
|
699
|
+
}, 1032, ["label", "rules", "prop"])) : (s(), y(n, {
|
|
552
700
|
key: 8,
|
|
553
701
|
label: e.label,
|
|
554
702
|
rules: e.rules,
|
|
555
703
|
prop: [e.field]
|
|
556
704
|
}, {
|
|
557
|
-
default:
|
|
558
|
-
|
|
705
|
+
default: o(() => [
|
|
706
|
+
d(i, {
|
|
559
707
|
modelValue: a.value[e.field],
|
|
560
|
-
"onUpdate:modelValue": (
|
|
708
|
+
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
561
709
|
readonly: e.readonly,
|
|
562
710
|
type: e.type ?? "text",
|
|
563
711
|
placeholder: e.placeholder || e.label,
|
|
564
712
|
disabled: e.disabled,
|
|
565
713
|
showPassword: e.showPassword,
|
|
566
714
|
clearable: e.clearable,
|
|
567
|
-
onKeyup:
|
|
715
|
+
onKeyup: h((l) => f(e.enterable), ["enter"])
|
|
568
716
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
569
717
|
]),
|
|
570
718
|
_: 2
|
|
571
719
|
}, 1032, ["label", "rules", "prop"]))
|
|
572
720
|
], 2))), 128)),
|
|
573
|
-
|
|
574
|
-
default:
|
|
575
|
-
|
|
721
|
+
d(n, null, {
|
|
722
|
+
default: o(() => [
|
|
723
|
+
le(u.$slots, "buttons", {
|
|
576
724
|
model: a.value,
|
|
577
|
-
formRef:
|
|
725
|
+
formRef: C.value
|
|
578
726
|
}, () => [
|
|
579
|
-
|
|
727
|
+
A.value.showButtonText ? (s(), y(L, {
|
|
580
728
|
key: 0,
|
|
581
729
|
type: "primary",
|
|
582
|
-
onClick:
|
|
730
|
+
onClick: V[0] || (V[0] = (e) => H(C.value))
|
|
583
731
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
w(
|
|
732
|
+
default: o(() => [
|
|
733
|
+
w(K(A.value.submitButtonText), 1)
|
|
586
734
|
]),
|
|
587
735
|
_: 1
|
|
588
|
-
})) :
|
|
589
|
-
|
|
736
|
+
})) : z("", !0),
|
|
737
|
+
A.value.showResetButton ? (s(), y(L, {
|
|
590
738
|
key: 1,
|
|
591
739
|
type: "info",
|
|
592
|
-
onClick:
|
|
740
|
+
onClick: V[1] || (V[1] = (e) => I(C.value))
|
|
593
741
|
}, {
|
|
594
|
-
default:
|
|
595
|
-
w(
|
|
742
|
+
default: o(() => [
|
|
743
|
+
w(K(A.value.resetButtonText), 1)
|
|
596
744
|
]),
|
|
597
745
|
_: 1
|
|
598
|
-
})) :
|
|
599
|
-
|
|
746
|
+
})) : z("", !0),
|
|
747
|
+
A.value.showCancelButton ? (s(), y(L, {
|
|
600
748
|
key: 2,
|
|
601
|
-
onClick:
|
|
749
|
+
onClick: V[2] || (V[2] = (e) => S("cancel"))
|
|
602
750
|
}, {
|
|
603
|
-
default:
|
|
604
|
-
w(
|
|
751
|
+
default: o(() => [
|
|
752
|
+
w(K(A.value.cancelButtonText), 1)
|
|
605
753
|
]),
|
|
606
754
|
_: 1
|
|
607
|
-
})) :
|
|
755
|
+
})) : z("", !0)
|
|
608
756
|
], !0)
|
|
609
757
|
]),
|
|
610
758
|
_: 3
|
|
@@ -618,16 +766,16 @@ const se = (U) => (ne("data-v-999098b8"), U = U(), re(), U), ue = { class: "head
|
|
|
618
766
|
};
|
|
619
767
|
}
|
|
620
768
|
});
|
|
621
|
-
const
|
|
622
|
-
const
|
|
623
|
-
for (const [
|
|
624
|
-
|
|
625
|
-
return
|
|
626
|
-
},
|
|
627
|
-
function R(
|
|
628
|
-
R.installed || (R.installed = !0,
|
|
769
|
+
const fe = (g, B) => {
|
|
770
|
+
const S = g.__vccOpts || g;
|
|
771
|
+
for (const [b, a] of B)
|
|
772
|
+
S[b] = a;
|
|
773
|
+
return S;
|
|
774
|
+
}, Z = /* @__PURE__ */ fe(be, [["__scopeId", "data-v-f2e8b0ed"]]);
|
|
775
|
+
function R(g, B = {}) {
|
|
776
|
+
R.installed || (R.installed = !0, g.component("common-el-form", Z));
|
|
629
777
|
}
|
|
630
|
-
|
|
778
|
+
Z.install = R;
|
|
631
779
|
export {
|
|
632
|
-
|
|
780
|
+
Z as default
|
|
633
781
|
};
|