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