@web-utils/form-ui 1.0.0-beta50 → 1.0.0-beta52

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 (124) hide show
  1. package/chunks/{eae6huQB.mjs → B1k8ydde.mjs} +2 -2
  2. package/chunks/{B1IPSTA6.mjs → B75qfA0z.mjs} +2 -2
  3. package/chunks/{pIzhYsBe.mjs → BAw6wxW1.mjs} +2 -2
  4. package/chunks/{hzaYr6Ud2.mjs → BQyL45PF2.mjs} +1 -1
  5. package/chunks/{B9gA65rt2.mjs → BSU2FqMP2.mjs} +2 -2
  6. package/chunks/{Cln3RBAD.mjs → BWh6u1O0.mjs} +1 -1
  7. package/chunks/{DA7oGHSX.mjs → BXVB-H8_.mjs} +2 -2
  8. package/chunks/B_RAcbs_.mjs +108 -0
  9. package/chunks/{BtcjAHE6.mjs → BshE3RnA.mjs} +2 -2
  10. package/chunks/{CuAoMR3n.mjs → C6hLXCPk.mjs} +5 -16
  11. package/chunks/{vXQf89tS.mjs → C7G-cAoI.mjs} +1 -1
  12. package/chunks/{CAd1zK9Q.mjs → CBFbSsTJ.mjs} +2 -2
  13. package/chunks/CGDnQr1c.mjs +67 -0
  14. package/chunks/CGHcOyNC2.mjs +87 -0
  15. package/chunks/{ByHz4mmh.mjs → CVKPpQdS.mjs} +2 -2
  16. package/chunks/{BUGCiCnl.mjs → CXsoKP22.mjs} +4 -1
  17. package/chunks/CjRZ71IY2.mjs +512 -0
  18. package/chunks/CkjtCuMs.mjs +416 -0
  19. package/chunks/{D0Zg2CV0.mjs → CtHmTtVP.mjs} +3 -3
  20. package/chunks/{V2p-PCpL.mjs → CzHaJsnD.mjs} +3 -3
  21. package/chunks/{Dkd5BC98.mjs → D2MB3CnR.mjs} +2 -6
  22. package/chunks/{D_qiRmiE.mjs → D3mFJzGr.mjs} +32 -26
  23. package/chunks/{BbSPWDDZ.mjs → DLgFBI_X.mjs} +2 -2
  24. package/chunks/{BfxDxIg0.mjs → DVbw6xIr.mjs} +2 -2
  25. package/chunks/{kflKDW4T2.mjs → DZJ-ShZA2.mjs} +38 -39
  26. package/chunks/{CqoVAnxC2.mjs → DcFllKOf2.mjs} +2 -6
  27. package/chunks/DhVmHzB7.mjs +653 -0
  28. package/chunks/{6yfBZFOB.mjs → DitpKWMd.mjs} +4 -3
  29. package/chunks/{bFbPPcdq.mjs → DkXlFWjs.mjs} +2 -2
  30. package/chunks/{CxTg0r4n.mjs → Dt3lfDnL.mjs} +1 -1
  31. package/chunks/{BA2KEptL.mjs → GMFHxPJq.mjs} +2 -6
  32. package/chunks/{BqWvBF14.mjs → JKFepPeL.mjs} +2 -2
  33. package/chunks/{CJdkjadi.mjs → KuAMIZnG.mjs} +1 -1
  34. package/chunks/{BBERmTup.mjs → XoImEoke.mjs} +19 -4
  35. package/chunks/{wXeqV-_7.mjs → eBESsR-G.mjs} +2 -2
  36. package/chunks/{CabldOLo.mjs → v-O82KSn.mjs} +4 -3
  37. package/confirm-button/index.d.ts +9 -2
  38. package/confirm-button/index.mjs +1 -1
  39. package/confirmable/index.d.ts +9 -2
  40. package/confirmable/index.mjs +1 -1
  41. package/constants/index.d.ts +1 -0
  42. package/constants/index.mjs +2 -2
  43. package/editable-tree/index.mjs +1 -1
  44. package/element-dialog/index.d.ts +2 -2
  45. package/form-button/index.d.ts +9 -2
  46. package/form-cascader/index.d.ts +16 -10
  47. package/form-cascader/index.mjs +1 -1
  48. package/form-checkbox/index.d.ts +8 -2
  49. package/form-checkbox/index.mjs +1 -1
  50. package/form-checkbox-group/index.d.ts +8 -2
  51. package/form-checkbox-group/index.mjs +1 -1
  52. package/form-date-picker/index.d.ts +8 -2
  53. package/form-date-picker/index.mjs +1 -1
  54. package/form-image/index.d.ts +8 -2
  55. package/form-image/index.mjs +1 -1
  56. package/form-input/index.d.ts +8 -2
  57. package/form-input/index.mjs +1 -1
  58. package/form-input-cron-expression/index.d.ts +8 -2
  59. package/form-input-cron-expression/index.mjs +1 -1
  60. package/form-input-email/index.d.ts +8 -2
  61. package/form-input-email/index.mjs +1 -1
  62. package/form-input-id-card/index.d.ts +8 -2
  63. package/form-input-id-card/index.mjs +1 -1
  64. package/form-input-number/index.d.ts +8 -2
  65. package/form-input-number/index.mjs +1 -1
  66. package/form-input-phone-number/index.d.ts +8 -2
  67. package/form-input-phone-number/index.mjs +1 -1
  68. package/form-input-tag/index.d.ts +8 -2
  69. package/form-input-tag/index.mjs +1 -1
  70. package/form-input-time/index.d.ts +16 -10
  71. package/form-input-time/index.mjs +1 -1
  72. package/form-item-group/index.mjs +1 -1
  73. package/form-item-x/index.d.ts +8 -2
  74. package/form-item-x/index.mjs +1 -1
  75. package/form-radio-group/index.d.ts +8 -2
  76. package/form-radio-group/index.mjs +1 -1
  77. package/form-rate/index.d.ts +8 -2
  78. package/form-rate/index.mjs +1 -1
  79. package/form-select/index.d.ts +8 -2
  80. package/form-select/index.mjs +1 -1
  81. package/form-slider/index.d.ts +8 -2
  82. package/form-slider/index.mjs +1 -1
  83. package/form-switch/index.d.ts +8 -2
  84. package/form-switch/index.mjs +1 -1
  85. package/form-table/index.d.ts +43 -25
  86. package/form-table/index.mjs +1 -1
  87. package/form-table-plus/index.d.ts +8 -8
  88. package/form-table-plus/index.mjs +1 -1
  89. package/form-text/index.d.ts +8 -2
  90. package/form-text/index.mjs +1 -1
  91. package/form-textarea/index.d.ts +12 -12
  92. package/form-textarea/index.mjs +1 -1
  93. package/form-time-select/index.d.ts +16 -10
  94. package/form-time-select/index.mjs +1 -1
  95. package/helper/sub-table-plus.d.ts +38 -0
  96. package/helper/sub-table-plus.mjs +4 -0
  97. package/index.css +1 -1
  98. package/index.mjs +33 -33
  99. package/package.json +1 -1
  100. package/pageable-table/index.d.ts +13 -11
  101. package/pageable-table/index.mjs +1 -1
  102. package/pageable-table/style.css +1 -1
  103. package/sub-table/index.d.ts +36 -30
  104. package/sub-table/index.mjs +2 -472
  105. package/sub-table-plus/index.d.ts +15 -3
  106. package/sub-table-plus/index.mjs +1 -1
  107. package/table-column/index.d.ts +8 -5
  108. package/table-column/index.mjs +1 -1
  109. package/table-column-def/index.d.ts +14 -12
  110. package/table-column-def/index.mjs +1 -1
  111. package/table-view/index.d.ts +6 -1
  112. package/table-view/index.mjs +121 -110
  113. package/toolbar/index.mjs +1 -1
  114. package/toolbar-button/index.d.ts +2 -2
  115. package/toolbar-button/index.mjs +1 -1
  116. package/vue-cron/index.mjs +1 -1
  117. package/web-types.json +1 -1
  118. package/x-input-tag/index.mjs +1 -1
  119. package/chunks/B-zqRAXo.mjs +0 -69
  120. package/chunks/BsZgAJX_2.mjs +0 -81
  121. package/chunks/cqIZWDHo.mjs +0 -614
  122. package/chunks/gCeDFHo1.mjs +0 -32
  123. package/chunks/hlha6Bhc.mjs +0 -107
  124. package/chunks/zwXzk9ff2.mjs +0 -568
