@web-utils/form-ui 1.0.0-beta47 → 1.0.0-beta48

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 (118) hide show
  1. package/chunks/{C9dGL28n.mjs → 6yfBZFOB.mjs} +2 -2
  2. package/chunks/B-zqRAXo.mjs +69 -0
  3. package/chunks/{CXvGoZKJ.mjs → B1IPSTA6.mjs} +2 -2
  4. package/chunks/B3pkJUCx2.mjs +146 -0
  5. package/chunks/{Ct5bDJ50.mjs → B9gA65rt2.mjs} +3 -3
  6. package/chunks/{C1AgOUe_.mjs → BA2KEptL.mjs} +2 -2
  7. package/chunks/BRRcYOud.mjs +613 -0
  8. package/chunks/{Bm5eiSmT.mjs → BUGCiCnl.mjs} +11 -7
  9. package/chunks/{DiJyms_r.mjs → BbSPWDDZ.mjs} +2 -2
  10. package/chunks/{BH_JJ8Xh.mjs → BfxDxIg0.mjs} +2 -2
  11. package/chunks/{C3Uo82-I.mjs → BqWvBF14.mjs} +3 -3
  12. package/chunks/BsZgAJX_2.mjs +81 -0
  13. package/chunks/{DXYgAmil.mjs → BtcjAHE6.mjs} +2 -2
  14. package/chunks/{DhtHh0jk.mjs → ByHz4mmh.mjs} +2 -2
  15. package/chunks/C-D7jeLT2.mjs +568 -0
  16. package/chunks/{BufIRDd0.mjs → C2zgFLYO.mjs} +1 -1
  17. package/chunks/{XCGWTz41.mjs → CAd1zK9Q.mjs} +2 -2
  18. package/chunks/{CSyJ-vEx.mjs → CJdkjadi.mjs} +1 -1
  19. package/chunks/{CFOGMFgo.mjs → CabldOLo.mjs} +17 -10
  20. package/chunks/{Bd1UFJic.mjs → Cln3RBAD.mjs} +21 -21
  21. package/chunks/{CTKmEf2M.mjs → CqoVAnxC2.mjs} +2 -2
  22. package/chunks/{DF9fJMQS.mjs → CuAoMR3n.mjs} +3 -3
  23. package/chunks/{XqRTtFfp.mjs → CxTg0r4n.mjs} +1 -1
  24. package/chunks/{pdwFQpA8.mjs → D0Zg2CV0.mjs} +3 -3
  25. package/chunks/{BsCS7SB5.mjs → DA7oGHSX.mjs} +2 -2
  26. package/chunks/DOZRzqlo.mjs +37 -0
  27. package/chunks/{Cj59E77g.mjs → D_qiRmiE.mjs} +5 -5
  28. package/chunks/{cmuHpsX6.mjs → DcTVYqeJ.mjs} +29 -25
  29. package/chunks/{B3ajWLh3.mjs → Dkd5BC98.mjs} +2 -2
  30. package/chunks/{ChmDDqoZ2.mjs → GI8krYU82.mjs} +1 -1
  31. package/chunks/{D8UVq1t1.mjs → V2p-PCpL.mjs} +6 -6
  32. package/chunks/{taicx2sd.mjs → bFbPPcdq.mjs} +2 -2
  33. package/chunks/{TvNHGVAP.mjs → eae6huQB.mjs} +2 -2
  34. package/chunks/gCeDFHo1.mjs +32 -0
  35. package/chunks/{BvA0aMEE.mjs → gLPy4Sus.mjs} +1 -1
  36. package/chunks/{o6VhYAN52.mjs → hzaYr6Ud2.mjs} +2 -2
  37. package/chunks/{CqTcEefA.mjs → pIzhYsBe.mjs} +2 -2
  38. package/chunks/{CWfUPCtS.mjs → vXQf89tS.mjs} +274 -273
  39. package/chunks/{BWBHzD5N.mjs → wXeqV-_7.mjs} +2 -2
  40. package/confirm-button/index.d.ts +2 -0
  41. package/confirm-button/index.mjs +1 -1
  42. package/confirmable/index.d.ts +2 -0
  43. package/confirmable/index.mjs +1 -1
  44. package/dict-render/index.d.ts +28 -0
  45. package/dict-render/index.mjs +2 -0
  46. package/editable-tree/index.mjs +1 -1
  47. package/element-dialog/index.d.ts +2 -2
  48. package/element-dialog/index.mjs +1 -1
  49. package/{resize-observer → element-resize-observer}/index.mjs +3 -3
  50. package/form-button/index.d.ts +2 -0
  51. package/form-cascader/index.d.ts +3 -3
  52. package/form-cascader/index.mjs +1 -1
  53. package/form-checkbox/index.mjs +1 -1
  54. package/form-checkbox-group/index.mjs +2 -0
  55. package/form-date-picker/index.mjs +1 -1
  56. package/form-holder/index.mjs +1 -1
  57. package/form-image/index.mjs +1 -1
  58. package/form-input/index.mjs +1 -1
  59. package/form-input-cron-expression/index.mjs +1 -1
  60. package/form-input-email/index.mjs +1 -1
  61. package/form-input-id-card/index.mjs +1 -1
  62. package/form-input-number/index.mjs +1 -1
  63. package/form-input-phone-number/index.mjs +1 -1
  64. package/form-input-tag/index.mjs +1 -1
  65. package/form-input-time/index.mjs +1 -1
  66. package/form-item-group/index.mjs +1 -1
  67. package/form-item-x/index.mjs +1 -1
  68. package/form-radio-group/index.d.ts +1 -1
  69. package/form-radio-group/index.mjs +1 -1
  70. package/form-rate/index.mjs +1 -1
  71. package/form-row/index.mjs +1 -1
  72. package/form-select/index.d.ts +1 -1
  73. package/form-select/index.mjs +1 -1
  74. package/form-slider/index.mjs +1 -1
  75. package/form-switch/index.mjs +1 -1
  76. package/form-table/index.d.ts +269 -0
  77. package/form-table/index.mjs +2 -0
  78. package/form-table-plus/index.d.ts +266 -0
  79. package/form-table-plus/index.mjs +2 -0
  80. package/form-text/index.mjs +1 -1
  81. package/form-textarea/index.mjs +1 -1
  82. package/form-time-select/index.mjs +1 -1
  83. package/helper/dictionary.mjs +7 -7
  84. package/iframe-window/index.mjs +1 -1
  85. package/index.css +1 -1
  86. package/index.d.ts +8 -3
  87. package/index.mjs +55 -50
  88. package/package.json +1 -1
  89. package/pageable-table/index.d.ts +7 -7
  90. package/pageable-table/index.mjs +1 -1
  91. package/sub-table/index.d.ts +100 -0
  92. package/sub-table/index.mjs +472 -0
  93. package/sub-table/style.css +1 -0
  94. package/sub-table-plus/index.d.ts +97 -0
  95. package/sub-table-plus/index.mjs +2 -0
  96. package/sub-table-plus/style.css +1 -0
  97. package/table-column/index.mjs +1 -1
  98. package/table-column-def/index.d.ts +18 -8
  99. package/table-column-def/index.mjs +1 -1
  100. package/table-view/index.mjs +107 -106
  101. package/toolbar/index.mjs +1 -1
  102. package/toolbar-button/index.d.ts +2 -2
  103. package/toolbar-button/index.mjs +1 -1
  104. package/vue-cron/index.mjs +1 -1
  105. package/web-types.json +1 -1
  106. package/x-input-tag/index.mjs +52 -51
  107. package/year-calendar/index.mjs +1 -1
  108. package/chunks/CLPSCSsy.mjs +0 -603
  109. package/chunks/CuG2Q-PM.mjs +0 -100
  110. package/form-check-box-group/index.mjs +0 -2
  111. package/chunks/{Ds_Tpa_M.mjs → BBERmTup.mjs} +0 -0
  112. package/chunks/{B1MSrc6f.mjs → CkOD-_VV.mjs} +0 -0
  113. package/chunks/{DDmQcNm6.mjs → DOP3aBxf.mjs} +0 -0
  114. package/chunks/{DJe97Fgi.mjs → hlha6Bhc.mjs} +0 -0
  115. package/{resize-observer → element-resize-observer}/index.d.ts +0 -0
  116. package/{resize-observer → element-resize-observer}/style.css +0 -0
  117. package/{form-check-box-group → form-checkbox-group}/index.d.ts +1 -1
  118. /package/{form-check-box-group → form-checkbox-group}/style.css +0 -0
