@web-utils/component 4.0.4 → 4.0.6

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.
Files changed (46) hide show
  1. package/chunks/configComponents.BHkQi547.mjs +45 -0
  2. package/chunks/{confirmable-mixin.D9aKzKZ9.mjs → confirmable-mixin.B2TtLAdk.mjs} +23 -22
  3. package/chunks/dictionary.D9gKwItv.mjs +68 -0
  4. package/chunks/{form-input.BsT_5fuJ.mjs → form-input.CvFdwlEV.mjs} +2 -2
  5. package/chunks/{form-item.CLZf7hCo.mjs → form-item.LWjePsPa.mjs} +16 -16
  6. package/chunks/{index.d3MV3Wq2.mjs → index.B2TRddqf.mjs} +30 -27
  7. package/confirm-button/index.mjs +1 -1
  8. package/confirmable/index.mjs +1 -1
  9. package/data-table-picker/index.mjs +1 -1
  10. package/editable-tree/index.mjs +1 -1
  11. package/element-dialog/index.mjs +17 -16
  12. package/form-cascader/index.mjs +24 -24
  13. package/form-checkbox/index.mjs +15 -15
  14. package/form-checkbox-group/index.mjs +14 -14
  15. package/form-date-picker/index.mjs +2 -2
  16. package/form-holder/index.mjs +1 -1
  17. package/form-input/index.mjs +11 -11
  18. package/form-input-cron-expression/index.mjs +11 -11
  19. package/form-input-email/index.mjs +13 -13
  20. package/form-input-id-card/index.mjs +12 -12
  21. package/form-input-number/index.mjs +2 -2
  22. package/form-input-phone-number/index.mjs +22 -22
  23. package/form-input-tag/index.mjs +2 -2
  24. package/form-input-time/index.mjs +15 -15
  25. package/form-item/index.mjs +1 -1
  26. package/form-radio-group/index.mjs +26 -26
  27. package/form-select/index.mjs +17 -17
  28. package/form-switch/index.mjs +13 -13
  29. package/form-table/index.mjs +6 -6
  30. package/form-table-plus/index.mjs +4 -4
  31. package/form-textarea/index.mjs +13 -13
  32. package/form-tree-select/index.mjs +8 -8
  33. package/form-tree-select-multiple/index.mjs +2 -2
  34. package/index.mjs +408 -406
  35. package/package.json +1 -1
  36. package/pageable-table/index.mjs +48 -48
  37. package/pageable-view/index.mjs +1 -1
  38. package/picker-table-view/index.mjs +25 -24
  39. package/table-column/index.mjs +1 -1
  40. package/table-view/index.mjs +35 -36
  41. package/tabs-view/index.mjs +2 -2
  42. package/toolbar/index.mjs +52 -53
  43. package/toolbar-button/index.mjs +2 -2
  44. package/web-types.json +1 -1
  45. package/chunks/configComponents.BDhlZU8F.mjs +0 -23
  46. package/chunks/dictionary.DsN-2ukC.mjs +0 -70