@@ -1,5 +1,6 @@
1
- import { tableViewContextKey } from '../../constants';
1
+ import { tableViewContextKey, cellClickHandlerContextKey } from '../../constants';
2
2
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
3
+ data: ArrayConstructor;
3
4
  viewId: (StringConstructor | ArrayConstructor)[];
4
5
  searchPanelAttrs: {
5
6
  type: ObjectConstructor;
@@ -85,6 +86,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
85
86
  exp(): void;
86
87
  getTableColumns(): any;
87
88
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "reset"[], "reset", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
89
+ data: ArrayConstructor;
88
90
  viewId: (StringConstructor | ArrayConstructor)[];
89
91
  searchPanelAttrs: {
90
92
  type: ObjectConstructor;
@@ -156,6 +158,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
156
158
  showToolbar: boolean;
157
159
  }, {}, {}, {}, string, () => {
158
160
  [tableViewContextKey]: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
161
+ data: ArrayConstructor;
159
162
  viewId: (StringConstructor | ArrayConstructor)[];
160
163
  searchPanelAttrs: {
161
164
  type: ObjectConstructor;
@@ -250,6 +253,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
250
253
  M: {};
251
254
  Defaults: {};
252
255
  }, Readonly<globalThis.ExtractPropTypes<{
256
+ data: ArrayConstructor;
253
257
  viewId: (StringConstructor | ArrayConstructor)[];
254
258
  searchPanelAttrs: {
255
259
  type: ObjectConstructor;
@@ -337,5 +341,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
337
341
  exp(): void;
338
342
  getTableColumns(): any;
339
343
  }, {}>;
344
+ [cellClickHandlerContextKey]: (row: any) => void;
340
345
  }, true, {}, any>;
341
346
  export default _default;
@@ -1,19 +1,19 @@
1
1
  import { i as e, l as t } from "../chunks/DcTVYqeJ.mjs";
2
2
  import { processButtons as n, reloadTable as r } from "../api/index.mjs";
3
- import { tableViewContextKey as i } from "../constants/index.mjs";
4
- import { t as a } from "../chunks/CxTg0r4n.mjs";
5
- import { t as o } from "../chunks/Cln3RBAD.mjs";
6
- import { t as s } from "../chunks/CkOD-_VV.mjs";
7
- import { a as c } from "../chunks/D_qiRmiE.mjs";
8
- import l from "../form-item-config-provider/index.mjs";
9
- import { t as u } from "../chunks/cqIZWDHo.mjs";
10
- import { t as d } from "../chunks/hzaYr6Ud2.mjs";
11
- import { hasOwn as f, isArray as p, isFunction as m, isString as h, toStringArray as g, trace as _, warning as v } from "@web-utils/core";
12
- import { Transition as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as w, createTextVNode as T, createVNode as E, mergeProps as D, normalizeClass as O, normalizeStyle as k, openBlock as A, renderList as j, renderSlot as M, toDisplayString as N, toHandlers as P, vShow as F, withCtx as I, withDirectives as L, withModifiers as R } from "vue";
13
- import { merge as z } from "@web-utils/integrations/lodash";
14
- import { ElCollapseTransition as B, ElForm as V, ElFormItem as H, ElRow as U } from "element-plus/es";
3
+ import { cellClickHandlerContextKey as i, tableViewContextKey as a } from "../constants/index.mjs";
4
+ import { t as o } from "../chunks/Dt3lfDnL.mjs";
5
+ import { t as s } from "../chunks/BWh6u1O0.mjs";
6
+ import { t as c } from "../chunks/CkOD-_VV.mjs";
7
+ import { a as l } from "../chunks/D3mFJzGr.mjs";
8
+ import u from "../form-item-config-provider/index.mjs";
9
+ import { t as d } from "../chunks/DhVmHzB7.mjs";
10
+ import { t as f } from "../chunks/BQyL45PF2.mjs";
11
+ import { hasOwn as p, isArray as m, isFunction as h, isString as g, toStringArray as _, trace as v, warning as y } from "@web-utils/core";
12
+ import { Transition as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, mergeProps as O, normalizeClass as k, normalizeStyle as A, openBlock as j, renderList as M, renderSlot as N, toDisplayString as P, toHandlers as F, vShow as I, withCtx as L, withDirectives as R, withModifiers as z } from "vue";
13
+ import { merge as B } from "@web-utils/integrations/lodash";
14
+ import { ElCollapseTransition as V, ElForm as H, ElFormItem as U, ElRow as W } from "element-plus/es";
15
15
  //#region src/components/form/TableView.vue
16
- var W = [
16
+ var G = [
17
17
  "back",
18
18
  "create",
19
19
  "save",
@@ -33,26 +33,30 @@ var W = [
33
33
  "disabled",
34
34
  "reload",
35
35
  "slot"
36
- ], G = {
36
+ ], K = {
37
37
  name: "TableView",
38
38
  bus: {
39
39
  reloadTableView(e) {
40
- if (this._viewIds) if (h(e) || p(e)) {
40
+ if (this._viewIds) if (g(e) || m(e)) {
41
41
  let t = e;
42
- h(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && (_.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
43
- } else v.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
42
+ g(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && (v.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
43
+ } else y.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
44
44
  },
45
45
  reloadTreeView(e) {
46
- if (this._viewIds) if (h(e) || p(e)) {
46
+ if (this._viewIds) if (g(e) || m(e)) {
47
47
  let t = e;
48
- h(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && this.$refs.tree && (_.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
49
- } else v.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
48
+ g(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && this.$refs.tree && (v.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
49
+ } else y.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
50
50
  }
51
51
  },
52
52
  provide() {
53
- return { [i]: this };
53
+ return {
54
+ [a]: this,
55
+ [i]: this.rowDbClick
56
+ };
54
57
  },
55
58
  props: {
59
+ data: Array,
56
60
  viewId: [String, Array],
57
61
  searchPanelAttrs: {
58
62
  type: Object,
@@ -115,19 +119,19 @@ var W = [
115
119
  },
116
120
  computed: {
117
121
  buttonSlots() {
118
- return W.filter((e) => this.$slots[e]);
122
+ return G.filter((e) => this.$slots[e]);
119
123
  },
120
124
  toolbarProps() {
121
125
  var e, t;
122
- let r = z({}, this.toolbarAttrs, {}), i = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
123
- return i = i || [], r.buttons = i, r.buttons = n(r.buttons), r.buttons = g(r.buttons), r.searchable = !!((e = (t = this.$slots)["search-form"]) != null && e.call(t)), r;
126
+ let r = B({}, this.toolbarAttrs, {}), i = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
127
+ return i = i || [], r.buttons = i, r.buttons = n(r.buttons), r.buttons = _(r.buttons), r.searchable = !!((e = (t = this.$slots)["search-form"]) != null && e.call(t)), r;
124
128
  },
125
129
  treeProps() {
126
- return t(z({}, this.treeAttrs, {
130
+ return t(B({}, this.treeAttrs, {
127
131
  treeProps: {
128
132
  children: "children",
129
133
  label: "label",
130
- isLeaf: (e) => f(e, "hasChildren") ? !e.hasChildren : f(e, "hasChild") ? !e.hasChild : !0
134
+ isLeaf: (e) => p(e, "hasChildren") ? !e.hasChildren : p(e, "hasChild") ? !e.hasChild : !0
131
135
  },
132
136
  show: !1,
133
137
  lazy: !0,
@@ -144,14 +148,14 @@ var W = [
144
148
  highlightCurrentRow: !0,
145
149
  api: e
146
150
  };
147
- return t(z({}, this.tableAttrs, n));
151
+ return t(B({}, this.tableAttrs, n));
148
152
  },
149
153
  searchPanelProps() {
150
154
  let e = {
151
155
  width: 350,
152
156
  model: this.searchModel || {}
153
157
  };
154
- return t(z({}, this.searchPanelAttrs, e));
158
+ return t(B({}, this.searchPanelAttrs, e));
155
159
  },
156
160
  toolbarEventHandlers() {
157
161
  if (this.toolbarListeners) {
@@ -195,8 +199,8 @@ var W = [
195
199
  this.$router.push(e(this.formPath, t));
196
200
  },
197
201
  rowDbClick(e) {
198
- var t;
199
- !((t = this.tableListeners) != null && t["row-dblclick"]) && this.formPath && this.openFrom(e);
202
+ var t, n;
203
+ !((t = this.tableListeners) != null && t["row-dblclick"]) && !((n = this.tableListeners) != null && n.rowDblclick) && this.formPath && this.openFrom(e);
200
204
  },
201
205
  onSelectionChange(e) {
202
206
  this.selectedRows = e;
@@ -208,7 +212,7 @@ var W = [
208
212
  async del() {
209
213
  var e;
210
214
  let t = this.deleteApi || this.$parent.del;
211
- if (!((e = this.toolbarListeners) != null && e.del) && m(t)) {
215
+ if (!((e = this.toolbarListeners) != null && e.del) && h(t)) {
212
216
  if (!this.selectedRows.length) {
213
217
  this.$message.warning(this.selectTips || "请选择要删除的记录!");
214
218
  return;
@@ -258,43 +262,43 @@ var W = [
258
262
  return this.$refs.table.tableColumns;
259
263
  }
260
264
  }
261
- }, K = { class: "table-view-wrapper" }, q = {
265
+ }, q = { class: "table-view-wrapper" }, J = {
262
266
  key: 0,
263
267
  class: "search-form-top"
264
- }, J = { class: "table-view-content-wrapper" }, Y = { class: "table-view-content" }, X = { class: "table-view-table" }, Z = { class: "slide-panel-content" }, Q = { class: "slide-panel-actions" };
265
- function $(e, t, n, r, i, s) {
266
- let f = a, p = c, m = U, h = l, g = V, _ = B, v = d, z = o, W = u, G = H;
267
- return A(), S("div", { class: O(["table-view", {
268
+ }, Y = { class: "table-view-content-wrapper" }, X = { class: "table-view-content" }, Z = { class: "table-view-table" }, Q = { class: "slide-panel-content" }, $ = { class: "slide-panel-actions" };
269
+ function ee(e, t, n, r, i, a) {
270
+ let c = o, p = l, m = W, h = u, g = H, _ = V, v = f, y = s, B = d, G = U;
271
+ return j(), C("div", { class: k(["table-view", {
268
272
  embed: n.embed,
269
- "has-tree": s.treeProps.show
270
- }]) }, [C("div", K, [
271
- x("搜索条件"),
272
- n.searchFormPosition === "top" ? (A(), b(_, { key: 0 }, {
273
- default: I(() => [s.toolbarProps.searchable ? L((A(), S("div", q, [E(g, {
273
+ "has-tree": a.treeProps.show
274
+ }]) }, [w("div", q, [
275
+ S("搜索条件"),
276
+ n.searchFormPosition === "top" ? (j(), x(_, { key: 0 }, {
277
+ default: L(() => [a.toolbarProps.searchable ? R((j(), C("div", J, [D(g, {
274
278
  ref: "form",
275
279
  "label-position": "right",
276
- model: n.searchModel || s.searchPanelProps.model,
280
+ model: n.searchModel || a.searchPanelProps.model,
277
281
  "label-width": n.labelWidth,
278
- onSubmitCapture: R(s.onSearchClick, ["prevent"])
282
+ onSubmitCapture: z(a.onSearchClick, ["prevent"])
279
283
  }, {
280
- default: I(() => [E(h, { reactive: "" }, {
281
- default: I(() => [E(m, { gutter: 0 }, {
282
- default: I(() => [M(e.$slots, "search-form", {}, () => [t[3] || (t[3] = C("p", null, "请添加搜索条件!", -1))]), E(p, {
284
+ default: L(() => [D(h, { reactive: "" }, {
285
+ default: L(() => [D(m, { gutter: 0 }, {
286
+ default: L(() => [N(e.$slots, "search-form", {}, () => [t[3] || (t[3] = w("p", null, "请添加搜索条件!", -1))]), D(p, {
283
287
  class: "search-actions",
284
288
  "hide-label": "",
285
289
  "fixed-span": 24
286
290
  }, {
287
- default: I(() => [E(f, {
291
+ default: L(() => [D(c, {
288
292
  type: "primary",
289
293
  "native-type": "submit"
290
294
  }, {
291
- default: I(() => [...t[4] || (t[4] = [T("开始搜索", -1)])]),
295
+ default: L(() => [...t[4] || (t[4] = [E("开始搜索", -1)])]),
292
296
  _: 1
293
- }), E(f, {
297
+ }), D(c, {
294
298
  style: { "margin-left": "10px" },
295
- onClick: s.onClearClick
299
+ onClick: a.onClearClick
296
300
  }, {
297
- default: I(() => [...t[5] || (t[5] = [T("清除条件", -1)])]),
301
+ default: L(() => [...t[5] || (t[5] = [E("清除条件", -1)])]),
298
302
  _: 1
299
303
  }, 8, ["onClick"])]),
300
304
  _: 1
@@ -308,48 +312,48 @@ function $(e, t, n, r, i, s) {
308
312
  "model",
309
313
  "label-width",
310
314
  "onSubmitCapture"
311
- ])], 512)), [[F, i.isSearchVisible]]) : x("v-if", !0)]),
315
+ ])], 512)), [[I, i.isSearchVisible]]) : S("v-if", !0)]),
312
316
  _: 3
313
- })) : x("v-if", !0),
314
- x("顶部工具条"),
315
- n.showToolbar ? (A(), b(v, D({ key: 1 }, s.toolbarProps, {
317
+ })) : S("v-if", !0),
318
+ S("顶部工具条"),
319
+ n.showToolbar ? (j(), x(v, O({ key: 1 }, a.toolbarProps, {
316
320
  refreshable: "",
317
- onSearch: s.toggleSearch,
321
+ onSearch: a.toggleSearch,
318
322
  onSettings: t[0] || (t[0] = () => e.$refs.table.toggleSettings()),
319
- onDel: s.del,
320
- onCreate: s.create,
321
- onReload: s.reloadTableAndTree,
322
- onExp: s.exp,
323
+ onDel: a.del,
324
+ onCreate: a.create,
325
+ onReload: a.reloadTableAndTree,
326
+ onExp: a.exp,
323
327
  onImp: t[1] || (t[1] = (e) => i.importDialogVisible = !0)
324
- }, P(s.toolbarEventHandlers)), w({ _: 2 }, [
328
+ }, F(a.toolbarEventHandlers)), T({ _: 2 }, [
325
329
  e.$slots["toolbar-button"] ? {
326
330
  name: "default",
327
- fn: I(() => [M(e.$slots, "toolbar-button", { selectedRows: i.selectedRows })]),
331
+ fn: L(() => [N(e.$slots, "toolbar-button", { selectedRows: i.selectedRows })]),
328
332
  key: "0"
329
333
  } : void 0,
330
334
  e.$slots["toolbar-left"] ? {
331
335
  name: "toolbar-left",
332
- fn: I(() => [M(e.$slots, "toolbar-left", { selectedRows: i.selectedRows })]),
336
+ fn: L(() => [N(e.$slots, "toolbar-left", { selectedRows: i.selectedRows })]),
333
337
  key: "1"
334
338
  } : void 0,
335
339
  e.$slots["toolbar-right"] ? {
336
340
  name: "toolbar-right",
337
- fn: I(() => [M(e.$slots, "toolbar-right", {
338
- del: s.del,
339
- create: s.create,
340
- reload: s.reloadTableAndTree,
341
+ fn: L(() => [N(e.$slots, "toolbar-right", {
342
+ del: a.del,
343
+ create: a.create,
344
+ reload: a.reloadTableAndTree,
341
345
  selectedRows: i.selectedRows
342
346
  })]),
343
347
  key: "2"
344
348
  } : void 0,
345
349
  e.$slots["toolbar-right-button"] ? {
346
350
  name: "toolbar-right-button",
347
- fn: I(() => [M(e.$slots, "toolbar-right-button")]),
351
+ fn: L(() => [N(e.$slots, "toolbar-right-button")]),
348
352
  key: "3"
349
353
  } : void 0,
350
- j(s.buttonSlots, (t) => ({
354
+ M(a.buttonSlots, (t) => ({
351
355
  name: t,
352
- fn: I(() => [M(e.$slots, t, { selectedRows: i.selectedRows })])
356
+ fn: L(() => [N(e.$slots, t, { selectedRows: i.selectedRows })])
353
357
  }))
354
358
  ]), 1040, [
355
359
  "onSearch",
@@ -357,27 +361,27 @@ function $(e, t, n, r, i, s) {
357
361
  "onCreate",
358
362
  "onReload",
359
363
  "onExp"
360
- ])) : x("v-if", !0),
361
- C("div", J, [
362
- C("div", Y, [
363
- x("侧栏"),
364
- s.treeProps.show ? (A(), S("div", {
364
+ ])) : S("v-if", !0),
365
+ w("div", Y, [
366
+ w("div", X, [
367
+ S("侧栏"),
368
+ a.treeProps.show ? (j(), C("div", {
365
369
  key: 0,
366
370
  ref: "treeScroller",
367
371
  class: "table-view-sidebar",
368
- onScroll: t[2] || (t[2] = (...e) => s.onTreeScroll && s.onTreeScroll(...e))
369
- }, [x("<div style=\"font-size: 16px\">视图导航</div>"), E(z, D({ ref: "tree" }, s.treeProps, { readonly: "" }, P(s.toHyphenateKey(n.treeListeners))), {
370
- default: I(({ node: t, data: n }) => [M(e.$slots, "tree-node", {
372
+ onScroll: t[2] || (t[2] = (...e) => a.onTreeScroll && a.onTreeScroll(...e))
373
+ }, [S("<div style=\"font-size: 16px\">视图导航</div>"), D(y, O({ ref: "tree" }, a.treeProps, { readonly: "" }, F(a.toHyphenateKey(n.treeListeners))), {
374
+ default: L(({ node: t, data: n }) => [N(e.$slots, "tree-node", {
371
375
  node: t,
372
376
  data: n
373
- }, () => [C("span", null, [C("i", { class: O([t.childNodes.length > 0 ? t.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets", "node-icon"]) }, null, 2), M(e.$slots, "tree-label", {
377
+ }, () => [w("span", null, [w("i", { class: k([t.childNodes.length > 0 ? t.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets", "node-icon"]) }, null, 2), N(e.$slots, "tree-label", {
374
378
  node: t,
375
379
  data: n
376
- }, () => [T(N(t.label), 1)])])])]),
380
+ }, () => [E(P(t.label), 1)])])])]),
377
381
  _: 3
378
- }, 16)], 544)) : x("v-if", !0),
379
- x("表格"),
380
- C("div", X, [E(W, D({
382
+ }, 16)], 544)) : S("v-if", !0),
383
+ S("表格"),
384
+ w("div", Z, [D(B, O({
381
385
  ref: "table",
382
386
  border: n.border,
383
387
  class: [{
@@ -386,56 +390,63 @@ function $(e, t, n, r, i, s) {
386
390
  "border-left": n.borderLeft || n.treeAttrs && n.treeAttrs.show,
387
391
  "border-right": n.borderRight
388
392
  }]
389
- }, s.tableProps, P(s.toHyphenateKey(n.tableListeners)), {
390
- onRowDblclick: s.rowDbClick,
391
- onSelectionChange: s.onSelectionChange
392
- }), w({
393
- default: I(() => [M(e.$slots, "columns")]),
393
+ }, a.tableProps, {
394
+ "row-key": n.rowKey,
395
+ "row-db-click": a.rowDbClick,
396
+ data: n.data
397
+ }, F(a.toHyphenateKey(n.tableListeners)), {
398
+ onRowDblclick: a.rowDbClick,
399
+ onSelectionChange: a.onSelectionChange
400
+ }), T({
401
+ default: L(() => [N(e.$slots, "columns")]),
394
402
  _: 2
395
- }, [j(s.tableScopeSlotNames, (t) => ({
403
+ }, [M(a.tableScopeSlotNames, (t) => ({
396
404
  name: t,
397
- fn: I(({ row: n }) => [M(e.$slots, t, { row: n })])
405
+ fn: L(({ row: n }) => [N(e.$slots, t, { row: n })])
398
406
  }))]), 1040, [
399
407
  "border",
400
408
  "class",
409
+ "row-key",
410
+ "row-db-click",
411
+ "data",
401
412
  "onRowDblclick",
402
413
  "onSelectionChange"
403
414
  ])])
404
415
  ]),
405
- x("搜索条件"),
406
- n.searchFormPosition === "right" ? (A(), b(y, {
416
+ S("搜索条件"),
417
+ n.searchFormPosition === "right" ? (j(), x(b, {
407
418
  key: 0,
408
419
  name: "slide"
409
420
  }, {
410
- default: I(() => [s.toolbarProps.searchable ? L((A(), S("div", {
421
+ default: L(() => [a.toolbarProps.searchable ? R((j(), C("div", {
411
422
  key: 0,
412
- style: k({ width: `${s.searchPanelProps.width}px` }),
423
+ style: A({ width: `${a.searchPanelProps.width}px` }),
413
424
  class: "slide-panel"
414
- }, [x("<div class=\"slide-panel-line\">\n <div class=\"slide-panel-line-indicator\"></div>\n </div>"), C("div", Z, [E(g, {
425
+ }, [S("<div class=\"slide-panel-line\">\n <div class=\"slide-panel-line-indicator\"></div>\n </div>"), w("div", Q, [D(g, {
415
426
  ref: "form",
416
427
  "label-position": "right",
417
- model: n.searchModel || s.searchPanelProps.model,
428
+ model: n.searchModel || a.searchPanelProps.model,
418
429
  "label-width": n.labelWidth,
419
- onSubmitCapture: R(s.onSearchClick, ["prevent"])
430
+ onSubmitCapture: z(a.onSearchClick, ["prevent"])
420
431
  }, {
421
- default: I(() => [E(h, {
432
+ default: L(() => [D(h, {
422
433
  block: "",
423
434
  "wrap-col": !1
424
435
  }, {
425
- default: I(() => [E(m, { gutter: 0 }, {
426
- default: I(() => [M(e.$slots, "search-form", {}, () => [t[6] || (t[6] = C("p", null, "请添加搜索条件!", -1))])]),
436
+ default: L(() => [D(m, { gutter: 0 }, {
437
+ default: L(() => [N(e.$slots, "search-form", {}, () => [t[6] || (t[6] = w("p", null, "请添加搜索条件!", -1))])]),
427
438
  _: 3
428
439
  })]),
429
440
  _: 3
430
- }), E(G, { "label-width": "0" }, {
431
- default: I(() => [C("div", Q, [E(f, {
441
+ }), D(G, { "label-width": "0" }, {
442
+ default: L(() => [w("div", $, [D(c, {
432
443
  type: "primary",
433
444
  "native-type": "submit"
434
445
  }, {
435
- default: I(() => [...t[7] || (t[7] = [T("开始搜索", -1)])]),
446
+ default: L(() => [...t[7] || (t[7] = [E("开始搜索", -1)])]),
436
447
  _: 1
437
- }), E(f, { onClick: s.onClearClick }, {
438
- default: I(() => [...t[8] || (t[8] = [T("清除条件", -1)])]),
448
+ }), D(c, { onClick: a.onClearClick }, {
449
+ default: L(() => [...t[8] || (t[8] = [E("清除条件", -1)])]),
439
450
  _: 1
440
451
  }, 8, ["onClick"])])]),
441
452
  _: 1
@@ -445,13 +456,13 @@ function $(e, t, n, r, i, s) {
445
456
  "model",
446
457
  "label-width",
447
458
  "onSubmitCapture"
448
- ])])], 4)), [[F, i.isSearchVisible]]) : x("v-if", !0)]),
459
+ ])])], 4)), [[I, i.isSearchVisible]]) : S("v-if", !0)]),
449
460
  _: 3
450
- })) : x("v-if", !0)
461
+ })) : S("v-if", !0)
451
462
  ]),
452
- M(e.$slots, "default")
463
+ N(e.$slots, "default")
453
464
  ])], 2);
454
465
  }
455
- var ee = /* @__PURE__ */ s(G, [["render", $]]);
466
+ var te = /* @__PURE__ */ c(K, [["render", ee]]);
456
467
  //#endregion
457
- export { ee as default };
468
+ export { te as default };
package/toolbar/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/hzaYr6Ud2.mjs";
1
+ import { t as e } from "../chunks/BQyL45PF2.mjs";
2
2
  export { e as default };
@@ -42,7 +42,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
42
42
  loadingIcon: (StringConstructor | ObjectConstructor)[];
43
43
  disabled: {
44
44
  type: BooleanConstructor;
45
- default: boolean;
45
+ default: undefined;
46
46
  };
47
47
  icon: (StringConstructor | ObjectConstructor)[];
48
48
  autofocus: {
@@ -125,7 +125,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
125
125
  loadingIcon: (StringConstructor | ObjectConstructor)[];
126
126
  disabled: {
127
127
  type: BooleanConstructor;
128
- default: boolean;
128
+ default: undefined;
129
129
  };
130
130
  icon: (StringConstructor | ObjectConstructor)[];
131
131
  autofocus: {
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CxTg0r4n.mjs";
1
+ import { t as e } from "../chunks/Dt3lfDnL.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/vXQf89tS.mjs";
1
+ import { t as e } from "../chunks/C7G-cAoI.mjs";
2
2
  export { e as default };