sinosoft-common-form 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common-form.es.js +244 -179
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as j, ref as W, computed as D, resolveComponent as k, openBlock as s, createBlock as
|
|
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==",
|
|
1
|
+
import { defineComponent as j, ref as W, computed as D, resolveComponent as k, openBlock as s, createBlock as t, withCtx as o, createVNode as d, mergeProps as Q, withModifiers as m, createElementBlock as i, Fragment as U, renderList as g, normalizeClass as ee, createElementVNode as F, toDisplayString as x, createTextVNode as w, withKeys as V, createCommentVNode as B, renderSlot as C, normalizeStyle 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 = (A) => (ae("data-v-e4e58d3a"), A = A(), oe(), A), re = { class: "header-title" }, se = /* @__PURE__ */ Y(() => /* @__PURE__ */ F("span", { class: "title-left" }, null, -1)), pe = { class: "title-content" }, ne = /* @__PURE__ */ Y(() => /* @__PURE__ */ F("img", {
|
|
3
3
|
src: de,
|
|
4
4
|
style: { width: "19px", "margin-right": "10px" },
|
|
5
5
|
alt: ""
|
|
@@ -17,8 +17,8 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
17
17
|
options: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["submit", "reset", "cancel"],
|
|
20
|
-
setup(
|
|
21
|
-
const b =
|
|
20
|
+
setup(A, { expose: L, emit: z }) {
|
|
21
|
+
const b = A, a = W({}), P = W(), K = D(() => Object.assign({
|
|
22
22
|
labelPosition: "top",
|
|
23
23
|
disabled: !1
|
|
24
24
|
// showButtonText: true,
|
|
@@ -27,65 +27,65 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
27
27
|
// resetButtonText: '重置',
|
|
28
28
|
// cancelButtonText: '取消'
|
|
29
29
|
}, b == null ? void 0 : b.options));
|
|
30
|
-
console.log(b == null ? void 0 : b.options, "_oppppppppppp0ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp",
|
|
31
|
-
formRef:
|
|
30
|
+
console.log(b == null ? void 0 : b.options, "_oppppppppppp0ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp", K), L({
|
|
31
|
+
formRef: P
|
|
32
32
|
}), (() => {
|
|
33
33
|
b.fieldList.map((u) => {
|
|
34
|
-
const
|
|
34
|
+
const _ = u.type === "checkbox" ? [] : "";
|
|
35
35
|
if (console.log("itttttttt", u.field, u.field != null), u.field && typeof u.field == "object") {
|
|
36
36
|
console.log("it999999999999999999999999999t", u.field, typeof u.field);
|
|
37
|
-
for (let
|
|
38
|
-
b.model ? a.value = b.model : a.value[u.field[
|
|
37
|
+
for (let p of Object.keys(u.field))
|
|
38
|
+
b.model ? a.value = b.model : a.value[u.field[p]] = u.value || _;
|
|
39
39
|
}
|
|
40
|
-
b.model ? a.value = b.model : a.value[u.field] = u.value ||
|
|
40
|
+
b.model ? a.value = b.model : a.value[u.field] = u.value || _;
|
|
41
41
|
});
|
|
42
42
|
})();
|
|
43
43
|
const H = (u) => {
|
|
44
|
-
u && u.validate((
|
|
45
|
-
if (
|
|
46
|
-
|
|
44
|
+
u && u.validate((_) => {
|
|
45
|
+
if (_)
|
|
46
|
+
z("submit", a.value);
|
|
47
47
|
else
|
|
48
48
|
return !1;
|
|
49
49
|
});
|
|
50
|
-
},
|
|
51
|
-
u && H(
|
|
50
|
+
}, v = (u) => {
|
|
51
|
+
u && H(P.value);
|
|
52
52
|
}, O = (u) => {
|
|
53
53
|
u && (console.log("prossss", b.model, a.value), console.log("prossss", b.model, a.value), u.resetFields());
|
|
54
54
|
};
|
|
55
|
-
return (u,
|
|
56
|
-
const
|
|
57
|
-
return s(),
|
|
55
|
+
return (u, _) => {
|
|
56
|
+
const p = k("el-form-item"), I = k("el-button"), E = k("el-radio"), G = k("el-radio-group"), S = k("el-option"), N = k("el-select"), f = k("el-input"), $ = k("el-checkbox"), M = k("el-checkbox-group"), X = k("el-date-picker"), T = k("el-form"), q = k("el-card");
|
|
57
|
+
return s(), t(q, { class: "mb-5" }, {
|
|
58
58
|
default: o(() => [
|
|
59
|
-
d(
|
|
60
|
-
onSubmit:
|
|
59
|
+
d(T, Q({
|
|
60
|
+
onSubmit: _[3] || (_[3] = m(() => {
|
|
61
61
|
}, ["prevent"])),
|
|
62
62
|
model: a.value
|
|
63
|
-
},
|
|
64
|
-
"label-position":
|
|
63
|
+
}, K.value, {
|
|
64
|
+
"label-position": K.value.labelPosition,
|
|
65
65
|
ref_key: "formRef",
|
|
66
|
-
ref:
|
|
66
|
+
ref: P
|
|
67
67
|
}), {
|
|
68
68
|
default: o(() => [
|
|
69
|
-
(s(!0),
|
|
70
|
-
key:
|
|
71
|
-
class: ee(e.type === "title" || e.type === "address" ? "form-item-title" : "form-item")
|
|
69
|
+
(s(!0), i(U, null, g(u.fieldList, (e, J) => (s(), i("div", {
|
|
70
|
+
key: J,
|
|
71
|
+
class: ee(e.type === "title" || e.type === "address" || e.type === "name" ? "form-item-title" : "form-item")
|
|
72
72
|
}, [
|
|
73
|
-
e.type === "title" ? (s(),
|
|
73
|
+
e.type === "title" ? (s(), t(p, { key: 0 }, {
|
|
74
74
|
default: o(() => [
|
|
75
|
-
|
|
75
|
+
F("div", re, [
|
|
76
76
|
se,
|
|
77
|
-
|
|
77
|
+
F("span", pe, x(e.title), 1)
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
80
80
|
_: 2
|
|
81
|
-
}, 1024)) : e.type === "address" ? (s(),
|
|
81
|
+
}, 1024)) : e.type === "address" ? (s(), t(p, {
|
|
82
82
|
key: 1,
|
|
83
83
|
rules: e.rules,
|
|
84
84
|
prop: [e.field],
|
|
85
85
|
class: "container-address"
|
|
86
86
|
}, {
|
|
87
87
|
default: o(() => [
|
|
88
|
-
d(
|
|
88
|
+
d(I, {
|
|
89
89
|
style: { "margin-bottom": "20px", "margin-right": "60px" },
|
|
90
90
|
onClick: u.downLoad
|
|
91
91
|
}, {
|
|
@@ -104,17 +104,17 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
104
104
|
default: o(() => {
|
|
105
105
|
var l;
|
|
106
106
|
return [
|
|
107
|
-
(s(!0),
|
|
108
|
-
var
|
|
109
|
-
return s(),
|
|
110
|
-
label: r[((
|
|
107
|
+
(s(!0), i(U, null, g((l = e.optionsLang) == null ? void 0 : l.data, (r) => {
|
|
108
|
+
var n, c;
|
|
109
|
+
return s(), t(E, {
|
|
110
|
+
label: r[((n = e.optionsLang) == null ? void 0 : n.valueKey) || "value"],
|
|
111
111
|
size: "large",
|
|
112
|
-
key: r[((
|
|
112
|
+
key: r[((c = e.optionsLang) == null ? void 0 : c.valueKey) || "value"]
|
|
113
113
|
}, {
|
|
114
114
|
default: o(() => {
|
|
115
|
-
var
|
|
115
|
+
var y;
|
|
116
116
|
return [
|
|
117
|
-
w(
|
|
117
|
+
w(x(r[((y = e.optionsLang) == null ? void 0 : y.labelkey) || "label"]), 1)
|
|
118
118
|
];
|
|
119
119
|
}),
|
|
120
120
|
_: 2
|
|
@@ -124,8 +124,8 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
124
124
|
}),
|
|
125
125
|
_: 2
|
|
126
126
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
|
127
|
-
|
|
128
|
-
d(
|
|
127
|
+
F("div", ue, [
|
|
128
|
+
d(p, {
|
|
129
129
|
rules: e.rules.addressNation,
|
|
130
130
|
prop: [e.field.addressNation],
|
|
131
131
|
style: { display: "inline-block!important", "margin-right": "40px", width: "20%" }
|
|
@@ -133,7 +133,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
133
133
|
default: o(() => {
|
|
134
134
|
var l;
|
|
135
135
|
return [
|
|
136
|
-
d(
|
|
136
|
+
d(N, {
|
|
137
137
|
modelValue: a.value[e.field.addressNation],
|
|
138
138
|
"onUpdate:modelValue": (r) => a.value[e.field.addressNation] = r,
|
|
139
139
|
placeholder: ((l = e.optionsSelectNation) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -142,12 +142,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
142
142
|
default: o(() => {
|
|
143
143
|
var r;
|
|
144
144
|
return [
|
|
145
|
-
(s(!0),
|
|
146
|
-
var
|
|
147
|
-
return s(),
|
|
148
|
-
key:
|
|
149
|
-
label:
|
|
150
|
-
value:
|
|
145
|
+
(s(!0), i(U, null, g((r = e.optionsSelectNation) == null ? void 0 : r.data, (n) => {
|
|
146
|
+
var c, y, h;
|
|
147
|
+
return s(), t(S, {
|
|
148
|
+
key: n[((c = e.optionsSelectNation) == null ? void 0 : c.valueKey) || "value"],
|
|
149
|
+
label: n[((y = e.optionsSelectNation) == null ? void 0 : y.labelkey) || "label"],
|
|
150
|
+
value: n[((h = e.optionsSelectNation) == null ? void 0 : h.valueKey) || "value"]
|
|
151
151
|
}, null, 8, ["label", "value"]);
|
|
152
152
|
}), 128))
|
|
153
153
|
];
|
|
@@ -158,7 +158,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
158
158
|
}),
|
|
159
159
|
_: 2
|
|
160
160
|
}, 1032, ["rules", "prop"]),
|
|
161
|
-
d(
|
|
161
|
+
d(p, {
|
|
162
162
|
rules: e.rules.addressCity,
|
|
163
163
|
prop: [e.field.addressCity],
|
|
164
164
|
style: { display: "inline-block!important", "margin-right": "40px", width: "20%" }
|
|
@@ -166,7 +166,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
166
166
|
default: o(() => {
|
|
167
167
|
var l;
|
|
168
168
|
return [
|
|
169
|
-
d(
|
|
169
|
+
d(N, {
|
|
170
170
|
modelValue: a.value[e.field.addressCity],
|
|
171
171
|
"onUpdate:modelValue": (r) => a.value[e.field.addressCity] = r,
|
|
172
172
|
placeholder: ((l = e.optionsSelectCity) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -175,12 +175,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
175
175
|
default: o(() => {
|
|
176
176
|
var r;
|
|
177
177
|
return [
|
|
178
|
-
(s(!0),
|
|
179
|
-
var
|
|
180
|
-
return s(),
|
|
181
|
-
key:
|
|
182
|
-
label:
|
|
183
|
-
value:
|
|
178
|
+
(s(!0), i(U, null, g((r = e.optionsSelectCity) == null ? void 0 : r.data, (n) => {
|
|
179
|
+
var c, y, h;
|
|
180
|
+
return s(), t(S, {
|
|
181
|
+
key: n[((c = e.optionsSelectCity) == null ? void 0 : c.valueKey) || "value"],
|
|
182
|
+
label: n[((y = e.optionsSelectCity) == null ? void 0 : y.labelkey) || "label"],
|
|
183
|
+
value: n[((h = e.optionsSelectCity) == null ? void 0 : h.valueKey) || "value"]
|
|
184
184
|
}, null, 8, ["label", "value"]);
|
|
185
185
|
}), 128))
|
|
186
186
|
];
|
|
@@ -191,7 +191,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
191
191
|
}),
|
|
192
192
|
_: 2
|
|
193
193
|
}, 1032, ["rules", "prop"]),
|
|
194
|
-
d(
|
|
194
|
+
d(p, {
|
|
195
195
|
rules: e.rules.addressArea,
|
|
196
196
|
prop: [e.field.addressArea],
|
|
197
197
|
style: { display: "inline-block!important", "margin-right": "40px", width: "20%" }
|
|
@@ -199,7 +199,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
199
199
|
default: o(() => {
|
|
200
200
|
var l;
|
|
201
201
|
return [
|
|
202
|
-
d(
|
|
202
|
+
d(N, {
|
|
203
203
|
modelValue: a.value[e.field.addressArea],
|
|
204
204
|
"onUpdate:modelValue": (r) => a.value[e.field.addressArea] = r,
|
|
205
205
|
placeholder: ((l = e.optionsSelectArea) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -208,12 +208,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
208
208
|
default: o(() => {
|
|
209
209
|
var r;
|
|
210
210
|
return [
|
|
211
|
-
(s(!0),
|
|
212
|
-
var
|
|
213
|
-
return s(),
|
|
214
|
-
key:
|
|
215
|
-
label:
|
|
216
|
-
value:
|
|
211
|
+
(s(!0), i(U, null, g((r = e.optionsSelectArea) == null ? void 0 : r.data, (n) => {
|
|
212
|
+
var c, y, h;
|
|
213
|
+
return s(), t(S, {
|
|
214
|
+
key: n[((c = e.optionsSelectArea) == null ? void 0 : c.valueKey) || "value"],
|
|
215
|
+
label: n[((y = e.optionsSelectArea) == null ? void 0 : y.labelkey) || "label"],
|
|
216
|
+
value: n[((h = e.optionsSelectArea) == null ? void 0 : h.valueKey) || "value"]
|
|
217
217
|
}, null, 8, ["label", "value"]);
|
|
218
218
|
}), 128))
|
|
219
219
|
];
|
|
@@ -224,7 +224,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
224
224
|
}),
|
|
225
225
|
_: 2
|
|
226
226
|
}, 1032, ["rules", "prop"]),
|
|
227
|
-
d(
|
|
227
|
+
d(p, {
|
|
228
228
|
rules: e.rules.addressAreaC,
|
|
229
229
|
prop: [e.field.addressAreaC],
|
|
230
230
|
style: { display: "inline-block!important", "margin-right": "40px", width: "20%" }
|
|
@@ -232,7 +232,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
232
232
|
default: o(() => {
|
|
233
233
|
var l;
|
|
234
234
|
return [
|
|
235
|
-
d(
|
|
235
|
+
d(N, {
|
|
236
236
|
modelValue: a.value[e.field.addressAreaC],
|
|
237
237
|
"onUpdate:modelValue": (r) => a.value[e.field.addressAreaC] = r,
|
|
238
238
|
placeholder: ((l = e.optionsSelectAreaC) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -241,12 +241,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
241
241
|
default: o(() => {
|
|
242
242
|
var r;
|
|
243
243
|
return [
|
|
244
|
-
(s(!0),
|
|
245
|
-
var
|
|
246
|
-
return s(),
|
|
247
|
-
key:
|
|
248
|
-
label:
|
|
249
|
-
value:
|
|
244
|
+
(s(!0), i(U, null, g((r = e.optionsSelectAreaC) == null ? void 0 : r.data, (n) => {
|
|
245
|
+
var c, y, h;
|
|
246
|
+
return s(), t(S, {
|
|
247
|
+
key: n[((c = e.optionsSelectAreaC) == null ? void 0 : c.valueKey) || "value"],
|
|
248
|
+
label: n[((y = e.optionsSelectAreaC) == null ? void 0 : y.labelkey) || "label"],
|
|
249
|
+
value: n[((h = e.optionsSelectAreaC) == null ? void 0 : h.valueKey) || "value"]
|
|
250
250
|
}, null, 8, ["label", "value"]);
|
|
251
251
|
}), 128))
|
|
252
252
|
];
|
|
@@ -258,13 +258,13 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
258
258
|
_: 2
|
|
259
259
|
}, 1032, ["rules", "prop"])
|
|
260
260
|
]),
|
|
261
|
-
d(
|
|
261
|
+
d(p, {
|
|
262
262
|
rules: e.rules.addressStreet,
|
|
263
263
|
prop: [e.field.addressStreet],
|
|
264
264
|
class: "item-address"
|
|
265
265
|
}, {
|
|
266
266
|
default: o(() => [
|
|
267
|
-
d(
|
|
267
|
+
d(f, {
|
|
268
268
|
modelValue: a.value[e.field.addressStreet],
|
|
269
269
|
"onUpdate:modelValue": (l) => a.value[e.field.addressStreet] = l,
|
|
270
270
|
readonly: e.readonly,
|
|
@@ -273,18 +273,18 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
273
273
|
disabled: e.disabled,
|
|
274
274
|
showPassword: e.showPassword,
|
|
275
275
|
clearable: e.clearable,
|
|
276
|
-
onKeyup:
|
|
276
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
277
277
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
278
278
|
]),
|
|
279
279
|
_: 2
|
|
280
280
|
}, 1032, ["rules", "prop"]),
|
|
281
|
-
d(
|
|
281
|
+
d(p, {
|
|
282
282
|
rules: e.rules.addressHouse,
|
|
283
283
|
prop: [e.field.addressHouse],
|
|
284
284
|
class: "item-address"
|
|
285
285
|
}, {
|
|
286
286
|
default: o(() => [
|
|
287
|
-
d(
|
|
287
|
+
d(f, {
|
|
288
288
|
modelValue: a.value[e.field.addressHouse],
|
|
289
289
|
"onUpdate:modelValue": (l) => a.value[e.field.addressHouse] = l,
|
|
290
290
|
readonly: e.readonly,
|
|
@@ -293,18 +293,18 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
293
293
|
disabled: e.disabled,
|
|
294
294
|
showPassword: e.showPassword,
|
|
295
295
|
clearable: e.clearable,
|
|
296
|
-
onKeyup:
|
|
296
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
297
297
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
298
298
|
]),
|
|
299
299
|
_: 2
|
|
300
300
|
}, 1032, ["rules", "prop"]),
|
|
301
|
-
d(
|
|
301
|
+
d(p, {
|
|
302
302
|
rules: e.rules.addressMansion,
|
|
303
303
|
prop: [e.field.addressMansion],
|
|
304
304
|
class: "item-address"
|
|
305
305
|
}, {
|
|
306
306
|
default: o(() => [
|
|
307
|
-
d(
|
|
307
|
+
d(f, {
|
|
308
308
|
class: "item-address",
|
|
309
309
|
modelValue: a.value[e.field.addressMansion],
|
|
310
310
|
"onUpdate:modelValue": (l) => a.value[e.field.addressMansion] = l,
|
|
@@ -314,19 +314,19 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
314
314
|
disabled: e.disabled,
|
|
315
315
|
showPassword: e.showPassword,
|
|
316
316
|
clearable: e.clearable,
|
|
317
|
-
onKeyup:
|
|
317
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
318
318
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
319
319
|
]),
|
|
320
320
|
_: 2
|
|
321
321
|
}, 1032, ["rules", "prop"]),
|
|
322
|
-
a.value.addressLang == "1" ? (s(),
|
|
323
|
-
d(
|
|
322
|
+
a.value.addressLang == "1" ? (s(), i("div", te, [
|
|
323
|
+
d(p, {
|
|
324
324
|
rules: e.rules.block,
|
|
325
325
|
prop: [e.field.block],
|
|
326
326
|
style: { display: "inline-block!important", width: "24%" }
|
|
327
327
|
}, {
|
|
328
328
|
default: o(() => [
|
|
329
|
-
d(
|
|
329
|
+
d(f, {
|
|
330
330
|
modelValue: a.value[e.field.block],
|
|
331
331
|
"onUpdate:modelValue": (l) => a.value[e.field.block] = l,
|
|
332
332
|
readonly: e.readonly,
|
|
@@ -335,19 +335,19 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
335
335
|
disabled: e.disabled,
|
|
336
336
|
showPassword: e.showPassword,
|
|
337
337
|
clearable: e.clearable,
|
|
338
|
-
onKeyup:
|
|
338
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
339
339
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
340
340
|
]),
|
|
341
341
|
_: 2
|
|
342
342
|
}, 1032, ["rules", "prop"]),
|
|
343
343
|
w(" 座 "),
|
|
344
|
-
d(
|
|
344
|
+
d(p, {
|
|
345
345
|
rules: e.rules.floor,
|
|
346
346
|
prop: [e.field.floor],
|
|
347
347
|
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
348
348
|
}, {
|
|
349
349
|
default: o(() => [
|
|
350
|
-
d(
|
|
350
|
+
d(f, {
|
|
351
351
|
modelValue: a.value[e.field.floor],
|
|
352
352
|
"onUpdate:modelValue": (l) => a.value[e.field.floor] = l,
|
|
353
353
|
readonly: e.readonly,
|
|
@@ -356,19 +356,19 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
356
356
|
disabled: e.disabled,
|
|
357
357
|
showPassword: e.showPassword,
|
|
358
358
|
clearable: e.clearable,
|
|
359
|
-
onKeyup:
|
|
359
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
360
360
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
361
361
|
]),
|
|
362
362
|
_: 2
|
|
363
363
|
}, 1032, ["rules", "prop"]),
|
|
364
364
|
w(" 樓 "),
|
|
365
|
-
d(
|
|
365
|
+
d(p, {
|
|
366
366
|
rules: e.rules.flat,
|
|
367
367
|
prop: [e.field.flat],
|
|
368
368
|
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
369
369
|
}, {
|
|
370
370
|
default: o(() => [
|
|
371
|
-
d(
|
|
371
|
+
d(f, {
|
|
372
372
|
modelValue: a.value[e.field.flat],
|
|
373
373
|
"onUpdate:modelValue": (l) => a.value[e.field.flat] = l,
|
|
374
374
|
readonly: e.readonly,
|
|
@@ -377,21 +377,21 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
377
377
|
disabled: e.disabled,
|
|
378
378
|
showPassword: e.showPassword,
|
|
379
379
|
clearable: e.clearable,
|
|
380
|
-
onKeyup:
|
|
380
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
381
381
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
382
382
|
]),
|
|
383
383
|
_: 2
|
|
384
384
|
}, 1032, ["rules", "prop"]),
|
|
385
385
|
w(" 室 ")
|
|
386
|
-
])) :
|
|
387
|
-
a.value.addressLang == "2" ? (s(),
|
|
388
|
-
d(
|
|
386
|
+
])) : B("", !0),
|
|
387
|
+
a.value.addressLang == "2" ? (s(), i("div", ce, [
|
|
388
|
+
d(p, {
|
|
389
389
|
rules: e.rules.block,
|
|
390
390
|
prop: [e.field.block],
|
|
391
391
|
style: { display: "inline-block!important", width: "24%" }
|
|
392
392
|
}, {
|
|
393
393
|
default: o(() => [
|
|
394
|
-
d(
|
|
394
|
+
d(f, {
|
|
395
395
|
modelValue: a.value[e.field.block],
|
|
396
396
|
"onUpdate:modelValue": (l) => a.value[e.field.block] = l,
|
|
397
397
|
readonly: e.readonly,
|
|
@@ -400,19 +400,19 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
400
400
|
disabled: e.disabled,
|
|
401
401
|
showPassword: e.showPassword,
|
|
402
402
|
clearable: e.clearable,
|
|
403
|
-
onKeyup:
|
|
403
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
404
404
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
405
405
|
]),
|
|
406
406
|
_: 2
|
|
407
407
|
}, 1032, ["rules", "prop"]),
|
|
408
408
|
w(" Block "),
|
|
409
|
-
d(
|
|
409
|
+
d(p, {
|
|
410
410
|
rules: e.rules.floor,
|
|
411
411
|
prop: [e.field.floor],
|
|
412
412
|
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
413
413
|
}, {
|
|
414
414
|
default: o(() => [
|
|
415
|
-
d(
|
|
415
|
+
d(f, {
|
|
416
416
|
modelValue: a.value[e.field.floor],
|
|
417
417
|
"onUpdate:modelValue": (l) => a.value[e.field.floor] = l,
|
|
418
418
|
readonly: e.readonly,
|
|
@@ -421,19 +421,19 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
421
421
|
disabled: e.disabled,
|
|
422
422
|
showPassword: e.showPassword,
|
|
423
423
|
clearable: e.clearable,
|
|
424
|
-
onKeyup:
|
|
424
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
425
425
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
426
426
|
]),
|
|
427
427
|
_: 2
|
|
428
428
|
}, 1032, ["rules", "prop"]),
|
|
429
429
|
w(" Floor "),
|
|
430
|
-
d(
|
|
430
|
+
d(p, {
|
|
431
431
|
rules: e.rules.flat,
|
|
432
432
|
prop: [e.field.flat],
|
|
433
433
|
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
434
434
|
}, {
|
|
435
435
|
default: o(() => [
|
|
436
|
-
d(
|
|
436
|
+
d(f, {
|
|
437
437
|
modelValue: a.value[e.field.flat],
|
|
438
438
|
"onUpdate:modelValue": (l) => a.value[e.field.flat] = l,
|
|
439
439
|
readonly: e.readonly,
|
|
@@ -442,97 +442,97 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
442
442
|
disabled: e.disabled,
|
|
443
443
|
showPassword: e.showPassword,
|
|
444
444
|
clearable: e.clearable,
|
|
445
|
-
onKeyup:
|
|
445
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
446
446
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
447
447
|
]),
|
|
448
448
|
_: 2
|
|
449
449
|
}, 1032, ["rules", "prop"]),
|
|
450
450
|
w(" Flat ")
|
|
451
|
-
])) :
|
|
452
|
-
|
|
451
|
+
])) : B("", !0),
|
|
452
|
+
C(u.$slots, "address", {}, void 0, !0)
|
|
453
453
|
]),
|
|
454
454
|
_: 2
|
|
455
|
-
}, 1032, ["rules", "prop"])) : e.type === "name" ? (s(),
|
|
455
|
+
}, 1032, ["rules", "prop"])) : e.type === "name" ? (s(), t(p, {
|
|
456
456
|
key: 2,
|
|
457
457
|
label: e.label,
|
|
458
458
|
class: "container"
|
|
459
459
|
}, {
|
|
460
460
|
default: o(() => [
|
|
461
|
-
d(
|
|
461
|
+
d(p, {
|
|
462
462
|
rules: e.rules.nameEnFamily,
|
|
463
463
|
prop: [e.field.nameEnFamily],
|
|
464
464
|
class: "item-name"
|
|
465
465
|
}, {
|
|
466
466
|
default: o(() => [
|
|
467
|
-
d(
|
|
467
|
+
d(f, {
|
|
468
468
|
modelValue: a.value[e.field.nameEnFamily],
|
|
469
469
|
"onUpdate:modelValue": (l) => a.value[e.field.nameEnFamily] = l,
|
|
470
470
|
readonly: e.readonly,
|
|
471
471
|
type: e.type ? e.type : "text",
|
|
472
472
|
placeholder: e.placeholderNameEnFamily,
|
|
473
473
|
disabled: e.disabled,
|
|
474
|
-
onKeyup:
|
|
474
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
475
475
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
476
476
|
]),
|
|
477
477
|
_: 2
|
|
478
478
|
}, 1032, ["rules", "prop"]),
|
|
479
|
-
d(
|
|
479
|
+
d(p, {
|
|
480
480
|
rules: e.rules.nameChFamily,
|
|
481
481
|
prop: [e.field.nameChFamily],
|
|
482
482
|
class: "item-name"
|
|
483
483
|
}, {
|
|
484
484
|
default: o(() => [
|
|
485
|
-
d(
|
|
485
|
+
d(f, {
|
|
486
486
|
modelValue: a.value[e.field.nameChFamily],
|
|
487
487
|
"onUpdate:modelValue": (l) => a.value[e.field.nameChFamily] = l,
|
|
488
488
|
readonly: e.readonly,
|
|
489
489
|
type: e.type ? e.type : "text",
|
|
490
490
|
placeholder: e.placeholderNameChFamily,
|
|
491
491
|
disabled: e.disabled,
|
|
492
|
-
onKeyup:
|
|
492
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
493
493
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
494
494
|
]),
|
|
495
495
|
_: 2
|
|
496
496
|
}, 1032, ["rules", "prop"]),
|
|
497
|
-
d(
|
|
497
|
+
d(p, {
|
|
498
498
|
rules: e.rules.nameEn,
|
|
499
499
|
prop: [e.field.nameEn],
|
|
500
500
|
class: "item-name"
|
|
501
501
|
}, {
|
|
502
502
|
default: o(() => [
|
|
503
|
-
d(
|
|
503
|
+
d(f, {
|
|
504
504
|
modelValue: a.value[e.field.nameEn],
|
|
505
505
|
"onUpdate:modelValue": (l) => a.value[e.field.nameEn] = l,
|
|
506
506
|
readonly: e.readonly,
|
|
507
507
|
type: e.type ? e.type : "text",
|
|
508
508
|
placeholder: e.placeholderNameEn,
|
|
509
509
|
disabled: e.disabled,
|
|
510
|
-
onKeyup:
|
|
510
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
511
511
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
512
512
|
]),
|
|
513
513
|
_: 2
|
|
514
514
|
}, 1032, ["rules", "prop"]),
|
|
515
|
-
d(
|
|
515
|
+
d(p, {
|
|
516
516
|
rules: e.rules.nameCh,
|
|
517
517
|
prop: [e.field.nameCh],
|
|
518
518
|
class: "item-name"
|
|
519
519
|
}, {
|
|
520
520
|
default: o(() => [
|
|
521
|
-
d(
|
|
521
|
+
d(f, {
|
|
522
522
|
modelValue: a.value[e.field.nameCh],
|
|
523
523
|
"onUpdate:modelValue": (l) => a.value[e.field.nameCh] = l,
|
|
524
524
|
readonly: e.readonly,
|
|
525
525
|
type: e.type ? e.type : "text",
|
|
526
526
|
placeholder: e.placeholderNameCh,
|
|
527
527
|
disabled: e.disabled,
|
|
528
|
-
onKeyup:
|
|
528
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
529
529
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
530
530
|
]),
|
|
531
531
|
_: 2
|
|
532
532
|
}, 1032, ["rules", "prop"])
|
|
533
533
|
]),
|
|
534
534
|
_: 2
|
|
535
|
-
}, 1032, ["label"])) : e.type === "gender" ? (s(),
|
|
535
|
+
}, 1032, ["label"])) : e.type === "gender" ? (s(), t(p, {
|
|
536
536
|
key: 3,
|
|
537
537
|
label: e.label,
|
|
538
538
|
rules: e.rules,
|
|
@@ -547,15 +547,15 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
547
547
|
default: o(() => {
|
|
548
548
|
var l;
|
|
549
549
|
return [
|
|
550
|
-
(s(!0),
|
|
551
|
-
var
|
|
552
|
-
return s(),
|
|
553
|
-
label: r[((
|
|
550
|
+
(s(!0), i(U, null, g((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
551
|
+
var n, c;
|
|
552
|
+
return s(), t(E, {
|
|
553
|
+
label: r[((n = e.options) == null ? void 0 : n.valueKey) || "value"],
|
|
554
554
|
size: "large",
|
|
555
|
-
key: r[((
|
|
555
|
+
key: r[((c = e.options) == null ? void 0 : c.valueKey) || "value"]
|
|
556
556
|
}, {
|
|
557
557
|
default: o(() => [
|
|
558
|
-
|
|
558
|
+
F("img", {
|
|
559
559
|
src: r.label === "男" ? "../../public/man.png" : "../../public/woman.png",
|
|
560
560
|
style: { width: "44px", height: "44px", "margin-right": "4px" },
|
|
561
561
|
alt: ""
|
|
@@ -570,7 +570,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
570
570
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
571
571
|
]),
|
|
572
572
|
_: 2
|
|
573
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (s(),
|
|
573
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "radio" ? (s(), t(p, {
|
|
574
574
|
key: 4,
|
|
575
575
|
label: e.label,
|
|
576
576
|
rules: e.rules,
|
|
@@ -585,17 +585,17 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
585
585
|
default: o(() => {
|
|
586
586
|
var l;
|
|
587
587
|
return [
|
|
588
|
-
(s(!0),
|
|
589
|
-
var
|
|
590
|
-
return s(),
|
|
591
|
-
label: r[((
|
|
588
|
+
(s(!0), i(U, null, g((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
589
|
+
var n, c;
|
|
590
|
+
return s(), t(E, {
|
|
591
|
+
label: r[((n = e.options) == null ? void 0 : n.valueKey) || "value"],
|
|
592
592
|
size: "large",
|
|
593
|
-
key: r[((
|
|
593
|
+
key: r[((c = e.options) == null ? void 0 : c.valueKey) || "value"]
|
|
594
594
|
}, {
|
|
595
595
|
default: o(() => {
|
|
596
|
-
var
|
|
596
|
+
var y;
|
|
597
597
|
return [
|
|
598
|
-
w(
|
|
598
|
+
w(x(r[((y = e.options) == null ? void 0 : y.labelkey) || "label"]), 1)
|
|
599
599
|
];
|
|
600
600
|
}),
|
|
601
601
|
_: 2
|
|
@@ -607,14 +607,14 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
607
607
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
608
608
|
]),
|
|
609
609
|
_: 2
|
|
610
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "checkbox" ? (s(),
|
|
610
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "checkbox" ? (s(), t(p, {
|
|
611
611
|
key: 5,
|
|
612
612
|
label: e.label,
|
|
613
613
|
rules: e.rules,
|
|
614
614
|
prop: [e.field]
|
|
615
615
|
}, {
|
|
616
616
|
default: o(() => [
|
|
617
|
-
d(
|
|
617
|
+
d(M, {
|
|
618
618
|
modelValue: a.value[e.field],
|
|
619
619
|
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
620
620
|
disabled: e.disabled,
|
|
@@ -625,16 +625,16 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
625
625
|
default: o(() => {
|
|
626
626
|
var l;
|
|
627
627
|
return [
|
|
628
|
-
(s(!0),
|
|
629
|
-
var
|
|
630
|
-
return s(),
|
|
631
|
-
key: r[((
|
|
632
|
-
label: r[((
|
|
628
|
+
(s(!0), i(U, null, g((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
629
|
+
var n, c;
|
|
630
|
+
return s(), t($, {
|
|
631
|
+
key: r[((n = e.options) == null ? void 0 : n.valueKey) || "value"],
|
|
632
|
+
label: r[((c = e.options) == null ? void 0 : c.valueKey) || "value"]
|
|
633
633
|
}, {
|
|
634
634
|
default: o(() => {
|
|
635
|
-
var
|
|
635
|
+
var y;
|
|
636
636
|
return [
|
|
637
|
-
w(
|
|
637
|
+
w(x(r[((y = e.options) == null ? void 0 : y.labelkey) || "label"]), 1)
|
|
638
638
|
];
|
|
639
639
|
}),
|
|
640
640
|
_: 2
|
|
@@ -646,7 +646,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
646
646
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "style"])
|
|
647
647
|
]),
|
|
648
648
|
_: 2
|
|
649
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (s(),
|
|
649
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "select" ? (s(), t(p, {
|
|
650
650
|
key: 6,
|
|
651
651
|
label: e.label,
|
|
652
652
|
rules: e.rules,
|
|
@@ -655,7 +655,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
655
655
|
default: o(() => {
|
|
656
656
|
var l;
|
|
657
657
|
return [
|
|
658
|
-
d(
|
|
658
|
+
d(N, {
|
|
659
659
|
modelValue: a.value[e.field],
|
|
660
660
|
"onUpdate:modelValue": (r) => a.value[e.field] = r,
|
|
661
661
|
placeholder: ((l = e.options) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -664,12 +664,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
664
664
|
default: o(() => {
|
|
665
665
|
var r;
|
|
666
666
|
return [
|
|
667
|
-
(s(!0),
|
|
668
|
-
var
|
|
669
|
-
return s(),
|
|
670
|
-
key:
|
|
671
|
-
label:
|
|
672
|
-
value:
|
|
667
|
+
(s(!0), i(U, null, g((r = e.options) == null ? void 0 : r.data, (n) => {
|
|
668
|
+
var c, y, h;
|
|
669
|
+
return s(), t(S, {
|
|
670
|
+
key: n[((c = e.options) == null ? void 0 : c.valueKey) || "value"],
|
|
671
|
+
label: n[((y = e.options) == null ? void 0 : y.labelkey) || "label"],
|
|
672
|
+
value: n[((h = e.options) == null ? void 0 : h.valueKey) || "value"]
|
|
673
673
|
}, null, 8, ["label", "value"]);
|
|
674
674
|
}), 128))
|
|
675
675
|
];
|
|
@@ -679,14 +679,14 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
679
679
|
];
|
|
680
680
|
}),
|
|
681
681
|
_: 2
|
|
682
|
-
}, 1032, ["label", "rules", "prop"])) : e.type === "datetime" ? (s(),
|
|
682
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "datetime" ? (s(), t(p, {
|
|
683
683
|
key: 7,
|
|
684
684
|
label: e.label,
|
|
685
685
|
rules: e.rules,
|
|
686
686
|
prop: [e.field]
|
|
687
687
|
}, {
|
|
688
688
|
default: o(() => [
|
|
689
|
-
d(
|
|
689
|
+
d(X, {
|
|
690
690
|
modelValue: a.value[e.field],
|
|
691
691
|
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
692
692
|
readonly: e.readonly,
|
|
@@ -697,14 +697,79 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
697
697
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "placeholder", "default-time", "value-format"])
|
|
698
698
|
]),
|
|
699
699
|
_: 2
|
|
700
|
-
}, 1032, ["label", "rules", "prop"])) : (s(),
|
|
701
|
-
|
|
700
|
+
}, 1032, ["label", "rules", "prop"])) : e.type === "slotItem1" ? (s(), t(p, { key: 8 }, {
|
|
701
|
+
default: o(() => [
|
|
702
|
+
C(u.$slots, "slotItem1", {}, void 0, !0)
|
|
703
|
+
]),
|
|
704
|
+
_: 3
|
|
705
|
+
})) : e.type === "slotItem2" ? (s(), t(p, { key: 9 }, {
|
|
706
|
+
default: o(() => [
|
|
707
|
+
C(u.$slots, "slotItem2", {}, void 0, !0)
|
|
708
|
+
]),
|
|
709
|
+
_: 3
|
|
710
|
+
})) : e.type === "slotItem3" ? (s(), t(p, { key: 10 }, {
|
|
711
|
+
default: o(() => [
|
|
712
|
+
C(u.$slots, "slotItem3", {}, void 0, !0)
|
|
713
|
+
]),
|
|
714
|
+
_: 3
|
|
715
|
+
})) : e.type === "slotItem4" ? (s(), t(p, { key: 11 }, {
|
|
716
|
+
default: o(() => [
|
|
717
|
+
C(u.$slots, "slotItem4", {}, void 0, !0)
|
|
718
|
+
]),
|
|
719
|
+
_: 3
|
|
720
|
+
})) : e.type === "slotItem5" ? (s(), t(p, { key: 12 }, {
|
|
721
|
+
default: o(() => [
|
|
722
|
+
C(u.$slots, "slotItem5", {}, void 0, !0)
|
|
723
|
+
]),
|
|
724
|
+
_: 3
|
|
725
|
+
})) : e.type === "phone" ? (s(), t(p, {
|
|
726
|
+
key: 13,
|
|
727
|
+
label: e.label,
|
|
728
|
+
rules: e.rules,
|
|
729
|
+
prop: [e.field]
|
|
730
|
+
}, {
|
|
731
|
+
default: o(() => [
|
|
732
|
+
d(f, {
|
|
733
|
+
modelValue: a.value[e.field.phoneNumber],
|
|
734
|
+
"onUpdate:modelValue": (l) => a.value[e.field.phoneNumber] = l,
|
|
735
|
+
placeholder: e.placeholder || "请选择",
|
|
736
|
+
clearable: e.clearable
|
|
737
|
+
}, {
|
|
738
|
+
prepend: o(() => {
|
|
739
|
+
var l;
|
|
740
|
+
return [
|
|
741
|
+
d(N, {
|
|
742
|
+
modelValue: a.value[e.field.areaCode],
|
|
743
|
+
"onUpdate:modelValue": (r) => a.value[e.field.areaCode] = r,
|
|
744
|
+
placeholder: ((l = e.options) == null ? void 0 : l.placeholder) || "请选择",
|
|
745
|
+
style: { width: "115px" }
|
|
746
|
+
}, {
|
|
747
|
+
default: o(() => {
|
|
748
|
+
var r;
|
|
749
|
+
return [
|
|
750
|
+
(s(!0), i(U, null, g((r = e.options) == null ? void 0 : r.data, (n, c) => (s(), t(S, {
|
|
751
|
+
label: n.label,
|
|
752
|
+
value: n.value,
|
|
753
|
+
key: c
|
|
754
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
755
|
+
];
|
|
756
|
+
}),
|
|
757
|
+
_: 2
|
|
758
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
759
|
+
];
|
|
760
|
+
}),
|
|
761
|
+
_: 2
|
|
762
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])
|
|
763
|
+
]),
|
|
764
|
+
_: 2
|
|
765
|
+
}, 1032, ["label", "rules", "prop"])) : (s(), t(p, {
|
|
766
|
+
key: 14,
|
|
702
767
|
label: e.label,
|
|
703
768
|
rules: e.rules,
|
|
704
769
|
prop: [e.field]
|
|
705
770
|
}, {
|
|
706
771
|
default: o(() => [
|
|
707
|
-
d(
|
|
772
|
+
d(f, {
|
|
708
773
|
modelValue: a.value[e.field],
|
|
709
774
|
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
710
775
|
readonly: e.readonly,
|
|
@@ -713,47 +778,47 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
713
778
|
disabled: e.disabled,
|
|
714
779
|
showPassword: e.showPassword,
|
|
715
780
|
clearable: e.clearable,
|
|
716
|
-
onKeyup:
|
|
781
|
+
onKeyup: V((l) => v(e.enterable), ["enter"])
|
|
717
782
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
718
783
|
]),
|
|
719
784
|
_: 2
|
|
720
785
|
}, 1032, ["label", "rules", "prop"]))
|
|
721
786
|
], 2))), 128)),
|
|
722
|
-
d(
|
|
787
|
+
d(p, null, {
|
|
723
788
|
default: o(() => [
|
|
724
|
-
|
|
789
|
+
C(u.$slots, "buttons", {
|
|
725
790
|
model: a.value,
|
|
726
|
-
formRef:
|
|
791
|
+
formRef: P.value
|
|
727
792
|
}, () => [
|
|
728
|
-
|
|
793
|
+
K.value.showButtonText ? (s(), t(I, {
|
|
729
794
|
key: 0,
|
|
730
795
|
type: "primary",
|
|
731
|
-
onClick:
|
|
796
|
+
onClick: _[0] || (_[0] = (e) => H(P.value))
|
|
732
797
|
}, {
|
|
733
798
|
default: o(() => [
|
|
734
|
-
w(K
|
|
799
|
+
w(x(K.value.submitButtonText), 1)
|
|
735
800
|
]),
|
|
736
801
|
_: 1
|
|
737
|
-
})) :
|
|
738
|
-
|
|
802
|
+
})) : B("", !0),
|
|
803
|
+
K.value.showResetButton ? (s(), t(I, {
|
|
739
804
|
key: 1,
|
|
740
805
|
type: "info",
|
|
741
|
-
onClick:
|
|
806
|
+
onClick: _[1] || (_[1] = (e) => O(P.value))
|
|
742
807
|
}, {
|
|
743
808
|
default: o(() => [
|
|
744
|
-
w(K
|
|
809
|
+
w(x(K.value.resetButtonText), 1)
|
|
745
810
|
]),
|
|
746
811
|
_: 1
|
|
747
|
-
})) :
|
|
748
|
-
|
|
812
|
+
})) : B("", !0),
|
|
813
|
+
K.value.showCancelButton ? (s(), t(I, {
|
|
749
814
|
key: 2,
|
|
750
|
-
onClick:
|
|
815
|
+
onClick: _[2] || (_[2] = (e) => z("cancel"))
|
|
751
816
|
}, {
|
|
752
817
|
default: o(() => [
|
|
753
|
-
w(K
|
|
818
|
+
w(x(K.value.cancelButtonText), 1)
|
|
754
819
|
]),
|
|
755
820
|
_: 1
|
|
756
|
-
})) :
|
|
821
|
+
})) : B("", !0)
|
|
757
822
|
], !0)
|
|
758
823
|
]),
|
|
759
824
|
_: 3
|
|
@@ -767,16 +832,16 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
767
832
|
};
|
|
768
833
|
}
|
|
769
834
|
});
|
|
770
|
-
const fe = (
|
|
771
|
-
const
|
|
772
|
-
for (const [b, a] of
|
|
773
|
-
|
|
774
|
-
return
|
|
775
|
-
},
|
|
776
|
-
function R(
|
|
777
|
-
R.installed || (R.installed = !0,
|
|
835
|
+
const fe = (A, L) => {
|
|
836
|
+
const z = A.__vccOpts || A;
|
|
837
|
+
for (const [b, a] of L)
|
|
838
|
+
z[b] = a;
|
|
839
|
+
return z;
|
|
840
|
+
}, Z = /* @__PURE__ */ fe(be, [["__scopeId", "data-v-e4e58d3a"]]);
|
|
841
|
+
function R(A, L = {}) {
|
|
842
|
+
R.installed || (R.installed = !0, A.component("common-el-form", Z));
|
|
778
843
|
}
|
|
779
|
-
|
|
844
|
+
Z.install = R;
|
|
780
845
|
export {
|
|
781
|
-
|
|
846
|
+
Z as default
|
|
782
847
|
};
|
package/common-form.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(l,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("vue")):typeof define=="function"&&define.amd?define(["vue"],w):(l=typeof globalThis<"u"?globalThis:l||self,l.Form=w(l.Vue))})(this,function(l){"use strict";const w="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==",A=b=>(l.pushScopeId("data-v-064b92e4"),b=b(),l.popScopeId(),b),P={class:"header-title"},F=A(()=>l.createElementVNode("span",{class:"title-left"},null,-1)),E={class:"title-content"},L=A(()=>l.createElementVNode("img",{src:w,style:{width:"19px","margin-right":"10px"},alt:""},null,-1)),z={class:"item-address"},T={key:0,class:"item-address"},G={key:1,class:"item-address"},R=["src"],H=l.defineComponent({__name:"Index",props:{fieldList:{},model:{},options:{}},emits:["submit","reset","cancel"],setup(b,{expose:_,emit:k}){const c=b,o=l.ref({}),V=l.ref(),h=l.computed(()=>Object.assign({labelPosition:"top",disabled:!1},c==null?void 0:c.options));console.log(c==null?void 0:c.options,"_oppppppppppp0ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp",h),_({formRef:V}),(()=>{c.fieldList.map(n=>{const f=n.type==="checkbox"?[]:"";if(console.log("itttttttt",n.field,n.field!=null),n.field&&typeof n.field=="object"){console.log("it999999999999999999999999999t",n.field,typeof n.field);for(let t of Object.keys(n.field))c.model?o.value=c.model:o.value[n.field[t]]=n.value||f}c.model?o.value=c.model:o.value[n.field]=n.value||f})})();const S=n=>{n&&n.validate(f=>{if(f)k("submit",o.value);else return!1})},y=n=>{n&&S(V.value)},W=n=>{n&&(console.log("prossss",c.model,o.value),console.log("prossss",c.model,o.value),n.resetFields())};return(n,f)=>{const t=l.resolveComponent("el-form-item"),N=l.resolveComponent("el-button"),K=l.resolveComponent("el-radio"),U=l.resolveComponent("el-radio-group"),x=l.resolveComponent("el-option"),C=l.resolveComponent("el-select"),i=l.resolveComponent("el-input"),m=l.resolveComponent("el-checkbox"),Y=l.resolveComponent("el-checkbox-group"),Z=l.resolveComponent("el-date-picker"),I=l.resolveComponent("el-form"),O=l.resolveComponent("el-card");return l.openBlock(),l.createBlock(O,{class:"mb-5"},{default:l.withCtx(()=>[l.createVNode(I,l.mergeProps({onSubmit:f[3]||(f[3]=l.withModifiers(()=>{},["prevent"])),model:o.value},h.value,{"label-position":h.value.labelPosition,ref_key:"formRef",ref:V}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.fieldList,(e,M)=>(l.openBlock(),l.createElementBlock("div",{key:M,class:l.normalizeClass(e.type==="title"||e.type==="address"?"form-item-title":"form-item")},[e.type==="title"?(l.openBlock(),l.createBlock(t,{key:0},{default:l.withCtx(()=>[l.createElementVNode("div",P,[F,l.createElementVNode("span",E,l.toDisplayString(e.title),1)])]),_:2},1024)):e.type==="address"?(l.openBlock(),l.createBlock(t,{key:1,rules:e.rules,prop:[e.field],class:"container-address"},{default:l.withCtx(()=>[l.createVNode(N,{style:{"margin-bottom":"20px","margin-right":"60px"},onClick:n.downLoad},{default:l.withCtx(()=>[L,l.createTextVNode(" 載入已有地址 ")]),_:1},8,["onClick"]),l.createVNode(U,{style:{"margin-bottom":"20px"},modelValue:o.value[e.field.addressLang],"onUpdate:modelValue":a=>o.value[e.field.addressLang]=a,disabled:e.disabled},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.optionsLang)==null?void 0:a.data,d=>{var r,s;return l.openBlock(),l.createBlock(K,{label:d[((r=e.optionsLang)==null?void 0:r.valueKey)||"value"],size:"large",key:d[((s=e.optionsLang)==null?void 0:s.valueKey)||"value"]},{default:l.withCtx(()=>{var p;return[l.createTextVNode(l.toDisplayString(d[((p=e.optionsLang)==null?void 0:p.labelkey)||"label"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled"]),l.createElementVNode("div",z,[l.createVNode(t,{rules:e.rules.addressNation,prop:[e.field.addressNation],style:{display:"inline-block!important","margin-right":"40px",width:"20%"}},{default:l.withCtx(()=>{var a;return[l.createVNode(C,{modelValue:o.value[e.field.addressNation],"onUpdate:modelValue":d=>o.value[e.field.addressNation]=d,placeholder:((a=e.optionsSelectNation)==null?void 0:a.placeholder)||"请选择",clearable:e.clearable},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.optionsSelectNation)==null?void 0:d.data,r=>{var s,p,u;return l.openBlock(),l.createBlock(x,{key:r[((s=e.optionsSelectNation)==null?void 0:s.valueKey)||"value"],label:r[((p=e.optionsSelectNation)==null?void 0:p.labelkey)||"label"],value:r[((u=e.optionsSelectNation)==null?void 0:u.valueKey)||"value"]},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]}),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.addressCity,prop:[e.field.addressCity],style:{display:"inline-block!important","margin-right":"40px",width:"20%"}},{default:l.withCtx(()=>{var a;return[l.createVNode(C,{modelValue:o.value[e.field.addressCity],"onUpdate:modelValue":d=>o.value[e.field.addressCity]=d,placeholder:((a=e.optionsSelectCity)==null?void 0:a.placeholder)||"请选择",clearable:e.clearable},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.optionsSelectCity)==null?void 0:d.data,r=>{var s,p,u;return l.openBlock(),l.createBlock(x,{key:r[((s=e.optionsSelectCity)==null?void 0:s.valueKey)||"value"],label:r[((p=e.optionsSelectCity)==null?void 0:p.labelkey)||"label"],value:r[((u=e.optionsSelectCity)==null?void 0:u.valueKey)||"value"]},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]}),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.addressArea,prop:[e.field.addressArea],style:{display:"inline-block!important","margin-right":"40px",width:"20%"}},{default:l.withCtx(()=>{var a;return[l.createVNode(C,{modelValue:o.value[e.field.addressArea],"onUpdate:modelValue":d=>o.value[e.field.addressArea]=d,placeholder:((a=e.optionsSelectArea)==null?void 0:a.placeholder)||"请选择",clearable:e.clearable},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.optionsSelectArea)==null?void 0:d.data,r=>{var s,p,u;return l.openBlock(),l.createBlock(x,{key:r[((s=e.optionsSelectArea)==null?void 0:s.valueKey)||"value"],label:r[((p=e.optionsSelectArea)==null?void 0:p.labelkey)||"label"],value:r[((u=e.optionsSelectArea)==null?void 0:u.valueKey)||"value"]},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]}),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.addressAreaC,prop:[e.field.addressAreaC],style:{display:"inline-block!important","margin-right":"40px",width:"20%"}},{default:l.withCtx(()=>{var a;return[l.createVNode(C,{modelValue:o.value[e.field.addressAreaC],"onUpdate:modelValue":d=>o.value[e.field.addressAreaC]=d,placeholder:((a=e.optionsSelectAreaC)==null?void 0:a.placeholder)||"请选择",clearable:e.clearable},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.optionsSelectAreaC)==null?void 0:d.data,r=>{var s,p,u;return l.openBlock(),l.createBlock(x,{key:r[((s=e.optionsSelectAreaC)==null?void 0:s.valueKey)||"value"],label:r[((p=e.optionsSelectAreaC)==null?void 0:p.labelkey)||"label"],value:r[((u=e.optionsSelectAreaC)==null?void 0:u.valueKey)||"value"]},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]}),_:2},1032,["rules","prop"])]),l.createVNode(t,{rules:e.rules.addressStreet,prop:[e.field.addressStreet],class:"item-address"},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.addressStreet],"onUpdate:modelValue":a=>o.value[e.field.addressStreet]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderAddressStreet,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.addressHouse,prop:[e.field.addressHouse],class:"item-address"},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.addressHouse],"onUpdate:modelValue":a=>o.value[e.field.addressHouse]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderAddressHouse,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.addressMansion,prop:[e.field.addressMansion],class:"item-address"},{default:l.withCtx(()=>[l.createVNode(i,{class:"item-address",modelValue:o.value[e.field.addressMansion],"onUpdate:modelValue":a=>o.value[e.field.addressMansion]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderAddressMansion,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),o.value.addressLang=="1"?(l.openBlock(),l.createElementBlock("div",T,[l.createVNode(t,{rules:e.rules.block,prop:[e.field.block],style:{display:"inline-block!important",width:"24%"}},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.block],"onUpdate:modelValue":a=>o.value[e.field.block]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderBlock,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" 座 "),l.createVNode(t,{rules:e.rules.floor,prop:[e.field.floor],style:{display:"inline-block!important",width:"24%","margin-left":"60px"}},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.floor],"onUpdate:modelValue":a=>o.value[e.field.floor]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderFloor,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" 樓 "),l.createVNode(t,{rules:e.rules.flat,prop:[e.field.flat],style:{display:"inline-block!important",width:"24%","margin-left":"60px"}},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.flat],"onUpdate:modelValue":a=>o.value[e.field.flat]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderFlat,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" 室 ")])):l.createCommentVNode("",!0),o.value.addressLang=="2"?(l.openBlock(),l.createElementBlock("div",G,[l.createVNode(t,{rules:e.rules.block,prop:[e.field.block],style:{display:"inline-block!important",width:"24%"}},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.block],"onUpdate:modelValue":a=>o.value[e.field.block]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderBlock,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" Block "),l.createVNode(t,{rules:e.rules.floor,prop:[e.field.floor],style:{display:"inline-block!important",width:"24%","margin-left":"60px"}},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.floor],"onUpdate:modelValue":a=>o.value[e.field.floor]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.rules.placeholderFloor,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" Floor "),l.createVNode(t,{rules:e.rules.flat,prop:[e.field.flat],style:{display:"inline-block!important",width:"24%","margin-left":"60px"}},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.flat],"onUpdate:modelValue":a=>o.value[e.field.flat]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.rules.placeholderFlat,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" Flat ")])):l.createCommentVNode("",!0),l.renderSlot(n.$slots,"address",{},void 0,!0)]),_:2},1032,["rules","prop"])):e.type==="name"?(l.openBlock(),l.createBlock(t,{key:2,label:e.label,class:"container"},{default:l.withCtx(()=>[l.createVNode(t,{rules:e.rules.nameEnFamily,prop:[e.field.nameEnFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.nameEnFamily],"onUpdate:modelValue":a=>o.value[e.field.nameEnFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEnFamily,disabled:e.disabled,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameChFamily,prop:[e.field.nameChFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.nameChFamily],"onUpdate:modelValue":a=>o.value[e.field.nameChFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameChFamily,disabled:e.disabled,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameEn,prop:[e.field.nameEn],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.nameEn],"onUpdate:modelValue":a=>o.value[e.field.nameEn]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEn,disabled:e.disabled,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(t,{rules:e.rules.nameCh,prop:[e.field.nameCh],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field.nameCh],"onUpdate:modelValue":a=>o.value[e.field.nameCh]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameCh,disabled:e.disabled,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label"])):e.type==="gender"?(l.openBlock(),l.createBlock(t,{key:3,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(U,{modelValue:o.value[e.field],"onUpdate:modelValue":a=>o.value[e.field]=a,disabled:e.disabled},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var r,s;return l.openBlock(),l.createBlock(K,{label:d[((r=e.options)==null?void 0:r.valueKey)||"value"],size:"large",key:d[((s=e.options)==null?void 0:s.valueKey)||"value"]},{default:l.withCtx(()=>[l.createElementVNode("img",{src:d.label==="男"?"../../public/man.png":"../../public/woman.png",style:{width:"44px",height:"44px","margin-right":"4px"},alt:""},null,8,R)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["label","rules","prop"])):e.type==="radio"?(l.openBlock(),l.createBlock(t,{key:4,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(U,{modelValue:o.value[e.field],"onUpdate:modelValue":a=>o.value[e.field]=a,disabled:e.disabled},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var r,s;return l.openBlock(),l.createBlock(K,{label:d[((r=e.options)==null?void 0:r.valueKey)||"value"],size:"large",key:d[((s=e.options)==null?void 0:s.valueKey)||"value"]},{default:l.withCtx(()=>{var p;return[l.createTextVNode(l.toDisplayString(d[((p=e.options)==null?void 0:p.labelkey)||"label"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["label","rules","prop"])):e.type==="checkbox"?(l.openBlock(),l.createBlock(t,{key:5,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(Y,{modelValue:o.value[e.field],"onUpdate:modelValue":a=>o.value[e.field]=a,disabled:e.disabled,style:l.normalizeStyle(e.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var r,s;return l.openBlock(),l.createBlock(m,{key:d[((r=e.options)==null?void 0:r.valueKey)||"value"],label:d[((s=e.options)==null?void 0:s.valueKey)||"value"]},{default:l.withCtx(()=>{var p;return[l.createTextVNode(l.toDisplayString(d[((p=e.options)==null?void 0:p.labelkey)||"label"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","style"])]),_:2},1032,["label","rules","prop"])):e.type==="select"?(l.openBlock(),l.createBlock(t,{key:6,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>{var a;return[l.createVNode(C,{modelValue:o.value[e.field],"onUpdate:modelValue":d=>o.value[e.field]=d,placeholder:((a=e.options)==null?void 0:a.placeholder)||"请选择",clearable:e.clearable},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.options)==null?void 0:d.data,r=>{var s,p,u;return l.openBlock(),l.createBlock(x,{key:r[((s=e.options)==null?void 0:s.valueKey)||"value"],label:r[((p=e.options)==null?void 0:p.labelkey)||"label"],value:r[((u=e.options)==null?void 0:u.valueKey)||"value"]},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]}),_:2},1032,["label","rules","prop"])):e.type==="datetime"?(l.openBlock(),l.createBlock(t,{key:7,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(Z,{modelValue:o.value[e.field],"onUpdate:modelValue":a=>o.value[e.field]=a,readonly:e.readonly,type:"datetime",placeholder:e.placeholder||e.label,"default-time":n.defaultTime,"value-format":e.format||"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","onUpdate:modelValue","readonly","placeholder","default-time","value-format"])]),_:2},1032,["label","rules","prop"])):(l.openBlock(),l.createBlock(t,{key:8,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(i,{modelValue:o.value[e.field],"onUpdate:modelValue":a=>o.value[e.field]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholder||e.label,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>y(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"]))],2))),128)),l.createVNode(t,null,{default:l.withCtx(()=>[l.renderSlot(n.$slots,"buttons",{model:o.value,formRef:V.value},()=>[h.value.showButtonText?(l.openBlock(),l.createBlock(N,{key:0,type:"primary",onClick:f[0]||(f[0]=e=>S(V.value))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.value.submitButtonText),1)]),_:1})):l.createCommentVNode("",!0),h.value.showResetButton?(l.openBlock(),l.createBlock(N,{key:1,type:"info",onClick:f[1]||(f[1]=e=>W(V.value))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.value.resetButtonText),1)]),_:1})):l.createCommentVNode("",!0),h.value.showCancelButton?(l.openBlock(),l.createBlock(N,{key:2,onClick:f[2]||(f[2]=e=>k("cancel"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.value.cancelButtonText),1)]),_:1})):l.createCommentVNode("",!0)],!0)]),_:3})]),_:3},16,["model","label-position"])]),_:3})}}}),X="",B=((b,_)=>{const k=b.__vccOpts||b;for(const[c,o]of _)k[c]=o;return k})(H,[["__scopeId","data-v-064b92e4"]]);function g(b,_={}){g.installed||(g.installed=!0,b.component("common-el-form",B))}return B.install=g,B});
|
|
1
|
+
(function(l,x){typeof exports=="object"&&typeof module<"u"?module.exports=x(require("vue")):typeof define=="function"&&define.amd?define(["vue"],x):(l=typeof globalThis<"u"?globalThis:l||self,l.Form=x(l.Vue))})(this,function(l){"use strict";const x="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==",A=b=>(l.pushScopeId("data-v-e4e58d3a"),b=b(),l.popScopeId(),b),P={class:"header-title"},F=A(()=>l.createElementVNode("span",{class:"title-left"},null,-1)),E={class:"title-content"},L=A(()=>l.createElementVNode("img",{src:x,style:{width:"19px","margin-right":"10px"},alt:""},null,-1)),z={class:"item-address"},T={key:0,class:"item-address"},I={key:1,class:"item-address"},m=["src"],G=l.defineComponent({__name:"Index",props:{fieldList:{},model:{},options:{}},emits:["submit","reset","cancel"],setup(b,{expose:_,emit:C}){const c=b,o=l.ref({}),V=l.ref(),h=l.computed(()=>Object.assign({labelPosition:"top",disabled:!1},c==null?void 0:c.options));console.log(c==null?void 0:c.options,"_oppppppppppp0ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp",h),_({formRef:V}),(()=>{c.fieldList.map(n=>{const f=n.type==="checkbox"?[]:"";if(console.log("itttttttt",n.field,n.field!=null),n.field&&typeof n.field=="object"){console.log("it999999999999999999999999999t",n.field,typeof n.field);for(let r of Object.keys(n.field))c.model?o.value=c.model:o.value[n.field[r]]=n.value||f}c.model?o.value=c.model:o.value[n.field]=n.value||f})})();const S=n=>{n&&n.validate(f=>{if(f)C("submit",o.value);else return!1})},i=n=>{n&&S(V.value)},R=n=>{n&&(console.log("prossss",c.model,o.value),console.log("prossss",c.model,o.value),n.resetFields())};return(n,f)=>{const r=l.resolveComponent("el-form-item"),B=l.resolveComponent("el-button"),K=l.resolveComponent("el-radio"),U=l.resolveComponent("el-radio-group"),k=l.resolveComponent("el-option"),w=l.resolveComponent("el-select"),y=l.resolveComponent("el-input"),H=l.resolveComponent("el-checkbox"),W=l.resolveComponent("el-checkbox-group"),Y=l.resolveComponent("el-date-picker"),Z=l.resolveComponent("el-form"),O=l.resolveComponent("el-card");return l.openBlock(),l.createBlock(O,{class:"mb-5"},{default:l.withCtx(()=>[l.createVNode(Z,l.mergeProps({onSubmit:f[3]||(f[3]=l.withModifiers(()=>{},["prevent"])),model:o.value},h.value,{"label-position":h.value.labelPosition,ref_key:"formRef",ref:V}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.fieldList,(e,$)=>(l.openBlock(),l.createElementBlock("div",{key:$,class:l.normalizeClass(e.type==="title"||e.type==="address"||e.type==="name"?"form-item-title":"form-item")},[e.type==="title"?(l.openBlock(),l.createBlock(r,{key:0},{default:l.withCtx(()=>[l.createElementVNode("div",P,[F,l.createElementVNode("span",E,l.toDisplayString(e.title),1)])]),_:2},1024)):e.type==="address"?(l.openBlock(),l.createBlock(r,{key:1,rules:e.rules,prop:[e.field],class:"container-address"},{default:l.withCtx(()=>[l.createVNode(B,{style:{"margin-bottom":"20px","margin-right":"60px"},onClick:n.downLoad},{default:l.withCtx(()=>[L,l.createTextVNode(" 載入已有地址 ")]),_:1},8,["onClick"]),l.createVNode(U,{style:{"margin-bottom":"20px"},modelValue:o.value[e.field.addressLang],"onUpdate:modelValue":a=>o.value[e.field.addressLang]=a,disabled:e.disabled},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.optionsLang)==null?void 0:a.data,d=>{var t,s;return l.openBlock(),l.createBlock(K,{label:d[((t=e.optionsLang)==null?void 0:t.valueKey)||"value"],size:"large",key:d[((s=e.optionsLang)==null?void 0:s.valueKey)||"value"]},{default:l.withCtx(()=>{var p;return[l.createTextVNode(l.toDisplayString(d[((p=e.optionsLang)==null?void 0:p.labelkey)||"label"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled"]),l.createElementVNode("div",z,[l.createVNode(r,{rules:e.rules.addressNation,prop:[e.field.addressNation],style:{display:"inline-block!important","margin-right":"40px",width:"20%"}},{default:l.withCtx(()=>{var a;return[l.createVNode(w,{modelValue:o.value[e.field.addressNation],"onUpdate:modelValue":d=>o.value[e.field.addressNation]=d,placeholder:((a=e.optionsSelectNation)==null?void 0:a.placeholder)||"请选择",clearable:e.clearable},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.optionsSelectNation)==null?void 0:d.data,t=>{var s,p,u;return l.openBlock(),l.createBlock(k,{key:t[((s=e.optionsSelectNation)==null?void 0:s.valueKey)||"value"],label:t[((p=e.optionsSelectNation)==null?void 0:p.labelkey)||"label"],value:t[((u=e.optionsSelectNation)==null?void 0:u.valueKey)||"value"]},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]}),_:2},1032,["rules","prop"]),l.createVNode(r,{rules:e.rules.addressCity,prop:[e.field.addressCity],style:{display:"inline-block!important","margin-right":"40px",width:"20%"}},{default:l.withCtx(()=>{var a;return[l.createVNode(w,{modelValue:o.value[e.field.addressCity],"onUpdate:modelValue":d=>o.value[e.field.addressCity]=d,placeholder:((a=e.optionsSelectCity)==null?void 0:a.placeholder)||"请选择",clearable:e.clearable},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.optionsSelectCity)==null?void 0:d.data,t=>{var s,p,u;return l.openBlock(),l.createBlock(k,{key:t[((s=e.optionsSelectCity)==null?void 0:s.valueKey)||"value"],label:t[((p=e.optionsSelectCity)==null?void 0:p.labelkey)||"label"],value:t[((u=e.optionsSelectCity)==null?void 0:u.valueKey)||"value"]},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]}),_:2},1032,["rules","prop"]),l.createVNode(r,{rules:e.rules.addressArea,prop:[e.field.addressArea],style:{display:"inline-block!important","margin-right":"40px",width:"20%"}},{default:l.withCtx(()=>{var a;return[l.createVNode(w,{modelValue:o.value[e.field.addressArea],"onUpdate:modelValue":d=>o.value[e.field.addressArea]=d,placeholder:((a=e.optionsSelectArea)==null?void 0:a.placeholder)||"请选择",clearable:e.clearable},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.optionsSelectArea)==null?void 0:d.data,t=>{var s,p,u;return l.openBlock(),l.createBlock(k,{key:t[((s=e.optionsSelectArea)==null?void 0:s.valueKey)||"value"],label:t[((p=e.optionsSelectArea)==null?void 0:p.labelkey)||"label"],value:t[((u=e.optionsSelectArea)==null?void 0:u.valueKey)||"value"]},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]}),_:2},1032,["rules","prop"]),l.createVNode(r,{rules:e.rules.addressAreaC,prop:[e.field.addressAreaC],style:{display:"inline-block!important","margin-right":"40px",width:"20%"}},{default:l.withCtx(()=>{var a;return[l.createVNode(w,{modelValue:o.value[e.field.addressAreaC],"onUpdate:modelValue":d=>o.value[e.field.addressAreaC]=d,placeholder:((a=e.optionsSelectAreaC)==null?void 0:a.placeholder)||"请选择",clearable:e.clearable},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.optionsSelectAreaC)==null?void 0:d.data,t=>{var s,p,u;return l.openBlock(),l.createBlock(k,{key:t[((s=e.optionsSelectAreaC)==null?void 0:s.valueKey)||"value"],label:t[((p=e.optionsSelectAreaC)==null?void 0:p.labelkey)||"label"],value:t[((u=e.optionsSelectAreaC)==null?void 0:u.valueKey)||"value"]},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]}),_:2},1032,["rules","prop"])]),l.createVNode(r,{rules:e.rules.addressStreet,prop:[e.field.addressStreet],class:"item-address"},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.addressStreet],"onUpdate:modelValue":a=>o.value[e.field.addressStreet]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderAddressStreet,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(r,{rules:e.rules.addressHouse,prop:[e.field.addressHouse],class:"item-address"},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.addressHouse],"onUpdate:modelValue":a=>o.value[e.field.addressHouse]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderAddressHouse,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(r,{rules:e.rules.addressMansion,prop:[e.field.addressMansion],class:"item-address"},{default:l.withCtx(()=>[l.createVNode(y,{class:"item-address",modelValue:o.value[e.field.addressMansion],"onUpdate:modelValue":a=>o.value[e.field.addressMansion]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderAddressMansion,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),o.value.addressLang=="1"?(l.openBlock(),l.createElementBlock("div",T,[l.createVNode(r,{rules:e.rules.block,prop:[e.field.block],style:{display:"inline-block!important",width:"24%"}},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.block],"onUpdate:modelValue":a=>o.value[e.field.block]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderBlock,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" 座 "),l.createVNode(r,{rules:e.rules.floor,prop:[e.field.floor],style:{display:"inline-block!important",width:"24%","margin-left":"60px"}},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.floor],"onUpdate:modelValue":a=>o.value[e.field.floor]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderFloor,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" 樓 "),l.createVNode(r,{rules:e.rules.flat,prop:[e.field.flat],style:{display:"inline-block!important",width:"24%","margin-left":"60px"}},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.flat],"onUpdate:modelValue":a=>o.value[e.field.flat]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderFlat,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" 室 ")])):l.createCommentVNode("",!0),o.value.addressLang=="2"?(l.openBlock(),l.createElementBlock("div",I,[l.createVNode(r,{rules:e.rules.block,prop:[e.field.block],style:{display:"inline-block!important",width:"24%"}},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.block],"onUpdate:modelValue":a=>o.value[e.field.block]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.field.placeholderBlock,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" Block "),l.createVNode(r,{rules:e.rules.floor,prop:[e.field.floor],style:{display:"inline-block!important",width:"24%","margin-left":"60px"}},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.floor],"onUpdate:modelValue":a=>o.value[e.field.floor]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.rules.placeholderFloor,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" Floor "),l.createVNode(r,{rules:e.rules.flat,prop:[e.field.flat],style:{display:"inline-block!important",width:"24%","margin-left":"60px"}},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.flat],"onUpdate:modelValue":a=>o.value[e.field.flat]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.rules.placeholderFlat,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" Flat ")])):l.createCommentVNode("",!0),l.renderSlot(n.$slots,"address",{},void 0,!0)]),_:2},1032,["rules","prop"])):e.type==="name"?(l.openBlock(),l.createBlock(r,{key:2,label:e.label,class:"container"},{default:l.withCtx(()=>[l.createVNode(r,{rules:e.rules.nameEnFamily,prop:[e.field.nameEnFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.nameEnFamily],"onUpdate:modelValue":a=>o.value[e.field.nameEnFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEnFamily,disabled:e.disabled,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(r,{rules:e.rules.nameChFamily,prop:[e.field.nameChFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.nameChFamily],"onUpdate:modelValue":a=>o.value[e.field.nameChFamily]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameChFamily,disabled:e.disabled,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(r,{rules:e.rules.nameEn,prop:[e.field.nameEn],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.nameEn],"onUpdate:modelValue":a=>o.value[e.field.nameEn]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEn,disabled:e.disabled,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"]),l.createVNode(r,{rules:e.rules.nameCh,prop:[e.field.nameCh],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.nameCh],"onUpdate:modelValue":a=>o.value[e.field.nameCh]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameCh,disabled:e.disabled,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label"])):e.type==="gender"?(l.openBlock(),l.createBlock(r,{key:3,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(U,{modelValue:o.value[e.field],"onUpdate:modelValue":a=>o.value[e.field]=a,disabled:e.disabled},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var t,s;return l.openBlock(),l.createBlock(K,{label:d[((t=e.options)==null?void 0:t.valueKey)||"value"],size:"large",key:d[((s=e.options)==null?void 0:s.valueKey)||"value"]},{default:l.withCtx(()=>[l.createElementVNode("img",{src:d.label==="男"?"../../public/man.png":"../../public/woman.png",style:{width:"44px",height:"44px","margin-right":"4px"},alt:""},null,8,m)]),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["label","rules","prop"])):e.type==="radio"?(l.openBlock(),l.createBlock(r,{key:4,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(U,{modelValue:o.value[e.field],"onUpdate:modelValue":a=>o.value[e.field]=a,disabled:e.disabled},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var t,s;return l.openBlock(),l.createBlock(K,{label:d[((t=e.options)==null?void 0:t.valueKey)||"value"],size:"large",key:d[((s=e.options)==null?void 0:s.valueKey)||"value"]},{default:l.withCtx(()=>{var p;return[l.createTextVNode(l.toDisplayString(d[((p=e.options)==null?void 0:p.labelkey)||"label"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["label","rules","prop"])):e.type==="checkbox"?(l.openBlock(),l.createBlock(r,{key:5,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(W,{modelValue:o.value[e.field],"onUpdate:modelValue":a=>o.value[e.field]=a,disabled:e.disabled,style:l.normalizeStyle(e.ways==="row"?"display: flex; align-items: flex-start;flex-flow: row nowrap; ":"display: flex; align-items: flex-start;flex-flow: column nowrap; ")},{default:l.withCtx(()=>{var a;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((a=e.options)==null?void 0:a.data,d=>{var t,s;return l.openBlock(),l.createBlock(H,{key:d[((t=e.options)==null?void 0:t.valueKey)||"value"],label:d[((s=e.options)==null?void 0:s.valueKey)||"value"]},{default:l.withCtx(()=>{var p;return[l.createTextVNode(l.toDisplayString(d[((p=e.options)==null?void 0:p.labelkey)||"label"]),1)]}),_:2},1032,["label"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","disabled","style"])]),_:2},1032,["label","rules","prop"])):e.type==="select"?(l.openBlock(),l.createBlock(r,{key:6,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>{var a;return[l.createVNode(w,{modelValue:o.value[e.field],"onUpdate:modelValue":d=>o.value[e.field]=d,placeholder:((a=e.options)==null?void 0:a.placeholder)||"请选择",clearable:e.clearable},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.options)==null?void 0:d.data,t=>{var s,p,u;return l.openBlock(),l.createBlock(k,{key:t[((s=e.options)==null?void 0:s.valueKey)||"value"],label:t[((p=e.options)==null?void 0:p.labelkey)||"label"],value:t[((u=e.options)==null?void 0:u.valueKey)||"value"]},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]}),_:2},1032,["label","rules","prop"])):e.type==="datetime"?(l.openBlock(),l.createBlock(r,{key:7,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(Y,{modelValue:o.value[e.field],"onUpdate:modelValue":a=>o.value[e.field]=a,readonly:e.readonly,type:"datetime",placeholder:e.placeholder||e.label,"default-time":n.defaultTime,"value-format":e.format||"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","onUpdate:modelValue","readonly","placeholder","default-time","value-format"])]),_:2},1032,["label","rules","prop"])):e.type==="slotItem1"?(l.openBlock(),l.createBlock(r,{key:8},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"slotItem1",{},void 0,!0)]),_:3})):e.type==="slotItem2"?(l.openBlock(),l.createBlock(r,{key:9},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"slotItem2",{},void 0,!0)]),_:3})):e.type==="slotItem3"?(l.openBlock(),l.createBlock(r,{key:10},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"slotItem3",{},void 0,!0)]),_:3})):e.type==="slotItem4"?(l.openBlock(),l.createBlock(r,{key:11},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"slotItem4",{},void 0,!0)]),_:3})):e.type==="slotItem5"?(l.openBlock(),l.createBlock(r,{key:12},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"slotItem5",{},void 0,!0)]),_:3})):e.type==="phone"?(l.openBlock(),l.createBlock(r,{key:13,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field.phoneNumber],"onUpdate:modelValue":a=>o.value[e.field.phoneNumber]=a,placeholder:e.placeholder||"请选择",clearable:e.clearable},{prepend:l.withCtx(()=>{var a;return[l.createVNode(w,{modelValue:o.value[e.field.areaCode],"onUpdate:modelValue":d=>o.value[e.field.areaCode]=d,placeholder:((a=e.options)==null?void 0:a.placeholder)||"请选择",style:{width:"115px"}},{default:l.withCtx(()=>{var d;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((d=e.options)==null?void 0:d.data,(t,s)=>(l.openBlock(),l.createBlock(k,{label:t.label,value:t.value,key:s},null,8,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])]}),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","clearable"])]),_:2},1032,["label","rules","prop"])):(l.openBlock(),l.createBlock(r,{key:14,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(y,{modelValue:o.value[e.field],"onUpdate:modelValue":a=>o.value[e.field]=a,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholder||e.label,disabled:e.disabled,showPassword:e.showPassword,clearable:e.clearable,onKeyup:l.withKeys(a=>i(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"]))],2))),128)),l.createVNode(r,null,{default:l.withCtx(()=>[l.renderSlot(n.$slots,"buttons",{model:o.value,formRef:V.value},()=>[h.value.showButtonText?(l.openBlock(),l.createBlock(B,{key:0,type:"primary",onClick:f[0]||(f[0]=e=>S(V.value))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.value.submitButtonText),1)]),_:1})):l.createCommentVNode("",!0),h.value.showResetButton?(l.openBlock(),l.createBlock(B,{key:1,type:"info",onClick:f[1]||(f[1]=e=>R(V.value))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.value.resetButtonText),1)]),_:1})):l.createCommentVNode("",!0),h.value.showCancelButton?(l.openBlock(),l.createBlock(B,{key:2,onClick:f[2]||(f[2]=e=>C("cancel"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.value.cancelButtonText),1)]),_:1})):l.createCommentVNode("",!0)],!0)]),_:3})]),_:3},16,["model","label-position"])]),_:3})}}}),M="",N=((b,_)=>{const C=b.__vccOpts||b;for(const[c,o]of _)C[c]=o;return C})(G,[["__scopeId","data-v-e4e58d3a"]]);function g(b,_={}){g.installed||(g.installed=!0,b.component("common-el-form",N))}return N.install=g,N});
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-item[data-v-
|
|
1
|
+
.form-item[data-v-e4e58d3a]{width:50%;display:inline-block;padding-right:100px;box-sizing:border-box}.form-item-title[data-v-e4e58d3a]{width:100%}.container[data-v-e4e58d3a]{padding:10px}.item-name[data-v-e4e58d3a]{width:49%;padding-right:120px;padding-bottom:20px;box-sizing:border-box}.container-address[data-v-e4e58d3a]{display:flex;padding:10px}.item-address[data-v-e4e58d3a]{width:100%;padding-right:10px;padding-bottom:20px;box-sizing:border-box}label[data-v-e4e58d3a]{display:block}.title-left[data-v-e4e58d3a]{border:2px solid #216FED;border-radius:2px;width:0px;height:18px;margin-right:8px}.title-content[data-v-e4e58d3a]{font-size:16px;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#2c3c4d;line-height:22px}[data-v-e4e58d3a] .el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{background-color:#fff;width:80px}[data-v-e4e58d3a] .el-input-group__prepend .el-select{width:90px!important}
|