@dinert/element-plus 1.1.44 → 1.1.45

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.
@@ -1,28 +1,28 @@
1
- import { defineComponent as F, toRefs as I, ref as g, onBeforeUpdate as C, computed as T, createVNode as r, resolveComponent as i, mergeProps as y, withModifiers as S, Fragment as _, isVNode as x, nextTick as L } from "vue";
2
- import $ from "./input.mjs";
3
- import U from "./input-number.mjs";
4
- import q from "./input-autocomplete.mjs";
5
- import A from "./select.mjs";
6
- import B from "./select-v2.mjs";
7
- import D from "./switch.mjs";
8
- import V from "./date.mjs";
9
- import M from "./radio.mjs";
10
- import E from "./tree-select.mjs";
11
- import j from "./rate.mjs";
12
- import O from "./checkbox.mjs";
13
- import N from "./cascader.mjs";
14
- import P from "./slider.mjs";
15
- import z from "./time-picker.mjs";
16
- import H from "./time-select.mjs";
17
- import W from "../../../hooks/useWindowResize.mjs";
18
- import { customPlaceholder as R, formItemSlot as b, labelMouseEnter as G, getTooltipValue as J, valueMouseEnter as K, getSpanValue as Q, renderSlot as d } from "../utils/index.mjs";
19
- import { getUuid as X, dataTransformRod as Y } from "../../../utils/tools.mjs";
20
- import { ArrowUp as Z, ArrowDown as ee } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
1
+ import { defineComponent as I, toRefs as T, ref as k, onBeforeUpdate as S, computed as _, createVNode as r, resolveComponent as u, mergeProps as y, withModifiers as x, Fragment as L, isVNode as $, nextTick as U } from "vue";
2
+ import q from "./input.mjs";
3
+ import A from "./input-number.mjs";
4
+ import B from "./input-autocomplete.mjs";
5
+ import D from "./select.mjs";
6
+ import V from "./select-v2.mjs";
7
+ import M from "./switch.mjs";
8
+ import E from "./date.mjs";
9
+ import j from "./radio.mjs";
10
+ import O from "./tree-select.mjs";
11
+ import P from "./rate.mjs";
12
+ import N from "./checkbox.mjs";
13
+ import z from "./cascader.mjs";
14
+ import H from "./slider.mjs";
15
+ import W from "./time-picker.mjs";
16
+ import G from "./time-select.mjs";
17
+ import J from "../../../hooks/useWindowResize.mjs";
18
+ import { customPlaceholder as F, formItemSlot as b, labelMouseEnter as K, getTooltipValue as Q, valueMouseEnter as X, getSpanValue as Y, renderSlot as d } from "../utils/index.mjs";
19
+ import { getUuid as Z, dataTransformRod as ee } from "../../../utils/tools.mjs";
20
+ import { ArrowUp as oe, ArrowDown as re } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
21
21
  import "../../../assets/scss/dinert-form.scss.mjs";