@@ -0,0 +1,45 @@
1
+ import { isObject as n, isString as c } from "@web-utils/core";
2
+ const r = {
3
+ privilege: {
4
+ processButtons(o) {
5
+ return o.map((t) => {
6
+ if (n(t)) {
7
+ const e = t, s = {};
8
+ for (const i in e)
9
+ c(e[i]) && (s[i] = a(e[i]));
10
+ return s;
11
+ }
12
+ return t;
13
+ });
14
+ },
15
+ hasAuthority(o) {
16
+ return !0;
17
+ }
18
+ }
19
+ }, g = (o) => {
20
+ var t, e;
21
+ return (e = (t = r.privilege) == null ? void 0 : t.processButtons) == null ? void 0 : e.call(t, o);
22
+ }, a = (o) => {
23
+ var t, e;
24
+ return (e = (t = r.privilege) == null ? void 0 : t.hasAuthority) == null ? void 0 : e.call(t, o);
25
+ }, u = (o) => {
26
+ var t, e;
27
+ return (e = (t = r.toolbar) == null ? void 0 : t.goBack) == null ? void 0 : e.call(t, o);
28
+ }, l = () => {
29
+ var o, t;
30
+ return (t = (o = r.tableView) == null ? void 0 : o.reload) == null ? void 0 : t.call(o);
31
+ }, b = (o, t) => {
32
+ var e, s;
33
+ return (s = (e = r.dict) == null ? void 0 : e.getDictTreeByType) == null ? void 0 : s.call(e, o, t);
34
+ }, y = (o) => {
35
+ var t, e;
36
+ return (e = (t = r.dict) == null ? void 0 : t.remote) == null ? void 0 : e.call(t, o);
37
+ };
38
+ export {
39
+ l as a,
40
+ u as b,
41
+ b as g,
42
+ a as h,
43
+ g as p,
44
+ y as r
45
+ };
@@ -1,35 +1,36 @@
1
- import d from "element-ui/lib/loading";
2
- import y from "element-ui/lib/message-box";
1
+ import w from "element-ui/lib/loading";
2
+ import B from "element-ui/lib/message-box";
3
3
  import { isFunction as a } from "@web-utils/core";