@@ -0,0 +1,97 @@
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ modelValue: ArrayConstructor;
3
+ prop: StringConstructor;
4
+ columns: ArrayConstructor;
5
+ descs: ArrayConstructor;
6
+ ascs: ArrayConstructor;
7
+ limit: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
11
+ disabled: BooleanConstructor;
12
+ showSummary: BooleanConstructor;
13
+ selection: BooleanConstructor;
14
+ index: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ selectionWidth: StringConstructor;
19
+ toolbarMenus: ArrayConstructor;
20
+ handleMenus: ArrayConstructor;
21
+ fetchApi: FunctionConstructor;
22
+ delApi: FunctionConstructor;
23
+ bottomAddButton: BooleanConstructor;
24
+ initRow: FunctionConstructor;
25
+ onRowDbClick: FunctionConstructor;
26
+ showMessage: BooleanConstructor;
27
+ pageSize: NumberConstructor;
28
+ }>, {}, {
29
+ rows: never[];
30
+ selectedRows: never[];
31
+ }, {
32
+ enabled(): boolean;
33
+ hasToolBarMenu(): number | undefined;
34
+ hasHandleMenus(): number | undefined;
35
+ rowProps(): {};
36
+ listeners(): Record<string, any>;
37
+ filteredColumns(): unknown[];
38
+ }, {
39
+ getCellType(row: any, item: any): any;
40
+ getInputAttr(row: any, item: any): any;
41
+ isInputDisabled(row: any, item: any): any;
42
+ onInput(row: any, val: any, item: any): void;
43
+ onBlur(row: any, item: any): void;
44
+ onSelectionChange(selectedRows: any): void;
45
+ remove(row: any, index: any): Promise<void>;
46
+ add(row: any, index: any): Promise<void>;
47
+ addRow(): void;
48
+ delRow(): Promise<void>;
49
+ refresh(): void;
50
+ getVal(row: any, column: any, item: any): any;
51
+ reloadTable(): void;
52
+ refreshTable(): Promise<void>;
53
+ removeSelectedRows(): void;
54
+ rowDbClick(...args: any[]): void;
55
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ 'add-row': null;
57
+ "update:modelValue": null;
58
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
59
+ modelValue: ArrayConstructor;
60
+ prop: StringConstructor;
61
+ columns: ArrayConstructor;
62
+ descs: ArrayConstructor;
63
+ ascs: ArrayConstructor;
64
+ limit: {
65
+ type: NumberConstructor;
66
+ default: number;
67
+ };
68
+ disabled: BooleanConstructor;
69
+ showSummary: BooleanConstructor;
70
+ selection: BooleanConstructor;
71
+ index: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ selectionWidth: StringConstructor;
76
+ toolbarMenus: ArrayConstructor;
77
+ handleMenus: ArrayConstructor;
78
+ fetchApi: FunctionConstructor;
79
+ delApi: FunctionConstructor;
80
+ bottomAddButton: BooleanConstructor;
81
+ initRow: FunctionConstructor;
82
+ onRowDbClick: FunctionConstructor;
83
+ showMessage: BooleanConstructor;
84
+ pageSize: NumberConstructor;
85
+ }>> & Readonly<{
86
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
87
+ "onAdd-row"?: ((...args: any[]) => any) | undefined;
88
+ }>, {
89
+ disabled: boolean;
90
+ showMessage: boolean;
91
+ limit: number;
92
+ showSummary: boolean;
93
+ selection: boolean;
94
+ index: boolean;
95
+ bottomAddButton: boolean;
96
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
97
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../chunks/C-D7jeLT2.mjs";
2
+ export { e as default };
@@ -0,0 +1 @@
1
+ .sub-table-plus{width:100%}.sub-table-plus.hide-message .el-form-item__error{display:none}.sub-table-plus .pageable-table.auto-height .el-table{min-height:0}.sub-table-plus .el-form-item{width:100%;margin-bottom:0}.sub-table-plus .el-col{width:100%}.sub-table-plus .table-header{background-color:#f3f5fb;border:1px solid #dfe6ec;border-bottom:none;padding:2px 10px}.sub-table-plus .table-header-button:hover,.sub-table-plus .table-header-button:focus{color:#595959}.sub-table-plus .table-header-button i+span{margin-left:0}.sub-table-plus .table-header-button i{font-size:15px}.sub-table-plus .table-header-button.add i{color:#4886ec}.sub-table-plus .table-header-button.remove i{color:#e34e55}.sub-table-plus .table-header-button.refresh i{color:#1eb91e}.sub-table-plus .table-button-add{color:#5add7a;opacity:.8}.sub-table-plus .table-button-add:hover{opacity:1}.sub-table-plus .table-button-remove{color:#ddd}.sub-table-plus .table-button-remove:hover{color:#ef6666}.sub-table-plus .el-table__header-wrapper .el-table__header th{background-color:#f3f5fb;padding:5px 0}.sub-table-plus .el-table{border-top-color:#dde1e5}.sub-table-plus .el-table td{border-color:#dfe6ec}.sub-table-plus .el-col{padding:0!important}.sub-table-plus .row-indicator{border:6px solid #0000;border-bottom-color:#f5690c;width:0;height:0;display:inline-block;position:absolute;top:-6px;right:-6px;transform:rotate(45deg)}.sub-table-plus .sub-table-handle-button{cursor:pointer;font-size:20px}.sub-table-plus .sub-table-handle-button+.sub-table-handle-button{margin-left:5px}.sub-table-plus .el-table .el-table__header th{line-height:inherit;padding:5px 0;background:#f3f5fb!important}.sub-table-plus .form-item{padding-top:4px;padding-bottom:4px}
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CuG2Q-PM.mjs";
1
+ import { t as e } from "../chunks/B-zqRAXo.mjs";
2
2
  export { e as default };
@@ -1,4 +1,9 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
1
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
+ export default _default;
3
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
+ $slots: S;
5
+ });
6
+ declare const __VLS_component: import('vue').DefineComponent<{}, {
2
7
  type: string;
3
8
  treeDict: boolean;
4
9
  idAsValue: boolean;
@@ -17,14 +22,14 @@ declare const _default: import('vue').DefineComponent<{}, {
17
22
  label?: string | undefined;
18
23
  filters?: unknown[] | undefined;
19
24
  fixed?: string | boolean | undefined;
20
- width?: string | number | undefined;
21
- prop?: string | undefined;
22
25
  options?: unknown[] | undefined;
23
26
  dictType?: string | undefined;
27
+ width?: string | number | undefined;
28
+ prop?: string | undefined;
24
29
  filterMethod?: Function | undefined;
25
30
  formatter?: Function | undefined;
26
- tooltipFormatter?: Function | undefined;
27
31
  index?: number | Function | undefined;
32
+ tooltipFormatter?: Function | undefined;
28
33
  columnKey?: string | undefined;
29
34
  minWidth?: string | number | undefined;
30
35
  renderHeader?: Function | undefined;
@@ -58,14 +63,14 @@ declare const _default: import('vue').DefineComponent<{}, {
58
63
  readonly label?: string | undefined;
59
64
  readonly filters?: unknown[] | undefined;
60
65
  readonly fixed?: string | boolean | undefined;
61
- readonly width?: string | number | undefined;
62
- readonly prop?: string | undefined;
63
66
  readonly options?: unknown[] | undefined;
64
67
  readonly dictType?: string | undefined;
68
+ readonly width?: string | number | undefined;
69
+ readonly prop?: string | undefined;
65
70
  readonly filterMethod?: Function | undefined;
66
71
  readonly formatter?: Function | undefined;
67
- readonly tooltipFormatter?: Function | undefined;
68
72
  readonly index?: number | Function | undefined;
73
+ readonly tooltipFormatter?: Function | undefined;
69
74
  readonly columnKey?: string | undefined;
70
75
  readonly minWidth?: string | number | undefined;
71
76
  readonly renderHeader?: Function | undefined;
@@ -82,4 +87,9 @@ declare const _default: import('vue').DefineComponent<{}, {
82
87
  readonly maxWidth?: string | undefined;
83
88
  };
84
89
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
85
- export default _default;
90
+ type __VLS_TemplateResult = {
91
+ attrs: Partial<{}>;
92
+ slots: Readonly<Record<string, any>> & Record<string, any>;
93
+ refs: {};
94
+ rootEl: any;
95
+ };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/Ds_Tpa_M.mjs";
1
+ import { t as e } from "../chunks/BBERmTup.mjs";
2
2
  //#region src/components/table/TableColumnDef.vue
3
3
  var t = /* @__PURE__ */ Object.assign({ name: "TableColumnDef" }, {
4
4
  __name: "TableColumnDef",
@@ -1,16 +1,17 @@
1
- import { c as e, r as t } from "../chunks/cmuHpsX6.mjs";
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
3
  import { tableViewContextKey as i } from "../constants/index.mjs";
4
- import { t as a } from "../chunks/Bd1UFJic.mjs";
5
- import { t as o } from "../chunks/B1MSrc6f.mjs";
6
- import { a as s } from "../chunks/Cj59E77g.mjs";
7
- import c from "../form-item-config-provider/index.mjs";
8
- import { t as l } from "../chunks/CLPSCSsy.mjs";
9
- import { t as u } from "../chunks/o6VhYAN52.mjs";
10
- import { hasOwn as d, isArray as f, isFunction as p, isString as m, toStringArray as h, trace as g, warning as _ } from "@web-utils/core";
11
- import { Transition as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as C, createTextVNode as w, createVNode as T, mergeProps as E, normalizeClass as D, normalizeStyle as O, openBlock as k, renderList as A, renderSlot as j, toDisplayString as M, toHandlers as N, vShow as P, withCtx as F, withDirectives as I, withModifiers as L } from "vue";
12
- import { merge as R } from "@web-utils/integrations/lodash";
13
- import { ElButton as z, ElCollapseTransition as B, ElForm as V, ElFormItem as H, ElRow as U } from "element-plus/es";
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/BRRcYOud.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";
14
15
  //#region src/components/form/TableView.vue
15
16
  var W = [
16
17
  "back",
@@ -36,16 +37,16 @@ var W = [
36
37
  name: "TableView",
37
38
  bus: {
38
39
  reloadTableView(e) {
39
- if (this._viewIds) if (m(e) || f(e)) {
40
+ if (this._viewIds) if (h(e) || p(e)) {
40
41
  let t = e;
41
- m(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && (g.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
42
- } else _.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
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`的类型必须是字符串或数组");
43
44
  },
44
45
  reloadTreeView(e) {
45
- if (this._viewIds) if (m(e) || f(e)) {
46
+ if (this._viewIds) if (h(e) || p(e)) {
46
47
  let t = e;
47
- m(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && this.$refs.tree && (g.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
48
- } else _.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
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`的类型必须是字符串或数组");
49
50
  }
50
51
  },
51
52
  provide() {
@@ -118,15 +119,15 @@ var W = [
118
119
  },
119
120
  toolbarProps() {
120
121
  var e, t;
121
- let r = R({}, this.toolbarAttrs, {}), i = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
122
- return i = i || [], r.buttons = i, r.buttons = n(r.buttons), r.buttons = h(r.buttons), r.searchable = !!((e = (t = this.$slots)["search-form"]) != null && e.call(t)), r;
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;
123
124
  },
124
125
  treeProps() {
125
- return e(R({}, this.treeAttrs, {
126
+ return t(z({}, this.treeAttrs, {
126
127
  treeProps: {
127
128
  children: "children",
128
129
  label: "label",
129
- isLeaf: (e) => d(e, "hasChildren") ? !e.hasChildren : d(e, "hasChild") ? !e.hasChild : !0
130
+ isLeaf: (e) => f(e, "hasChildren") ? !e.hasChildren : f(e, "hasChild") ? !e.hasChild : !0
130
131
  },
131
132
  show: !1,
132
133
  lazy: !0,
@@ -137,20 +138,20 @@ var W = [
137
138
  }));
138
139
  },
139
140
  tableProps() {
140
- let t = this.tableAttrs.api || this.$parent.getPage, n = {
141
+ let e = this.tableAttrs.api || this.$parent.getPage, n = {
141
142
  model: this.searchModel || {},
142
143
  height: "auto",
143
144
  highlightCurrentRow: !0,
144
- api: t
145
+ api: e
145
146
  };
146
- return e(R({}, this.tableAttrs, n));
147
+ return t(z({}, this.tableAttrs, n));
147
148
  },
148
149
  searchPanelProps() {
149
- let t = {
150
+ let e = {
150
151
  width: 350,
151
152
  model: this.searchModel || {}
152
153
  };
153
- return e(R({}, this.searchPanelAttrs, t));
154
+ return t(z({}, this.searchPanelAttrs, e));
154
155
  },
155
156
  toolbarEventHandlers() {
156
157
  if (this.toolbarListeners) {
@@ -177,7 +178,7 @@ var W = [
177
178
  this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
178
179
  },
179
180
  methods: {
180
- toHyphenateKey: e,
181
+ toHyphenateKey: t,
181
182
  onTreeScroll() {
182
183
  this.treeScrollTop = this.$refs.treeScroller.scrollTop, this.treeScrollLeft = this.$refs.treeScroller.scrollLeft;
183
184
  },
@@ -190,8 +191,8 @@ var W = [
190
191
  onClearClick() {
191
192
  this.$emit("reset"), this.$refs.form.resetFields(), this.reloadTable();
192
193
  },
193
- openFrom(e) {
194
- this.$router.push(t(this.formPath, e));
194
+ openFrom(t) {
195
+ this.$router.push(e(this.formPath, t));
195
196
  },
196
197
  rowDbClick(e) {
197
198
  var t;
@@ -207,7 +208,7 @@ var W = [
207
208
  async del() {
208
209
  var e;
209
210
  let t = this.deleteApi || this.$parent.del;
210
- if (!((e = this.toolbarListeners) != null && e.del) && p(t)) {
211
+ if (!((e = this.toolbarListeners) != null && e.del) && m(t)) {
211
212
  if (!this.selectedRows.length) {
212
213
  this.$message.warning(this.selectTips || "请选择要删除的记录!");
213
214
  return;
@@ -261,39 +262,39 @@ var W = [
261
262
  key: 0,
262
263
  class: "search-form-top"
263
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" };
264
- function $(e, t, n, r, i, o) {
265
- let d = z, f = s, p = U, m = c, h = V, g = B, _ = u, R = a, W = l, G = H;
266
- return k(), x("div", { class: D(["table-view", {
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", {
267
268
  embed: n.embed,
268
- "has-tree": o.treeProps.show
269
- }]) }, [S("div", K, [
270
- b("搜索条件"),
271
- n.searchFormPosition === "top" ? (k(), y(g, { key: 0 }, {
272
- default: F(() => [o.toolbarProps.searchable ? I((k(), x("div", q, [T(h, {
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
274
  ref: "form",
274
275
  "label-position": "right",
275
- model: n.searchModel || o.searchPanelProps.model,
276
+ model: n.searchModel || s.searchPanelProps.model,
276
277
  "label-width": n.labelWidth,
277
- onSubmitCapture: L(o.onSearchClick, ["prevent"])
278
+ onSubmitCapture: R(s.onSearchClick, ["prevent"])
278
279
  }, {
279
- default: F(() => [T(m, { reactive: "" }, {
280
- default: F(() => [T(p, { gutter: 0 }, {
281
- default: F(() => [j(e.$slots, "search-form", {}, () => [t[3] || (t[3] = S("p", null, "请添加搜索条件!", -1))]), T(f, {
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, {
282
283
  class: "search-actions",
283
284
  "hide-label": "",
284
285
  "fixed-span": 24
285
286
  }, {
286
- default: F(() => [T(d, {
287
+ default: I(() => [E(f, {
287
288
  type: "primary",
288
289
  "native-type": "submit"
289
290
  }, {
290
- default: F(() => [...t[4] || (t[4] = [w("开始搜索", -1)])]),
291
+ default: I(() => [...t[4] || (t[4] = [T("开始搜索", -1)])]),
291
292
  _: 1
292
- }), T(d, {
293
+ }), E(f, {
293
294
  style: { "margin-left": "10px" },
294
- onClick: o.onClearClick
295
+ onClick: s.onClearClick
295
296
  }, {
296
- default: F(() => [...t[5] || (t[5] = [w("清除条件", -1)])]),
297
+ default: I(() => [...t[5] || (t[5] = [T("清除条件", -1)])]),
297
298
  _: 1
298
299
  }, 8, ["onClick"])]),
299
300
  _: 1
@@ -307,48 +308,48 @@ function $(e, t, n, r, i, o) {
307
308
  "model",
308
309
  "label-width",
309
310
  "onSubmitCapture"
310
- ])], 512)), [[P, i.isSearchVisible]]) : b("v-if", !0)]),
311
+ ])], 512)), [[F, i.isSearchVisible]]) : x("v-if", !0)]),
311
312
  _: 3
312
- })) : b("v-if", !0),
313
- b("顶部工具条"),
314
- n.showToolbar ? (k(), y(_, E({ key: 1 }, o.toolbarProps, {
313
+ })) : x("v-if", !0),
314
+ x("顶部工具条"),
315
+ n.showToolbar ? (A(), b(v, D({ key: 1 }, s.toolbarProps, {
315
316
  refreshable: "",
316
- onSearch: o.toggleSearch,
317
+ onSearch: s.toggleSearch,
317
318
  onSettings: t[0] || (t[0] = () => e.$refs.table.toggleSettings()),
318
- onDel: o.del,
319
- onCreate: o.create,
320
- onReload: o.reloadTableAndTree,
321
- onExp: o.exp,
319
+ onDel: s.del,
320
+ onCreate: s.create,
321
+ onReload: s.reloadTableAndTree,
322
+ onExp: s.exp,
322
323
  onImp: t[1] || (t[1] = (e) => i.importDialogVisible = !0)
323
- }, N(o.toolbarEventHandlers)), C({ _: 2 }, [
324
+ }, P(s.toolbarEventHandlers)), w({ _: 2 }, [
324
325
  e.$slots["toolbar-button"] ? {
325
326
  name: "default",
326
- fn: F(() => [j(e.$slots, "toolbar-button", { selectedRows: i.selectedRows })]),
327
+ fn: I(() => [M(e.$slots, "toolbar-button", { selectedRows: i.selectedRows })]),
327
328
  key: "0"
328
329
  } : void 0,
329
330
  e.$slots["toolbar-left"] ? {
330
331
  name: "toolbar-left",
331
- fn: F(() => [j(e.$slots, "toolbar-left", { selectedRows: i.selectedRows })]),
332
+ fn: I(() => [M(e.$slots, "toolbar-left", { selectedRows: i.selectedRows })]),
332
333
  key: "1"
333
334
  } : void 0,
334
335
  e.$slots["toolbar-right"] ? {
335
336
  name: "toolbar-right",
336
- fn: F(() => [j(e.$slots, "toolbar-right", {
337
- del: o.del,
338
- create: o.create,
339
- reload: o.reloadTableAndTree,
337
+ fn: I(() => [M(e.$slots, "toolbar-right", {
338
+ del: s.del,
339
+ create: s.create,
340
+ reload: s.reloadTableAndTree,
340
341
  selectedRows: i.selectedRows
341
342
  })]),
342
343
  key: "2"
343
344
  } : void 0,
344
345
  e.$slots["toolbar-right-button"] ? {
345
346
  name: "toolbar-right-button",
346
- fn: F(() => [j(e.$slots, "toolbar-right-button")]),
347
+ fn: I(() => [M(e.$slots, "toolbar-right-button")]),
347
348
  key: "3"
348
349
  } : void 0,
349
- A(o.buttonSlots, (t) => ({
350
+ j(s.buttonSlots, (t) => ({
350
351
  name: t,
351
- fn: F(() => [j(e.$slots, t, { selectedRows: i.selectedRows })])
352
+ fn: I(() => [M(e.$slots, t, { selectedRows: i.selectedRows })])
352
353
  }))
353
354
  ]), 1040, [
354
355
  "onSearch",
@@ -356,27 +357,27 @@ function $(e, t, n, r, i, o) {
356
357
  "onCreate",
357
358
  "onReload",
358
359
  "onExp"
359
- ])) : b("v-if", !0),
360
- S("div", J, [
361
- S("div", Y, [
362
- b("侧栏"),
363
- o.treeProps.show ? (k(), x("div", {
360
+ ])) : x("v-if", !0),
361
+ C("div", J, [
362
+ C("div", Y, [
363
+ x("侧栏"),
364
+ s.treeProps.show ? (A(), S("div", {
364
365
  key: 0,
365
366
  ref: "treeScroller",
366
367
  class: "table-view-sidebar",
367
- onScroll: t[2] || (t[2] = (...e) => o.onTreeScroll && o.onTreeScroll(...e))
368
- }, [b("<div style=\"font-size: 16px\">视图导航</div>"), T(R, E({ ref: "tree" }, o.treeProps, { readonly: "" }, N(o.toHyphenateKey(n.treeListeners))), {
369
- default: F(({ node: t, data: n }) => [j(e.$slots, "tree-node", {
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", {
370
371
  node: t,
371
372
  data: n
372
- }, () => [S("span", null, [S("i", { class: D([t.childNodes.length > 0 ? t.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets", "node-icon"]) }, null, 2), j(e.$slots, "tree-label", {
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", {
373
374
  node: t,
374
375
  data: n
375
- }, () => [w(M(t.label), 1)])])])]),
376
+ }, () => [T(N(t.label), 1)])])])]),
376
377
  _: 3
377
- }, 16)], 544)) : b("v-if", !0),
378
- b("表格"),
379
- S("div", X, [T(W, E({
378
+ }, 16)], 544)) : x("v-if", !0),
379
+ x("表格"),
380
+ C("div", X, [E(W, D({
380
381
  ref: "table",
381
382
  border: n.border,
382
383
  class: [{
@@ -385,15 +386,15 @@ function $(e, t, n, r, i, o) {
385
386
  "border-left": n.borderLeft || n.treeAttrs && n.treeAttrs.show,
386
387
  "border-right": n.borderRight
387
388
  }]
388
- }, o.tableProps, N(o.toHyphenateKey(n.tableListeners)), {
389
- onRowDblclick: o.rowDbClick,
390
- onSelectionChange: o.onSelectionChange
391
- }), C({
392
- default: F(() => [j(e.$slots, "columns")]),
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
394
  _: 2
394
- }, [A(o.tableScopeSlotNames, (t) => ({
395
+ }, [j(s.tableScopeSlotNames, (t) => ({
395
396
  name: t,
396
- fn: F(({ row: n }) => [j(e.$slots, t, { row: n })])
397
+ fn: I(({ row: n }) => [M(e.$slots, t, { row: n })])
397
398
  }))]), 1040, [
398
399
  "border",
399
400
  "class",
@@ -401,40 +402,40 @@ function $(e, t, n, r, i, o) {
401
402
  "onSelectionChange"
402
403
  ])])
403
404
  ]),
404
- b("搜索条件"),
405
- n.searchFormPosition === "right" ? (k(), y(v, {
405
+ x("搜索条件"),
406
+ n.searchFormPosition === "right" ? (A(), b(y, {
406
407
  key: 0,
407
408
  name: "slide"
408
409
  }, {
409
- default: F(() => [o.toolbarProps.searchable ? I((k(), x("div", {
410
+ default: I(() => [s.toolbarProps.searchable ? L((A(), S("div", {
410
411
  key: 0,
411
- style: O({ width: `${o.searchPanelProps.width}px` }),
412
+ style: k({ width: `${s.searchPanelProps.width}px` }),
412
413
  class: "slide-panel"
413
- }, [b("<div class=\"slide-panel-line\">\n <div class=\"slide-panel-line-indicator\"></div>\n </div>"), S("div", Z, [T(h, {
414
+ }, [x("<div class=\"slide-panel-line\">\n <div class=\"slide-panel-line-indicator\"></div>\n </div>"), C("div", Z, [E(g, {
414
415
  ref: "form",
415
416
  "label-position": "right",
416
- model: n.searchModel || o.searchPanelProps.model,
417
+ model: n.searchModel || s.searchPanelProps.model,
417
418
  "label-width": n.labelWidth,
418
- onSubmitCapture: L(o.onSearchClick, ["prevent"])
419
+ onSubmitCapture: R(s.onSearchClick, ["prevent"])
419
420
  }, {
420
- default: F(() => [T(m, {
421
+ default: I(() => [E(h, {
421
422
  block: "",
422
423
  "wrap-col": !1
423
424
  }, {
424
- default: F(() => [T(p, { gutter: 0 }, {
425
- default: F(() => [j(e.$slots, "search-form", {}, () => [t[6] || (t[6] = S("p", null, "请添加搜索条件!", -1))])]),
425
+ default: I(() => [E(m, { gutter: 0 }, {
426
+ default: I(() => [M(e.$slots, "search-form", {}, () => [t[6] || (t[6] = C("p", null, "请添加搜索条件!", -1))])]),
426
427
  _: 3
427
428
  })]),
428
429
  _: 3
429
- }), T(G, { "label-width": "0" }, {
430
- default: F(() => [S("div", Q, [T(d, {
430
+ }), E(G, { "label-width": "0" }, {
431
+ default: I(() => [C("div", Q, [E(f, {
431
432
  type: "primary",
432
433
  "native-type": "submit"
433
434
  }, {
434
- default: F(() => [...t[7] || (t[7] = [w("开始搜索", -1)])]),
435
+ default: I(() => [...t[7] || (t[7] = [T("开始搜索", -1)])]),
435
436
  _: 1
436
- }), T(d, { onClick: o.onClearClick }, {
437
- default: F(() => [...t[8] || (t[8] = [w("清除条件", -1)])]),
437
+ }), E(f, { onClick: s.onClearClick }, {
438
+ default: I(() => [...t[8] || (t[8] = [T("清除条件", -1)])]),
438
439
  _: 1
439
440
  }, 8, ["onClick"])])]),
440
441
  _: 1
@@ -444,13 +445,13 @@ function $(e, t, n, r, i, o) {
444
445
  "model",
445
446
  "label-width",
446
447
  "onSubmitCapture"
447
- ])])], 4)), [[P, i.isSearchVisible]]) : b("v-if", !0)]),
448
+ ])])], 4)), [[F, i.isSearchVisible]]) : x("v-if", !0)]),
448
449
  _: 3
449
- })) : b("v-if", !0)
450
+ })) : x("v-if", !0)
450
451
  ]),
451
- j(e.$slots, "default")
452
+ M(e.$slots, "default")
452
453
  ])], 2);
453
454
  }
454
- var ee = /* @__PURE__ */ o(G, [["render", $]]);
455
+ var ee = /* @__PURE__ */ s(G, [["render", $]]);
455
456
  //#endregion
456
457
  export { ee as default };
package/toolbar/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/o6VhYAN52.mjs";
1
+ import { t as e } from "../chunks/hzaYr6Ud2.mjs";
2
2
  export { e as default };
@@ -180,10 +180,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
180
180
  loadable: boolean;
181
181
  warning: boolean;
182
182
  confirm: boolean;
183
- dark: boolean;
184
- circle: boolean;
185
183
  bg: boolean;
184
+ circle: boolean;
186
185
  dashed: boolean;
186
+ dark: boolean;
187
187
  autoInsertSpace: boolean;
188
188
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
189
189
  export default _default;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/XqRTtFfp.mjs";
1
+ import { t as e } from "../chunks/CxTg0r4n.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CWfUPCtS.mjs";
1
+ import { t as e } from "../chunks/vXQf89tS.mjs";
2
2
  export { e as default };