22
- function oe(p) {
23
- return typeof p == "function" || Object.prototype.toString.call(p) === "[object Object]" && !x(p);
22
+ function te(p) {
23
+ return typeof p == "function" || Object.prototype.toString.call(p) === "[object Object]" && !$(p);
24
24
  }
25
- const Fe = /* @__PURE__ */ F({
25
+ const Ie = /* @__PURE__ */ I({
26
26
  name: "dinert-form",
27
27
  props: {
28
28
  form: {
@@ -39,80 +39,83 @@ const Fe = /* @__PURE__ */ F({
39
39
  emit: e
40
40
  }) {
41
41
  const {
42
- form: a
43
- } = I(p), l = g(a.value.packUp === void 0), m = g(!1), v = g(), f = g({}), h = (t, u) => {
44
- f.value[t] = u;
45
- }, w = g("form_" + X());
46
- C(() => {
47
- f.value = {};
42
+ form: i
43
+ } = T(p), f = k(i.value.packUp === void 0), m = k(!1), v = k(), c = k({}), g = (l, a) => {
44
+ c.value[l] = a;
45
+ }, n = k("form_" + Z());
46
+ S(() => {
47
+ c.value = {};
48
48
  });
49
- const o = T(() => {
50
- const t = [];
51
- return Object.keys(a.value.formItem).forEach((u) => {
52
- const c = a.value.formItem[u];
53
- t.push({
54
- ...c,
55
- key: u
49
+ const h = _(() => {
50
+ const l = [];
51
+ return Object.keys(i.value.formItem).forEach((a) => {
52
+ const s = i.value.formItem[a];
53
+ l.push({
54
+ ...s,
55
+ key: a
56
56
  });
57
- }), t.sort((u, c) => (u.sort || 1 / 0) - (c.sort || 1 / 0)), t;
58
- }), n = () => {
59
- let t = document.querySelectorAll(`.${w.value} .dinert-form-left > div`);
60
- t[0] && (m.value = !1, L(() => {
61
- const u = t[0].getBoundingClientRect().top, c = t[t.length - 1].getBoundingClientRect().top;
62
- u !== c ? m.value = !0 : (l.value || (l.value = !0), m.value = !1), t = null;
57
+ }), l.sort((a, s) => (a.sort || 1 / 0) - (s.sort || 1 / 0)), l;
58
+ }), w = () => {
59
+ let l = document.querySelectorAll(`.${n.value} .dinert-form-left > div`);
60
+ l[0] && (m.value = !1, U(() => {
61
+ const a = l[0].getBoundingClientRect().top, s = l[l.length - 1].getBoundingClientRect().top;
62
+ a !== s ? m.value = !0 : (f.value || (f.value = !0), m.value = !1), l = null;
63
63
  }));
64
64
  };
65
- return W(() => {
66
- n();
65
+ return J(() => {
66
+ w();
67
67
  }, 100, !0), {
68
- formItemMap: o,
69
- formClass: w,
70
- formTypeRef: f,
68
+ formItemMap: h,
69
+ formClass: n,
70
+ formTypeRef: c,
71
71
  formRef: v,
72
- packUp: l,
72
+ packUp: f,
73
73
  isArrow: m,
74
- setFormTypeRefs: h,
74
+ setFormTypeRefs: g,
75
75
  unfold: () => {
76
- l.value ? l.value = !1 : l.value = !0, e("UnFold", l.value);
76
+ f.value ? f.value = !1 : f.value = !0, e("UnFold", f.value);
77
77
  }
78
78
  };
79
79
  },
80
80
  render() {
81
81
  let p;
82
- return r(i("el-form"), y({
82
+ return r(u("el-form"), y({
83
83
  inline: !0
84
84
  }, this.form, {
85
85
  ref: (e) => {
86
86
  this.formRef = e;
87
87
  },
88
88
  class: [this.formClass, this.packUp ? "" : "packUp", "dinert-form"],
89
- onSubmit: S(() => {
89
+ onSubmit: x(() => {
90
90
  }, ["stop", "prevent"]),
91
91
  key: this.form.key
92
92
  }), {
93
- default: () => [r(i("el-row"), y(this.form.row, {
93
+ default: () => [r(u("el-row"), y(this.form.row, {
94
94
  class: "dinert-form-left"
95
- }), oe(p = this.formItemMap.map((e) => {
96
- const a = {};
97
- let l = typeof e.vif == "function" ? e.vif(this.form.model) : e.vif;
98
- l = l === void 0 && typeof this.form.vif == "function" ? this.form.vif(this.form.model) : l, l = l === void 0 ? !0 : l;
95
+ }), te(p = this.formItemMap.map((e) => {
96
+ var c;
97
+ const i = {};
98
+ let f = typeof e.vif == "function" ? e.vif(this.form.model) : e.vif;
99
+ f = f === void 0 && typeof this.form.vif == "function" ? this.form.vif(this.form.model) : f, f = f === void 0 ? !0 : f;
99
100
  let m = typeof e.show == "function" ? e.show(this.form.model) : e.show;
100
- if (m = m === void 0 ? !0 : m, e.options = {
101
- placeholder: R(typeof e.label == "function" ? e.label(this.form.model) : e.label, e.type),
101
+ m = m === void 0 ? !0 : m;
102
+ const v = (c = e.options) == null ? void 0 : c.placeholder;
103
+ if (e.options = {
104
+ placeholder: F(typeof e.label == "function" ? e.label(this.form.model) : e.label, e.type),
102
105
  ...e.options
103
- }, m || (a.display = "none"), l) {
104
- const v = typeof this.form.showLabel == "function" ? this.form.showLabel(this.form.model) : this.form.showLabel;
105
- let f = typeof e.showLabel == "function" ? e.showLabel(this.form.model) : e.showLabel;
106
- e.required = e.required === void 0 ? e.required || this.form.required : e.required, f = f === void 0 ? f || v : f, e.required = f ? !1 : e.required;
106
+ }, m || (i.display = "none"), f) {
107
+ const g = typeof this.form.showLabel == "function" ? this.form.showLabel(this.form.model) : this.form.showLabel;
108
+ let n = typeof e.showLabel == "function" ? e.showLabel(this.form.model) : e.showLabel;
109
+ e.required = e.required === void 0 ? e.required || this.form.required : e.required, n = n === void 0 ? n || g : n, e.required = n ? !1 : e.required;
107
110
  let h = e.rules || [];
108
111
  h = e.required ? [{
109
112
  required: !0,
110
113
  trigger: ["blur", "change"],
111
- message: R(typeof e.label == "function" ? e.label(this.form.model) : e.label, e.type)
112
- }].concat(h) : h, h = f ? [] : h;
114
+ message: v || F(typeof e.label == "function" ? e.label(this.form.model) : e.label, e.type)
115
+ }].concat(h) : h, h = n ? [] : h;
113
116
  const w = e.itemValueDisabled !== void 0 ? e.itemValueDisabled : e.tempValueDisabled;
114
- return r(i("el-col"), y({
115
- style: a,
117
+ return r(u("el-col"), y({
118
+ style: i,
116
119
  class: [e.type, e.key],
117
120
  key: e.key
118
121
  }, {
@@ -124,128 +127,128 @@ const Fe = /* @__PURE__ */ F({
124
127
  ...this.form.colLayout,
125
128
  ...e.colLayout
126
129
  }), {
127
- default: () => [r(i("el-form-item"), y({
130
+ default: () => [r(u("el-form-item"), y({
128
131
  key: e.key,
129
132
  prop: e.key,
130
- class: [e.labelWrap ? "label-wrap" : "", f ? "show-label" : ""]
133
+ class: [e.labelWrap ? "label-wrap" : "", n ? "show-label" : ""]
131
134
  }, {
132
135
  ...e,
133
136
  label: typeof e.label == "function" ? e.label(this.form.model) : e.label,
134
137
  rules: h
135
138
  }), {
136
139
  label: () => {
137
- var o, n;
138
- return this.$slots[b(e.key, "formItem_label_")] ? (n = (o = this.$slots)[b(e.key, "formItem_label_")]) == null ? void 0 : n.call(o, {
140
+ var o, l;
141
+ return this.$slots[b(e.key, "formItem_label_")] ? (l = (o = this.$slots)[b(e.key, "formItem_label_")]) == null ? void 0 : l.call(o, {
139
142
  ...e,
140
143
  model: this.form.model
141
- }) : r(i("dinert-tooltip"), {
144
+ }) : r(u("dinert-tooltip"), {
142
145
  key: e.key,
143
146
  content: typeof e.label == "function" ? e.label(this.form.model) : e.label,
144
147
  disabled: e.labelDisabled,
145
- onLabelMouseEnter: (k) => {
146
- G(k, e, this);
148
+ onLabelMouseEnter: (a) => {
149
+ K(a, e, this);
147
150
  }
148
151
  }, null);
149
152
  },
150
- default: () => r(i("dinert-tooltip"), {
153
+ default: () => r(u("dinert-tooltip"), {
151
154
  key: e.key,
152
- content: String(J(this.form.model[e.key], e)),
155
+ content: String(Q(this.form.model[e.key], e)),
153
156
  disabled: w,
154
157
  item: e,
155
- onLabelMouseEnter: (o) => K(o, e, this.form.model[e.key], this, f)
158
+ onLabelMouseEnter: (o) => X(o, e, this.form.model[e.key], this, n)
156
159
  }, {
157
160
  // eslint-disable-next-line max-statements
158
161
  default: () => {
159
- var u, c;
160
- const o = {}, n = this.form.errData || "-", k = Y(Q(this.form.model[e.key], e), n);
161
- let t = r("span", {
162
- class: [k === n ? "empty-value" : ""]
163
- }, [k]);
162
+ var R, C;
163
+ const o = {}, l = this.form.errData || "-", a = ee(Y(this.form.model[e.key], e), l);
164
+ let s = r("span", {
165
+ class: [a === l ? "empty-value" : ""]
166
+ }, [a]);
164
167
  if (this.$slots[b(e.key)])
165
- t = (c = (u = this.$slots)[b(e.key)]) == null ? void 0 : c.call(u, {
168
+ s = (C = (R = this.$slots)[b(e.key)]) == null ? void 0 : C.call(R, {
166
169
  ...e,
167
170
  model: this.form.model
168
171
  });
169
172
  else {
170
- if (f || v && [!0, void 0].includes(f))
171
- return t;
172
- ["input", "textarea"].includes(e.type) ? (d(["prefix", "suffix", "prepend", "append"], this, o, e), t = r($, {
173
+ if (n || g && [!0, void 0].includes(n))
174
+ return s;
175
+ ["input", "textarea"].includes(e.type) ? (d(["prefix", "suffix", "prepend", "append"], this, o, e), s = r(q, {
173
176
  form: this.form,
174
177
  formItem: e,
175
178
  onEnterSearch: () => {
176
179
  this.$emit("SearchFn");
177
180
  },
178
- ref: (s) => this.setFormTypeRefs(e.key, s)
179
- }, o)) : ["input-number"].includes(e.type) ? (d(["decrease-icon", "increase-icon", "prefix", "suffix"], this, o, e), t = r(U, {
181
+ ref: (t) => this.setFormTypeRefs(e.key, t)
182
+ }, o)) : ["input-number"].includes(e.type) ? (d(["decrease-icon", "increase-icon", "prefix", "suffix"], this, o, e), s = r(A, {
180
183
  form: this.form,
181
184
  formItem: e,
182
- ref: (s) => this.setFormTypeRefs(e.key, s)
183
- }, o)) : ["input-autocomplete"].includes(e.type) ? (d(["prefix", "suffix", "prepend", "append", "loading"], this, o, e), t = r(q, {
185
+ ref: (t) => this.setFormTypeRefs(e.key, t)
186
+ }, o)) : ["input-autocomplete"].includes(e.type) ? (d(["prefix", "suffix", "prepend", "append", "loading"], this, o, e), s = r(B, {
184
187
  form: this.form,
185
188
  formItem: e,
186
- ref: (s) => this.setFormTypeRefs(e.key, s)
187
- }, o)) : ["select"].includes(e.type) ? (d(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(A, {
189
+ ref: (t) => this.setFormTypeRefs(e.key, t)
190
+ }, o)) : ["select"].includes(e.type) ? (d(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), s = r(D, {
188
191
  form: this.form,
189
192
  formItem: e,
190
- ref: (s) => this.setFormTypeRefs(e.key, s)
191
- }, o)) : ["select-v2"].includes(e.type) ? (d(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(B, {
193
+ ref: (t) => this.setFormTypeRefs(e.key, t)
194
+ }, o)) : ["select-v2"].includes(e.type) ? (d(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), s = r(V, {
192
195
  form: this.form,
193
196
  formItem: e,
194
- ref: (s) => this.setFormTypeRefs(e.key, s)
195
- }, o)) : ["switch"].includes(e.type) ? (d(["active-action", "inactive-action"], this, o, e), t = r(D, {
197
+ ref: (t) => this.setFormTypeRefs(e.key, t)
198
+ }, o)) : ["switch"].includes(e.type) ? (d(["active-action", "inactive-action"], this, o, e), s = r(M, {
196
199
  form: this.form,
197
200
  formItem: e,
198
- ref: (s) => this.setFormTypeRefs(e.key, s)
199
- }, o)) : ["datetime", "date", "dates", "week", "month", "year", "years", "datetimerange", "daterange", "monthrange", "yearrange"].includes(e.type) ? (d(["range-separator", "prev-month", "next-month", "prev-year", "next-year"], this, o, e), t = r(V, {
201
+ ref: (t) => this.setFormTypeRefs(e.key, t)
202
+ }, o)) : ["datetime", "date", "dates", "week", "month", "year", "years", "datetimerange", "daterange", "monthrange", "yearrange"].includes(e.type) ? (d(["range-separator", "prev-month", "next-month", "prev-year", "next-year"], this, o, e), s = r(E, {
200
203
  form: this.form,
201
204
  formItem: e,
202
- ref: (s) => this.setFormTypeRefs(e.key, s)
203
- }, o)) : ["radio", "radio-button"].includes(e.type) ? t = r(M, {
205
+ ref: (t) => this.setFormTypeRefs(e.key, t)
206
+ }, o)) : ["radio", "radio-button"].includes(e.type) ? s = r(j, {
204
207
  form: this.form,
205
208
  formItem: e,
206
- ref: (s) => this.setFormTypeRefs(e.key, s)
207
- }, o) : ["tree-select"].includes(e.type) ? (d(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(E, {
209
+ ref: (t) => this.setFormTypeRefs(e.key, t)
210
+ }, o) : ["tree-select"].includes(e.type) ? (d(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), s = r(O, {
208
211
  form: this.form,
209
212
  formItem: e,
210
- ref: (s) => this.setFormTypeRefs(e.key, s)
211
- }, o)) : ["rate"].includes(e.type) ? t = r(j, {
213
+ ref: (t) => this.setFormTypeRefs(e.key, t)
214
+ }, o)) : ["rate"].includes(e.type) ? s = r(P, {
212
215
  form: this.form,
213
216
  formItem: e,
214
- ref: (s) => this.setFormTypeRefs(e.key, s)
215
- }, o) : ["checkbox", "checkbox-button"].includes(e.type) ? t = r(O, {
217
+ ref: (t) => this.setFormTypeRefs(e.key, t)
218
+ }, o) : ["checkbox", "checkbox-button"].includes(e.type) ? s = r(N, {
216
219
  form: this.form,
217
220
  formItem: e,
218
- ref: (s) => this.setFormTypeRefs(e.key, s)
219
- }, o) : ["cascader"].includes(e.type) ? (d(["empty"], this, o, e), t = r(N, {
220
- ref: (s) => this.setFormTypeRefs(e.key, s),
221
+ ref: (t) => this.setFormTypeRefs(e.key, t)
222
+ }, o) : ["cascader"].includes(e.type) ? (d(["empty"], this, o, e), s = r(z, {
223
+ ref: (t) => this.setFormTypeRefs(e.key, t),
221
224
  form: this.form,
222
225
  formItem: e
223
- }, o)) : ["slider"].includes(e.type) ? t = r(P, {
224
- ref: (s) => this.setFormTypeRefs(e.key, s),
226
+ }, o)) : ["slider"].includes(e.type) ? s = r(H, {
227
+ ref: (t) => this.setFormTypeRefs(e.key, t),
225
228
  form: this.form,
226
229
  formItem: e
227
- }, o) : ["time-picker"].includes(e.type) ? t = r(z, {
228
- ref: (s) => this.setFormTypeRefs(e.key, s),
230
+ }, o) : ["time-picker"].includes(e.type) ? s = r(W, {
231
+ ref: (t) => this.setFormTypeRefs(e.key, t),
229
232
  form: this.form,
230
233
  formItem: e
231
- }, o) : ["time-select"].includes(e.type) && (t = r(H, {
232
- ref: (s) => this.setFormTypeRefs(e.key, s),
234
+ }, o) : ["time-select"].includes(e.type) && (s = r(G, {
235
+ ref: (t) => this.setFormTypeRefs(e.key, t),
233
236
  form: this.form,
234
237
  formItem: e
235
238
  }, o));
236
239
  }
237
- return t;
240
+ return s;
238
241
  },
239
242
  defaultAfter: () => {
240
- var o, n;
241
- return (n = (o = this.$slots)[b("after_" + e.key)]) == null ? void 0 : n.call(o, {
243
+ var o, l;
244
+ return (l = (o = this.$slots)[b("after_" + e.key)]) == null ? void 0 : l.call(o, {
242
245
  ...e,
243
246
  model: this.form.model
244
247
  });
245
248
  },
246
249
  defaultBefore: () => {
247
- var o, n;
248
- return (n = (o = this.$slots)[b("before_" + e.key)]) == null ? void 0 : n.call(o, {
250
+ var o, l;
251
+ return (l = (o = this.$slots)[b("before_" + e.key)]) == null ? void 0 : l.call(o, {
249
252
  ...e,
250
253
  model: this.form.model
251
254
  });
@@ -256,51 +259,51 @@ const Fe = /* @__PURE__ */ F({
256
259
  }
257
260
  })) ? p : {
258
261
  default: () => [p]
259
- }), this.search && r(i("el-row"), {
262
+ }), this.search && r(u("el-row"), {
260
263
  class: ["dinert-form-right", this.isArrow ? "isArrow" : ""]
261
264
  }, {
262
265
  default: () => {
263
- var e, a;
264
- return [this.isArrow && r(i("el-button"), {
266
+ var e, i;
267
+ return [this.isArrow && r(u("el-button"), {
265
268
  class: "dinert-form-right-operation",
266
269
  text: !0,
267
270
  type: "primary",
268
271
  onClick: this.unfold
269
272
  }, {
270
- default: () => [r(i("el-icon"), null, {
271
- default: () => [this.packUp ? r(Z, null, null) : r(ee, null, null)]
273
+ default: () => [r(u("el-icon"), null, {
274
+ default: () => [this.packUp ? r(oe, null, null) : r(re, null, null)]
272
275
  }), this.packUp ? "收起" : "展开"]
273
- }), ((a = (e = this.$slots).form_search) == null ? void 0 : a.call(e)) || r(_, null, [r(i("el-button"), y({
276
+ }), ((i = (e = this.$slots).form_search) == null ? void 0 : i.call(e)) || r(L, null, [r(u("el-button"), y({
274
277
  type: "primary",
275
278
  onClick: () => this.$emit("SearchFn")
276
279
  }, this.form.searchButton), {
277
280
  default: () => {
278
- var l;
279
- return [((l = this.form.searchButton) == null ? void 0 : l.message) || "搜索"];
281
+ var f;
282
+ return [((f = this.form.searchButton) == null ? void 0 : f.message) || "搜索"];
280
283
  }
281
- }), r(i("el-button"), y({
284
+ }), r(u("el-button"), y({
282
285
  type: "primary",
283
286
  plain: !0,
284
287
  onClick: () => this.$emit("ResetFn")
285
288
  }, this.form.resetButton), {
286
289
  default: () => {
287
- var l;
288
- return [((l = this.form.resetButton) == null ? void 0 : l.message) || "重置"];
290
+ var f;
291
+ return [((f = this.form.resetButton) == null ? void 0 : f.message) || "重置"];
289
292
  }
290
293
  })])];
291
294
  }
292
- }), this.$slots.form_search_operations && r(i("el-row"), {
295
+ }), this.$slots.form_search_operations && r(u("el-row"), {
293
296
  class: "el-form-right-after"
294
297
  }, {
295
298
  default: () => {
296
- var e, a;
297
- return [(a = (e = this.$slots).form_search_operations) == null ? void 0 : a.call(e)];
299
+ var e, i;
300
+ return [(i = (e = this.$slots).form_search_operations) == null ? void 0 : i.call(e)];
298
301
  }
299
302
  })]
300
303
  });
301
304
  }
302
305
  });
303
306
  export {
304
- Fe as default
307
+ Ie as default
305
308
  };
306
309
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/form/src/index.tsx"],"sourcesContent":["import {defineComponent, ref, computed, nextTick, toRefs, onBeforeUpdate, withModifiers} from 'vue'\nimport CustomInput from './input'\nimport CustomInputNumber from './input-number'\nimport CustomInputAutocomplete from './input-autocomplete'\nimport CustomSelect from './select'\nimport CustomSelectV2 from './select-v2'\nimport CustomSwitch from './switch'\nimport CustomDate from './date'\nimport CustomRadio from './radio'\nimport CustomSelectTree from './tree-select'\nimport CustomRate from './rate'\nimport CustomCheckbox from './checkbox'\nimport CustomCascader from './cascader'\nimport CustomSlider from './slider'\nimport CustomTimePicker from './time-picker'\nimport CustomTimeSelect from './time-select'\n\nimport useWindowResize from '@packages/hooks/useWindowResize'\nimport {labelMouseEnter, valueMouseEnter, getTooltipValue, getSpanValue, formItemSlot, customPlaceholder, renderSlot} from '@packages/components/form/utils'\n\nimport {dataTransformRod, getUuid} from '@packages/utils/tools'\nimport {ElForm} from 'element-plus'\n\nimport {ArrowUp, ArrowDown} from '@element-plus/icons-vue'\n\n\nimport '@packages/assets/scss/dinert-form.scss'\n\nimport type {PropType} from 'vue'\nimport type {RewriteFormProps, CustomFormItemProps} from '@packages/components/form/types'\n\n// 展开还是收起状态\nexport default defineComponent({\n name: 'dinert-form',\n props: {\n form: {\n type: Object as PropType<RewriteFormProps>,\n default: () => ({})\n },\n search: {\n type: Boolean,\n default: true\n }\n },\n emits: ['UnFold', 'SearchFn', 'ResetFn'],\n setup(props, {emit}) {\n const {form} = toRefs(props)\n const packUp = ref(form.value.packUp === undefined)\n const isArrow = ref(false)\n const formRef = ref<InstanceType<typeof ElForm>>()\n const formTypeRef = ref<any>({})\n const setFormTypeRefs = (type: string, el: any) => {\n formTypeRef.value[type] = el\n }\n const formClass = ref('form_' + getUuid())\n\n onBeforeUpdate(() => {\n formTypeRef.value = {}\n })\n\n const formItemMap = computed(() => {\n const result: any = []\n Object.keys(form.value.formItem).forEach(key => {\n const value = form.value.formItem[key] as Partial<CustomFormItemProps>\n result.push({\n ...value,\n key: key,\n })\n })\n\n result.sort((a: any, b: any) => {\n return (a.sort || Infinity) - (b.sort || Infinity)\n })\n\n return result\n })\n\n const resizeForm = () => {\n let elFormLeft = document.querySelectorAll(`.${formClass.value} .dinert-form-left > div`) as any\n if (elFormLeft[0]) {\n isArrow.value = false\n nextTick(() => {\n const firstTop = elFormLeft[0].getBoundingClientRect().top\n const lastTop = elFormLeft[elFormLeft.length - 1].getBoundingClientRect().top\n const isHeight = firstTop !== lastTop\n if (isHeight) {\n isArrow.value = true\n } else {\n if (!packUp.value) {\n packUp.value = true\n }\n isArrow.value = false\n }\n elFormLeft = null\n })\n\n }\n }\n\n useWindowResize(() => {\n resizeForm()\n }, 100, true)\n\n\n const unfold = () => {\n if (packUp.value) {\n packUp.value = false\n } else {\n packUp.value = true\n }\n\n emit('UnFold', packUp.value)\n }\n\n\n return {\n formItemMap,\n formClass,\n formTypeRef,\n formRef,\n packUp,\n isArrow,\n\n setFormTypeRefs,\n unfold,\n }\n },\n render() {\n return (\n <el-form inline={true}\n {...this.form}\n ref={el => {this.formRef = el}}\n class={[this.formClass, this.packUp ? '' : 'packUp', 'dinert-form']}\n onSubmit={withModifiers(() => undefined, ['stop', 'prevent'])}\n key={this.form.key}>\n\n <el-row {...this.form.row} class=\"dinert-form-left\">\n {/* eslint-disable-next-line array-callback-return, consistent-return */}\n { this.formItemMap.map((item: CustomFormItemProps) => {\n const style: any = {}\n let vif = typeof item.vif === 'function' ? item.vif(this.form.model) : item.vif\n vif = vif === undefined ? typeof this.form.vif === 'function' ? this.form.vif(this.form.model) : vif : vif\n vif = vif === undefined ? true : vif\n\n let show = typeof item.show === 'function' ? item.show(this.form.model) : item.show\n show = show === undefined ? true : show\n item.options = {placeholder: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type), ...item.options}\n\n\n if (!show) {\n style.display = 'none'\n }\n if (vif) {\n const formShowLabel = typeof this.form.showLabel === 'function' ? this.form.showLabel(this.form.model) : this.form.showLabel\n let itemShowLabel = typeof item.showLabel === 'function' ? item.showLabel(this.form.model) : item.showLabel\n item.required = item.required === undefined ? item.required || this.form.required : item.required\n itemShowLabel = itemShowLabel === undefined ? itemShowLabel || formShowLabel : itemShowLabel\n item.required = itemShowLabel ? false : item.required\n\n let rules = item.rules || []\n rules = item.required ? [{required: true, trigger: ['blur', 'change'], message: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type)}].concat(rules as any) : rules\n rules = itemShowLabel ? [] : rules\n const valDisabled = item.itemValueDisabled !== undefined ? item.itemValueDisabled : item.tempValueDisabled\n\n return (\n <el-col\n style= {style}\n class={[item.type, item.key]}\n key={item.key}\n {\n ...{\n // xl: 3, // ≥1920px\n // lg: 4, // ≥1200px\n // md: 8, // ≥992px\n // sm: 12, // ≥768px\n // xs: 24, // <768px\n ...this.form.colLayout,\n ...item.colLayout\n }\n }\n >\n <el-form-item\n key={item.key}\n prop={item.key}\n class={[item.labelWrap ? 'label-wrap' : '', itemShowLabel ? 'show-label' : '']}\n {...{\n ...item,\n label: typeof item.label === 'function' ? item.label(this.form.model) : item.label,\n rules: rules\n }}\n v-slots={{\n label: () => {\n if (this.$slots[formItemSlot(item.key, 'formItem_label_')]) {\n return (this.$slots[formItemSlot(item.key, 'formItem_label_')]?.({...item, model: this.form.model}))\n }\n return (\n <dinert-tooltip\n key={item.key}\n content={typeof item.label === 'function' ? item.label(this.form.model) : item.label}\n disabled={item.labelDisabled}\n onLabelMouseEnter={(e: MouseEvent) => {labelMouseEnter(e, item, this)}}\n >\n </dinert-tooltip>\n )\n },\n default: () => {\n return (\n <dinert-tooltip\n key={item.key}\n content={String(getTooltipValue(this.form.model[item.key], item))}\n disabled={valDisabled}\n item={item}\n onLabelMouseEnter={(e: MouseEvent) => valueMouseEnter(e, item, this.form.model[item.key], this, itemShowLabel)}\n v-slots={\n {\n // eslint-disable-next-line max-statements\n default: () => {\n\n const slots: any = {}\n const errData = this.form.errData || '-'\n const resultVal = dataTransformRod(getSpanValue(this.form.model[item.key], item), errData)\n let componentResult = <span class={[resultVal === errData ? 'empty-value' : '']}>{resultVal}</span>\n\n if (this.$slots[formItemSlot(item.key)]) {\n componentResult = (this.$slots[formItemSlot(item.key)]?.({...item, model: this.form.model}))\n } else if (itemShowLabel || (formShowLabel && [true, undefined].includes(itemShowLabel))) {\n return componentResult\n } else if (['input', 'textarea'].includes(item.type)) {\n renderSlot(['prefix', 'suffix', 'prepend', 'append'], this, slots, item)\n componentResult = (<CustomInput form={this.form} formItem={item} v-slots={slots} onEnterSearch={() => {\n this.$emit('SearchFn')}}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInput>)\n } else if (['input-number'].includes(item.type)) {\n renderSlot(['decrease-icon', 'increase-icon', 'prefix', 'suffix'], this, slots, item)\n componentResult = (<CustomInputNumber form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInputNumber>)\n } else if (['input-autocomplete'].includes(item.type)) {\n renderSlot(['prefix', 'suffix', 'prepend', 'append', 'loading'], this, slots, item)\n componentResult = (<CustomInputAutocomplete form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInputAutocomplete>)\n } else if (['select'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelect form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelect>)\n } else if (['select-v2'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelectV2 form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelectV2>)\n } else if (['switch'].includes(item.type)) {\n renderSlot(['active-action', 'inactive-action'], this, slots, item)\n componentResult = (<CustomSwitch form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSwitch>)\n } else if ([\n 'datetime',\n 'date',\n 'dates',\n 'week',\n 'month',\n 'year',\n 'years',\n 'datetimerange',\n 'daterange',\n 'monthrange',\n 'yearrange',\n ].includes(item.type)) {\n renderSlot(['range-separator', 'prev-month', 'next-month', 'prev-year', 'next-year'], this, slots, item)\n componentResult = (<CustomDate form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomDate>)\n } else if (['radio', 'radio-button'].includes(item.type)) {\n componentResult = (<CustomRadio form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomRadio>)\n } else if (['tree-select'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelectTree form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelectTree>)\n } else if (['rate'].includes(item.type)) {\n componentResult = (<CustomRate form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomRate>)\n } else if (['checkbox', 'checkbox-button'].includes(item.type)) {\n componentResult = (<CustomCheckbox form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomCheckbox>)\n } else if (['cascader'].includes(item.type)) {\n renderSlot(['empty'], this, slots, item)\n componentResult = (<CustomCascader ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomCascader>)\n } else if (['slider'].includes(item.type)) {\n componentResult = (<CustomSlider ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomSlider>)\n } else if (['time-picker'].includes(item.type)) {\n componentResult = (<CustomTimePicker ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomTimePicker>)\n } else if (['time-select'].includes(item.type)) {\n componentResult = (<CustomTimeSelect ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomTimeSelect>)\n }\n\n return componentResult\n },\n defaultAfter: () => this.$slots[formItemSlot('after_' + item.key)]?.({...item, model: this.form.model}),\n defaultBefore: () => this.$slots[formItemSlot('before_' + item.key)]?.({...item, model: this.form.model}),\n }\n }\n >\n </dinert-tooltip>\n )\n }\n }}\n >\n </el-form-item>\n </el-col>\n )\n }\n\n })\n }\n </el-row>\n {\n this.search\n && <el-row class={['dinert-form-right', this.isArrow ? 'isArrow' : '']}>\n {this.isArrow\n && <el-button class=\"dinert-form-right-operation\" text type=\"primary\"\n onClick={this.unfold}\n >\n <el-icon>\n {this.packUp ? <ArrowUp/> : <ArrowDown/>}\n </el-icon>\n {this.packUp ? '收起' : '展开'}\n </el-button>\n }\n {this.$slots.form_search?.()\n || (\n <>\n <el-button type=\"primary\" onClick={() => this.$emit('SearchFn')} {...this.form.searchButton}>{this.form.searchButton?.message || '搜索'}</el-button>\n <el-button type=\"primary\" plain\n onClick={() => this.$emit('ResetFn')}\n {...this.form.resetButton}\n >{this.form.resetButton?.message || '重置'}</el-button>\n </>\n )\n }\n </el-row>\n }\n {\n this.$slots.form_search_operations\n && <el-row class={'el-form-right-after'}>\n {this.$slots.form_search_operations?.()}\n </el-row>\n }\n </el-form>\n )\n }\n})\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","defineComponent","name","props","form","type","default","search","Boolean","emits","setup","emit","toRefs","packUp","ref","value","undefined","isArrow","formRef","formTypeRef","setFormTypeRefs","el","formClass","getUuid","onBeforeUpdate","formItemMap","computed","result","keys","formItem","forEach","key","push","sort","a","b","Infinity","resizeForm","elFormLeft","document","querySelectorAll","nextTick","firstTop","getBoundingClientRect","top","lastTop","length","useWindowResize","unfold","render","_slot","_createVNode","_resolveComponent","_mergeProps","withModifiers","row","map","item","style","vif","model","show","options","placeholder","customPlaceholder","label","display","formShowLabel","showLabel","itemShowLabel","required","rules","trigger","message","concat","valDisabled","itemValueDisabled","tempValueDisabled","colLayout","labelWrap","$slots","formItemSlot","_b","_a","labelDisabled","e","labelMouseEnter","String","getTooltipValue","valueMouseEnter","slots","errData","resultVal","dataTransformRod","getSpanValue","componentResult","includes","renderSlot","CustomInput","onEnterSearch","$emit","CustomInputNumber","CustomInputAutocomplete","CustomSelect","CustomSelectV2","CustomSwitch","CustomDate","CustomRadio","CustomSelectTree","CustomRate","CustomCheckbox","CustomCascader","CustomSlider","CustomTimePicker","CustomTimeSelect","defaultAfter","defaultBefore","ArrowUp","ArrowDown","form_search","_Fragment","onClick","searchButton","resetButton","form_search_operations"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0B+C,SAAAA,GAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAAK,qBAAAA,CAAAA,EAAAL,CAAA;AAAA;AAM/C,MAAeM,uBAAgB;AAAA,EAC3BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACHC,MAAM;AAAA,MACFC,MAAMT;AAAAA,MACNU,SAASA,OAAO,CAAA;AAAA,IACnB;AAAA,IACDC,QAAQ;AAAA,MACJF,MAAMG;AAAAA,MACNF,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACDG,OAAO,CAAC,UAAU,YAAY,SAAS;AAAA,EACvCC,MAAMP,GAAO;AAAA,IAACQ,MAAAA;AAAAA,EAAI,GAAG;AACjB,UAAM;AAAA,MAACP,MAAAA;AAAAA,IAAI,IAAIQ,EAAOT,CAAK,GACrBU,IAASC,EAAIV,EAAKW,MAAMF,WAAWG,MAAS,GAC5CC,IAAUH,EAAI,EAAK,GACnBI,IAAUJ,KACVK,IAAcL,EAAS,CAAA,CAAE,GACzBM,IAAkBA,CAACf,GAAcgB,MAAY;AAC/CF,MAAAA,EAAYJ,MAAMV,CAAI,IAAIgB;AAAAA,OAExBC,IAAYR,EAAI,UAAUS,EAAS,CAAA;AAEzCC,IAAAA,EAAe,MAAM;AACjBL,MAAAA,EAAYJ,QAAQ;IACxB,CAAC;AAED,UAAMU,IAAcC,EAAS,MAAM;AAC/B,YAAMC,IAAc,CAAA;AACpB/B,oBAAOgC,KAAKxB,EAAKW,MAAMc,QAAQ,EAAEC,QAAQC,CAAAA,MAAO;AAC5C,cAAMhB,IAAQX,EAAKW,MAAMc,S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GmBoE,MAAM,KAAKrB,MAAM,UAAU;AAAA,UAAC,GAAM,KAAKhG,KAAKsH,YAAY,GAAA;AAAA,YAAApH,SAAAA,MAAA;;AAAA,wBAAG6E,IAAA,KAAK/E,KAAKsH,iBAAV,gBAAAvC,EAAwBV,YAAW,IAAI;AAAA;AAAA,UAAA,CAAA,GAAAtB,EAAAC,EAAA,WAAA,GAAAC,EAAA;AAAA,YAAA,MAAA;AAAA,YAAA,OAAA;AAAA,YAAA,SAExHoE,MAAM,KAAKrB,MAAM,SAAS;AAAA,UAAC,GAChC,KAAKhG,KAAKuH,WAAW,GAAA;AAAA,YAAArH,SAAAA,MAAA;;AAAA,wBAC3B6E,IAAA,KAAK/E,KAAKuH,gBAAV,gBAAAxC,EAAuBV,YAAW,IAAI;AAAA;AAAA,UAE/C,CAAA,CAAA,CAAA,CAAA;AAAA;AAAA,OAEA,GAGL,KAAKO,OAAO4C,0BAAsBzE,EAAAC,EAAA,QAAA,GAAA;AAAA,QAAA,OAC5B;AAAA,MAAqB,GAAA;AAAA,QAAA9C,SAAAA,MAAAA;;AAClC,mBAAA4E,KAAAC,IAAA,KAAKH,QAAO4C,2BAAZ,gBAAA1C,EAAA,KAAAC,EAAsC;AAAA;AAAA,OAClC,CAAA;AAAA,IAAA,CAAA;AAAA,EAIb;AACJ,CAAC;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/form/src/index.tsx"],"sourcesContent":["import {defineComponent, ref, computed, nextTick, toRefs, onBeforeUpdate, withModifiers} from 'vue'\nimport CustomInput from './input'\nimport CustomInputNumber from './input-number'\nimport CustomInputAutocomplete from './input-autocomplete'\nimport CustomSelect from './select'\nimport CustomSelectV2 from './select-v2'\nimport CustomSwitch from './switch'\nimport CustomDate from './date'\nimport CustomRadio from './radio'\nimport CustomSelectTree from './tree-select'\nimport CustomRate from './rate'\nimport CustomCheckbox from './checkbox'\nimport CustomCascader from './cascader'\nimport CustomSlider from './slider'\nimport CustomTimePicker from './time-picker'\nimport CustomTimeSelect from './time-select'\n\nimport useWindowResize from '@packages/hooks/useWindowResize'\nimport {labelMouseEnter, valueMouseEnter, getTooltipValue, getSpanValue, formItemSlot, customPlaceholder, renderSlot} from '@packages/components/form/utils'\n\nimport {dataTransformRod, getUuid} from '@packages/utils/tools'\nimport {ElForm} from 'element-plus'\n\nimport {ArrowUp, ArrowDown} from '@element-plus/icons-vue'\n\n\nimport '@packages/assets/scss/dinert-form.scss'\n\nimport type {PropType} from 'vue'\nimport type {RewriteFormProps, CustomFormItemProps} from '@packages/components/form/types'\n\n// 展开还是收起状态\nexport default defineComponent({\n name: 'dinert-form',\n props: {\n form: {\n type: Object as PropType<RewriteFormProps>,\n default: () => ({})\n },\n search: {\n type: Boolean,\n default: true\n }\n },\n emits: ['UnFold', 'SearchFn', 'ResetFn'],\n setup(props, {emit}) {\n const {form} = toRefs(props)\n const packUp = ref(form.value.packUp === undefined)\n const isArrow = ref(false)\n const formRef = ref<InstanceType<typeof ElForm>>()\n const formTypeRef = ref<any>({})\n const setFormTypeRefs = (type: string, el: any) => {\n formTypeRef.value[type] = el\n }\n const formClass = ref('form_' + getUuid())\n\n onBeforeUpdate(() => {\n formTypeRef.value = {}\n })\n\n const formItemMap = computed(() => {\n const result: any = []\n Object.keys(form.value.formItem).forEach(key => {\n const value = form.value.formItem[key] as Partial<CustomFormItemProps>\n result.push({\n ...value,\n key: key,\n })\n })\n\n result.sort((a: any, b: any) => {\n return (a.sort || Infinity) - (b.sort || Infinity)\n })\n\n return result\n })\n\n const resizeForm = () => {\n let elFormLeft = document.querySelectorAll(`.${formClass.value} .dinert-form-left > div`) as any\n if (elFormLeft[0]) {\n isArrow.value = false\n nextTick(() => {\n const firstTop = elFormLeft[0].getBoundingClientRect().top\n const lastTop = elFormLeft[elFormLeft.length - 1].getBoundingClientRect().top\n const isHeight = firstTop !== lastTop\n if (isHeight) {\n isArrow.value = true\n } else {\n if (!packUp.value) {\n packUp.value = true\n }\n isArrow.value = false\n }\n elFormLeft = null\n })\n\n }\n }\n\n useWindowResize(() => {\n resizeForm()\n }, 100, true)\n\n\n const unfold = () => {\n if (packUp.value) {\n packUp.value = false\n } else {\n packUp.value = true\n }\n\n emit('UnFold', packUp.value)\n }\n\n\n return {\n formItemMap,\n formClass,\n formTypeRef,\n formRef,\n packUp,\n isArrow,\n\n setFormTypeRefs,\n unfold,\n }\n },\n render() {\n return (\n <el-form inline={true}\n {...this.form}\n ref={el => {this.formRef = el}}\n class={[this.formClass, this.packUp ? '' : 'packUp', 'dinert-form']}\n onSubmit={withModifiers(() => undefined, ['stop', 'prevent'])}\n key={this.form.key}>\n\n <el-row {...this.form.row} class=\"dinert-form-left\">\n {/* eslint-disable-next-line array-callback-return, consistent-return */}\n { this.formItemMap.map((item: CustomFormItemProps) => {\n const style: any = {}\n let vif = typeof item.vif === 'function' ? item.vif(this.form.model) : item.vif\n vif = vif === undefined ? typeof this.form.vif === 'function' ? this.form.vif(this.form.model) : vif : vif\n vif = vif === undefined ? true : vif\n\n let show = typeof item.show === 'function' ? item.show(this.form.model) : item.show\n show = show === undefined ? true : show\n const isCustomPlaceholder = item.options?.placeholder\n item.options = {placeholder: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type), ...item.options}\n\n\n if (!show) {\n style.display = 'none'\n }\n if (vif) {\n const formShowLabel = typeof this.form.showLabel === 'function' ? this.form.showLabel(this.form.model) : this.form.showLabel\n let itemShowLabel = typeof item.showLabel === 'function' ? item.showLabel(this.form.model) : item.showLabel\n item.required = item.required === undefined ? item.required || this.form.required : item.required\n itemShowLabel = itemShowLabel === undefined ? itemShowLabel || formShowLabel : itemShowLabel\n item.required = itemShowLabel ? false : item.required\n\n let rules = item.rules || []\n rules = item.required ? [{required: true, trigger: ['blur', 'change'], message: isCustomPlaceholder || customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type)}].concat(rules as any) : rules\n rules = itemShowLabel ? [] : rules\n const valDisabled = item.itemValueDisabled !== undefined ? item.itemValueDisabled : item.tempValueDisabled\n\n return (\n <el-col\n style= {style}\n class={[item.type, item.key]}\n key={item.key}\n {\n ...{\n // xl: 3, // ≥1920px\n // lg: 4, // ≥1200px\n // md: 8, // ≥992px\n // sm: 12, // ≥768px\n // xs: 24, // <768px\n ...this.form.colLayout,\n ...item.colLayout\n }\n }\n >\n <el-form-item\n key={item.key}\n prop={item.key}\n class={[item.labelWrap ? 'label-wrap' : '', itemShowLabel ? 'show-label' : '']}\n {...{\n ...item,\n label: typeof item.label === 'function' ? item.label(this.form.model) : item.label,\n rules: rules\n }}\n v-slots={{\n label: () => {\n if (this.$slots[formItemSlot(item.key, 'formItem_label_')]) {\n return (this.$slots[formItemSlot(item.key, 'formItem_label_')]?.({...item, model: this.form.model}))\n }\n return (\n <dinert-tooltip\n key={item.key}\n content={typeof item.label === 'function' ? item.label(this.form.model) : item.label}\n disabled={item.labelDisabled}\n onLabelMouseEnter={(e: MouseEvent) => {labelMouseEnter(e, item, this)}}\n >\n </dinert-tooltip>\n )\n },\n default: () => {\n return (\n <dinert-tooltip\n key={item.key}\n content={String(getTooltipValue(this.form.model[item.key], item))}\n disabled={valDisabled}\n item={item}\n onLabelMouseEnter={(e: MouseEvent) => valueMouseEnter(e, item, this.form.model[item.key], this, itemShowLabel)}\n v-slots={\n {\n // eslint-disable-next-line max-statements\n default: () => {\n\n const slots: any = {}\n const errData = this.form.errData || '-'\n const resultVal = dataTransformRod(getSpanValue(this.form.model[item.key], item), errData)\n let componentResult = <span class={[resultVal === errData ? 'empty-value' : '']}>{resultVal}</span>\n\n if (this.$slots[formItemSlot(item.key)]) {\n componentResult = (this.$slots[formItemSlot(item.key)]?.({...item, model: this.form.model}))\n } else if (itemShowLabel || (formShowLabel && [true, undefined].includes(itemShowLabel))) {\n return componentResult\n } else if (['input', 'textarea'].includes(item.type)) {\n renderSlot(['prefix', 'suffix', 'prepend', 'append'], this, slots, item)\n componentResult = (<CustomInput form={this.form} formItem={item} v-slots={slots} onEnterSearch={() => {\n this.$emit('SearchFn')}}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInput>)\n } else if (['input-number'].includes(item.type)) {\n renderSlot(['decrease-icon', 'increase-icon', 'prefix', 'suffix'], this, slots, item)\n componentResult = (<CustomInputNumber form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInputNumber>)\n } else if (['input-autocomplete'].includes(item.type)) {\n renderSlot(['prefix', 'suffix', 'prepend', 'append', 'loading'], this, slots, item)\n componentResult = (<CustomInputAutocomplete form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInputAutocomplete>)\n } else if (['select'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelect form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelect>)\n } else if (['select-v2'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelectV2 form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelectV2>)\n } else if (['switch'].includes(item.type)) {\n renderSlot(['active-action', 'inactive-action'], this, slots, item)\n componentResult = (<CustomSwitch form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSwitch>)\n } else if ([\n 'datetime',\n 'date',\n 'dates',\n 'week',\n 'month',\n 'year',\n 'years',\n 'datetimerange',\n 'daterange',\n 'monthrange',\n 'yearrange',\n ].includes(item.type)) {\n renderSlot(['range-separator', 'prev-month', 'next-month', 'prev-year', 'next-year'], this, slots, item)\n componentResult = (<CustomDate form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomDate>)\n } else if (['radio', 'radio-button'].includes(item.type)) {\n componentResult = (<CustomRadio form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomRadio>)\n } else if (['tree-select'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelectTree form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelectTree>)\n } else if (['rate'].includes(item.type)) {\n componentResult = (<CustomRate form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomRate>)\n } else if (['checkbox', 'checkbox-button'].includes(item.type)) {\n componentResult = (<CustomCheckbox form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomCheckbox>)\n } else if (['cascader'].includes(item.type)) {\n renderSlot(['empty'], this, slots, item)\n componentResult = (<CustomCascader ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomCascader>)\n } else if (['slider'].includes(item.type)) {\n componentResult = (<CustomSlider ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomSlider>)\n } else if (['time-picker'].includes(item.type)) {\n componentResult = (<CustomTimePicker ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomTimePicker>)\n } else if (['time-select'].includes(item.type)) {\n componentResult = (<CustomTimeSelect ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomTimeSelect>)\n }\n\n return componentResult\n },\n defaultAfter: () => this.$slots[formItemSlot('after_' + item.key)]?.({...item, model: this.form.model}),\n defaultBefore: () => this.$slots[formItemSlot('before_' + item.key)]?.({...item, model: this.form.model}),\n }\n }\n >\n </dinert-tooltip>\n )\n }\n }}\n >\n </el-form-item>\n </el-col>\n )\n }\n\n })\n }\n </el-row>\n {\n this.search\n && <el-row class={['dinert-form-right', this.isArrow ? 'isArrow' : '']}>\n {this.isArrow\n && <el-button class=\"dinert-form-right-operation\" text type=\"primary\"\n onClick={this.unfold}\n >\n <el-icon>\n {this.packUp ? <ArrowUp/> : <ArrowDown/>}\n </el-icon>\n {this.packUp ? '收起' : '展开'}\n </el-button>\n }\n {this.$slots.form_search?.()\n || (\n <>\n <el-button type=\"primary\" onClick={() => this.$emit('SearchFn')} {...this.form.searchButton}>{this.form.searchButton?.message || '搜索'}</el-button>\n <el-button type=\"primary\" plain\n onClick={() => this.$emit('ResetFn')}\n {...this.form.resetButton}\n >{this.form.resetButton?.message || '重置'}</el-button>\n </>\n )\n }\n </el-row>\n }\n {\n this.$slots.form_search_operations\n && <el-row class={'el-form-right-after'}>\n {this.$slots.form_search_operations?.()}\n </el-row>\n }\n </el-form>\n )\n }\n})\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","defineComponent","name","props","form","type","default","search","Boolean","emits","setup","emit","toRefs","packUp","ref","value","undefined","isArrow","formRef","formTypeRef","setFormTypeRefs","el","formClass","getUuid","onBeforeUpdate","formItemMap","computed","result","keys","formItem","forEach","key","push","sort","a","b","Infinity","resizeForm","elFormLeft","document","querySelectorAll","nextTick","firstTop","getBoundingClientRect","top","lastTop","length","useWindowResize","unfold","render","_slot","_createVNode","_resolveComponent","_mergeProps","withModifiers","row","map","item","style","vif","model","show","isCustomPlaceholder","options","placeholder","customPlaceholder","label","display","formShowLabel","showLabel","itemShowLabel","required","rules","trigger","message","concat","valDisabled","itemValueDisabled","tempValueDisabled","colLayout","labelWrap","$slots","formItemSlot","_b","_a","labelDisabled","e","labelMouseEnter","String","getTooltipValue","valueMouseEnter","slots","errData","resultVal","dataTransformRod","getSpanValue","componentResult","includes","renderSlot","CustomInput","onEnterSearch","$emit","CustomInputNumber","CustomInputAutocomplete","CustomSelect","CustomSelectV2","CustomSwitch","CustomDate","CustomRadio","CustomSelectTree","CustomRate","CustomCheckbox","CustomCascader","CustomSlider","CustomTimePicker","CustomTimeSelect","defaultAfter","defaultBefore","ArrowUp","ArrowDown","form_search","_Fragment","onClick","searchButton","reset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