4
- async function v(t, e, n) {
5
- const { stop: r, prevent: o, message: f, loadable: l, loadingText: x, confirmable: b, confirmType: T, confirmText: S, confirmTitle: w } = e;
6
- r && t.stopPropagation(), o && t.preventDefault();
7
- const { before: c, click: u, cancel: s, after: g } = n;
8
- if (a(u))
4
+ import { g as d } from "./index.B2TRddqf.mjs";
5
+ async function k(t, e, n) {
6
+ const { stop: o, prevent: r, message: f, loadable: l, loadingText: y, confirmable: x, confirmType: b, confirmText: T, confirmTitle: S } = e;
7
+ o && t.stopPropagation(), r && t.preventDefault();
8
+ const { before: c, click: g, cancel: m, after: p } = n;
9
+ if (a(g))
9
10
  try {
10
11
  let i = !0;
11
12
  if (a(c) && (i = await c(t)), i === !1)
12
13
  return;
13
- b && await (y.confirm || y.default.confirm)(f || S, {
14
- type: T,
15
- title: w
14
+ x && await d(B).confirm(f || T, {
15
+ type: b,
16
+ title: S
16
17
  });
17
- let m;
18
- l && (m = (d.service || d.default.service)({
18
+ let s;
19
+ l && (s = d(w).service({
19
20
  background: "rgba(0,0,0,0.3)",
20
- text: x
21
+ text: y
21
22
  }));
22
- let p;
23
+ let u;
23
24
  try {
24
- p = await u(t);
25
+ u = await g(t);
25
26
  } catch {
26
27
  }
27
- l && m.close(), a(g) && await g(t, p);
28
+ l && s.close(), a(p) && await p(t, u);
28
29
  } catch (i) {
29
- a(s) && await s(i);
30
+ a(m) && await m(i);
30
31
  }
31
32
  }
32
- const C = {
33
+ const F = {
33
34
  functional: !0,
34
35
  props: {
35
36
  stop: {
@@ -68,18 +69,18 @@ const C = {
68
69
  default: "i"
69
70
  }
70
71
  },
71
- render(t, { props: e, data: n, children: r, listeners: o }) {
72
+ render(t, { props: e, data: n, children: o, listeners: r }) {
72
73
  return t(
73
74
  e.tag,
74
75
  {
75
76
  ...n,
76
- on: { click: (f) => v(f, e, o) },
77
+ on: { click: (f) => k(f, e, r) },
77
78
  props: e
78
79
  },
79
- r || e.text
80
+ o || e.text
80
81
  );
81
82
  }
82
83
  };
83
84
  export {
84
- C as c
85
+ F as c
85
86
  };
@@ -0,0 +1,68 @@
1
+ import { t as D, a as l } from "./core.DJEgjQW6.mjs";
2
+ import { g as d, r as w } from "./configComponents.BHkQi547.mjs";
3
+ const $ = {}, h = {}, m = {}, C = (t, i = !0, { options: r, treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
4
+ let e = t;
5
+ o && (e = `${t}-${n}-${c}${r ? "-options" : ""}`);
6
+ const a = $[e];
7
+ return i && a ? a : o ? O(t, i, { idAsValue: n, labelAsValue: c }) : K(t, i);
8
+ }, K = (t, i = !0) => {
9
+ if (m[t])
10
+ return m[t];
11
+ const r = new Promise((o, n) => {
12
+ i && $[t] ? o($[t]) : w(t).then((c) => {
13
+ let e = c.data.data;
14
+ if (i) {
15
+ const a = {};
16
+ e.forEach(({ label: f, value: s }) => {
17
+ a[s] = Object.freeze({ label: f, value: s });
18
+ }), h[t] = a, e = Object.freeze(e), $[t] = e;
19
+ }
20
+ m[t] = null, o(e);
21
+ }).catch((c) => {
22
+ m[t] = null, n(c);
23
+ });
24
+ });
25
+ return m[t] = r, r;
26
+ }, O = (t, i = !0, { idAsValue: r, labelAsValue: o } = {}) => {
27
+ const n = `${t}-${r}-${o}`;
28
+ if (m[n])
29
+ return m[n];
30
+ const c = new Promise((e, a) => {
31
+ i && $[n] ? e($[n]) : d(t, { idAsValue: r, labelAsValue: o }).then((f) => {
32
+ const s = f.data.data;
33
+ i && ($[n] = s, $[`${n}-options`] = D(s), h[n] = l(s)), m[n] = null, e(s);
34
+ }).catch((f) => {
35
+ m[n] = null, a(f);
36
+ });
37
+ });
38
+ return m[n] = c, c;
39
+ }, T = async (t, i, r = !0, { treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
40
+ let e = t;
41
+ o && (e = `${t}-${n}-${c}`);
42
+ const a = h[e];
43
+ let f;
44
+ if (r && a)
45
+ f = a[i];
46
+ else {
47
+ let s = await C(t, r, { treeDict: o, idAsValue: n, labelAsValue: c });
48
+ if (r)
49
+ f = h[e][i];
50
+ else {
51
+ o && (s = D(s));
52
+ for (let g = 0; g < s.length; g++) {
53
+ const u = s[g];
54
+ if (u.value === i) {
55
+ f = u;
56
+ break;
57
+ }
58
+ }
59
+ }
60
+ }
61
+ return f;
62
+ }, z = async (t, i, r = !0, { treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
63
+ var e;
64
+ return ((e = await T(t, i, r, { treeDict: o, idAsValue: n, labelAsValue: c })) == null ? void 0 : e.label) || i || "";
65
+ };
66
+ export {
67
+ z as g
68
+ };
@@ -1,5 +1,5 @@
1
- import { f as r } from "./form-item.CLZf7hCo.mjs";
2
- import { c as t } from "./index.d3MV3Wq2.mjs";
1
+ import { f as r } from "./form-item.LWjePsPa.mjs";
2
+ import { d as t } from "./index.B2TRddqf.mjs";
3
3
  const o = {
4
4
  name: "FormInput",
5
5
  mixins: [r],
@@ -1,7 +1,7 @@
1
- import { c as s } from "./index.d3MV3Wq2.mjs";
2
- import l from "element-ui/lib/col";
3
- import a from "element-ui/lib/form-item";
4
- const m = ["span"], n = [...Object.keys(l.props || l.default.props)], d = n.filter((e) => !m.includes(e)), f = ["label", "prop", "rules", "labelWidth", "required"], u = [...Object.keys(a.props || a.default.props)], h = u.filter((e) => !f.includes(e)), c = [
1
+ import { c as l, d as o } from "./index.B2TRddqf.mjs";
2
+ import m from "element-ui/lib/col";
3
+ import p from "element-ui/lib/form-item";
4
+ const d = ["span"], a = l(m), f = a.filter((e) => !d.includes(e)), h = ["label", "prop", "rules", "labelWidth", "required"], n = l(p), c = n.filter((e) => !h.includes(e)), b = [
5
5
  "wrapCol",
6
6
  "wrapFormItem",
7
7
  "unwrap",
@@ -13,9 +13,9 @@ const m = ["span"], n = [...Object.keys(l.props || l.default.props)], d = n.filt
13
13
  "tips",
14
14
  "hideLabel",
15
15
  "fixedSpan",
16
- ...n,
17
- ...u
18
- ], o = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], b = ["$emit", "validate", "clearValidate"], S = {
16
+ ...a,
17
+ ...n
18
+ ], s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], g = ["$emit", "validate", "clearValidate"], B = {
19
19
  name: "FormInput",
20
20
  inject: {
21
21
  elForm: {
@@ -155,7 +155,7 @@ const m = ["span"], n = [...Object.keys(l.props || l.default.props)], d = n.filt
155
155
  },
156
156
  data() {
157
157
  const e = {};
158
- return o.forEach((r) => {
158
+ return s.forEach((r) => {
159
159
  e[r] = null;
160
160
  }), {
161
161
  proxyForm: e
@@ -173,7 +173,7 @@ const m = ["span"], n = [...Object.keys(l.props || l.default.props)], d = n.filt
173
173
  var i;
174
174
  const e = [...this.rules || []], r = e.find((t) => t.required);
175
175
  if (this.required || r || (i = this.formHolder.requiredFields) != null && i.includes(this.prop)) {
176
- const t = e.find((p) => p.required);
176
+ const t = e.find((u) => u.required);
177
177
  t ? t.ref ? t.label = t.label || this.label : t.message = t.message || this.message : e.unshift(this.getRequireRule());
178
178
  }
179
179
  return e.concat(this.getRules());
@@ -182,19 +182,19 @@ const m = ["span"], n = [...Object.keys(l.props || l.default.props)], d = n.filt
182
182
  return this.block ? 24 : this.span;
183
183
  },
184
184
  formItemProps() {
185
- return s({ ...this.$props, ...this.$attrs }, c);
185
+ return o({ ...this.$props, ...this.$attrs }, b);
186
186
  },
187
187
  elFormItemProps() {
188
- return s({ ...this.$props, ...this.$attrs }, h);
188
+ return o({ ...this.$props, ...this.$attrs }, c);
189
189
  },
190
190
  elColProps() {
191
- return s({ ...this.$props, ...this.$attrs }, d);
191
+ return o({ ...this.$props, ...this.$attrs }, f);
192
192
  },
193
193
  formCfg() {
194
194
  const e = {
195
195
  disabled: this.disabled
196
196
  };
197
- return o.forEach((r) => {
197
+ return s.forEach((r) => {
198
198
  e[r] = this.elForm[r];
199
199
  }), e;
200
200
  }
@@ -208,9 +208,9 @@ const m = ["span"], n = [...Object.keys(l.props || l.default.props)], d = n.filt
208
208
  immediate: !0,
209
209
  handler() {
210
210
  var e;
211
- this.proxyForm.disabled = (e = this.formHolder.enabledFields) != null && e.includes(this.prop) ? !1 : (this.elForm || {}).disabled, o.forEach((r) => {
211
+ this.proxyForm.disabled = (e = this.formHolder.enabledFields) != null && e.includes(this.prop) ? !1 : (this.elForm || {}).disabled, s.forEach((r) => {
212
212
  var i;
213
- r !== "disabled" && (b.includes(r) ? this.proxyForm[r] = (i = this.elForm[r]) == null ? void 0 : i.bind(this.elForm) : this.proxyForm[r] = this.elForm[r]);
213
+ r !== "disabled" && (g.includes(r) ? this.proxyForm[r] = (i = this.elForm[r]) == null ? void 0 : i.bind(this.elForm) : this.proxyForm[r] = this.elForm[r]);
214
214
  });
215
215
  }
216
216
  }
@@ -229,5 +229,5 @@ const m = ["span"], n = [...Object.keys(l.props || l.default.props)], d = n.filt
229
229
  }
230
230
  };
231
231
  export {
232
- S as f
232
+ B as f
233
233
  };
@@ -1,6 +1,6 @@
1
- import { isObject as u, isString as f, hasOwn as h, camelize as p, isFunction as m } from "@web-utils/core";
1
+ import { isObject as u, isString as f, hasOwn as p, camelize as h, isFunction as m } from "@web-utils/core";
2
2
  import g from "async-validator";
3
- const z = (e, r) => {
3
+ const E = (e, r) => {
4
4
  if (!e || !r)
5
5
  return null;
6
6
  let t = e;
@@ -41,7 +41,7 @@ const z = (e, r) => {
41
41
  "lazy",
42
42
  "load",
43
43
  "tree-props"
44
- ], x = [
44
+ ], y = [
45
45
  "select",
46
46
  "select-all",
47
47
  "selection-change",
@@ -59,7 +59,7 @@ const z = (e, r) => {
59
59
  "current-change",
60
60
  "header-dragend",
61
61
  "expand-change"
62
- ], y = [
62
+ ], x = [
63
63
  "type",
64
64
  "index",
65
65
  "column-key",
@@ -127,55 +127,58 @@ const z = (e, r) => {
127
127
  "node-drag-over",
128
128
  "node-drag-end",
129
129
  "node-drop"
130
- ], o = (e, r, t = !0) => {
130
+ ], a = (e, r, t = !0) => {
131
131
  if (u(e)) {
132
132
  let l = r;
133
133
  f(r) && (l = l.split(","));
134
- const a = {};
134
+ const o = {};
135
135
  if (t)
136
136
  l.forEach((n) => {
137
- h(e, n) && (a[n] = e[n]);
137
+ p(e, n) && (o[n] = e[n]);
138
138
  });
139
139
  else
140
140
  for (const n in e)
141
- l.includes(n) || (a[n] = e[n]);
142
- return a;
141
+ l.includes(n) || (o[n] = e[n]);
142
+ return o;
143
143
  }
144
144
  return e;
145
- }, E = (e) => {
145
+ }, C = (e) => {
146
146
  const r = {};
147
147
  for (const t in e)
148
- r[p(t)] = e[t];
148
+ r[h(t)] = e[t];
149
149
  return r;
150
- }, F = (e) => o(e, w), O = (e) => o(e, y), A = (e) => o(e, x), C = (e) => o(e, k), K = (e) => o(e, b), d = (e = "", r = {}) => {
150
+ }, O = (e) => a(e, w), F = (e) => a(e, x), K = (e) => a(e, y), A = (e) => a(e, k), V = (e) => a(e, b), d = (e = "", r = {}) => {
151
151
  const t = r || {};
152
- return (e || "").replace(/{(.*?)}/g, (a, n) => {
152
+ return (e || "").replace(/{(.*?)}/g, (o, n) => {
153
153
  if (n.indexOf(":")) {
154
154
  const [s, c] = n.split(":");
155
155
  return t[s] ? t[s] : c;
156
156
  } else
157
157
  return t[n] || "";
158
158
  });
159
- }, V = (e, r) => m(e) ? d(e(r), r) : f(e) ? d(e, r) : null;
160
- function R(e, r, t) {
161
- return new Promise((l, a) => {
159
+ }, R = (e, r) => m(e) ? d(e(r), r) : f(e) ? d(e, r) : null;
160
+ function S(e, r, t) {
161
+ return new Promise((l, o) => {
162
162
  const n = {};
163
163
  t && t.length > 0 && t.forEach((i) => {
164
164
  delete i.trigger;
165
165
  }), n[e] = t;
166
166
  const s = new g(n), c = {};
167
- c[e] = r, s.validate(c, { firstFields: !0 }, (i, v) => l(!i));
167
+ c[e] = r, s.validate(c, { firstFields: !0 }, (i, P) => l(!i));
168
168
  });
169
169
  }
170
+ const _ = (e) => Object.keys(v(e).props), v = (e) => e.default || e;
170
171
  export {
171
- K as a,
172
- C as b,
173
- o as c,
174
- z as d,
175
- V as e,
176
- O as f,
177
- A as g,
178
- F as h,
179
- E as n,
180
- R as v
172
+ V as a,
173
+ A as b,
174
+ _ as c,
175
+ a as d,
176
+ E as e,
177
+ F as f,
178
+ v as g,
179
+ R as h,
180
+ K as i,
181
+ O as j,
182
+ C as n,
183
+ S as v
181
184
  };
@@ -1,4 +1,4 @@
1
- import { c as n } from "../chunks/confirmable-mixin.D9aKzKZ9.mjs";
1
+ import { c as n } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
2
2
  import { n as t } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const o = {
4
4
  props: {
@@ -1,4 +1,4 @@
1
- import { c as n } from "../chunks/confirmable-mixin.D9aKzKZ9.mjs";
1
+ import { c as n } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
2
2
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const e = {
4
4
  name: "Confirmable",
@@ -1,4 +1,4 @@
1
- import { f as i } from "../chunks/index.d3MV3Wq2.mjs";
1
+ import { f as i } from "../chunks/index.B2TRddqf.mjs";
2
2
  import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const o = {
4
4
  name: "DataTablePicker",
@@ -1,7 +1,7 @@
1
1
  import { findTreeChildren as m, delay as y, isUndefined as l, isNotEmpty as x, fastClone as w, isPlainObject as r, isFunction as h, computePosition as N, isVerticalScrollbarVisible as C, scrollbarWidth as g, hasOwn as d } from "@web-utils/core";
2
2
  import { removeResizeListener as u, addResizeListener as p } from "@web-utils/integrations/resize";
3
3
  import { cloneDeep as f } from "@web-utils/integrations/lodash";
4
- import { a as v, b as $ } from "../chunks/index.d3MV3Wq2.mjs";
4
+ import { a as v, b as $ } from "../chunks/index.B2TRddqf.mjs";
5
5
  import b from "vue";
6
6
  import { n as k } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
7
  function c(t, e) {
@@ -1,8 +1,9 @@
1
- import i from "element-ui/lib/dialog";
1
+ import s from "element-ui/lib/dialog";
2
2
  import { dialogDrag as a } from "@web-utils/vue/directives/dialog-drag";
3
3
  import { getComputedHeight as r, isDef as n } from "@web-utils/core";
4
- import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const d = {
4
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ import { g as d } from "../chunks/index.B2TRddqf.mjs";
6
+ const p = {
6
7
  name: "EmulateForm",
7
8
  provide() {
8
9
  return {
@@ -14,16 +15,16 @@ const d = {
14
15
  render() {
15
16
  return this.$slots.default;
16
17
  }
17
- }, c = null, p = null;
18
- var u = /* @__PURE__ */ s(
19
- d,
20
- c,
18
+ }, c = null, u = null;
19
+ var f = /* @__PURE__ */ i(
21
20
  p,
21
+ c,
22
+ u,
22
23
  !1,
23
24
  null,
24
25
  null
25
26
  );
26
- const f = u.exports, h = {
27
+ const h = f.exports, m = {
27
28
  props: {
28
29
  /**
29
30
  * 对话框是否可见
@@ -91,13 +92,13 @@ const f = u.exports, h = {
91
92
  default: "76vh"
92
93
  }
93
94
  }
94
- }, m = {
95
+ }, g = {
95
96
  name: "ElementDialog",
96
- components: { EmulateForm: f },
97
+ components: { EmulateForm: h },
97
98
  directives: {
98
99
  dialogDrag: a
99
100
  },
100
- mixins: [...i.mixins || i.default.mixins, h],
101
+ mixins: [...d(s).mixins, m],
101
102
  props: {
102
103
  /**
103
104
  * 对话框标题
@@ -271,7 +272,7 @@ const f = u.exports, h = {
271
272
  }
272
273
  }
273
274
  };
274
- var g = function() {
275
+ var y = function() {
275
276
  var e = this, l = e._self._c;
276
277
  return l("Transition", { attrs: { name: "dialog-fade" }, on: { "after-enter": e.afterEnter, "after-leave": e.afterLeave } }, [l("div", { directives: [{ name: "show", rawName: "v-show", value: e.visible, expression: "visible" }, { name: "dialog-drag", rawName: "v-dialog-drag:[fullScreen]", value: { onMove: e.updatePopper }, expression: "{ onMove: updatePopper }", arg: e.fullScreen }], staticClass: "el-dialog__wrapper", on: { click: function(o) {
277
278
  return o.target !== o.currentTarget ? null : e.handleWrapperClick.apply(null, arguments);
@@ -291,15 +292,15 @@ var g = function() {
291
292
  ], style: e.style, attrs: { role: "dialog", "aria-modal": "true", "aria-label": e.title || "dialog" } }, [l("div", { staticClass: "el-dialog__header" }, [e._t("title", function() {
292
293
  return [l("span", { staticClass: "el-dialog__title" }, [e._v(e._s(e.title))])];
293
294
  }), l("EmulateForm", [l("div", { staticClass: "header-button-wrapper" }, [e._t("header-button"), e.showFullScreen ? l("ElButton", { staticClass: "header-button", attrs: { disabled: !1, type: "text", icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen", size: "medium", title: e.fullScreen ? "还原" : "最大化" }, on: { click: e.toggleFullScreen } }) : e._e(), e.showClose ? l("ElButton", { staticClass: "header-button header-dialog-close", attrs: { disabled: !1, "aria-label": "Close", type: "text", title: "关闭", icon: "el-icon-close", size: "medium" }, on: { click: e.handleClose } }) : e._e()], 2)])], 2), e.rendered ? l("div", { staticClass: "el-dialog__body", style: { height: e.fullScreen ? "100%" : e.height } }, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? l("div", { staticClass: "el-dialog__footer" }, [e._t("footer", null, { handleClose: e.handleClose })], 2) : e._e()])])]);
294
- }, y = [], _ = /* @__PURE__ */ s(
295
- m,
295
+ }, _ = [], v = /* @__PURE__ */ i(
296
296
  g,
297
297
  y,
298
+ _,
298
299
  !1,
299
300
  null,
300
301
  null
301
302
  );
302
- const $ = _.exports;
303
+ const x = v.exports;
303
304
  export {
304
- $ as default
305
+ x as default
305
306
  };
@@ -1,16 +1,16 @@
1
- import { f as o } from "../chunks/form-input.BsT_5fuJ.mjs";
2
- import { f as i } from "../chunks/form-pick.BFTIVn_i.mjs";
3
- import s from "element-ui/lib/cascader";
4
- import { c as n, n as u } from "../chunks/index.d3MV3Wq2.mjs";
5
- import { isArray as l, setParent as p, isString as f, findTreeChildren as c } from "@web-utils/core";
6
- import { cloneDeep as d } from "@web-utils/integrations/lodash";
7
- import { d as m } from "../chunks/dictionary.DqiP9x2m.mjs";
8
- import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
- const y = Object.keys(s.props || s.default.props).filter(
1
+ import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
2
+ import { f as o } from "../chunks/form-pick.BFTIVn_i.mjs";
3
+ import i from "element-ui/lib/cascader";
4
+ import { c as n, d as u, n as p } from "../chunks/index.B2TRddqf.mjs";
5
+ import { isArray as s, setParent as f, isString as c, findTreeChildren as d } from "@web-utils/core";
6
+ import { cloneDeep as m } from "@web-utils/integrations/lodash";
7
+ import { d as h } from "../chunks/dictionary.DqiP9x2m.mjs";
8
+ import { n as y } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
+ const v = n(i).filter(
10
10
  (t) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(t)
11
- ), v = {
11
+ ), _ = {
12
12
  name: "FormCascader",
13
- mixins: [o, i, m],
13
+ mixins: [a, o, h],
14
14
  props: {
15
15
  value: [String, Number, Array],
16
16
  options: {
@@ -55,13 +55,13 @@ const y = Object.keys(s.props || s.default.props).filter(
55
55
  },
56
56
  computed: {
57
57
  inputProps() {
58
- return n({ ...u(this.$attrs), ...this.$props }, y);
58
+ return u({ ...p(this.$attrs), ...this.$props }, v);
59
59
  },
60
60
  inputVal() {
61
61
  if (this.join)
62
- return l(this.value) ? this.value : f(this.value) ? this.value.split(this.separator) : [];
62
+ return s(this.value) ? this.value : c(this.value) ? this.value.split(this.separator) : [];
63
63
  if (this.last) {
64
- let [t] = c(this.innerOptions, (r) => r[this.valueKey] === this.value);
64
+ let [t] = d(this.innerOptions, (r) => r[this.valueKey] === this.value);
65
65
  const e = [];
66
66
  for (; t; )
67
67
  e.push(t[this.valueKey]), t = t.parent;
@@ -73,15 +73,15 @@ const y = Object.keys(s.props || s.default.props).filter(
73
73
  if (this.dictType)
74
74
  return this.dictItems;
75
75
  if (this.options) {
76
- const t = d(this.options);
77
- return this.last && p(t), t;
76
+ const t = m(this.options);
77
+ return this.last && f(t), t;
78
78
  } else
79
79
  return [];
80
80
  }
81
81
  },
82
82
  methods: {
83
83
  emitInput(t) {
84
- if (this.join && l(t))
84
+ if (this.join && s(t))
85
85
  this.$emit("input", t.join(this.separator));
86
86
  else {
87
87
  const e = this.last ? t[t.length - 1] : t;
@@ -90,26 +90,26 @@ const y = Object.keys(s.props || s.default.props).filter(
90
90
  }
91
91
  }
92
92
  };
93
- var _ = function() {
93
+ var b = function() {
94
94
  var e = this, r = e._self._c;
95
95
  return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
96
96
  return [e._t("default", function() {
97
97
  return [r("ElCascader", e._g(e._b({ class: { "is-readonly": e.readonly }, staticStyle: { width: "100%" }, attrs: { clearable: "", value: e.inputVal, "show-all-levels": e.showAllLevels, separator: e.separator, readonly: e.readonly, options: e.innerOptions, props: { checkStrictly: e.checkStrictly, label: e.labelKey, value: e.valueKey, emitPath: e.emitPath, expandTrigger: "hover" }, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput } }, "ElCascader", e.inputProps, !1), e.listeners))];
98
98
  })];
99
- }, proxy: !0 }, { key: "error", fn: function({ error: a }) {
100
- return [e._t("error", null, { error: a })];
99
+ }, proxy: !0 }, { key: "error", fn: function({ error: l }) {
100
+ return [e._t("error", null, { error: l })];
101
101
  } }, { key: "label", fn: function() {
102
102
  return [e._t("label")];
103
103
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
104
- }, b = [], P = /* @__PURE__ */ h(
105
- v,
104
+ }, P = [], g = /* @__PURE__ */ y(
106
105
  _,
107
106
  b,
107
+ P,
108
108
  !1,
109
109
  null,
110
110
  null
111
111
  );
112
- const K = P.exports;
112
+ const x = g.exports;
113
113
  export {
114
- K as default
114
+ x as default
115
115
  };