@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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "4.0.4",
4
+ "version": "4.0.6",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -1,20 +1,20 @@
1
- import { copy as R, hasOwn as v } from "@web-utils/core";
1
+ import { copy as v, hasOwn as P } from "@web-utils/core";
2
2
  import S from "element-ui/lib/message";
3
+ import { g as _, f as C, i as B, j as A } from "../chunks/index.B2TRddqf.mjs";
3
4
  import { merge as f } from "@web-utils/integrations/lodash";
4
- import { f as _, g as P, h as B } from "../chunks/index.d3MV3Wq2.mjs";
5
- import { g as A } from "../chunks/dictionary.DsN-2ukC.mjs";
6
- import { _ as C } from "../chunks/helper.BiMLcEEk.mjs";
5
+ import { g as K } from "../chunks/dictionary.D9gKwItv.mjs";
6
+ import { _ as T } from "../chunks/helper.BiMLcEEk.mjs";
7
7
  import "vue";
8
8
  import { n as b } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
- import { isEqual as K } from "lodash-es";
10
- function L(t) {
11
- R(
9
+ import { isEqual as L } from "lodash-es";
10
+ function F(t) {
11
+ v(
12
12
  t,
13
- () => S.success({ duration: 1e3, message: "复制成功!", type: "success" }),
14
- () => S.error({ duration: 1e3, message: "复制失败!", type: "error" })
13
+ () => _(S).success({ duration: 1e3, message: "复制成功!", type: "success" }),
14
+ () => _(S).error({ duration: 1e3, message: "复制失败!", type: "error" })
15
15
  );
16
16
  }
17
- const F = {
17
+ const z = {
18
18
  name: "TableColumnFilterable",
19
19
  functional: !0,
20
20
  /**
@@ -39,43 +39,43 @@ const F = {
39
39
  filterable: r,
40
40
  allowSort: g,
41
41
  autoUpdate: d,
42
- scopedSlots: T,
42
+ scopedSlots: x,
43
43
  prop: m,
44
- ...x
44
+ ...$
45
45
  } = l, y = `${s}-${r}${d ? `-${Math.random()}`.replace("0.", "") : ""}`, u = {
46
46
  props: {
47
47
  prop: m,
48
- ...x
48
+ ...$
49
49
  }
50
50
  };
51
51
  if (r) {
52
- const $ = [...new Set(i.map((c) => c[m]).filter((c) => c))].map((c) => ({
52
+ const w = [...new Set(i.map((c) => c[m]).filter((c) => c))].map((c) => ({
53
53
  text: c,
54
54
  value: c
55
55
  }));
56
- u.props.filterMethod = (c, w, k) => {
57
- const E = k.property;
58
- return w[E] === c;
59
- }, u.props.filters = $;
56
+ u.props.filterMethod = (c, k, E) => {
57
+ const R = E.property;
58
+ return k[R] === c;
59
+ }, u.props.filters = w;
60
60
  }
61
- const h = T || a;
62
- return h != null && h.default ? t("ElTableColumn", C([{}, u, {
61
+ const h = x || a;
62
+ return h != null && h.default ? t("ElTableColumn", T([{}, u, {
63
63
  scopedSlots: h,
64
64
  key: y
65
- }])) : t("TableColumn", C([{}, u, {
65
+ }])) : t("TableColumn", T([{}, u, {
66
66
  key: y
67
67
  }]));
68
68
  }
69
- }, z = null, O = null;
70
- var W = /* @__PURE__ */ b(
71
- F,
69
+ }, O = null, W = null;
70
+ var V = /* @__PURE__ */ b(
72
71
  z,
73
72
  O,
73
+ W,
74
74
  !1,
75
75
  null,
76
76
  null
77
77
  );
78
- const V = W.exports, D = {
78
+ const D = V.exports, M = {
79
79
  name: "TableColumnFilter",
80
80
  props: {
81
81
  columns: {
@@ -85,7 +85,7 @@ const V = W.exports, D = {
85
85
  visible: Boolean
86
86
  }
87
87
  };
88
- var M = function() {
88
+ var U = function() {
89
89
  var e = this, s = e._self._c;
90
90
  return s("ElDrawer", { staticClass: "table-column-filter", attrs: { visible: e.visible, title: "表格设置", "append-to-body": "" }, on: { "update:visible": (l) => e.$emit("update:visible", l) } }, [s("ElTable", { attrs: { data: e.columns, border: "" } }, [s("ElTableColumn", { attrs: { label: "列名" }, scopedSlots: e._u([{ key: "default", fn: function({ row: l }) {
91
91
  return [e._v(" " + e._s(l.label) + " ")];
@@ -106,15 +106,15 @@ var M = function() {
106
106
  e.$set(l, "sortable", i);
107
107
  }, expression: "row.sortable" } })];
108
108
  } }]) })], 1)], 1);
109
- }, U = [], N = /* @__PURE__ */ b(
110
- D,
109
+ }, N = [], j = /* @__PURE__ */ b(
111
110
  M,
112
111
  U,
112
+ N,
113
113
  !1,
114
114
  null,
115
115
  null
116
116
  );
117
- const H = N.exports, j = {
117
+ const H = j.exports, Q = {
118
118
  props: {
119
119
  useVisibilityChange: Boolean
120
120
  },
@@ -131,7 +131,7 @@ const H = N.exports, j = {
131
131
  }
132
132
  }
133
133
  };
134
- function Q(t, e) {
134
+ function q(t, e) {
135
135
  const s = t.map((i) => {
136
136
  const { hide: a, filterable: o, allowSort: n, sortable: r, fixed: g, ...d } = i;
137
137
  return d;
@@ -139,9 +139,9 @@ function Q(t, e) {
139
139
  const { hide: a, filterable: o, allowSort: n, sortable: r, fixed: g, ...d } = i;
140
140
  return d;
141
141
  });
142
- return K(s, l);
142
+ return L(s, l);
143
143
  }
144
- function q(t) {
144
+ function I(t) {
145
145
  let e = "";
146
146
  for (const s in t)
147
147
  e += `<TableColumn prop="${s}" label="${s}"/>
@@ -153,10 +153,10 @@ const p = {
153
153
  error: -1,
154
154
  empty: 2,
155
155
  success: 0
156
- }, I = {
156
+ }, J = {
157
157
  name: "PageableTable",
158
- components: { TableColumnFilter: H, TableColumnFilterable: V },
159
- mixins: [j],
158
+ components: { TableColumnFilter: H, TableColumnFilterable: D },
159
+ mixins: [Q],
160
160
  emits: ["page-loaded", "row-dblclick"],
161
161
  bus: {
162
162
  reloadTableView(t) {
@@ -265,7 +265,7 @@ const p = {
265
265
  },
266
266
  headers() {
267
267
  var t;
268
- return ((t = this.columns) == null ? void 0 : t.map(_)) || [];
268
+ return ((t = this.columns) == null ? void 0 : t.map(C)) || [];
269
269
  }
270
270
  },
271
271
  watch: {
@@ -363,13 +363,13 @@ const p = {
363
363
  updateTableScrollPosition() {
364
364
  this.$refs.table.bodyWrapper && this.scrollTo(this.tableScrollTop, this.tableScrollLeft);
365
365
  },
366
- filterTableProperties: B,
367
- filterTableEvents: P,
368
- filterTableColumnProperties: _,
366
+ filterTableProperties: A,
367
+ filterTableEvents: B,
368
+ filterTableColumnProperties: C,
369
369
  onTableScroll() {
370
370
  this.tableScrollTop = this.$refs.table.bodyWrapper.scrollTop, this.tableScrollLeft = this.$refs.table.bodyWrapper.scrollLeft;
371
371
  },
372
- copy: (t) => L(q(t)),
372
+ copy: (t) => F(I(t)),
373
373
  onSortChange({ prop: t, order: e }) {
374
374
  this.payloadStyle !== "body" ? (this.page.ascs = e === "ascending" ? t : "", this.page.descs = e === "descending" ? t : "") : (this.page.ascs = e === "ascending" ? [t] : this.ascs, this.page.descs = e === "descending" ? [t] : this.descs);
375
375
  },
@@ -388,7 +388,7 @@ const p = {
388
388
  },
389
389
  async getPage(t) {
390
390
  var o;
391
- if (v(this.$attrs, "data") && this.$attrs.data !== !1) {
391
+ if (P(this.$attrs, "data") && this.$attrs.data !== !1) {
392
392
  this.records = this.$attrs.data, this.page.page = 1, this.page.total = (o = this.records) == null ? void 0 : o.length, this.page.limit = this.page.total;
393
393
  return;
394
394
  }
@@ -434,7 +434,7 @@ const p = {
434
434
  mapRow(t) {
435
435
  return t.map((e) => (this.dicOptions.forEach(async (s) => {
436
436
  var l;
437
- e[`$${s.prop}`] = e[s.prop], s.dicData ? e[s.prop] = ((l = s.dicData.find((i) => i.value === e[s.prop])) == null ? void 0 : l.label) || e[s.prop] : e[s.prop] = await A(s.dicType, e[s.prop]);
437
+ e[`$${s.prop}`] = e[s.prop], s.dicData ? e[s.prop] = ((l = s.dicData.find((i) => i.value === e[s.prop])) == null ? void 0 : l.label) || e[s.prop] : e[s.prop] = await K(s.dicType, e[s.prop]);
438
438
  }), e));
439
439
  },
440
440
  toggleSettings() {
@@ -448,7 +448,7 @@ const p = {
448
448
  t && this.expandColumn ? f(this.expandColumn, t) : this.expandColumn = t;
449
449
  },
450
450
  updateColumns(t) {
451
- if (!Q(this.tableColumns, t)) {
451
+ if (!q(this.tableColumns, t)) {
452
452
  const e = {};
453
453
  this.tableColumns.forEach((s) => {
454
454
  e[s.prop] = s;
@@ -467,7 +467,7 @@ const p = {
467
467
  }
468
468
  }
469
469
  };
470
- var J = function() {
470
+ var X = function() {
471
471
  var e = this, s = e._self._c;
472
472
  return s("div", { class: ["pageable-table", { "auto-height": e.autoHeight }] }, [s("div", { staticClass: "pageable-table-wrapper" }, [e._t("toolbar", null, { selectedRows: e.selectedRows }), s("ElTable", e._g(e._b({ ref: "table", class: ["flex-item", { "header-bold": e.headerBold }], attrs: { data: e.records, border: e.border, stripe: "", size: "medium" }, on: { "hook:updated": e.updateTableScrollPosition, "sort-change": e.onSortChange, "row-dblclick": e.rowDbClick, "row-click": e.rowClick, "cell-click": e.hideTooltip, "current-change": e.onCurrentChange, "selection-change": e.handleSelectionChange }, scopedSlots: e._u([{ key: "empty", fn: function() {
473
473
  return [e._t("empty", function() {
@@ -498,15 +498,15 @@ var J = function() {
498
498
  } } }) : e._e(), s("TableColumnFilter", { attrs: { visible: e.showSettings, columns: e.tableColumns }, on: { "update:visible": function(l) {
499
499
  e.showSettings = l;
500
500
  } } })], 2), s("ResizeObserver", { on: { notify: e.doLayout } })], 1);
501
- }, X = [], G = /* @__PURE__ */ b(
502
- I,
501
+ }, G = [], Y = /* @__PURE__ */ b(
503
502
  J,
504
503
  X,
504
+ G,
505
505
  !1,
506
506
  null,
507
507
  null
508
508
  );
509
- const re = G.exports;
509
+ const ne = Y.exports;
510
510
  export {
511
- re as default
511
+ ne as default
512
512
  };
@@ -1,6 +1,6 @@
1
1
  import { cloneDeep as n, merge as g } from "@web-utils/integrations/lodash";
2
2
  import { hasOwn as p, copy as f } from "@web-utils/core";
3
- import { f as h, g as u, h as m } from "../chunks/index.d3MV3Wq2.mjs";
3
+ import { f as h, i as u, j as m } from "../chunks/index.B2TRddqf.mjs";
4
4
  import { n as b } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
5
  function S(e) {
6
6
  let t = "";
@@ -1,11 +1,12 @@
1
- import { ref as l, onMounted as N } from "vue";
2
- import y from "element-ui/lib/message";
3
- import { isPlainObject as _, isFunction as P } from "@web-utils/core";
1
+ import { ref as l, onMounted as S } from "vue";
2
+ import N from "element-ui/lib/message";
3
+ import { isPlainObject as y, isFunction as P } from "@web-utils/core";
4
4
  import { cloneDeep as T } from "@web-utils/integrations/lodash";
5
- import { n as B } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
- const O = {
5
+ import { g as B } from "../chunks/index.B2TRddqf.mjs";
6
+ import { n as O } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
+ const E = {
7
8
  name: "PickerTableView"
8
- }, E = /* @__PURE__ */ Object.assign(O, {
9
+ }, R = /* @__PURE__ */ Object.assign(E, {
9
10
  props: {
10
11
  title: String,
11
12
  treeTitle: String,
@@ -52,49 +53,49 @@ const O = {
52
53
  },
53
54
  emits: ["cancel", "confirm", "update:visible"],
54
55
  setup(f, { expose: e, emit: n }) {
55
- const t = f, a = l([]), s = l(null), i = l([]), m = l([]), h = l(null), g = l(null), v = l(null), b = l(null), x = (o) => {
56
+ const t = f, a = l([]), s = l(null), i = l([]), m = l([]), g = l(null), h = l(null), v = l(null), _ = l(null), b = (o) => {
56
57
  a.value = o;
57
- }, k = (o) => {
58
+ }, x = (o) => {
58
59
  s.value = o;
59
60
  }, d = () => {
60
- h.value.reload();
61
- }, w = () => {
62
- g.value.resetFields(), d();
61
+ g.value.reload();
62
+ }, k = () => {
63
+ h.value.resetFields(), d();
63
64
  }, u = () => {
64
65
  v.value.hide();
65
- }, C = () => {
66
+ }, w = () => {
66
67
  n("cancel"), u();
67
- }, F = () => {
68
+ }, C = () => {
68
69
  var p;
69
70
  let o;
70
71
  if (t.multiple ? (p = a.value) != null && p.length && (o = a.value) : s.value && (o = [s.value]), !o.length) {
71
- (y.warning || y.default.warning)("请选择!");
72
+ B(N).warning("请选择!");
72
73
  return;
73
74
  }
74
75
  n("confirm", o), u();
75
- }, S = (o) => {
76
+ }, F = (o) => {
76
77
  n("update:visible", o);
77
78
  };
78
- return N(async () => {
79
+ return S(async () => {
79
80
  var o;
80
81
  if (t.useTree) {
81
82
  const c = (await t.treeApi()).data.data;
82
- if (_(t.customRootNode)) {
83
+ if (y(t.customRootNode)) {
83
84
  const r = T(t.customRootNode);
84
85
  r[t.treeProps.children || "children"] = c, i.value = [r];
85
86
  } else if (P(t.customRootNode)) {
86
87
  const r = t.customRootNode(c);
87
- r[t.treeProps.children || "children"] = c, i.value = _(r) ? [r] : r;
88
+ r[t.treeProps.children || "children"] = c, i.value = y(r) ? [r] : r;
88
89
  } else
89
90
  i.value = c;
90
91
  t.expandFirstNode && (m.value = [(o = i.value[0]) == null ? void 0 : o.id]);
91
92
  }
92
93
  }), e({
93
94
  search: d
94
- }), { __sfc: !0, props: t, emits: n, rows: a, current: s, treeData: i, expandedKeys: m, table: h, form: g, dialog: v, tree: b, handleChange: x, handleCurrentChange: k, search: d, clear: w, closeDialog: u, onCancel: C, confirm: F, updateVisible: S };
95
+ }), { __sfc: !0, props: t, emits: n, rows: a, current: s, treeData: i, expandedKeys: m, table: g, form: h, dialog: v, tree: _, handleChange: b, handleCurrentChange: x, search: d, clear: k, closeDialog: u, onCancel: w, confirm: C, updateVisible: F };
95
96
  }
96
97
  });
97
- var R = function() {
98
+ var D = function() {
98
99
  var e = this, n = e._self._c, t = e._self._setupProxy;
99
100
  return n("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, height: e.height, width: e.width, "body-padding": !1, "show-full-screen": "", title: e.title }, on: { "update:visible": t.updateVisible }, scopedSlots: e._u([{ key: "footer", fn: function() {
100
101
  return [n("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: t.confirm } }, [e._v("确定")]), n("ElButton", { attrs: { size: "mini" }, on: { click: t.onCancel } }, [e._v("取消")])];
@@ -103,15 +104,15 @@ var R = function() {
103
104
  }, proxy: !0 } : null], null, !0) }, [n("FormHolder", { ref: "form", staticStyle: { padding: "10px" }, attrs: { model: e.model, "not-table-form": "" }, nativeOn: { submit: function(a) {
104
105
  return a.preventDefault(), t.search.apply(null, arguments);
105
106
  } } }, [n("FormItemConfigProvider", { attrs: { reactive: "" } }, [n("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form"), n("FormItem", { staticStyle: { "text-align": "right" }, attrs: { "hide-label": "", span: 24 } }, [n("ElButton", { attrs: { type: "primary", "native-type": "submit" } }, [e._v("搜索")]), n("ElButton", { on: { click: t.clear } }, [e._v("清空")])], 1)], 2)], 1)], 1), n("PageableTable", { ref: "table", attrs: { "highlight-current-row": "", "hide-on-single-page": "", "click-row-select": "", "row-key": e.rowKey, descs: e.descs, "payload-style": "body", api: e.tableApi, model: e.model, multiple: e.multiple }, on: { "current-change": t.handleCurrentChange, "selection-change": t.handleChange } }, [e._t("columns")], 2)], 1)], 1);
106
- }, D = [], K = /* @__PURE__ */ B(
107
- E,
107
+ }, K = [], j = /* @__PURE__ */ O(
108
108
  R,
109
109
  D,
110
+ K,
110
111
  !1,
111
112
  null,
112
113
  null
113
114
  );
114
- const M = K.exports;
115
+ const q = j.exports;
115
116
  export {
116
- M as default
117
+ q as default
117
118
  };
@@ -1,6 +1,6 @@
1
1
  import { _ as T } from "../chunks/helper.BiMLcEEk.mjs";
2
2
  import { h as d } from "vue";
3
- import { g as C } from "../chunks/dictionary.DsN-2ukC.mjs";
3
+ import { g as C } from "../chunks/dictionary.D9gKwItv.mjs";
4
4
  import { n as B } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
5
  import { f as V } from "../chunks/core.DJEgjQW6.mjs";
6
6
  const D = {
@@ -1,12 +1,12 @@
1
- import { isFunction as w, toStringArray as g, isString as i, isArray as d, trace as u, warning as b, hasOwn as p } from "@web-utils/core";
2
- import { merge as a } from "@web-utils/integrations/lodash";
3
- import { e as v } from "../chunks/index.d3MV3Wq2.mjs";
4
- import _ from "../form-item-config-provider/index.mjs";
5
- import { g as f } from "../chunks/configComponents.BDhlZU8F.mjs";
6
- import { b as n } from "../chunks/core.DJEgjQW6.mjs";
7
- import y from "element-ui/lib/transitions/collapse-transition";
8
- import { n as S } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
- const T = [
1
+ import { isFunction as f, toStringArray as m, isString as o, isArray as c, trace as h, warning as d, hasOwn as u } from "@web-utils/core";
2
+ import { merge as i } from "@web-utils/integrations/lodash";
3
+ import { h as w } from "../chunks/index.B2TRddqf.mjs";
4
+ import g from "../form-item-config-provider/index.mjs";
5
+ import { a as v, p as _ } from "../chunks/configComponents.BHkQi547.mjs";
6
+ import { b as a } from "../chunks/core.DJEgjQW6.mjs";
7
+ import b from "element-ui/lib/transitions/collapse-transition";
8
+ import { n as y } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
+ const S = [
10
10
  "back",
11
11
  "create",
12
12
  "save",
@@ -26,27 +26,27 @@ const T = [
26
26
  "disabled",
27
27
  "reload",
28
28
  "slot"
29
- ], P = {
29
+ ], T = {
30
30
  name: "TableView",
31
31
  bus: {
32
32
  reloadTableView(t) {
33
33
  if (this._viewIds)
34
- if (i(t) || d(t)) {
34
+ if (o(t) || c(t)) {
35
35
  let e = t;
36
- i(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && (u.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
36
+ o(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && (h.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
37
37
  } else
38
- b.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
38
+ d.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
39
39
  },
40
40
  reloadTreeView(t) {
41
41
  if (this._viewIds)
42
- if (i(t) || d(t)) {
42
+ if (o(t) || c(t)) {
43
43
  let e = t;
44
- i(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && this.$refs.tree && (u.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
44
+ o(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && this.$refs.tree && (h.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
45
45
  } else
46
- b.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
46
+ d.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
47
47
  }
48
48
  },
49
- components: { FormItemConfigProvider: _, ElCollapseTransition: y },
49
+ components: { FormItemConfigProvider: g, ElCollapseTransition: b.default || b },
50
50
  props: {
51
51
  viewId: [String, Array],
52
52
  searchPanelAttrs: {
@@ -113,20 +113,20 @@ const T = [
113
113
  },
114
114
  computed: {
115
115
  buttonSlots() {
116
- return T.filter((t) => this.$scopedSlots[t]);
116
+ return S.filter((t) => this.$scopedSlots[t]);
117
117
  },
118
118
  toolbarProps() {
119
119
  var s, l;
120
- const t = {}, e = a({}, this.toolbarAttrs, t);
120
+ const t = {}, e = i({}, this.toolbarAttrs, t);
121
121
  let r = (e == null ? void 0 : e.buttons) || this.$parent.buttons;
122
- return r = r || [], e.buttons = r, e.buttons = f.privilege.processButtons(e.buttons), e.buttons = g(e.buttons), e.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), e;
122
+ return r = r || [], e.buttons = r, e.buttons = _(e.buttons), e.buttons = m(e.buttons), e.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), e;
123
123
  },
124
124
  treeProps() {
125
125
  const t = {
126
126
  treeProps: {
127
127
  children: "children",
128
128
  label: "label",
129
- isLeaf: (e) => p(e, "hasChildren") ? !e.hasChildren : p(e, "hasChild") ? !e.hasChild : !0
129
+ isLeaf: (e) => u(e, "hasChildren") ? !e.hasChildren : u(e, "hasChild") ? !e.hasChild : !0
130
130
  },
131
131
  show: !1,
132
132
  lazy: !0,
@@ -135,7 +135,7 @@ const T = [
135
135
  expandFirstNode: !0,
136
136
  defaultExpandAll: !1
137
137
  };
138
- return n(a({}, this.treeAttrs, t));
138
+ return a(i({}, this.treeAttrs, t));
139
139
  },
140
140
  tableProps() {
141
141
  const t = this.tableAttrs.api || this.$parent.getPage, e = {
@@ -144,14 +144,14 @@ const T = [
144
144
  highlightCurrentRow: !0,
145
145
  api: t
146
146
  };
147
- return n(a({}, this.tableAttrs, e));
147
+ return a(i({}, this.tableAttrs, e));
148
148
  },
149
149
  searchPanelProps() {
150
150
  const t = {
151
151
  width: 350,
152
152
  model: this.searchModel || {}
153
153
  };
154
- return n(a({}, this.searchPanelAttrs, t));
154
+ return a(i({}, this.searchPanelAttrs, t));
155
155
  },
156
156
  toolbarEventHandlers() {
157
157
  if (this.toolbarListeners) {
@@ -180,7 +180,7 @@ const T = [
180
180
  this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
181
181
  },
182
182
  methods: {
183
- toHyphenateKey: n,
183
+ toHyphenateKey: a,
184
184
  onTreeScroll() {
185
185
  this.treeScrollTop = this.$refs.treeScroller.scrollTop, this.treeScrollLeft = this.$refs.treeScroller.scrollLeft;
186
186
  },
@@ -194,7 +194,7 @@ const T = [
194
194
  this.$emit("reset"), this.$refs.form.resetFields(), await this.reloadTable();
195
195
  },
196
196
  openFrom(t) {
197
- this.$router.push(v(this.formPath, t));
197
+ this.$router.push(w(this.formPath, t));
198
198
  },
199
199
  rowDbClick(t) {
200
200
  var e;
@@ -210,7 +210,7 @@ const T = [
210
210
  async del() {
211
211
  var e;
212
212
  const t = this.deleteApi || this.$parent.del;
213
- if (!((e = this.toolbarListeners) != null && e.del) && w(t)) {
213
+ if (!((e = this.toolbarListeners) != null && e.del) && f(t)) {
214
214
  if (!this.selectedRows.length) {
215
215
  this.$message.warning(this.selectTips || "请选择要删除的记录!");
216
216
  return;
@@ -224,15 +224,14 @@ const T = [
224
224
  dangerouslyUseHTMLString: !0,
225
225
  closeOnClickModal: !1,
226
226
  beforeClose: async (r, s, l) => {
227
- var o, c;
228
227
  if (r === "confirm")
229
228
  try {
230
229
  s.confirmButtonLoading = !0, s.confirmButtonText = "删除...";
231
- const h = await t.call(
230
+ const n = await t.call(
232
231
  this,
233
- this.selectedRows.map((m) => m[this.rowKey])
232
+ this.selectedRows.map((p) => p[this.rowKey])
234
233
  );
235
- this.$message.success(h.data.msg || "删除成功"), this.reloadTableAndTree(), (c = (o = f.tableView) == null ? void 0 : o.reload) == null || c.call(o);
234
+ this.$message.success(n.data.msg || "删除成功"), this.reloadTableAndTree(), v();
236
235
  } catch {
237
236
  }
238
237
  l();
@@ -271,7 +270,7 @@ const T = [
271
270
  }
272
271
  }
273
272
  };
274
- var C = function() {
273
+ var P = function() {
275
274
  var e = this, r = e._self._c;
276
275
  return r("div", { class: ["table-view", { embed: e.embed, "has-tree": e.treeProps.show }] }, [r("div", { staticClass: "table-view-wrapper" }, [e.searchFormPosition === "top" ? [r("ElCollapseTransition", [e.toolbarProps.searchable ? r("div", { directives: [{ name: "show", rawName: "v-show", value: e.isSearchVisible, expression: "isSearchVisible" }], staticClass: "search-form-top" }, [r("ElForm", { ref: "form", attrs: { "label-position": "right", model: e.searchModel || e.searchPanelProps.model, size: "mini", "label-width": e.labelWidth }, nativeOn: { "!submit": function(s) {
277
276
  return s.preventDefault(), e.onSearchClick.apply(null, arguments);
@@ -313,15 +312,15 @@ var C = function() {
313
312
  } } }, [r("FormItemConfigProvider", { attrs: { block: "", "wrap-col": !1 } }, [r("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form", function() {
314
313
  return [r("p", [e._v("请添加搜索条件!")])];
315
314
  })], 2)], 1), r("ElFormItem", { attrs: { "label-width": "0" } }, [r("div", { staticClass: "slide-panel-actions" }, [r("ElButton", { attrs: { type: "primary", "native-type": "submit", size: "mini" } }, [e._v("开始搜索")]), r("ElButton", { attrs: { size: "mini" }, on: { click: e.onClearClick } }, [e._v("清除条件")])], 1)])], 1)], 1)]) : e._e()])] : e._e()], 2), e._t("default")], 2)]);
316
- }, $ = [], k = /* @__PURE__ */ S(
315
+ }, C = [], $ = /* @__PURE__ */ y(
316
+ T,
317
317
  P,
318
318
  C,
319
- $,
320
319
  !1,
321
320
  null,
322
321
  null
323
322
  );
324
- const E = k.exports;
323
+ const I = $.exports;
325
324
  export {
326
- E as default
325
+ I as default
327
326
  };
@@ -1,6 +1,6 @@
1
1
  import { toStringArray as a } from "@web-utils/core";
2
2
  import { merge as n } from "@web-utils/integrations/lodash";
3
- import { g as l } from "../chunks/configComponents.BDhlZU8F.mjs";
3
+ import { p as l } from "../chunks/configComponents.BHkQi547.mjs";
4
4
  import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
5
  const u = [
6
6
  "back",
@@ -52,7 +52,7 @@ const u = [
52
52
  var o, s;
53
53
  const r = {}, t = n({}, this.toolbarAttrs, r);
54
54
  let e = (t == null ? void 0 : t.buttons) || this.$parent.buttons;
55
- return e = e || [], t.buttons = e, t.buttons = l.privilege.processButtons(t.buttons), t.buttons = a(t.buttons), t.searchable = !!((s = (o = this.$scopedSlots)["search-form"]) != null && s.call(o)), t;
55
+ return e = e || [], t.buttons = e, t.buttons = l(t.buttons), t.buttons = a(t.buttons), t.searchable = !!((s = (o = this.$scopedSlots)["search-form"]) != null && s.call(o)), t;
56
56
  },
57
57
  toolbarEventHandlers() {
58
58
  if (this.toolbarListeners) {