sinosoft-common-form 1.0.1 → 1.0.2

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