sinosoft-common-form 1.0.6 → 1.0.8
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 +173 -158
- package/common-form.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/common-form.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
src:
|
|
1
|
+
import { defineComponent as Q, ref as W, computed as m, resolveComponent as U, openBlock as s, createBlock as t, withCtx as o, createVNode as d, mergeProps as ee, withModifiers as le, createElementBlock as _, Fragment as g, renderList as x, normalizeClass as ae, normalizeStyle as Y, createElementVNode as F, toDisplayString as K, createTextVNode as w, withKeys as k, createCommentVNode as B, renderSlot as C, pushScopeId as oe, popScopeId as de } from "vue";
|
|
2
|
+
const re = "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==", Z = (A) => (oe("data-v-0ad8532e"), A = A(), de(), A), se = { class: "header-title" }, pe = /* @__PURE__ */ Z(() => /* @__PURE__ */ F("span", { class: "title-left" }, null, -1)), ne = { class: "title-content" }, ue = /* @__PURE__ */ Z(() => /* @__PURE__ */ F("img", {
|
|
3
|
+
src: re,
|
|
4
4
|
style: { width: "19px", "margin-right": "10px" },
|
|
5
5
|
alt: ""
|
|
6
|
-
}, null, -1)),
|
|
6
|
+
}, null, -1)), te = { class: "item-address" }, ce = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "item-address"
|
|
9
9
|
}, ye = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "item-address"
|
|
12
|
-
},
|
|
12
|
+
}, fe = ["src"], be = /* @__PURE__ */ Q({
|
|
13
13
|
__name: "Index",
|
|
14
14
|
props: {
|
|
15
15
|
fieldList: {},
|
|
@@ -17,8 +17,8 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
17
17
|
options: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["submit", "reset", "cancel"],
|
|
20
|
-
setup(A, { expose: L, emit:
|
|
21
|
-
const
|
|
20
|
+
setup(A, { expose: L, emit: S }) {
|
|
21
|
+
const f = A, a = W({}), P = W(), b = m(() => Object.assign({
|
|
22
22
|
labelPosition: "top",
|
|
23
23
|
disabled: !1
|
|
24
24
|
// showButtonText: true,
|
|
@@ -26,56 +26,56 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
26
26
|
// submitButtonText: '提交',
|
|
27
27
|
// resetButtonText: '重置',
|
|
28
28
|
// cancelButtonText: '取消'
|
|
29
|
-
},
|
|
30
|
-
console.log(
|
|
29
|
+
}, f == null ? void 0 : f.options));
|
|
30
|
+
console.log(f == null ? void 0 : f.options, "_oppppppppppp0ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp", b), L({
|
|
31
31
|
formRef: P
|
|
32
32
|
}), (() => {
|
|
33
|
-
|
|
34
|
-
const
|
|
33
|
+
f.fieldList.map((u) => {
|
|
34
|
+
const h = 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
37
|
for (let p of Object.keys(u.field))
|
|
38
|
-
|
|
38
|
+
f.model ? a.value = f.model : a.value[u.field[p]] = u.value || h;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
f.model ? a.value = f.model : a.value[u.field] = u.value || h;
|
|
41
41
|
});
|
|
42
42
|
})();
|
|
43
43
|
const H = (u) => {
|
|
44
|
-
u && u.validate((
|
|
45
|
-
if (
|
|
46
|
-
|
|
44
|
+
u && u.validate((h) => {
|
|
45
|
+
if (h)
|
|
46
|
+
S("submit", a.value);
|
|
47
47
|
else
|
|
48
48
|
return !1;
|
|
49
49
|
});
|
|
50
50
|
}, v = (u) => {
|
|
51
51
|
u && H(P.value);
|
|
52
|
-
},
|
|
53
|
-
u && (console.log("prossss",
|
|
52
|
+
}, M = (u) => {
|
|
53
|
+
u && (console.log("prossss", f.model, a.value), console.log("prossss", f.model, a.value), u.resetFields());
|
|
54
54
|
};
|
|
55
|
-
return (u,
|
|
56
|
-
const p =
|
|
57
|
-
return s(), t(
|
|
55
|
+
return (u, h) => {
|
|
56
|
+
const p = U("el-form-item"), O = U("el-button"), E = U("el-radio"), G = U("el-radio-group"), N = U("el-option"), z = U("el-select"), i = U("el-input"), T = U("el-checkbox"), X = U("el-checkbox-group"), q = U("el-date-picker"), I = U("sinosoft-common-button"), J = U("el-form"), j = U("el-card");
|
|
57
|
+
return s(), t(j, { class: "mb-5" }, {
|
|
58
58
|
default: o(() => [
|
|
59
|
-
d(
|
|
60
|
-
onSubmit:
|
|
59
|
+
d(J, ee({
|
|
60
|
+
onSubmit: h[4] || (h[4] = le(() => {
|
|
61
61
|
}, ["prevent"])),
|
|
62
62
|
model: a.value
|
|
63
|
-
},
|
|
64
|
-
"label-position":
|
|
63
|
+
}, b.value, {
|
|
64
|
+
"label-position": b.value.labelPosition,
|
|
65
65
|
ref_key: "formRef",
|
|
66
66
|
ref: P
|
|
67
67
|
}), {
|
|
68
68
|
default: o(() => [
|
|
69
|
-
(s(!0),
|
|
70
|
-
key:
|
|
71
|
-
class:
|
|
69
|
+
(s(!0), _(g, null, x(u.fieldList, (e, D) => (s(), _("div", {
|
|
70
|
+
key: D,
|
|
71
|
+
class: ae(e.type === "title" || e.type === "address" || e.type === "name" ? "form-item-title" : "form-item"),
|
|
72
72
|
style: Y(e.style)
|
|
73
73
|
}, [
|
|
74
74
|
e.type === "title" ? (s(), t(p, { key: 0 }, {
|
|
75
75
|
default: o(() => [
|
|
76
|
-
F("div",
|
|
77
|
-
|
|
78
|
-
F("span",
|
|
76
|
+
F("div", se, [
|
|
77
|
+
pe,
|
|
78
|
+
F("span", ne, K(e.title), 1)
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
81
|
_: 2
|
|
@@ -86,12 +86,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
86
86
|
class: "container-address"
|
|
87
87
|
}, {
|
|
88
88
|
default: o(() => [
|
|
89
|
-
d(
|
|
89
|
+
d(O, {
|
|
90
90
|
style: { "margin-bottom": "20px", "margin-right": "60px" },
|
|
91
91
|
onClick: u.downLoad
|
|
92
92
|
}, {
|
|
93
93
|
default: o(() => [
|
|
94
|
-
|
|
94
|
+
ue,
|
|
95
95
|
w(" 載入已有地址 ")
|
|
96
96
|
]),
|
|
97
97
|
_: 1
|
|
@@ -105,17 +105,17 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
105
105
|
default: o(() => {
|
|
106
106
|
var l;
|
|
107
107
|
return [
|
|
108
|
-
(s(!0),
|
|
109
|
-
var n,
|
|
110
|
-
return s(), t(
|
|
111
|
-
label: r[((n = e.optionsLang) == null ? void 0 : n.valueKey) || "
|
|
108
|
+
(s(!0), _(g, null, x((l = e.optionsLang) == null ? void 0 : l.data, (r) => {
|
|
109
|
+
var n, c;
|
|
110
|
+
return s(), t(E, {
|
|
111
|
+
label: r[((n = e.optionsLang) == null ? void 0 : n.valueKey) || "code"],
|
|
112
112
|
size: "large",
|
|
113
|
-
key: r[((
|
|
113
|
+
key: r[((c = e.optionsLang) == null ? void 0 : c.valueKey) || "code"]
|
|
114
114
|
}, {
|
|
115
115
|
default: o(() => {
|
|
116
|
-
var
|
|
116
|
+
var y;
|
|
117
117
|
return [
|
|
118
|
-
w(K(r[((
|
|
118
|
+
w(K(r[((y = e.optionsLang) == null ? void 0 : y.labelkey) || "name"]), 1)
|
|
119
119
|
];
|
|
120
120
|
}),
|
|
121
121
|
_: 2
|
|
@@ -125,7 +125,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
125
125
|
}),
|
|
126
126
|
_: 2
|
|
127
127
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
|
128
|
-
F("div",
|
|
128
|
+
F("div", te, [
|
|
129
129
|
d(p, {
|
|
130
130
|
rules: e.rules.addressNation,
|
|
131
131
|
prop: [e.field.addressNation],
|
|
@@ -134,7 +134,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
134
134
|
default: o(() => {
|
|
135
135
|
var l;
|
|
136
136
|
return [
|
|
137
|
-
d(
|
|
137
|
+
d(z, {
|
|
138
138
|
modelValue: a.value[e.field.addressNation],
|
|
139
139
|
"onUpdate:modelValue": (r) => a.value[e.field.addressNation] = r,
|
|
140
140
|
placeholder: ((l = e.optionsSelectNation) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -143,12 +143,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
143
143
|
default: o(() => {
|
|
144
144
|
var r;
|
|
145
145
|
return [
|
|
146
|
-
(s(!0),
|
|
147
|
-
var
|
|
148
|
-
return s(), t(
|
|
149
|
-
key: n[((
|
|
150
|
-
label: n[((
|
|
151
|
-
value: n[((
|
|
146
|
+
(s(!0), _(g, null, x((r = e.optionsSelectNation) == null ? void 0 : r.data, (n) => {
|
|
147
|
+
var c, y, V;
|
|
148
|
+
return s(), t(N, {
|
|
149
|
+
key: n[((c = e.optionsSelectNation) == null ? void 0 : c.valueKey) || "code"],
|
|
150
|
+
label: n[((y = e.optionsSelectNation) == null ? void 0 : y.labelkey) || "name"],
|
|
151
|
+
value: n[((V = e.optionsSelectNation) == null ? void 0 : V.valueKey) || "code"]
|
|
152
152
|
}, null, 8, ["label", "value"]);
|
|
153
153
|
}), 128))
|
|
154
154
|
];
|
|
@@ -167,7 +167,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
167
167
|
default: o(() => {
|
|
168
168
|
var l;
|
|
169
169
|
return [
|
|
170
|
-
d(
|
|
170
|
+
d(z, {
|
|
171
171
|
modelValue: a.value[e.field.addressCity],
|
|
172
172
|
"onUpdate:modelValue": (r) => a.value[e.field.addressCity] = r,
|
|
173
173
|
placeholder: ((l = e.optionsSelectCity) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -176,12 +176,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
176
176
|
default: o(() => {
|
|
177
177
|
var r;
|
|
178
178
|
return [
|
|
179
|
-
(s(!0),
|
|
180
|
-
var
|
|
181
|
-
return s(), t(
|
|
182
|
-
key: n[((
|
|
183
|
-
label: n[((
|
|
184
|
-
value: n[((
|
|
179
|
+
(s(!0), _(g, null, x((r = e.optionsSelectCity) == null ? void 0 : r.data, (n) => {
|
|
180
|
+
var c, y, V;
|
|
181
|
+
return s(), t(N, {
|
|
182
|
+
key: n[((c = e.optionsSelectCity) == null ? void 0 : c.valueKey) || "code"],
|
|
183
|
+
label: n[((y = e.optionsSelectCity) == null ? void 0 : y.labelkey) || "name"],
|
|
184
|
+
value: n[((V = e.optionsSelectCity) == null ? void 0 : V.valueKey) || "code"]
|
|
185
185
|
}, null, 8, ["label", "value"]);
|
|
186
186
|
}), 128))
|
|
187
187
|
];
|
|
@@ -200,7 +200,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
200
200
|
default: o(() => {
|
|
201
201
|
var l;
|
|
202
202
|
return [
|
|
203
|
-
d(
|
|
203
|
+
d(z, {
|
|
204
204
|
modelValue: a.value[e.field.addressArea],
|
|
205
205
|
"onUpdate:modelValue": (r) => a.value[e.field.addressArea] = r,
|
|
206
206
|
placeholder: ((l = e.optionsSelectArea) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -209,12 +209,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
209
209
|
default: o(() => {
|
|
210
210
|
var r;
|
|
211
211
|
return [
|
|
212
|
-
(s(!0),
|
|
213
|
-
var
|
|
214
|
-
return s(), t(
|
|
215
|
-
key: n[((
|
|
216
|
-
label: n[((
|
|
217
|
-
value: n[((
|
|
212
|
+
(s(!0), _(g, null, x((r = e.optionsSelectArea) == null ? void 0 : r.data, (n) => {
|
|
213
|
+
var c, y, V;
|
|
214
|
+
return s(), t(N, {
|
|
215
|
+
key: n[((c = e.optionsSelectArea) == null ? void 0 : c.valueKey) || "code"],
|
|
216
|
+
label: n[((y = e.optionsSelectArea) == null ? void 0 : y.labelkey) || "name"],
|
|
217
|
+
value: n[((V = e.optionsSelectArea) == null ? void 0 : V.valueKey) || "code"]
|
|
218
218
|
}, null, 8, ["label", "value"]);
|
|
219
219
|
}), 128))
|
|
220
220
|
];
|
|
@@ -233,7 +233,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
233
233
|
default: o(() => {
|
|
234
234
|
var l;
|
|
235
235
|
return [
|
|
236
|
-
d(
|
|
236
|
+
d(z, {
|
|
237
237
|
modelValue: a.value[e.field.addressAreaC],
|
|
238
238
|
"onUpdate:modelValue": (r) => a.value[e.field.addressAreaC] = r,
|
|
239
239
|
placeholder: ((l = e.optionsSelectAreaC) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -242,12 +242,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
242
242
|
default: o(() => {
|
|
243
243
|
var r;
|
|
244
244
|
return [
|
|
245
|
-
(s(!0),
|
|
246
|
-
var
|
|
247
|
-
return s(), t(
|
|
248
|
-
key: n[((
|
|
249
|
-
label: n[((
|
|
250
|
-
value: n[((
|
|
245
|
+
(s(!0), _(g, null, x((r = e.optionsSelectAreaC) == null ? void 0 : r.data, (n) => {
|
|
246
|
+
var c, y, V;
|
|
247
|
+
return s(), t(N, {
|
|
248
|
+
key: n[((c = e.optionsSelectAreaC) == null ? void 0 : c.valueKey) || "code"],
|
|
249
|
+
label: n[((y = e.optionsSelectAreaC) == null ? void 0 : y.labelkey) || "name"],
|
|
250
|
+
value: n[((V = e.optionsSelectAreaC) == null ? void 0 : V.valueKey) || "code"]
|
|
251
251
|
}, null, 8, ["label", "value"]);
|
|
252
252
|
}), 128))
|
|
253
253
|
];
|
|
@@ -265,7 +265,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
265
265
|
class: "item-address"
|
|
266
266
|
}, {
|
|
267
267
|
default: o(() => [
|
|
268
|
-
d(
|
|
268
|
+
d(i, {
|
|
269
269
|
modelValue: a.value[e.field.addressStreet],
|
|
270
270
|
"onUpdate:modelValue": (l) => a.value[e.field.addressStreet] = l,
|
|
271
271
|
readonly: e.readonly,
|
|
@@ -274,7 +274,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
274
274
|
disabled: e.disabled,
|
|
275
275
|
showPassword: e.showPassword,
|
|
276
276
|
clearable: e.clearable,
|
|
277
|
-
onKeyup:
|
|
277
|
+
onKeyup: k((l) => v(e.enterable), ["enter"])
|
|
278
278
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
279
279
|
]),
|
|
280
280
|
_: 2
|
|
@@ -285,7 +285,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
285
285
|
class: "item-address"
|
|
286
286
|
}, {
|
|
287
287
|
default: o(() => [
|
|
288
|
-
d(
|
|
288
|
+
d(i, {
|
|
289
289
|
modelValue: a.value[e.field.addressHouse],
|
|
290
290
|
"onUpdate:modelValue": (l) => a.value[e.field.addressHouse] = l,
|
|
291
291
|
readonly: e.readonly,
|
|
@@ -294,7 +294,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
294
294
|
disabled: e.disabled,
|
|
295
295
|
showPassword: e.showPassword,
|
|
296
296
|
clearable: e.clearable,
|
|
297
|
-
onKeyup:
|
|
297
|
+
onKeyup: k((l) => v(e.enterable), ["enter"])
|
|
298
298
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
299
299
|
]),
|
|
300
300
|
_: 2
|
|
@@ -305,7 +305,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
305
305
|
class: "item-address"
|
|
306
306
|
}, {
|
|
307
307
|
default: o(() => [
|
|
308
|
-
d(
|
|
308
|
+
d(i, {
|
|
309
309
|
modelValue: a.value[e.field.addressMansion],
|
|
310
310
|
"onUpdate:modelValue": (l) => a.value[e.field.addressMansion] = l,
|
|
311
311
|
readonly: e.readonly,
|
|
@@ -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: k((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(),
|
|
322
|
+
a.value.addressLang == "1" ? (s(), _("div", ce, [
|
|
323
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(i, {
|
|
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,7 +335,7 @@ 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: k((l) => v(e.enterable), ["enter"])
|
|
339
339
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
340
340
|
]),
|
|
341
341
|
_: 2
|
|
@@ -347,7 +347,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
347
347
|
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
348
348
|
}, {
|
|
349
349
|
default: o(() => [
|
|
350
|
-
d(
|
|
350
|
+
d(i, {
|
|
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,7 +356,7 @@ 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: k((l) => v(e.enterable), ["enter"])
|
|
360
360
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
361
361
|
]),
|
|
362
362
|
_: 2
|
|
@@ -368,7 +368,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
368
368
|
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
369
369
|
}, {
|
|
370
370
|
default: o(() => [
|
|
371
|
-
d(
|
|
371
|
+
d(i, {
|
|
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: k((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
386
|
])) : B("", !0),
|
|
387
|
-
a.value.addressLang == "2" ? (s(),
|
|
387
|
+
a.value.addressLang == "2" ? (s(), _("div", ye, [
|
|
388
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(i, {
|
|
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,7 +400,7 @@ 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: k((l) => v(e.enterable), ["enter"])
|
|
404
404
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
405
405
|
]),
|
|
406
406
|
_: 2
|
|
@@ -412,7 +412,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
412
412
|
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
413
413
|
}, {
|
|
414
414
|
default: o(() => [
|
|
415
|
-
d(
|
|
415
|
+
d(i, {
|
|
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,7 +421,7 @@ 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: k((l) => v(e.enterable), ["enter"])
|
|
425
425
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
426
426
|
]),
|
|
427
427
|
_: 2
|
|
@@ -433,7 +433,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
433
433
|
style: { display: "inline-block!important", width: "24%", "margin-left": "60px" }
|
|
434
434
|
}, {
|
|
435
435
|
default: o(() => [
|
|
436
|
-
d(
|
|
436
|
+
d(i, {
|
|
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,7 +442,7 @@ 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: k((l) => v(e.enterable), ["enter"])
|
|
446
446
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
447
447
|
]),
|
|
448
448
|
_: 2
|
|
@@ -465,14 +465,14 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
465
465
|
class: "item-name"
|
|
466
466
|
}, {
|
|
467
467
|
default: o(() => [
|
|
468
|
-
d(
|
|
468
|
+
d(i, {
|
|
469
469
|
modelValue: a.value[e.field.nameEnFamily],
|
|
470
470
|
"onUpdate:modelValue": (l) => a.value[e.field.nameEnFamily] = l,
|
|
471
471
|
readonly: e.readonly,
|
|
472
472
|
type: e.type ? e.type : "text",
|
|
473
473
|
placeholder: e.placeholderNameEnFamily,
|
|
474
474
|
disabled: e.disabled,
|
|
475
|
-
onKeyup:
|
|
475
|
+
onKeyup: k((l) => v(e.enterable), ["enter"])
|
|
476
476
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
477
477
|
]),
|
|
478
478
|
_: 2
|
|
@@ -483,14 +483,14 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
483
483
|
class: "item-name"
|
|
484
484
|
}, {
|
|
485
485
|
default: o(() => [
|
|
486
|
-
d(
|
|
486
|
+
d(i, {
|
|
487
487
|
modelValue: a.value[e.field.nameChFamily],
|
|
488
488
|
"onUpdate:modelValue": (l) => a.value[e.field.nameChFamily] = l,
|
|
489
489
|
readonly: e.readonly,
|
|
490
490
|
type: e.type ? e.type : "text",
|
|
491
491
|
placeholder: e.placeholderNameChFamily,
|
|
492
492
|
disabled: e.disabled,
|
|
493
|
-
onKeyup:
|
|
493
|
+
onKeyup: k((l) => v(e.enterable), ["enter"])
|
|
494
494
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
495
495
|
]),
|
|
496
496
|
_: 2
|
|
@@ -501,14 +501,14 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
501
501
|
class: "item-name"
|
|
502
502
|
}, {
|
|
503
503
|
default: o(() => [
|
|
504
|
-
d(
|
|
504
|
+
d(i, {
|
|
505
505
|
modelValue: a.value[e.field.nameEn],
|
|
506
506
|
"onUpdate:modelValue": (l) => a.value[e.field.nameEn] = l,
|
|
507
507
|
readonly: e.readonly,
|
|
508
508
|
type: e.type ? e.type : "text",
|
|
509
509
|
placeholder: e.placeholderNameEn,
|
|
510
510
|
disabled: e.disabled,
|
|
511
|
-
onKeyup:
|
|
511
|
+
onKeyup: k((l) => v(e.enterable), ["enter"])
|
|
512
512
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
513
513
|
]),
|
|
514
514
|
_: 2
|
|
@@ -519,14 +519,14 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
519
519
|
class: "item-name"
|
|
520
520
|
}, {
|
|
521
521
|
default: o(() => [
|
|
522
|
-
d(
|
|
522
|
+
d(i, {
|
|
523
523
|
modelValue: a.value[e.field.nameCh],
|
|
524
524
|
"onUpdate:modelValue": (l) => a.value[e.field.nameCh] = l,
|
|
525
525
|
readonly: e.readonly,
|
|
526
526
|
type: e.type ? e.type : "text",
|
|
527
527
|
placeholder: e.placeholderNameCh,
|
|
528
528
|
disabled: e.disabled,
|
|
529
|
-
onKeyup:
|
|
529
|
+
onKeyup: k((l) => v(e.enterable), ["enter"])
|
|
530
530
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
531
531
|
]),
|
|
532
532
|
_: 2
|
|
@@ -548,19 +548,19 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
548
548
|
default: o(() => {
|
|
549
549
|
var l;
|
|
550
550
|
return [
|
|
551
|
-
(s(!0),
|
|
552
|
-
var n,
|
|
553
|
-
return s(), t(
|
|
554
|
-
label: r[((n = e.options) == null ? void 0 : n.valueKey) || "
|
|
551
|
+
(s(!0), _(g, null, x((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
552
|
+
var n, c;
|
|
553
|
+
return s(), t(E, {
|
|
554
|
+
label: r[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
|
|
555
555
|
size: "large",
|
|
556
|
-
key: r[((
|
|
556
|
+
key: r[((c = e.options) == null ? void 0 : c.valueKey) || "code"]
|
|
557
557
|
}, {
|
|
558
558
|
default: o(() => [
|
|
559
559
|
F("img", {
|
|
560
|
-
src: r.
|
|
560
|
+
src: r.code === "M" ? "../../public/man.png" : "../../public/woman.png",
|
|
561
561
|
style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
|
|
562
562
|
alt: ""
|
|
563
|
-
}, null, 8,
|
|
563
|
+
}, null, 8, fe)
|
|
564
564
|
]),
|
|
565
565
|
_: 2
|
|
566
566
|
}, 1032, ["label"]);
|
|
@@ -586,17 +586,17 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
586
586
|
default: o(() => {
|
|
587
587
|
var l;
|
|
588
588
|
return [
|
|
589
|
-
(s(!0),
|
|
590
|
-
var n,
|
|
591
|
-
return s(), t(
|
|
592
|
-
label: r[((n = e.options) == null ? void 0 : n.valueKey) || "value"],
|
|
589
|
+
(s(!0), _(g, null, x((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
590
|
+
var n, c;
|
|
591
|
+
return s(), t(E, {
|
|
593
592
|
size: "large",
|
|
594
|
-
|
|
593
|
+
label: r[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
|
|
594
|
+
key: r[((c = e.options) == null ? void 0 : c.valueKey) || "code"]
|
|
595
595
|
}, {
|
|
596
596
|
default: o(() => {
|
|
597
|
-
var
|
|
597
|
+
var y;
|
|
598
598
|
return [
|
|
599
|
-
w(K(r[((
|
|
599
|
+
w(K(r[((y = e.options) == null ? void 0 : y.labelkey) || "name"]), 1)
|
|
600
600
|
];
|
|
601
601
|
}),
|
|
602
602
|
_: 2
|
|
@@ -626,16 +626,16 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
626
626
|
default: o(() => {
|
|
627
627
|
var l;
|
|
628
628
|
return [
|
|
629
|
-
(s(!0),
|
|
630
|
-
var n,
|
|
631
|
-
return s(), t(
|
|
632
|
-
key: r[((n = e.options) == null ? void 0 : n.valueKey) || "
|
|
633
|
-
label: r[((
|
|
629
|
+
(s(!0), _(g, null, x((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
630
|
+
var n, c;
|
|
631
|
+
return s(), t(T, {
|
|
632
|
+
key: r[((n = e.options) == null ? void 0 : n.valueKey) || "code"],
|
|
633
|
+
label: r[((c = e.options) == null ? void 0 : c.valueKey) || "code"]
|
|
634
634
|
}, {
|
|
635
635
|
default: o(() => {
|
|
636
|
-
var
|
|
636
|
+
var y;
|
|
637
637
|
return [
|
|
638
|
-
w(K(r[((
|
|
638
|
+
w(K(r[((y = e.options) == null ? void 0 : y.labelkey) || "name"]), 1)
|
|
639
639
|
];
|
|
640
640
|
}),
|
|
641
641
|
_: 2
|
|
@@ -656,7 +656,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
656
656
|
default: o(() => {
|
|
657
657
|
var l;
|
|
658
658
|
return [
|
|
659
|
-
d(
|
|
659
|
+
d(z, {
|
|
660
660
|
modelValue: a.value[e.field],
|
|
661
661
|
"onUpdate:modelValue": (r) => a.value[e.field] = r,
|
|
662
662
|
placeholder: ((l = e.options) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -665,12 +665,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
665
665
|
default: o(() => {
|
|
666
666
|
var r;
|
|
667
667
|
return [
|
|
668
|
-
(s(!0),
|
|
669
|
-
var
|
|
670
|
-
return s(), t(
|
|
671
|
-
key: n[((
|
|
672
|
-
label: n[((
|
|
673
|
-
value: n[((
|
|
668
|
+
(s(!0), _(g, null, x((r = e.options) == null ? void 0 : r.data, (n) => {
|
|
669
|
+
var c, y, V;
|
|
670
|
+
return s(), t(N, {
|
|
671
|
+
key: n[((c = e.options) == null ? void 0 : c.valueKey) || "code"],
|
|
672
|
+
label: n[((y = e.options) == null ? void 0 : y.labelkey) || "name"],
|
|
673
|
+
value: n[((V = e.options) == null ? void 0 : V.valueKey) || "code"]
|
|
674
674
|
}, null, 8, ["label", "value"]);
|
|
675
675
|
}), 128))
|
|
676
676
|
];
|
|
@@ -687,7 +687,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
687
687
|
prop: [e.field]
|
|
688
688
|
}, {
|
|
689
689
|
default: o(() => [
|
|
690
|
-
d(
|
|
690
|
+
d(q, {
|
|
691
691
|
modelValue: a.value[e.field],
|
|
692
692
|
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
693
693
|
readonly: e.readonly,
|
|
@@ -730,7 +730,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
730
730
|
prop: [e.field.phoneNumber]
|
|
731
731
|
}, {
|
|
732
732
|
default: o(() => [
|
|
733
|
-
d(
|
|
733
|
+
d(i, {
|
|
734
734
|
modelValue: a.value[e.field.phoneNumber],
|
|
735
735
|
"onUpdate:modelValue": (l) => a.value[e.field.phoneNumber] = l,
|
|
736
736
|
placeholder: e.placeholder || "请选择",
|
|
@@ -739,7 +739,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
739
739
|
prepend: o(() => {
|
|
740
740
|
var l;
|
|
741
741
|
return [
|
|
742
|
-
d(
|
|
742
|
+
d(z, {
|
|
743
743
|
modelValue: a.value[e.field.areaCode],
|
|
744
744
|
"onUpdate:modelValue": (r) => a.value[e.field.areaCode] = r,
|
|
745
745
|
placeholder: ((l = e.options) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -748,10 +748,10 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
748
748
|
default: o(() => {
|
|
749
749
|
var r;
|
|
750
750
|
return [
|
|
751
|
-
(s(!0),
|
|
752
|
-
label: n.
|
|
753
|
-
value: n.
|
|
754
|
-
key:
|
|
751
|
+
(s(!0), _(g, null, x((r = e.options) == null ? void 0 : r.data, (n, c) => (s(), t(N, {
|
|
752
|
+
label: n.name,
|
|
753
|
+
value: n.code,
|
|
754
|
+
key: c
|
|
755
755
|
}, null, 8, ["label", "value"]))), 128))
|
|
756
756
|
];
|
|
757
757
|
}),
|
|
@@ -770,7 +770,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
770
770
|
prop: [e.field]
|
|
771
771
|
}, {
|
|
772
772
|
default: o(() => [
|
|
773
|
-
d(
|
|
773
|
+
d(i, {
|
|
774
774
|
modelValue: a.value[e.field],
|
|
775
775
|
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
776
776
|
readonly: e.readonly,
|
|
@@ -779,47 +779,62 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
779
779
|
disabled: e.disabled,
|
|
780
780
|
showPassword: e.showPassword,
|
|
781
781
|
clearable: e.clearable,
|
|
782
|
-
onKeyup:
|
|
782
|
+
onKeyup: k((l) => v(e.enterable), ["enter"])
|
|
783
783
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
784
784
|
]),
|
|
785
785
|
_: 2
|
|
786
786
|
}, 1032, ["label", "rules", "prop"]))
|
|
787
787
|
], 6))), 128)),
|
|
788
|
-
d(p, {
|
|
788
|
+
d(p, { class: "btnsItem" }, {
|
|
789
789
|
default: o(() => [
|
|
790
790
|
C(u.$slots, "buttons", {
|
|
791
791
|
model: a.value,
|
|
792
792
|
formRef: P.value
|
|
793
793
|
}, () => [
|
|
794
|
-
|
|
794
|
+
b.value.showButtonText ? (s(), t(I, {
|
|
795
795
|
key: 0,
|
|
796
|
-
|
|
797
|
-
|
|
796
|
+
size: 15,
|
|
797
|
+
width: b.value.submitButtonSize,
|
|
798
|
+
onClick: h[0] || (h[0] = (e) => H(P.value))
|
|
798
799
|
}, {
|
|
799
800
|
default: o(() => [
|
|
800
|
-
w(K(
|
|
801
|
+
w(K(b.value.submitButtonText), 1)
|
|
801
802
|
]),
|
|
802
803
|
_: 1
|
|
803
|
-
})) : B("", !0),
|
|
804
|
-
|
|
804
|
+
}, 8, ["width"])) : B("", !0),
|
|
805
|
+
b.value.showResetButton ? (s(), t(I, {
|
|
805
806
|
key: 1,
|
|
806
|
-
|
|
807
|
-
|
|
807
|
+
onClick: h[1] || (h[1] = (e) => M(P.value)),
|
|
808
|
+
size: 15,
|
|
809
|
+
width: b.value.resetButtonSize
|
|
808
810
|
}, {
|
|
809
811
|
default: o(() => [
|
|
810
|
-
w(K(
|
|
812
|
+
w(K(b.value.resetButtonText), 1)
|
|
811
813
|
]),
|
|
812
814
|
_: 1
|
|
813
|
-
})) : B("", !0),
|
|
814
|
-
|
|
815
|
+
}, 8, ["width"])) : B("", !0),
|
|
816
|
+
b.value.showNextButton ? (s(), t(I, {
|
|
815
817
|
key: 2,
|
|
816
|
-
onClick:
|
|
818
|
+
onClick: h[2] || (h[2] = (e) => S("next")),
|
|
819
|
+
size: 15,
|
|
820
|
+
width: b.value.nextButtonSize
|
|
817
821
|
}, {
|
|
818
822
|
default: o(() => [
|
|
819
|
-
w(K(
|
|
823
|
+
w(K(b.value.nextButtonText), 1)
|
|
820
824
|
]),
|
|
821
825
|
_: 1
|
|
822
|
-
})) : B("", !0)
|
|
826
|
+
}, 8, ["width"])) : B("", !0),
|
|
827
|
+
b.value.showCancelButton ? (s(), t(I, {
|
|
828
|
+
key: 3,
|
|
829
|
+
onClick: h[3] || (h[3] = (e) => S("cancel")),
|
|
830
|
+
size: 15,
|
|
831
|
+
width: b.value.cancelButtonSize
|
|
832
|
+
}, {
|
|
833
|
+
default: o(() => [
|
|
834
|
+
w(K(b.value.cancelButtonText), 1)
|
|
835
|
+
]),
|
|
836
|
+
_: 1
|
|
837
|
+
}, 8, ["width"])) : B("", !0)
|
|
823
838
|
], !0)
|
|
824
839
|
]),
|
|
825
840
|
_: 3
|
|
@@ -833,16 +848,16 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
833
848
|
};
|
|
834
849
|
}
|
|
835
850
|
});
|
|
836
|
-
const
|
|
837
|
-
const
|
|
838
|
-
for (const [
|
|
839
|
-
|
|
840
|
-
return
|
|
841
|
-
},
|
|
851
|
+
const he = (A, L) => {
|
|
852
|
+
const S = A.__vccOpts || A;
|
|
853
|
+
for (const [f, a] of L)
|
|
854
|
+
S[f] = a;
|
|
855
|
+
return S;
|
|
856
|
+
}, $ = /* @__PURE__ */ he(be, [["__scopeId", "data-v-0ad8532e"]]);
|
|
842
857
|
function R(A, L = {}) {
|
|
843
|
-
R.installed || (R.installed = !0, A.component("common-el-form",
|
|
858
|
+
R.installed || (R.installed = !0, A.component("common-el-form", $));
|
|
844
859
|
}
|
|
845
|
-
|
|
860
|
+
$.install = R;
|
|
846
861
|
export {
|
|
847
|
-
|
|
862
|
+
$ as default
|
|
848
863
|
};
|
package/common-form.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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-9ea7d88c"),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"},m={key:0,class:"item-address"},T={key:1,class:"item-address"},I=["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"),style:l.normalizeStyle(e.style)},[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,p;return l.openBlock(),l.createBlock(K,{label:d[((t=e.optionsLang)==null?void 0:t.valueKey)||"value"],size:"large",key:d[((p=e.optionsLang)==null?void 0:p.valueKey)||"value"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.optionsLang)==null?void 0:s.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 p,s,u;return l.openBlock(),l.createBlock(k,{key:t[((p=e.optionsSelectNation)==null?void 0:p.valueKey)||"value"],label:t[((s=e.optionsSelectNation)==null?void 0:s.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 p,s,u;return l.openBlock(),l.createBlock(k,{key:t[((p=e.optionsSelectCity)==null?void 0:p.valueKey)||"value"],label:t[((s=e.optionsSelectCity)==null?void 0:s.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 p,s,u;return l.openBlock(),l.createBlock(k,{key:t[((p=e.optionsSelectArea)==null?void 0:p.valueKey)||"value"],label:t[((s=e.optionsSelectArea)==null?void 0:s.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 p,s,u;return l.openBlock(),l.createBlock(k,{key:t[((p=e.optionsSelectAreaC)==null?void 0:p.valueKey)||"value"],label:t[((s=e.optionsSelectAreaC)==null?void 0:s.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,{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",m,[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",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(" 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",rules:e.rules.nameEnFamily},{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","rules"])):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,p;return l.openBlock(),l.createBlock(K,{label:d[((t=e.options)==null?void 0:t.valueKey)||"value"],size:"large",key:d[((p=e.options)==null?void 0:p.valueKey)||"value"]},{default:l.withCtx(()=>[l.createElementVNode("img",{src:d.label==="男"?"../../public/man.png":"../../public/woman.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,I)]),_: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,p;return l.openBlock(),l.createBlock(K,{label:d[((t=e.options)==null?void 0:t.valueKey)||"value"],size:"large",key:d[((p=e.options)==null?void 0:p.valueKey)||"value"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.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,p;return l.openBlock(),l.createBlock(H,{key:d[((t=e.options)==null?void 0:t.valueKey)||"value"],label:d[((p=e.options)==null?void 0:p.valueKey)||"value"]},{default:l.withCtx(()=>{var s;return[l.createTextVNode(l.toDisplayString(d[((s=e.options)==null?void 0:s.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 p,s,u;return l.openBlock(),l.createBlock(k,{key:t[((p=e.options)==null?void 0:p.valueKey)||"value"],label:t[((s=e.options)==null?void 0:s.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.phoneNumber,prop:[e.field.phoneNumber]},{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,p)=>(l.openBlock(),l.createBlock(k,{label:t.label,value:t.value,key:p},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"]))],6))),128)),l.createVNode(r,{style:{width:"300px",margin:"0 auto"}},{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-9ea7d88c"]]);function g(b,_={}){g.installed||(g.installed=!0,b.component("common-el-form",N))}return N.install=g,N});
|
|
1
|
+
(function(l,C){typeof exports=="object"&&typeof module<"u"?module.exports=C(require("vue")):typeof define=="function"&&define.amd?define(["vue"],C):(l=typeof globalThis<"u"?globalThis:l||self,l.Form=C(l.Vue))})(this,function(l){"use strict";const C="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==",S=b=>(l.pushScopeId("data-v-0ad8532e"),b=b(),l.popScopeId(),b),P={class:"header-title"},m=S(()=>l.createElementVNode("span",{class:"title-left"},null,-1)),F={class:"title-content"},E=S(()=>l.createElementVNode("img",{src:C,style:{width:"19px","margin-right":"10px"},alt:""},null,-1)),z={class:"item-address"},L={key:0,class:"item-address"},T={key:1,class:"item-address"},I=["src"],G=l.defineComponent({__name:"Index",props:{fieldList:{},model:{},options:{}},emits:["submit","reset","cancel"],setup(b,{expose:B,emit:V}){const c=b,a=l.ref({}),k=l.ref(),y=l.computed(()=>Object.assign({labelPosition:"top",disabled:!1},c==null?void 0:c.options));console.log(c==null?void 0:c.options,"_oppppppppppp0ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp",y),B({formRef:k}),(()=>{c.fieldList.map(n=>{const i=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?a.value=c.model:a.value[n.field[t]]=n.value||i}c.model?a.value=c.model:a.value[n.field]=n.value||i})})();const A=n=>{n&&n.validate(i=>{if(i)V("submit",a.value);else return!1})},u=n=>{n&&A(k.value)},R=n=>{n&&(console.log("prossss",c.model,a.value),console.log("prossss",c.model,a.value),n.resetFields())};return(n,i)=>{const t=l.resolveComponent("el-form-item"),H=l.resolveComponent("el-button"),K=l.resolveComponent("el-radio"),U=l.resolveComponent("el-radio-group"),w=l.resolveComponent("el-option"),x=l.resolveComponent("el-select"),f=l.resolveComponent("el-input"),W=l.resolveComponent("el-checkbox"),Y=l.resolveComponent("el-checkbox-group"),Z=l.resolveComponent("el-date-picker"),_=l.resolveComponent("sinosoft-common-button"),$=l.resolveComponent("el-form"),M=l.resolveComponent("el-card");return l.openBlock(),l.createBlock(M,{class:"mb-5"},{default:l.withCtx(()=>[l.createVNode($,l.mergeProps({onSubmit:i[4]||(i[4]=l.withModifiers(()=>{},["prevent"])),model:a.value},y.value,{"label-position":y.value.labelPosition,ref_key:"formRef",ref:k}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.fieldList,(e,O)=>(l.openBlock(),l.createElementBlock("div",{key:O,class:l.normalizeClass(e.type==="title"||e.type==="address"||e.type==="name"?"form-item-title":"form-item"),style:l.normalizeStyle(e.style)},[e.type==="title"?(l.openBlock(),l.createBlock(t,{key:0},{default:l.withCtx(()=>[l.createElementVNode("div",P,[m,l.createElementVNode("span",F,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(H,{style:{"margin-bottom":"20px","margin-right":"60px"},onClick:n.downLoad},{default:l.withCtx(()=>[E,l.createTextVNode(" 載入已有地址 ")]),_:1},8,["onClick"]),l.createVNode(U,{style:{"margin-bottom":"20px"},modelValue:a.value[e.field.addressLang],"onUpdate:modelValue":o=>a.value[e.field.addressLang]=o,disabled:e.disabled},{default:l.withCtx(()=>{var o;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((o=e.optionsLang)==null?void 0:o.data,d=>{var r,s;return l.openBlock(),l.createBlock(K,{label:d[((r=e.optionsLang)==null?void 0:r.valueKey)||"code"],size:"large",key:d[((s=e.optionsLang)==null?void 0:s.valueKey)||"code"]},{default:l.withCtx(()=>{var p;return[l.createTextVNode(l.toDisplayString(d[((p=e.optionsLang)==null?void 0:p.labelkey)||"name"]),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 o;return[l.createVNode(x,{modelValue:a.value[e.field.addressNation],"onUpdate:modelValue":d=>a.value[e.field.addressNation]=d,placeholder:((o=e.optionsSelectNation)==null?void 0:o.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,h;return l.openBlock(),l.createBlock(w,{key:r[((s=e.optionsSelectNation)==null?void 0:s.valueKey)||"code"],label:r[((p=e.optionsSelectNation)==null?void 0:p.labelkey)||"name"],value:r[((h=e.optionsSelectNation)==null?void 0:h.valueKey)||"code"]},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 o;return[l.createVNode(x,{modelValue:a.value[e.field.addressCity],"onUpdate:modelValue":d=>a.value[e.field.addressCity]=d,placeholder:((o=e.optionsSelectCity)==null?void 0:o.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,h;return l.openBlock(),l.createBlock(w,{key:r[((s=e.optionsSelectCity)==null?void 0:s.valueKey)||"code"],label:r[((p=e.optionsSelectCity)==null?void 0:p.labelkey)||"name"],value:r[((h=e.optionsSelectCity)==null?void 0:h.valueKey)||"code"]},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 o;return[l.createVNode(x,{modelValue:a.value[e.field.addressArea],"onUpdate:modelValue":d=>a.value[e.field.addressArea]=d,placeholder:((o=e.optionsSelectArea)==null?void 0:o.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,h;return l.openBlock(),l.createBlock(w,{key:r[((s=e.optionsSelectArea)==null?void 0:s.valueKey)||"code"],label:r[((p=e.optionsSelectArea)==null?void 0:p.labelkey)||"name"],value:r[((h=e.optionsSelectArea)==null?void 0:h.valueKey)||"code"]},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 o;return[l.createVNode(x,{modelValue:a.value[e.field.addressAreaC],"onUpdate:modelValue":d=>a.value[e.field.addressAreaC]=d,placeholder:((o=e.optionsSelectAreaC)==null?void 0:o.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,h;return l.openBlock(),l.createBlock(w,{key:r[((s=e.optionsSelectAreaC)==null?void 0:s.valueKey)||"code"],label:r[((p=e.optionsSelectAreaC)==null?void 0:p.labelkey)||"name"],value:r[((h=e.optionsSelectAreaC)==null?void 0:h.valueKey)||"code"]},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(f,{modelValue:a.value[e.field.addressStreet],"onUpdate:modelValue":o=>a.value[e.field.addressStreet]=o,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(o=>u(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(f,{modelValue:a.value[e.field.addressHouse],"onUpdate:modelValue":o=>a.value[e.field.addressHouse]=o,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(o=>u(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(f,{modelValue:a.value[e.field.addressMansion],"onUpdate:modelValue":o=>a.value[e.field.addressMansion]=o,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(o=>u(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),a.value.addressLang=="1"?(l.openBlock(),l.createElementBlock("div",L,[l.createVNode(t,{rules:e.rules.block,prop:[e.field.block],style:{display:"inline-block!important",width:"24%"}},{default:l.withCtx(()=>[l.createVNode(f,{modelValue:a.value[e.field.block],"onUpdate:modelValue":o=>a.value[e.field.block]=o,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(o=>u(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(f,{modelValue:a.value[e.field.floor],"onUpdate:modelValue":o=>a.value[e.field.floor]=o,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(o=>u(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(f,{modelValue:a.value[e.field.flat],"onUpdate:modelValue":o=>a.value[e.field.flat]=o,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(o=>u(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["rules","prop"]),l.createTextVNode(" 室 ")])):l.createCommentVNode("",!0),a.value.addressLang=="2"?(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(f,{modelValue:a.value[e.field.block],"onUpdate:modelValue":o=>a.value[e.field.block]=o,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(o=>u(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(f,{modelValue:a.value[e.field.floor],"onUpdate:modelValue":o=>a.value[e.field.floor]=o,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(o=>u(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(f,{modelValue:a.value[e.field.flat],"onUpdate:modelValue":o=>a.value[e.field.flat]=o,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(o=>u(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",rules:e.rules.nameEnFamily},{default:l.withCtx(()=>[l.createVNode(t,{rules:e.rules.nameEnFamily,prop:[e.field.nameEnFamily],class:"item-name"},{default:l.withCtx(()=>[l.createVNode(f,{modelValue:a.value[e.field.nameEnFamily],"onUpdate:modelValue":o=>a.value[e.field.nameEnFamily]=o,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEnFamily,disabled:e.disabled,onKeyup:l.withKeys(o=>u(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(f,{modelValue:a.value[e.field.nameChFamily],"onUpdate:modelValue":o=>a.value[e.field.nameChFamily]=o,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameChFamily,disabled:e.disabled,onKeyup:l.withKeys(o=>u(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(f,{modelValue:a.value[e.field.nameEn],"onUpdate:modelValue":o=>a.value[e.field.nameEn]=o,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameEn,disabled:e.disabled,onKeyup:l.withKeys(o=>u(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(f,{modelValue:a.value[e.field.nameCh],"onUpdate:modelValue":o=>a.value[e.field.nameCh]=o,readonly:e.readonly,type:e.type?e.type:"text",placeholder:e.placeholderNameCh,disabled:e.disabled,onKeyup:l.withKeys(o=>u(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","onKeyup"])]),_:2},1032,["rules","prop"])]),_:2},1032,["label","rules"])):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:a.value[e.field],"onUpdate:modelValue":o=>a.value[e.field]=o,disabled:e.disabled},{default:l.withCtx(()=>{var o;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((o=e.options)==null?void 0:o.data,d=>{var r,s;return l.openBlock(),l.createBlock(K,{label:d[((r=e.options)==null?void 0:r.valueKey)||"code"],size:"large",key:d[((s=e.options)==null?void 0:s.valueKey)||"code"]},{default:l.withCtx(()=>[l.createElementVNode("img",{src:d.code==="M"?"../../public/man.png":"../../public/woman.png",style:{width:"44px",height:"44px","margin-bottom":"-15px","margin-left":"4px"},alt:""},null,8,I)]),_: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:a.value[e.field],"onUpdate:modelValue":o=>a.value[e.field]=o,disabled:e.disabled},{default:l.withCtx(()=>{var o;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((o=e.options)==null?void 0:o.data,d=>{var r,s;return l.openBlock(),l.createBlock(K,{size:"large",label:d[((r=e.options)==null?void 0:r.valueKey)||"code"],key:d[((s=e.options)==null?void 0:s.valueKey)||"code"]},{default:l.withCtx(()=>{var p;return[l.createTextVNode(l.toDisplayString(d[((p=e.options)==null?void 0:p.labelkey)||"name"]),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:a.value[e.field],"onUpdate:modelValue":o=>a.value[e.field]=o,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 o;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((o=e.options)==null?void 0:o.data,d=>{var r,s;return l.openBlock(),l.createBlock(W,{key:d[((r=e.options)==null?void 0:r.valueKey)||"code"],label:d[((s=e.options)==null?void 0:s.valueKey)||"code"]},{default:l.withCtx(()=>{var p;return[l.createTextVNode(l.toDisplayString(d[((p=e.options)==null?void 0:p.labelkey)||"name"]),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 o;return[l.createVNode(x,{modelValue:a.value[e.field],"onUpdate:modelValue":d=>a.value[e.field]=d,placeholder:((o=e.options)==null?void 0:o.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,h;return l.openBlock(),l.createBlock(w,{key:r[((s=e.options)==null?void 0:s.valueKey)||"code"],label:r[((p=e.options)==null?void 0:p.labelkey)||"name"],value:r[((h=e.options)==null?void 0:h.valueKey)||"code"]},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:a.value[e.field],"onUpdate:modelValue":o=>a.value[e.field]=o,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(t,{key:8},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"slotItem1",{},void 0,!0)]),_:3})):e.type==="slotItem2"?(l.openBlock(),l.createBlock(t,{key:9},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"slotItem2",{},void 0,!0)]),_:3})):e.type==="slotItem3"?(l.openBlock(),l.createBlock(t,{key:10},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"slotItem3",{},void 0,!0)]),_:3})):e.type==="slotItem4"?(l.openBlock(),l.createBlock(t,{key:11},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"slotItem4",{},void 0,!0)]),_:3})):e.type==="slotItem5"?(l.openBlock(),l.createBlock(t,{key:12},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"slotItem5",{},void 0,!0)]),_:3})):e.type==="phone"?(l.openBlock(),l.createBlock(t,{key:13,label:e.label,rules:e.rules.phoneNumber,prop:[e.field.phoneNumber]},{default:l.withCtx(()=>[l.createVNode(f,{modelValue:a.value[e.field.phoneNumber],"onUpdate:modelValue":o=>a.value[e.field.phoneNumber]=o,placeholder:e.placeholder||"请选择",clearable:e.clearable},{prepend:l.withCtx(()=>{var o;return[l.createVNode(x,{modelValue:a.value[e.field.areaCode],"onUpdate:modelValue":d=>a.value[e.field.areaCode]=d,placeholder:((o=e.options)==null?void 0:o.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,(r,s)=>(l.openBlock(),l.createBlock(w,{label:r.name,value:r.code,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(t,{key:14,label:e.label,rules:e.rules,prop:[e.field]},{default:l.withCtx(()=>[l.createVNode(f,{modelValue:a.value[e.field],"onUpdate:modelValue":o=>a.value[e.field]=o,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(o=>u(e.enterable),["enter"])},null,8,["modelValue","onUpdate:modelValue","readonly","type","placeholder","disabled","showPassword","clearable","onKeyup"])]),_:2},1032,["label","rules","prop"]))],6))),128)),l.createVNode(t,{class:"btnsItem"},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"buttons",{model:a.value,formRef:k.value},()=>[y.value.showButtonText?(l.openBlock(),l.createBlock(_,{key:0,size:15,width:y.value.submitButtonSize,onClick:i[0]||(i[0]=e=>A(k.value))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.value.submitButtonText),1)]),_:1},8,["width"])):l.createCommentVNode("",!0),y.value.showResetButton?(l.openBlock(),l.createBlock(_,{key:1,onClick:i[1]||(i[1]=e=>R(k.value)),size:15,width:y.value.resetButtonSize},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.value.resetButtonText),1)]),_:1},8,["width"])):l.createCommentVNode("",!0),y.value.showNextButton?(l.openBlock(),l.createBlock(_,{key:2,onClick:i[2]||(i[2]=e=>V("next")),size:15,width:y.value.nextButtonSize},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.value.nextButtonText),1)]),_:1},8,["width"])):l.createCommentVNode("",!0),y.value.showCancelButton?(l.openBlock(),l.createBlock(_,{key:3,onClick:i[3]||(i[3]=e=>V("cancel")),size:15,width:y.value.cancelButtonSize},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.value.cancelButtonText),1)]),_:1},8,["width"])):l.createCommentVNode("",!0)],!0)]),_:3})]),_:3},16,["model","label-position"])]),_:3})}}}),X="",N=((b,B)=>{const V=b.__vccOpts||b;for(const[c,a]of B)V[c]=a;return V})(G,[["__scopeId","data-v-0ad8532e"]]);function g(b,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
|
-
|
|
1
|
+
@charset "UTF-8";.form-item[data-v-0ad8532e]{width:50%;display:inline-block;padding-right:100px;box-sizing:border-box}.form-item-title[data-v-0ad8532e]{width:100%}.container[data-v-0ad8532e]{padding:10px}.item-name[data-v-0ad8532e]{width:49%;padding-right:120px;padding-bottom:20px;box-sizing:border-box}.container-address[data-v-0ad8532e]{display:flex;padding:10px}.btnsItem[data-v-0ad8532e]{width:500px;margin:0 auto;justify-content:center}.btnsItem[data-v-0ad8532e] .el-form-item__content{justify-content:center}.item-address[data-v-0ad8532e]{width:100%;padding-right:10px;padding-bottom:20px;box-sizing:border-box}label[data-v-0ad8532e]{display:block}.title-left[data-v-0ad8532e]{border:2px solid #216FED;border-radius:2px;width:0px;height:18px;margin-right:8px}.title-content[data-v-0ad8532e]{font-size:16px;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#2c3c4d;line-height:22px}[data-v-0ad8532e] .el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{background-color:#fff;width:80px}[data-v-0ad8532e] .el-input-group__prepend .el-select{width:90px!important}
|