sinosoft-common-form 1.0.5 → 1.0.7
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 +148 -132
- package/common-form.umd.js +1 -1
- package/package.json +3 -3
- 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-db28db40"), 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
|
+
}, be = ["src"], fe = /* @__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 b = A, a = W({}), P = W(),
|
|
20
|
+
setup(A, { expose: L, emit: S }) {
|
|
21
|
+
const b = A, a = W({}), P = W(), f = m(() => Object.assign({
|
|
22
22
|
labelPosition: "top",
|
|
23
23
|
disabled: !1
|
|
24
24
|
// showButtonText: true,
|
|
@@ -27,54 +27,55 @@ 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",
|
|
30
|
+
console.log(b == null ? void 0 : b.options, "_oppppppppppp0ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp", f), L({
|
|
31
31
|
formRef: P
|
|
32
32
|
}), (() => {
|
|
33
33
|
b.fieldList.map((u) => {
|
|
34
|
-
const
|
|
34
|
+
const v = 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
|
-
b.model ? a.value = b.model : a.value[u.field[p]] = u.value ||
|
|
38
|
+
b.model ? a.value = b.model : a.value[u.field[p]] = u.value || v;
|
|
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 || v;
|
|
41
41
|
});
|
|
42
42
|
})();
|
|
43
43
|
const H = (u) => {
|
|
44
|
-
u && u.validate((
|
|
45
|
-
if (
|
|
46
|
-
|
|
44
|
+
u && u.validate((v) => {
|
|
45
|
+
if (v)
|
|
46
|
+
S("submit", a.value);
|
|
47
47
|
else
|
|
48
48
|
return !1;
|
|
49
49
|
});
|
|
50
|
-
},
|
|
50
|
+
}, i = (u) => {
|
|
51
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 p =
|
|
57
|
-
return s(), t(
|
|
55
|
+
return (u, v) => {
|
|
56
|
+
const p = U("el-form-item"), M = U("el-button"), E = U("el-radio"), G = U("el-radio-group"), N = U("el-option"), z = U("el-select"), h = 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: v[4] || (v[4] = le(() => {
|
|
61
61
|
}, ["prevent"])),
|
|
62
62
|
model: a.value
|
|
63
|
-
},
|
|
64
|
-
"label-position":
|
|
63
|
+
}, f.value, {
|
|
64
|
+
"label-position": f.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
|
+
style: Y(e.style)
|
|
72
73
|
}, [
|
|
73
74
|
e.type === "title" ? (s(), t(p, { key: 0 }, {
|
|
74
75
|
default: o(() => [
|
|
75
|
-
F("div",
|
|
76
|
-
|
|
77
|
-
F("span",
|
|
76
|
+
F("div", se, [
|
|
77
|
+
pe,
|
|
78
|
+
F("span", ne, K(e.title), 1)
|
|
78
79
|
])
|
|
79
80
|
]),
|
|
80
81
|
_: 2
|
|
@@ -85,12 +86,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
85
86
|
class: "container-address"
|
|
86
87
|
}, {
|
|
87
88
|
default: o(() => [
|
|
88
|
-
d(
|
|
89
|
+
d(M, {
|
|
89
90
|
style: { "margin-bottom": "20px", "margin-right": "60px" },
|
|
90
91
|
onClick: u.downLoad
|
|
91
92
|
}, {
|
|
92
93
|
default: o(() => [
|
|
93
|
-
|
|
94
|
+
ue,
|
|
94
95
|
w(" 載入已有地址 ")
|
|
95
96
|
]),
|
|
96
97
|
_: 1
|
|
@@ -104,7 +105,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
104
105
|
default: o(() => {
|
|
105
106
|
var l;
|
|
106
107
|
return [
|
|
107
|
-
(s(!0),
|
|
108
|
+
(s(!0), _(g, null, x((l = e.optionsLang) == null ? void 0 : l.data, (r) => {
|
|
108
109
|
var n, c;
|
|
109
110
|
return s(), t(E, {
|
|
110
111
|
label: r[((n = e.optionsLang) == null ? void 0 : n.valueKey) || "value"],
|
|
@@ -114,7 +115,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
114
115
|
default: o(() => {
|
|
115
116
|
var y;
|
|
116
117
|
return [
|
|
117
|
-
w(
|
|
118
|
+
w(K(r[((y = e.optionsLang) == null ? void 0 : y.labelkey) || "label"]), 1)
|
|
118
119
|
];
|
|
119
120
|
}),
|
|
120
121
|
_: 2
|
|
@@ -124,7 +125,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
124
125
|
}),
|
|
125
126
|
_: 2
|
|
126
127
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
|
127
|
-
F("div",
|
|
128
|
+
F("div", te, [
|
|
128
129
|
d(p, {
|
|
129
130
|
rules: e.rules.addressNation,
|
|
130
131
|
prop: [e.field.addressNation],
|
|
@@ -133,7 +134,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
133
134
|
default: o(() => {
|
|
134
135
|
var l;
|
|
135
136
|
return [
|
|
136
|
-
d(
|
|
137
|
+
d(z, {
|
|
137
138
|
modelValue: a.value[e.field.addressNation],
|
|
138
139
|
"onUpdate:modelValue": (r) => a.value[e.field.addressNation] = r,
|
|
139
140
|
placeholder: ((l = e.optionsSelectNation) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -142,12 +143,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
142
143
|
default: o(() => {
|
|
143
144
|
var r;
|
|
144
145
|
return [
|
|
145
|
-
(s(!0),
|
|
146
|
-
var c, y,
|
|
147
|
-
return s(), t(
|
|
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, {
|
|
148
149
|
key: n[((c = e.optionsSelectNation) == null ? void 0 : c.valueKey) || "value"],
|
|
149
150
|
label: n[((y = e.optionsSelectNation) == null ? void 0 : y.labelkey) || "label"],
|
|
150
|
-
value: n[((
|
|
151
|
+
value: n[((V = e.optionsSelectNation) == null ? void 0 : V.valueKey) || "value"]
|
|
151
152
|
}, null, 8, ["label", "value"]);
|
|
152
153
|
}), 128))
|
|
153
154
|
];
|
|
@@ -166,7 +167,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
166
167
|
default: o(() => {
|
|
167
168
|
var l;
|
|
168
169
|
return [
|
|
169
|
-
d(
|
|
170
|
+
d(z, {
|
|
170
171
|
modelValue: a.value[e.field.addressCity],
|
|
171
172
|
"onUpdate:modelValue": (r) => a.value[e.field.addressCity] = r,
|
|
172
173
|
placeholder: ((l = e.optionsSelectCity) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -175,12 +176,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
175
176
|
default: o(() => {
|
|
176
177
|
var r;
|
|
177
178
|
return [
|
|
178
|
-
(s(!0),
|
|
179
|
-
var c, y,
|
|
180
|
-
return s(), t(
|
|
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, {
|
|
181
182
|
key: n[((c = e.optionsSelectCity) == null ? void 0 : c.valueKey) || "value"],
|
|
182
183
|
label: n[((y = e.optionsSelectCity) == null ? void 0 : y.labelkey) || "label"],
|
|
183
|
-
value: n[((
|
|
184
|
+
value: n[((V = e.optionsSelectCity) == null ? void 0 : V.valueKey) || "value"]
|
|
184
185
|
}, null, 8, ["label", "value"]);
|
|
185
186
|
}), 128))
|
|
186
187
|
];
|
|
@@ -199,7 +200,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
199
200
|
default: o(() => {
|
|
200
201
|
var l;
|
|
201
202
|
return [
|
|
202
|
-
d(
|
|
203
|
+
d(z, {
|
|
203
204
|
modelValue: a.value[e.field.addressArea],
|
|
204
205
|
"onUpdate:modelValue": (r) => a.value[e.field.addressArea] = r,
|
|
205
206
|
placeholder: ((l = e.optionsSelectArea) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -208,12 +209,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
208
209
|
default: o(() => {
|
|
209
210
|
var r;
|
|
210
211
|
return [
|
|
211
|
-
(s(!0),
|
|
212
|
-
var c, y,
|
|
213
|
-
return s(), t(
|
|
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, {
|
|
214
215
|
key: n[((c = e.optionsSelectArea) == null ? void 0 : c.valueKey) || "value"],
|
|
215
216
|
label: n[((y = e.optionsSelectArea) == null ? void 0 : y.labelkey) || "label"],
|
|
216
|
-
value: n[((
|
|
217
|
+
value: n[((V = e.optionsSelectArea) == null ? void 0 : V.valueKey) || "value"]
|
|
217
218
|
}, null, 8, ["label", "value"]);
|
|
218
219
|
}), 128))
|
|
219
220
|
];
|
|
@@ -232,7 +233,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
232
233
|
default: o(() => {
|
|
233
234
|
var l;
|
|
234
235
|
return [
|
|
235
|
-
d(
|
|
236
|
+
d(z, {
|
|
236
237
|
modelValue: a.value[e.field.addressAreaC],
|
|
237
238
|
"onUpdate:modelValue": (r) => a.value[e.field.addressAreaC] = r,
|
|
238
239
|
placeholder: ((l = e.optionsSelectAreaC) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -241,12 +242,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
241
242
|
default: o(() => {
|
|
242
243
|
var r;
|
|
243
244
|
return [
|
|
244
|
-
(s(!0),
|
|
245
|
-
var c, y,
|
|
246
|
-
return s(), t(
|
|
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, {
|
|
247
248
|
key: n[((c = e.optionsSelectAreaC) == null ? void 0 : c.valueKey) || "value"],
|
|
248
249
|
label: n[((y = e.optionsSelectAreaC) == null ? void 0 : y.labelkey) || "label"],
|
|
249
|
-
value: n[((
|
|
250
|
+
value: n[((V = e.optionsSelectAreaC) == null ? void 0 : V.valueKey) || "value"]
|
|
250
251
|
}, null, 8, ["label", "value"]);
|
|
251
252
|
}), 128))
|
|
252
253
|
];
|
|
@@ -264,7 +265,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
264
265
|
class: "item-address"
|
|
265
266
|
}, {
|
|
266
267
|
default: o(() => [
|
|
267
|
-
d(
|
|
268
|
+
d(h, {
|
|
268
269
|
modelValue: a.value[e.field.addressStreet],
|
|
269
270
|
"onUpdate:modelValue": (l) => a.value[e.field.addressStreet] = l,
|
|
270
271
|
readonly: e.readonly,
|
|
@@ -273,7 +274,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
273
274
|
disabled: e.disabled,
|
|
274
275
|
showPassword: e.showPassword,
|
|
275
276
|
clearable: e.clearable,
|
|
276
|
-
onKeyup:
|
|
277
|
+
onKeyup: k((l) => i(e.enterable), ["enter"])
|
|
277
278
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
278
279
|
]),
|
|
279
280
|
_: 2
|
|
@@ -284,7 +285,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
284
285
|
class: "item-address"
|
|
285
286
|
}, {
|
|
286
287
|
default: o(() => [
|
|
287
|
-
d(
|
|
288
|
+
d(h, {
|
|
288
289
|
modelValue: a.value[e.field.addressHouse],
|
|
289
290
|
"onUpdate:modelValue": (l) => a.value[e.field.addressHouse] = l,
|
|
290
291
|
readonly: e.readonly,
|
|
@@ -293,7 +294,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
293
294
|
disabled: e.disabled,
|
|
294
295
|
showPassword: e.showPassword,
|
|
295
296
|
clearable: e.clearable,
|
|
296
|
-
onKeyup:
|
|
297
|
+
onKeyup: k((l) => i(e.enterable), ["enter"])
|
|
297
298
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
298
299
|
]),
|
|
299
300
|
_: 2
|
|
@@ -304,8 +305,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
304
305
|
class: "item-address"
|
|
305
306
|
}, {
|
|
306
307
|
default: o(() => [
|
|
307
|
-
d(
|
|
308
|
-
class: "item-address",
|
|
308
|
+
d(h, {
|
|
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) => i(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(h, {
|
|
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) => i(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(h, {
|
|
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) => i(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(h, {
|
|
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) => i(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(h, {
|
|
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) => i(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(h, {
|
|
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) => i(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(h, {
|
|
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) => i(e.enterable), ["enter"])
|
|
446
446
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
447
447
|
]),
|
|
448
448
|
_: 2
|
|
@@ -455,7 +455,8 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
455
455
|
}, 1032, ["rules", "prop"])) : e.type === "name" ? (s(), t(p, {
|
|
456
456
|
key: 2,
|
|
457
457
|
label: e.label,
|
|
458
|
-
class: "container"
|
|
458
|
+
class: "container",
|
|
459
|
+
rules: e.rules.nameEnFamily
|
|
459
460
|
}, {
|
|
460
461
|
default: o(() => [
|
|
461
462
|
d(p, {
|
|
@@ -464,14 +465,14 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
464
465
|
class: "item-name"
|
|
465
466
|
}, {
|
|
466
467
|
default: o(() => [
|
|
467
|
-
d(
|
|
468
|
+
d(h, {
|
|
468
469
|
modelValue: a.value[e.field.nameEnFamily],
|
|
469
470
|
"onUpdate:modelValue": (l) => a.value[e.field.nameEnFamily] = l,
|
|
470
471
|
readonly: e.readonly,
|
|
471
472
|
type: e.type ? e.type : "text",
|
|
472
473
|
placeholder: e.placeholderNameEnFamily,
|
|
473
474
|
disabled: e.disabled,
|
|
474
|
-
onKeyup:
|
|
475
|
+
onKeyup: k((l) => i(e.enterable), ["enter"])
|
|
475
476
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
476
477
|
]),
|
|
477
478
|
_: 2
|
|
@@ -482,14 +483,14 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
482
483
|
class: "item-name"
|
|
483
484
|
}, {
|
|
484
485
|
default: o(() => [
|
|
485
|
-
d(
|
|
486
|
+
d(h, {
|
|
486
487
|
modelValue: a.value[e.field.nameChFamily],
|
|
487
488
|
"onUpdate:modelValue": (l) => a.value[e.field.nameChFamily] = l,
|
|
488
489
|
readonly: e.readonly,
|
|
489
490
|
type: e.type ? e.type : "text",
|
|
490
491
|
placeholder: e.placeholderNameChFamily,
|
|
491
492
|
disabled: e.disabled,
|
|
492
|
-
onKeyup:
|
|
493
|
+
onKeyup: k((l) => i(e.enterable), ["enter"])
|
|
493
494
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
494
495
|
]),
|
|
495
496
|
_: 2
|
|
@@ -500,14 +501,14 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
500
501
|
class: "item-name"
|
|
501
502
|
}, {
|
|
502
503
|
default: o(() => [
|
|
503
|
-
d(
|
|
504
|
+
d(h, {
|
|
504
505
|
modelValue: a.value[e.field.nameEn],
|
|
505
506
|
"onUpdate:modelValue": (l) => a.value[e.field.nameEn] = l,
|
|
506
507
|
readonly: e.readonly,
|
|
507
508
|
type: e.type ? e.type : "text",
|
|
508
509
|
placeholder: e.placeholderNameEn,
|
|
509
510
|
disabled: e.disabled,
|
|
510
|
-
onKeyup:
|
|
511
|
+
onKeyup: k((l) => i(e.enterable), ["enter"])
|
|
511
512
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
512
513
|
]),
|
|
513
514
|
_: 2
|
|
@@ -518,21 +519,21 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
518
519
|
class: "item-name"
|
|
519
520
|
}, {
|
|
520
521
|
default: o(() => [
|
|
521
|
-
d(
|
|
522
|
+
d(h, {
|
|
522
523
|
modelValue: a.value[e.field.nameCh],
|
|
523
524
|
"onUpdate:modelValue": (l) => a.value[e.field.nameCh] = l,
|
|
524
525
|
readonly: e.readonly,
|
|
525
526
|
type: e.type ? e.type : "text",
|
|
526
527
|
placeholder: e.placeholderNameCh,
|
|
527
528
|
disabled: e.disabled,
|
|
528
|
-
onKeyup:
|
|
529
|
+
onKeyup: k((l) => i(e.enterable), ["enter"])
|
|
529
530
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "onKeyup"])
|
|
530
531
|
]),
|
|
531
532
|
_: 2
|
|
532
533
|
}, 1032, ["rules", "prop"])
|
|
533
534
|
]),
|
|
534
535
|
_: 2
|
|
535
|
-
}, 1032, ["label"])) : e.type === "gender" ? (s(), t(p, {
|
|
536
|
+
}, 1032, ["label", "rules"])) : e.type === "gender" ? (s(), t(p, {
|
|
536
537
|
key: 3,
|
|
537
538
|
label: e.label,
|
|
538
539
|
rules: e.rules,
|
|
@@ -547,7 +548,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
547
548
|
default: o(() => {
|
|
548
549
|
var l;
|
|
549
550
|
return [
|
|
550
|
-
(s(!0),
|
|
551
|
+
(s(!0), _(g, null, x((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
551
552
|
var n, c;
|
|
552
553
|
return s(), t(E, {
|
|
553
554
|
label: r[((n = e.options) == null ? void 0 : n.valueKey) || "value"],
|
|
@@ -557,9 +558,9 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
557
558
|
default: o(() => [
|
|
558
559
|
F("img", {
|
|
559
560
|
src: r.label === "男" ? "../../public/man.png" : "../../public/woman.png",
|
|
560
|
-
style: { width: "44px", height: "44px", "margin-
|
|
561
|
+
style: { width: "44px", height: "44px", "margin-bottom": "-15px", "margin-left": "4px" },
|
|
561
562
|
alt: ""
|
|
562
|
-
}, null, 8,
|
|
563
|
+
}, null, 8, be)
|
|
563
564
|
]),
|
|
564
565
|
_: 2
|
|
565
566
|
}, 1032, ["label"]);
|
|
@@ -585,7 +586,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
585
586
|
default: o(() => {
|
|
586
587
|
var l;
|
|
587
588
|
return [
|
|
588
|
-
(s(!0),
|
|
589
|
+
(s(!0), _(g, null, x((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
589
590
|
var n, c;
|
|
590
591
|
return s(), t(E, {
|
|
591
592
|
label: r[((n = e.options) == null ? void 0 : n.valueKey) || "value"],
|
|
@@ -595,7 +596,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
595
596
|
default: o(() => {
|
|
596
597
|
var y;
|
|
597
598
|
return [
|
|
598
|
-
w(
|
|
599
|
+
w(K(r[((y = e.options) == null ? void 0 : y.labelkey) || "label"]), 1)
|
|
599
600
|
];
|
|
600
601
|
}),
|
|
601
602
|
_: 2
|
|
@@ -614,27 +615,27 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
614
615
|
prop: [e.field]
|
|
615
616
|
}, {
|
|
616
617
|
default: o(() => [
|
|
617
|
-
d(
|
|
618
|
+
d(X, {
|
|
618
619
|
modelValue: a.value[e.field],
|
|
619
620
|
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
620
621
|
disabled: e.disabled,
|
|
621
|
-
style:
|
|
622
|
+
style: Y(
|
|
622
623
|
e.ways === "row" ? "display: flex; align-items: flex-start;flex-flow: row nowrap; " : "display: flex; align-items: flex-start;flex-flow: column nowrap; "
|
|
623
624
|
)
|
|
624
625
|
}, {
|
|
625
626
|
default: o(() => {
|
|
626
627
|
var l;
|
|
627
628
|
return [
|
|
628
|
-
(s(!0),
|
|
629
|
+
(s(!0), _(g, null, x((l = e.options) == null ? void 0 : l.data, (r) => {
|
|
629
630
|
var n, c;
|
|
630
|
-
return s(), t(
|
|
631
|
+
return s(), t(T, {
|
|
631
632
|
key: r[((n = e.options) == null ? void 0 : n.valueKey) || "value"],
|
|
632
633
|
label: r[((c = e.options) == null ? void 0 : c.valueKey) || "value"]
|
|
633
634
|
}, {
|
|
634
635
|
default: o(() => {
|
|
635
636
|
var y;
|
|
636
637
|
return [
|
|
637
|
-
w(
|
|
638
|
+
w(K(r[((y = e.options) == null ? void 0 : y.labelkey) || "label"]), 1)
|
|
638
639
|
];
|
|
639
640
|
}),
|
|
640
641
|
_: 2
|
|
@@ -655,7 +656,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
655
656
|
default: o(() => {
|
|
656
657
|
var l;
|
|
657
658
|
return [
|
|
658
|
-
d(
|
|
659
|
+
d(z, {
|
|
659
660
|
modelValue: a.value[e.field],
|
|
660
661
|
"onUpdate:modelValue": (r) => a.value[e.field] = r,
|
|
661
662
|
placeholder: ((l = e.options) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -664,12 +665,12 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
664
665
|
default: o(() => {
|
|
665
666
|
var r;
|
|
666
667
|
return [
|
|
667
|
-
(s(!0),
|
|
668
|
-
var c, y,
|
|
669
|
-
return s(), t(
|
|
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, {
|
|
670
671
|
key: n[((c = e.options) == null ? void 0 : c.valueKey) || "value"],
|
|
671
672
|
label: n[((y = e.options) == null ? void 0 : y.labelkey) || "label"],
|
|
672
|
-
value: n[((
|
|
673
|
+
value: n[((V = e.options) == null ? void 0 : V.valueKey) || "value"]
|
|
673
674
|
}, null, 8, ["label", "value"]);
|
|
674
675
|
}), 128))
|
|
675
676
|
];
|
|
@@ -686,7 +687,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
686
687
|
prop: [e.field]
|
|
687
688
|
}, {
|
|
688
689
|
default: o(() => [
|
|
689
|
-
d(
|
|
690
|
+
d(q, {
|
|
690
691
|
modelValue: a.value[e.field],
|
|
691
692
|
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
692
693
|
readonly: e.readonly,
|
|
@@ -725,11 +726,11 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
725
726
|
})) : e.type === "phone" ? (s(), t(p, {
|
|
726
727
|
key: 13,
|
|
727
728
|
label: e.label,
|
|
728
|
-
rules: e.rules,
|
|
729
|
-
prop: [e.field]
|
|
729
|
+
rules: e.rules.phoneNumber,
|
|
730
|
+
prop: [e.field.phoneNumber]
|
|
730
731
|
}, {
|
|
731
732
|
default: o(() => [
|
|
732
|
-
d(
|
|
733
|
+
d(h, {
|
|
733
734
|
modelValue: a.value[e.field.phoneNumber],
|
|
734
735
|
"onUpdate:modelValue": (l) => a.value[e.field.phoneNumber] = l,
|
|
735
736
|
placeholder: e.placeholder || "请选择",
|
|
@@ -738,7 +739,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
738
739
|
prepend: o(() => {
|
|
739
740
|
var l;
|
|
740
741
|
return [
|
|
741
|
-
d(
|
|
742
|
+
d(z, {
|
|
742
743
|
modelValue: a.value[e.field.areaCode],
|
|
743
744
|
"onUpdate:modelValue": (r) => a.value[e.field.areaCode] = r,
|
|
744
745
|
placeholder: ((l = e.options) == null ? void 0 : l.placeholder) || "请选择",
|
|
@@ -747,7 +748,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
747
748
|
default: o(() => {
|
|
748
749
|
var r;
|
|
749
750
|
return [
|
|
750
|
-
(s(!0),
|
|
751
|
+
(s(!0), _(g, null, x((r = e.options) == null ? void 0 : r.data, (n, c) => (s(), t(N, {
|
|
751
752
|
label: n.label,
|
|
752
753
|
value: n.value,
|
|
753
754
|
key: c
|
|
@@ -769,7 +770,7 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
769
770
|
prop: [e.field]
|
|
770
771
|
}, {
|
|
771
772
|
default: o(() => [
|
|
772
|
-
d(
|
|
773
|
+
d(h, {
|
|
773
774
|
modelValue: a.value[e.field],
|
|
774
775
|
"onUpdate:modelValue": (l) => a.value[e.field] = l,
|
|
775
776
|
readonly: e.readonly,
|
|
@@ -778,47 +779,62 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
778
779
|
disabled: e.disabled,
|
|
779
780
|
showPassword: e.showPassword,
|
|
780
781
|
clearable: e.clearable,
|
|
781
|
-
onKeyup:
|
|
782
|
+
onKeyup: k((l) => i(e.enterable), ["enter"])
|
|
782
783
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "readonly", "type", "placeholder", "disabled", "showPassword", "clearable", "onKeyup"])
|
|
783
784
|
]),
|
|
784
785
|
_: 2
|
|
785
786
|
}, 1032, ["label", "rules", "prop"]))
|
|
786
|
-
],
|
|
787
|
-
d(p,
|
|
787
|
+
], 6))), 128)),
|
|
788
|
+
d(p, { class: "btnsItem" }, {
|
|
788
789
|
default: o(() => [
|
|
789
790
|
C(u.$slots, "buttons", {
|
|
790
791
|
model: a.value,
|
|
791
792
|
formRef: P.value
|
|
792
793
|
}, () => [
|
|
793
|
-
|
|
794
|
+
f.value.showButtonText ? (s(), t(I, {
|
|
794
795
|
key: 0,
|
|
795
|
-
|
|
796
|
-
|
|
796
|
+
size: 15,
|
|
797
|
+
width: f.value.submitButtonSize,
|
|
798
|
+
onClick: v[0] || (v[0] = (e) => H(P.value))
|
|
797
799
|
}, {
|
|
798
800
|
default: o(() => [
|
|
799
|
-
w(
|
|
801
|
+
w(K(f.value.submitButtonText), 1)
|
|
800
802
|
]),
|
|
801
803
|
_: 1
|
|
802
|
-
})) : B("", !0),
|
|
803
|
-
|
|
804
|
+
}, 8, ["width"])) : B("", !0),
|
|
805
|
+
f.value.showResetButton ? (s(), t(I, {
|
|
804
806
|
key: 1,
|
|
805
|
-
|
|
806
|
-
|
|
807
|
+
onClick: v[1] || (v[1] = (e) => O(P.value)),
|
|
808
|
+
size: 15,
|
|
809
|
+
width: f.value.resetButtonSize
|
|
807
810
|
}, {
|
|
808
811
|
default: o(() => [
|
|
809
|
-
w(
|
|
812
|
+
w(K(f.value.resetButtonText), 1)
|
|
810
813
|
]),
|
|
811
814
|
_: 1
|
|
812
|
-
})) : B("", !0),
|
|
813
|
-
|
|
815
|
+
}, 8, ["width"])) : B("", !0),
|
|
816
|
+
f.value.showNextButton ? (s(), t(I, {
|
|
814
817
|
key: 2,
|
|
815
|
-
onClick:
|
|
818
|
+
onClick: v[2] || (v[2] = (e) => S("next")),
|
|
819
|
+
size: 15,
|
|
820
|
+
width: f.value.nextButtonSize
|
|
821
|
+
}, {
|
|
822
|
+
default: o(() => [
|
|
823
|
+
w(K(f.value.nextButtonText), 1)
|
|
824
|
+
]),
|
|
825
|
+
_: 1
|
|
826
|
+
}, 8, ["width"])) : B("", !0),
|
|
827
|
+
f.value.showCancelButton ? (s(), t(I, {
|
|
828
|
+
key: 3,
|
|
829
|
+
onClick: v[3] || (v[3] = (e) => S("cancel")),
|
|
830
|
+
size: 15,
|
|
831
|
+
width: f.value.cancelButtonSize
|
|
816
832
|
}, {
|
|
817
833
|
default: o(() => [
|
|
818
|
-
w(
|
|
834
|
+
w(K(f.value.cancelButtonText), 1)
|
|
819
835
|
]),
|
|
820
836
|
_: 1
|
|
821
|
-
})) : B("", !0)
|
|
837
|
+
}, 8, ["width"])) : B("", !0)
|
|
822
838
|
], !0)
|
|
823
839
|
]),
|
|
824
840
|
_: 3
|
|
@@ -832,16 +848,16 @@ const de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAA
|
|
|
832
848
|
};
|
|
833
849
|
}
|
|
834
850
|
});
|
|
835
|
-
const
|
|
836
|
-
const
|
|
851
|
+
const ve = (A, L) => {
|
|
852
|
+
const S = A.__vccOpts || A;
|
|
837
853
|
for (const [b, a] of L)
|
|
838
|
-
|
|
839
|
-
return
|
|
840
|
-
},
|
|
854
|
+
S[b] = a;
|
|
855
|
+
return S;
|
|
856
|
+
}, $ = /* @__PURE__ */ ve(fe, [["__scopeId", "data-v-db28db40"]]);
|
|
841
857
|
function R(A, L = {}) {
|
|
842
|
-
R.installed || (R.installed = !0, A.component("common-el-form",
|
|
858
|
+
R.installed || (R.installed = !0, A.component("common-el-form", $));
|
|
843
859
|
}
|
|
844
|
-
|
|
860
|
+
$.install = R;
|
|
845
861
|
export {
|
|
846
|
-
|
|
862
|
+
$ as default
|
|
847
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-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});
|
|
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=h=>(l.pushScopeId("data-v-db28db40"),h=h(),l.popScopeId(),h),P={class:"header-title"},F=S(()=>l.createElementVNode("span",{class:"title-left"},null,-1)),E={class:"title-content"},z=S(()=>l.createElementVNode("img",{src:C,style:{width:"19px","margin-right":"10px"},alt:""},null,-1)),L={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(h,{expose:B,emit:V}){const c=h,o=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?o.value=c.model:o.value[n.field[t]]=n.value||i}c.model?o.value=c.model:o.value[n.field]=n.value||i})})();const A=n=>{n&&n.validate(i=>{if(i)V("submit",o.value);else return!1})},f=n=>{n&&A(k.value)},R=n=>{n&&(console.log("prossss",c.model,o.value),console.log("prossss",c.model,o.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"),u=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"),O=l.resolveComponent("el-card");return l.openBlock(),l.createBlock(O,{class:"mb-5"},{default:l.withCtx(()=>[l.createVNode($,l.mergeProps({onSubmit:i[4]||(i[4]=l.withModifiers(()=>{},["prevent"])),model:o.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,M)=>(l.openBlock(),l.createElementBlock("div",{key:M,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,[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(H,{style:{"margin-bottom":"20px","margin-right":"60px"},onClick:n.downLoad},{default:l.withCtx(()=>[z,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",L,[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(x,{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,b;return l.openBlock(),l.createBlock(w,{key:r[((s=e.optionsSelectNation)==null?void 0:s.valueKey)||"value"],label:r[((p=e.optionsSelectNation)==null?void 0:p.labelkey)||"label"],value:r[((b=e.optionsSelectNation)==null?void 0:b.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(x,{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,b;return l.openBlock(),l.createBlock(w,{key:r[((s=e.optionsSelectCity)==null?void 0:s.valueKey)||"value"],label:r[((p=e.optionsSelectCity)==null?void 0:p.labelkey)||"label"],value:r[((b=e.optionsSelectCity)==null?void 0:b.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(x,{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,b;return l.openBlock(),l.createBlock(w,{key:r[((s=e.optionsSelectArea)==null?void 0:s.valueKey)||"value"],label:r[((p=e.optionsSelectArea)==null?void 0:p.labelkey)||"label"],value:r[((b=e.optionsSelectArea)==null?void 0:b.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(x,{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,b;return l.openBlock(),l.createBlock(w,{key:r[((s=e.optionsSelectAreaC)==null?void 0:s.valueKey)||"value"],label:r[((p=e.optionsSelectAreaC)==null?void 0:p.labelkey)||"label"],value:r[((b=e.optionsSelectAreaC)==null?void 0:b.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(u,{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=>f(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(u,{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=>f(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(u,{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=>f(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(t,{rules:e.rules.block,prop:[e.field.block],style:{display:"inline-block!important",width:"24%"}},{default:l.withCtx(()=>[l.createVNode(u,{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=>f(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(u,{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=>f(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(u,{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=>f(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(t,{rules:e.rules.block,prop:[e.field.block],style:{display:"inline-block!important",width:"24%"}},{default:l.withCtx(()=>[l.createVNode(u,{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=>f(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(u,{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=>f(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(u,{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=>f(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(u,{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=>f(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(u,{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=>f(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(u,{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=>f(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(u,{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=>f(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: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-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: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(W,{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(x,{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,b;return l.openBlock(),l.createBlock(w,{key:r[((s=e.options)==null?void 0:s.valueKey)||"value"],label:r[((p=e.options)==null?void 0:p.labelkey)||"label"],value:r[((b=e.options)==null?void 0:b.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"])):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(u,{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(x,{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,(r,s)=>(l.openBlock(),l.createBlock(w,{label:r.label,value:r.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(t,{key:14,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,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=>f(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:o.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=((h,B)=>{const V=h.__vccOpts||h;for(const[c,o]of B)V[c]=o;return V})(G,[["__scopeId","data-v-db28db40"]]);function g(h,B={}){g.installed||(g.installed=!0,h.component("common-el-form",N))}return N.install=g,N});
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sinosoft-common-form",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.0.7",
|
|
5
4
|
"main": "common-form.es.js",
|
|
6
5
|
"scripts": {
|
|
7
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
7
|
},
|
|
9
8
|
"keywords": [],
|
|
10
9
|
"author": "",
|
|
11
|
-
"license": "ISC"
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"description": ""
|
|
12
12
|
}
|
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
@charset "UTF-8";.form-item[data-v-db28db40]{width:50%;display:inline-block;padding-right:100px;box-sizing:border-box}.form-item-title[data-v-db28db40]{width:100%}.container[data-v-db28db40]{padding:10px}.item-name[data-v-db28db40]{width:49%;padding-right:120px;padding-bottom:20px;box-sizing:border-box}.container-address[data-v-db28db40]{display:flex;padding:10px}.btnsItem[data-v-db28db40]{width:500px;margin:0 auto;justify-content:center}.btnsItem[data-v-db28db40] .el-form-item__content{justify-content:center}.item-address[data-v-db28db40]{width:100%;padding-right:10px;padding-bottom:20px;box-sizing:border-box}label[data-v-db28db40]{display:block}.title-left[data-v-db28db40]{border:2px solid #216FED;border-radius:2px;width:0px;height:18px;margin-right:8px}.title-content[data-v-db28db40]{font-size:16px;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#2c3c4d;line-height:22px}[data-v-db28db40] .el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{background-color:#fff;width:80px}[data-v-db28db40] .el-input-group__prepend .el-select{width:90px!important}
|