@web-utils/form-ui 1.0.0-beta77 → 1.0.0-beta79

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 (225) hide show
  1. package/address-input/index.d.ts +52 -0
  2. package/affix/index.d.ts +30 -0
  3. package/awesome-button/index.d.ts +60 -0
  4. package/capsule-tab/index.d.ts +30 -0
  5. package/card/index.d.ts +41 -0
  6. package/chunks/{Dhdoa4M6.mjs → 22GsbC-1.mjs} +1 -1
  7. package/chunks/{DRXM1Mt22.mjs → B4GsYMXo.mjs} +1 -1
  8. package/chunks/{l5bfIjYm.mjs → B8NokGUg.mjs} +4715 -5034
  9. package/chunks/{CWaId08S2.mjs → BEghYt1s2.mjs} +1 -1
  10. package/chunks/{CGVBF4Ml.mjs → BQytQPLa.mjs} +58 -51
  11. package/chunks/{D5_ezGUV2.mjs → BVUClQOx.mjs} +2 -2
  12. package/chunks/{Dpzw7Rtp.mjs → BWTQ3qdg.mjs} +1 -1
  13. package/chunks/{uDwSrV7X2.mjs → Bo8lYN4n2.mjs} +2 -2
  14. package/chunks/{D6qJXu04.mjs → Bs926z902.mjs} +48 -49
  15. package/chunks/{BVsvRLea2.mjs → Bu1M7um22.mjs} +2 -2
  16. package/chunks/{CeEYChF4.mjs → Bvn6wnku.mjs} +2 -2
  17. package/chunks/{CyQmVphZ.mjs → C-zPVdz-.mjs} +35 -35
  18. package/chunks/{BZRmdKBG.mjs → CDalOJtl2.mjs} +65 -66
  19. package/chunks/{lPQBM7xc2.mjs → CGmbnjKL.mjs} +2 -2
  20. package/chunks/{kAaQhLJs2.mjs → COA3tHyu2.mjs} +1 -1
  21. package/chunks/{CVM0lwn22.mjs → CONqKD47.mjs} +2 -2
  22. package/chunks/{BTNnujZA2.mjs → CTYReSXN.mjs} +1 -1
  23. package/chunks/{BK6DiJfX2.mjs → ChP-pNSi2.mjs} +3 -3
  24. package/chunks/{DMDsZeqv.mjs → CiMBKxeJ.mjs} +1 -1
  25. package/chunks/{Dgwcljur.mjs → CkLpOk7H.mjs} +1 -1
  26. package/chunks/{CI-pH-gR2.mjs → Co0M4G3P.mjs} +1 -1
  27. package/chunks/{DS4Iw8Y42.mjs → D6mInNk02.mjs} +80 -78
  28. package/chunks/{BM8snKHN2.mjs → DH-B0Lkz2.mjs} +2 -2
  29. package/chunks/{Bq9KMIsC.mjs → DMSbDBCP.mjs} +143 -143
  30. package/chunks/{Cg6ahpHk.mjs → DQMWqQFe2.mjs} +2 -2
  31. package/chunks/{DFa2J7ul.mjs → D_q3C3v4.mjs} +130 -130
  32. package/chunks/{DyGddGTO.mjs → DbcxJ45j.mjs} +96 -97
  33. package/chunks/{B-WTB0ce2.mjs → DcgE9SF_2.mjs} +1 -1
  34. package/chunks/{Bh2SlzOo.mjs → DgH_4qOn2.mjs} +3 -0
  35. package/chunks/{CeI6Qrij.mjs → DhqOVe4S.mjs} +100 -99
  36. package/chunks/{285I1DfO.mjs → Dnb8jUG_.mjs} +14 -15
  37. package/chunks/{BaB0bq4I2.mjs → DxeRdYI82.mjs} +1 -1
  38. package/chunks/{JjnlFlI02.mjs → Dz_TTgwF2.mjs} +92 -90
  39. package/chunks/{C3pzNRoU2.mjs → T2V8nxIu.mjs} +363 -362
  40. package/chunks/{BLBHnUme2.mjs → Zdhb_SRi2.mjs} +1 -1
  41. package/chunks/{BvlU_Z6D2.mjs → eX0Esdvw2.mjs} +1 -1
  42. package/chunks/{CoPlnbwi2.mjs → hBvPGqka.mjs} +2 -2
  43. package/chunks/{BkoWiWEW.mjs → mqi8hesW2.mjs} +190 -191
  44. package/chunks/{DP7eF99m2.mjs → oXiNltCq.mjs} +1 -1
  45. package/chunks/{x2jJ6cfy2.mjs → shY1VkIE2.mjs} +1 -1
  46. package/chunks/{ohCkWdwS.mjs → tSaeUhnr.mjs} +1 -1
  47. package/chunks/{C0gLPKS8.mjs → tqW2DSco.mjs} +48 -47
  48. package/code-mirror-editor/index.d.ts +50 -0
  49. package/confirm-button/index.d.ts +122 -0
  50. package/confirmable/index.d.ts +93 -0
  51. package/context-menu/index.d.ts +183 -0
  52. package/count-up/index.d.ts +70 -0
  53. package/custom-scrollbar/index.d.ts +49 -0
  54. package/data-box/index.d.ts +30 -0
  55. package/data-card/index.d.ts +20 -0
  56. package/data-card-text/index.d.ts +21 -0
  57. package/data-display/index.d.ts +20 -0
  58. package/data-icons/index.d.ts +21 -0
  59. package/data-imgtext/index.d.ts +18 -0
  60. package/data-operatext/index.d.ts +17 -0
  61. package/data-panel/index.d.ts +19 -0
  62. package/data-pay/index.d.ts +19 -0
  63. package/data-price/index.d.ts +17 -0
  64. package/data-progress/index.d.ts +19 -0
  65. package/data-rotate/index.d.ts +21 -0
  66. package/data-table-picker/index.d.ts +61 -0
  67. package/data-table-picker/index.mjs +16 -15
  68. package/data-tabs/index.d.ts +21 -0
  69. package/dict-render/index.d.ts +28 -0
  70. package/e-charts/index.d.ts +79 -0
  71. package/easy-popup/index.d.ts +114 -0
  72. package/editable-progress/index.d.ts +68 -0
  73. package/editable-tree/index.d.ts +281 -0
  74. package/editable-tree/index.mjs +111 -110
  75. package/element-dialog/index.d.ts +376 -0
  76. package/element-resize-observer/index.d.ts +8 -0
  77. package/empty-view/index.d.ts +29 -0
  78. package/error-view/index.d.ts +25 -0
  79. package/flex-box/index.d.ts +44 -0
  80. package/flex-column/index.d.ts +41 -0
  81. package/flex-item/index.d.ts +77 -0
  82. package/flex-row/index.d.ts +41 -0
  83. package/flex-scroll-area/index.d.ts +22 -0
  84. package/flex-scroller/index.d.ts +26 -0
  85. package/flow-designer/index.d.ts +286 -0
  86. package/flow-designer/index.mjs +1 -1
  87. package/flow-designer/style.css +1 -1
  88. package/flow-viewer/index.d.ts +62 -0
  89. package/form-advice/index.d.ts +9 -0
  90. package/form-button/index.d.ts +123 -0
  91. package/form-card/index.d.ts +14 -0
  92. package/form-cascader/index.d.ts +478 -0
  93. package/form-cascader/index.mjs +1 -1
  94. package/form-cell/index.d.ts +25 -0
  95. package/form-checkbox/index.d.ts +314 -0
  96. package/form-checkbox/index.mjs +1 -1
  97. package/form-checkbox-group/index.d.ts +373 -0
  98. package/form-checkbox-group/index.mjs +1 -1
  99. package/form-date-picker/index.d.ts +480 -0
  100. package/form-date-picker/index.mjs +1 -1
  101. package/form-holder/index.d.ts +162 -0
  102. package/form-holder/index.mjs +1 -1
  103. package/form-image/index.d.ts +220 -0
  104. package/form-image/index.mjs +1 -1
  105. package/form-input/index.d.ts +378 -0
  106. package/form-input/index.mjs +1 -1
  107. package/form-input-cron-expression/index.d.ts +223 -0
  108. package/form-input-cron-expression/index.mjs +1 -1
  109. package/form-input-email/index.d.ts +376 -0
  110. package/form-input-email/index.mjs +1 -1
  111. package/form-input-id-card/index.d.ts +376 -0
  112. package/form-input-id-card/index.mjs +1 -1
  113. package/form-input-number/index.d.ts +329 -0
  114. package/form-input-number/index.mjs +1 -1
  115. package/form-input-phone-number/index.d.ts +376 -0
  116. package/form-input-phone-number/index.mjs +1 -1
  117. package/form-input-tag/index.d.ts +270 -0
  118. package/form-input-tag/index.mjs +1 -1
  119. package/form-input-time/index.d.ts +441 -0
  120. package/form-input-time/index.mjs +1 -1
  121. package/form-item-config-provider/index.d.ts +40 -0
  122. package/form-item-group/index.d.ts +92 -0
  123. package/form-item-group/index.mjs +1 -1
  124. package/form-item-x/index.d.ts +190 -0
  125. package/form-item-x/index.mjs +1 -1
  126. package/form-radio-group/index.d.ts +374 -0
  127. package/form-radio-group/index.mjs +1 -1
  128. package/form-rate/index.d.ts +325 -0
  129. package/form-rate/index.mjs +1 -1
  130. package/form-red-table/index.d.ts +21 -0
  131. package/form-row/index.d.ts +11 -0
  132. package/form-row/index.mjs +1 -1
  133. package/form-select/index.d.ts +606 -0
  134. package/form-select/index.mjs +1 -1
  135. package/form-slider/index.d.ts +352 -0
  136. package/form-slider/index.mjs +1 -1
  137. package/form-switch/index.d.ts +343 -0
  138. package/form-switch/index.mjs +1 -1
  139. package/form-table/index.d.ts +287 -0
  140. package/form-table/index.mjs +1 -1
  141. package/form-table-plus/index.d.ts +266 -0
  142. package/form-table-plus/index.mjs +1 -1
  143. package/form-text/index.d.ts +235 -0
  144. package/form-text/index.mjs +1 -1
  145. package/form-textarea/index.d.ts +351 -0
  146. package/form-textarea/index.mjs +1 -1
  147. package/form-time-select/index.d.ts +325 -0
  148. package/form-time-select/index.mjs +1 -1
  149. package/form-tree-select/index.d.ts +715 -0
  150. package/form-tree-select/index.mjs +1 -1
  151. package/form-tree-select-multiple/index.d.ts +717 -0
  152. package/form-tree-select-multiple/index.mjs +1 -1
  153. package/form-view/index.d.ts +226 -0
  154. package/form-view/index.mjs +2 -2
  155. package/guide-steps/index.d.ts +31 -0
  156. package/helper/input.mjs +1 -1
  157. package/highlight-j-s/index.d.ts +18 -0
  158. package/iframe-window/index.d.ts +9 -0
  159. package/image-cropper/index.d.ts +365 -0
  160. package/image-preview/index.d.ts +61 -0
  161. package/image-viewer/index.d.ts +25 -0
  162. package/index.css +1 -1
  163. package/index.d.ts +119 -119
  164. package/index.mjs +121 -121
  165. package/input-number-range/index.d.ts +41 -0
  166. package/keyboard/index.d.ts +64 -0
  167. package/keyboard/index.mjs +1 -1
  168. package/loading-view/index.d.ts +65 -0
  169. package/name-avatar/index.d.ts +62 -0
  170. package/nav-bar/index.d.ts +21 -0
  171. package/package.json +1 -1
  172. package/page/index.d.ts +21 -0
  173. package/page-header/index.d.ts +27 -0
  174. package/page-index/index.d.ts +82 -0
  175. package/page-index-top/index.d.ts +38 -0
  176. package/page-skeleton/index.d.ts +30 -0
  177. package/page-skeleton-new/index.d.ts +34 -0
  178. package/pageable-table/index.d.ts +400 -0
  179. package/photo-swipe/index.d.ts +18 -0
  180. package/photo-swipe/index.mjs +1 -1
  181. package/props/date.d.ts +1 -4
  182. package/props/date.mjs +18 -5
  183. package/sign-panel/index.d.ts +85 -0
  184. package/skeleton-panel/index.d.ts +27 -0
  185. package/split-pane/index.d.ts +106 -0
  186. package/split-pane/index.mjs +1 -1
  187. package/stateful/index.d.ts +92 -0
  188. package/sub-table/index.d.ts +109 -0
  189. package/sub-table/index.mjs +1 -1
  190. package/sub-table-plus/index.d.ts +109 -0
  191. package/sub-table-plus/index.mjs +1 -1
  192. package/swiper/index.d.ts +27 -0
  193. package/table-column/index.d.ts +163 -0
  194. package/table-column-def/index.d.ts +97 -0
  195. package/table-view/index.d.ts +346 -0
  196. package/table-view/index.mjs +92 -90
  197. package/tag-render/index.d.ts +48 -0
  198. package/text-ellipsis/index.d.ts +111 -0
  199. package/toolbar/index.d.ts +129 -0
  200. package/toolbar/index.mjs +1 -1
  201. package/toolbar-button/index.d.ts +189 -0
  202. package/vue-cron/index.d.ts +191 -0
  203. package/vue-cron/index.mjs +1 -1
  204. package/vue-qr-code/index.d.ts +47 -0
  205. package/vue-tags-input/index.d.ts +373 -0
  206. package/vue-tree-select/index.d.ts +1489 -0
  207. package/vue-tree-select/index.mjs +1 -1
  208. package/vue-video-player/index.d.ts +117 -0
  209. package/watermark/index.d.ts +97 -0
  210. package/watermark/index.mjs +1 -1
  211. package/web-types.json +1 -1
  212. package/x-input-tag/index.d.ts +2 -0
  213. package/year-calendar/index.d.ts +99 -0
  214. package/year-calendar/index.mjs +1 -1
  215. package/chunks/CjjJimnU.mjs +0 -20
  216. /package/chunks/{tJ_t87kJ.mjs → 6dNVtIN32.mjs} +0 -0
  217. /package/chunks/{CJ7Ai-mH2.mjs → B1luuf_A2.mjs} +0 -0
  218. /package/chunks/{B1jgu0ci.mjs → BAG_R87k2.mjs} +0 -0
  219. /package/chunks/{gNfZhMJk2.mjs → BM5LdxU72.mjs} +0 -0
  220. /package/chunks/{CZeL7oiY2.mjs → BhHMGhJ8.mjs} +0 -0
  221. /package/chunks/{z6tpYT0z.mjs → BwL9Xz1F.mjs} +0 -0
  222. /package/chunks/{B2Y1LWJ3.mjs → Dkw6LNCq2.mjs} +0 -0
  223. /package/chunks/{b_78-Wov2.mjs → FZqu01np2.mjs} +0 -0
  224. /package/chunks/{hPAfGilD.mjs → KOJEsarR2.mjs} +0 -0
  225. /package/chunks/{3UWcbJcG.mjs → PEU1JRcN2.mjs} +0 -0
@@ -5,20 +5,22 @@ import { processButtons as i, reloadTable as a } from "../api/index.mjs";
5
5
  import { cellClickHandlerContextKey as o, tableViewContextKey as s } from "../constants/index.mjs";
6
6
  import { t as c } from "../chunks/mnqSaATq.mjs";
7
7
  import l from "../editable-tree/index.mjs";
8
- import { s as u } from "../chunks/Dgwcljur.mjs";
8
+ import { s as u } from "../chunks/CkLpOk7H.mjs";
9
9
  import d from "../form-item-config-provider/index.mjs";
10
- import { t as f } from "../chunks/Bh2SlzOo.mjs";
11
- import { ElCollapseTransition as p, ElForm as m, ElFormItem as h, ElRow as g } from "element-plus/es";
10
+ import { t as f } from "../chunks/DgH_4qOn2.mjs";
11
+ import { ElCollapseTransition as p, ElForm as m, ElFormItem as h, ElMessage as g, ElMessageBox as _, ElRow as v } from "element-plus/es";
12
12
  import "element-plus/es/components/base/style/css";
13
- import { Transition as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, mergeProps as T, normalizeClass as E, normalizeStyle as D, openBlock as O, renderList as k, renderSlot as A, toDisplayString as j, toHandlers as M, vShow as N, withCtx as P, withDirectives as F, withModifiers as I } from "vue";
14
- import { hasOwn as L, isArray as R, isFunction as z, isString as B, toStringArray as V, trace as H, warning as U } from "@web-utils/core";
13
+ 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";
14
+ import { hasOwn as z, isArray as B, isFunction as V, isString as H, toStringArray as U, trace as W, warning as G } from "@web-utils/core";
15
+ import "element-plus/es/components/message/style/css";
15
16
  import "element-plus/es/components/row/style/css";
16
- import { merge as W } from "@web-utils/integrations/lodash";
17
- import "element-plus/es/components/form/style/css";
17
+ import "element-plus/es/components/message-box/style/css";
18
+ import { merge as K } from "@web-utils/integrations/lodash";
18
19
  import "element-plus/es/components/form-item/style/css";
20
+ import "element-plus/es/components/form/style/css";
19
21
  import "element-plus/es/components/collapse-transition/style/css";
20
22
  //#region src/components/form/TableView.vue
21
- var G = [
23
+ var q = [
22
24
  "back",
23
25
  "create",
24
26
  "save",
@@ -38,20 +40,20 @@ var G = [
38
40
  "disabled",
39
41
  "reload",
40
42
  "slot"
41
- ], K = {
43
+ ], J = {
42
44
  name: "TableView",
43
45
  bus: {
44
46
  reloadTableView(e) {
45
- if (this._viewIds) if (B(e) || R(e)) {
47
+ if (this._viewIds) if (H(e) || B(e)) {
46
48
  let t = e;
47
- B(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && (H.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
48
- } else U.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
49
+ H(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && (W.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
50
+ } else G.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
49
51
  },
50
52
  reloadTreeView(e) {
51
- if (this._viewIds) if (B(e) || R(e)) {
53
+ if (this._viewIds) if (H(e) || B(e)) {
52
54
  let t = e;
53
- B(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && this.$refs.tree && (H.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
54
- } else U.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
55
+ H(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && this.$refs.tree && (W.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
56
+ } else G.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
55
57
  }
56
58
  },
57
59
  provide() {
@@ -124,19 +126,19 @@ var G = [
124
126
  },
125
127
  computed: {
126
128
  buttonSlots() {
127
- return G.filter((e) => this.$slots[e]);
129
+ return q.filter((e) => this.$slots[e]);
128
130
  },
129
131
  toolbarProps() {
130
132
  var e, t;
131
- let n = W({}, this.toolbarAttrs, {}), r = (n == null ? void 0 : n.buttons) || this.$parent.buttons;
132
- return r = r || [], n.buttons = r, n.buttons = i(n.buttons), n.buttons = V(n.buttons), n.searchable = !!((e = (t = this.$slots)["search-form"]) != null && e.call(t)), n;
133
+ let n = K({}, this.toolbarAttrs, {}), r = (n == null ? void 0 : n.buttons) || this.$parent.buttons;
134
+ return r = r || [], n.buttons = r, n.buttons = i(n.buttons), n.buttons = U(n.buttons), n.searchable = !!((e = (t = this.$slots)["search-form"]) != null && e.call(t)), n;
133
135
  },
134
136
  treeProps() {
135
- return e(W({}, this.treeAttrs, {
137
+ return e(K({}, this.treeAttrs, {
136
138
  treeProps: {
137
139
  children: "children",
138
140
  label: "label",
139
- isLeaf: (e) => L(e, "hasChildren") ? !e.hasChildren : L(e, "hasChild") ? !e.hasChild : !0
141
+ isLeaf: (e) => z(e, "hasChildren") ? !e.hasChildren : z(e, "hasChild") ? !e.hasChild : !0
140
142
  },
141
143
  show: !1,
142
144
  lazy: !0,
@@ -153,14 +155,14 @@ var G = [
153
155
  highlightCurrentRow: !0,
154
156
  api: t
155
157
  };
156
- return e(W({}, this.tableAttrs, n));
158
+ return e(K({}, this.tableAttrs, n));
157
159
  },
158
160
  searchPanelProps() {
159
161
  let t = {
160
162
  width: 350,
161
163
  model: this.searchModel || {}
162
164
  };
163
- return e(W({}, this.searchPanelAttrs, t));
165
+ return e(K({}, this.searchPanelAttrs, t));
164
166
  },
165
167
  toolbarEventHandlers() {
166
168
  if (this.toolbarListeners) {
@@ -217,12 +219,12 @@ var G = [
217
219
  async del() {
218
220
  var e;
219
221
  let t = this.deleteApi || this.$parent.del;
220
- if (!((e = this.toolbarListeners) != null && e.del) && z(t)) {
222
+ if (!((e = this.toolbarListeners) != null && e.del) && V(t)) {
221
223
  if (!this.selectedRows.length) {
222
- this.$message.warning(this.selectTips || "请选择要删除的记录!");
224
+ g.warning(this.selectTips || "请选择要删除的记录!");
223
225
  return;
224
226
  }
225
- await this.$confirm(this.deleteTips || `您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`, "系统提示", {
227
+ await _.confirm(this.deleteTips || `您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`, "系统提示", {
226
228
  type: "warning",
227
229
  modal: !0,
228
230
  dangerouslyUseHTMLString: !0,
@@ -231,7 +233,7 @@ var G = [
231
233
  if (e === "confirm") try {
232
234
  n.confirmButtonLoading = !0, n.confirmButtonText = "删除...";
233
235
  let e = await t.call(this, this.selectedRows.map((e) => e[this.rowKey]));
234
- this.$message.success(e.data.msg || "删除成功"), this.reloadTableAndTree(), a();
236
+ g.success(e.data.msg || "删除成功"), this.reloadTableAndTree(), a();
235
237
  } catch {}
236
238
  r();
237
239
  }
@@ -267,43 +269,43 @@ var G = [
267
269
  return this.$refs.table.tableColumns;
268
270
  }
269
271
  }
270
- }, q = { class: "table-view-wrapper" }, J = {
272
+ }, Y = { class: "table-view-wrapper" }, X = {
271
273
  key: 0,
272
274
  class: "search-form-top"
273
- }, 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" };
274
- function ee(e, t, n, i, a, o) {
275
- let s = c, L = u, R = g, z = d, B = m, V = p, H = f, U = l, W = r, G = h;
276
- return O(), b("div", { class: E(["table-view", {
275
+ }, Z = { class: "table-view-content-wrapper" }, Q = { class: "table-view-content" }, $ = { class: "table-view-table" }, ee = { class: "slide-panel-content" }, te = { class: "slide-panel-actions" };
276
+ function ne(e, t, n, i, a, o) {
277
+ let s = c, g = u, _ = v, z = d, B = m, V = p, H = f, U = l, W = r, G = h;
278
+ return A(), S("div", { class: O(["table-view", {
277
279
  embed: n.embed,
278
280
  "has-tree": o.treeProps.show
279
- }]) }, [x("div", q, [
280
- y("搜索条件"),
281
- n.searchFormPosition === "top" ? (O(), v(V, { key: 0 }, {
282
- default: P(() => [o.toolbarProps.searchable ? F((O(), b("div", J, [w(B, {
281
+ }]) }, [C("div", Y, [
282
+ x("搜索条件"),
283
+ n.searchFormPosition === "top" ? (A(), b(V, { key: 0 }, {
284
+ default: I(() => [o.toolbarProps.searchable ? L((A(), S("div", X, [E(B, {
283
285
  ref: "form",
284
286
  "label-position": "right",
285
287
  model: n.searchModel || o.searchPanelProps.model,
286
288
  "label-width": n.labelWidth,
287
- onSubmitCapture: I(o.onSearchClick, ["prevent"])
289
+ onSubmitCapture: R(o.onSearchClick, ["prevent"])
288
290
  }, {
289
- default: P(() => [w(z, { reactive: "" }, {
290
- default: P(() => [w(R, { gutter: 0 }, {
291
- default: P(() => [A(e.$slots, "search-form", {}, () => [t[3] || (t[3] = x("p", null, "请添加搜索条件!", -1))]), w(L, {
291
+ default: I(() => [E(z, { reactive: "" }, {
292
+ default: I(() => [E(_, { gutter: 0 }, {
293
+ default: I(() => [M(e.$slots, "search-form", {}, () => [t[3] || (t[3] = C("p", null, "请添加搜索条件!", -1))]), E(g, {
292
294
  class: "search-actions",
293
295
  "hide-label": "",
294
296
  "fixed-span": 24
295
297
  }, {
296
- default: P(() => [w(s, {
298
+ default: I(() => [E(s, {
297
299
  type: "primary",
298
300
  "native-type": "submit"
299
301
  }, {
300
- default: P(() => [...t[4] || (t[4] = [C("开始搜索", -1)])]),
302
+ default: I(() => [...t[4] || (t[4] = [T("开始搜索", -1)])]),
301
303
  _: 1
302
- }), w(s, {
304
+ }), E(s, {
303
305
  style: { "margin-left": "10px" },
304
306
  onClick: o.onClearClick
305
307
  }, {
306
- default: P(() => [...t[5] || (t[5] = [C("清除条件", -1)])]),
308
+ default: I(() => [...t[5] || (t[5] = [T("清除条件", -1)])]),
307
309
  _: 1
308
310
  }, 8, ["onClick"])]),
309
311
  _: 1
@@ -317,11 +319,11 @@ function ee(e, t, n, i, a, o) {
317
319
  "model",
318
320
  "label-width",
319
321
  "onSubmitCapture"
320
- ])], 512)), [[N, a.isSearchVisible]]) : y("v-if", !0)]),
322
+ ])], 512)), [[F, a.isSearchVisible]]) : x("v-if", !0)]),
321
323
  _: 3
322
- })) : y("v-if", !0),
323
- y("顶部工具条"),
324
- n.showToolbar ? (O(), v(H, T({ key: 1 }, o.toolbarProps, {
324
+ })) : x("v-if", !0),
325
+ x("顶部工具条"),
326
+ n.showToolbar ? (A(), b(H, D({ key: 1 }, o.toolbarProps, {
325
327
  refreshable: "",
326
328
  onSearch: o.toggleSearch,
327
329
  onSettings: t[0] || (t[0] = () => e.$refs.table.toggleSettings()),
@@ -330,20 +332,20 @@ function ee(e, t, n, i, a, o) {
330
332
  onReload: o.reloadTableAndTree,
331
333
  onExp: o.exp,
332
334
  onImp: t[1] || (t[1] = (e) => a.importDialogVisible = !0)
333
- }, M(o.toolbarEventHandlers)), S({ _: 2 }, [
335
+ }, P(o.toolbarEventHandlers)), w({ _: 2 }, [
334
336
  e.$slots["toolbar-button"] ? {
335
337
  name: "default",
336
- fn: P(() => [A(e.$slots, "toolbar-button", { selectedRows: a.selectedRows })]),
338
+ fn: I(() => [M(e.$slots, "toolbar-button", { selectedRows: a.selectedRows })]),
337
339
  key: "0"
338
340
  } : void 0,
339
341
  e.$slots["toolbar-left"] ? {
340
342
  name: "toolbar-left",
341
- fn: P(() => [A(e.$slots, "toolbar-left", { selectedRows: a.selectedRows })]),
343
+ fn: I(() => [M(e.$slots, "toolbar-left", { selectedRows: a.selectedRows })]),
342
344
  key: "1"
343
345
  } : void 0,
344
346
  e.$slots["toolbar-right"] ? {
345
347
  name: "toolbar-right",
346
- fn: P(() => [A(e.$slots, "toolbar-right", {
348
+ fn: I(() => [M(e.$slots, "toolbar-right", {
347
349
  del: o.del,
348
350
  create: o.create,
349
351
  reload: o.reloadTableAndTree,
@@ -353,12 +355,12 @@ function ee(e, t, n, i, a, o) {
353
355
  } : void 0,
354
356
  e.$slots["toolbar-right-button"] ? {
355
357
  name: "toolbar-right-button",
356
- fn: P(() => [A(e.$slots, "toolbar-right-button")]),
358
+ fn: I(() => [M(e.$slots, "toolbar-right-button")]),
357
359
  key: "3"
358
360
  } : void 0,
359
- k(o.buttonSlots, (t) => ({
361
+ j(o.buttonSlots, (t) => ({
360
362
  name: t,
361
- fn: P(() => [A(e.$slots, t, { selectedRows: a.selectedRows })])
363
+ fn: I(() => [M(e.$slots, t, { selectedRows: a.selectedRows })])
362
364
  }))
363
365
  ]), 1040, [
364
366
  "onSearch",
@@ -366,27 +368,27 @@ function ee(e, t, n, i, a, o) {
366
368
  "onCreate",
367
369
  "onReload",
368
370
  "onExp"
369
- ])) : y("v-if", !0),
370
- x("div", Y, [
371
- x("div", X, [
372
- y("侧栏"),
373
- o.treeProps.show ? (O(), b("div", {
371
+ ])) : x("v-if", !0),
372
+ C("div", Z, [
373
+ C("div", Q, [
374
+ x("侧栏"),
375
+ o.treeProps.show ? (A(), S("div", {
374
376
  key: 0,
375
377
  ref: "treeScroller",
376
378
  class: "table-view-sidebar",
377
379
  onScroll: t[2] || (t[2] = (...e) => o.onTreeScroll && o.onTreeScroll(...e))
378
- }, [y("<div style=\"font-size: 16px\">视图导航</div>"), w(U, T({ ref: "tree" }, o.treeProps, { readonly: "" }, M(o.toHyphenateKey(n.treeListeners))), {
379
- default: P(({ node: t, data: n }) => [A(e.$slots, "tree-node", {
380
+ }, [x("<div style=\"font-size: 16px\">视图导航</div>"), E(U, D({ ref: "tree" }, o.treeProps, { readonly: "" }, P(o.toHyphenateKey(n.treeListeners))), {
381
+ default: I(({ node: t, data: n }) => [M(e.$slots, "tree-node", {
380
382
  node: t,
381
383
  data: n
382
- }, () => [x("span", null, [x("i", { class: E([t.childNodes.length > 0 ? t.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets", "node-icon"]) }, null, 2), A(e.$slots, "tree-label", {
384
+ }, () => [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", {
383
385
  node: t,
384
386
  data: n
385
- }, () => [C(j(t.label), 1)])])])]),
387
+ }, () => [T(N(t.label), 1)])])])]),
386
388
  _: 3
387
- }, 16)], 544)) : y("v-if", !0),
388
- y("表格"),
389
- x("div", Z, [w(W, T({
389
+ }, 16)], 544)) : x("v-if", !0),
390
+ x("表格"),
391
+ C("div", $, [E(W, D({
390
392
  ref: "table",
391
393
  border: n.border,
392
394
  class: [{
@@ -399,15 +401,15 @@ function ee(e, t, n, i, a, o) {
399
401
  "row-key": n.rowKey,
400
402
  "row-db-click": o.rowDbClick,
401
403
  data: n.data
402
- }, M(o.toHyphenateKey(n.tableListeners)), {
404
+ }, P(o.toHyphenateKey(n.tableListeners)), {
403
405
  onRowDblclick: o.rowDbClick,
404
406
  onSelectionChange: o.onSelectionChange
405
- }), S({
406
- default: P(() => [A(e.$slots, "columns")]),
407
+ }), w({
408
+ default: I(() => [M(e.$slots, "columns")]),
407
409
  _: 2
408
- }, [k(o.tableScopeSlotNames, (t) => ({
410
+ }, [j(o.tableScopeSlotNames, (t) => ({
409
411
  name: t,
410
- fn: P(({ row: n }) => [A(e.$slots, t, { row: n })])
412
+ fn: I(({ row: n }) => [M(e.$slots, t, { row: n })])
411
413
  }))]), 1040, [
412
414
  "border",
413
415
  "class",
@@ -418,40 +420,40 @@ function ee(e, t, n, i, a, o) {
418
420
  "onSelectionChange"
419
421
  ])])
420
422
  ]),
421
- y("搜索条件"),
422
- n.searchFormPosition === "right" ? (O(), v(_, {
423
+ x("搜索条件"),
424
+ n.searchFormPosition === "right" ? (A(), b(y, {
423
425
  key: 0,
424
426
  name: "slide"
425
427
  }, {
426
- default: P(() => [o.toolbarProps.searchable ? F((O(), b("div", {
428
+ default: I(() => [o.toolbarProps.searchable ? L((A(), S("div", {
427
429
  key: 0,
428
- style: D({ width: `${o.searchPanelProps.width}px` }),
430
+ style: k({ width: `${o.searchPanelProps.width}px` }),
429
431
  class: "slide-panel"
430
- }, [y("<div class=\"slide-panel-line\">\n <div class=\"slide-panel-line-indicator\"></div>\n </div>"), x("div", Q, [w(B, {
432
+ }, [x("<div class=\"slide-panel-line\">\n <div class=\"slide-panel-line-indicator\"></div>\n </div>"), C("div", ee, [E(B, {
431
433
  ref: "form",
432
434
  "label-position": "right",
433
435
  model: n.searchModel || o.searchPanelProps.model,
434
436
  "label-width": n.labelWidth,
435
- onSubmitCapture: I(o.onSearchClick, ["prevent"])
437
+ onSubmitCapture: R(o.onSearchClick, ["prevent"])
436
438
  }, {
437
- default: P(() => [w(z, {
439
+ default: I(() => [E(z, {
438
440
  block: "",
439
441
  "wrap-col": !1
440
442
  }, {
441
- default: P(() => [w(R, { gutter: 0 }, {
442
- default: P(() => [A(e.$slots, "search-form", {}, () => [t[6] || (t[6] = x("p", null, "请添加搜索条件!", -1))])]),
443
+ default: I(() => [E(_, { gutter: 0 }, {
444
+ default: I(() => [M(e.$slots, "search-form", {}, () => [t[6] || (t[6] = C("p", null, "请添加搜索条件!", -1))])]),
443
445
  _: 3
444
446
  })]),
445
447
  _: 3
446
- }), w(G, { "label-width": "0" }, {
447
- default: P(() => [x("div", $, [w(s, {
448
+ }), E(G, { "label-width": "0" }, {
449
+ default: I(() => [C("div", te, [E(s, {
448
450
  type: "primary",
449
451
  "native-type": "submit"
450
452
  }, {
451
- default: P(() => [...t[7] || (t[7] = [C("开始搜索", -1)])]),
453
+ default: I(() => [...t[7] || (t[7] = [T("开始搜索", -1)])]),
452
454
  _: 1
453
- }), w(s, { onClick: o.onClearClick }, {
454
- default: P(() => [...t[8] || (t[8] = [C("清除条件", -1)])]),
455
+ }), E(s, { onClick: o.onClearClick }, {
456
+ default: I(() => [...t[8] || (t[8] = [T("清除条件", -1)])]),
455
457
  _: 1
456
458
  }, 8, ["onClick"])])]),
457
459
  _: 1
@@ -461,13 +463,13 @@ function ee(e, t, n, i, a, o) {
461
463
  "model",
462
464
  "label-width",
463
465
  "onSubmitCapture"
464
- ])])], 4)), [[N, a.isSearchVisible]]) : y("v-if", !0)]),
466
+ ])])], 4)), [[F, a.isSearchVisible]]) : x("v-if", !0)]),
465
467
  _: 3
466
- })) : y("v-if", !0)
468
+ })) : x("v-if", !0)
467
469
  ]),
468
- A(e.$slots, "default")
470
+ M(e.$slots, "default")
469
471
  ])], 2);
470
472
  }
471
- var te = /* @__PURE__ */ n(K, [["render", ee]]);
473
+ var re = /* @__PURE__ */ n(J, [["render", ne]]);
472
474
  //#endregion
473
- export { te as default };
475
+ export { re as default };
@@ -0,0 +1,48 @@
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ enable: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ count: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ tags: {
11
+ type: ArrayConstructor;
12
+ default: () => never[];
13
+ };
14
+ transfer: {
15
+ type: FunctionConstructor;
16
+ default: null;
17
+ };
18
+ }>, {}, {}, {
19
+ internalTags(): any[];
20
+ }, {
21
+ getTagName(tag: any): any;
22
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("add" | "close")[], "add" | "close", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
23
+ enable: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ count: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ tags: {
32
+ type: ArrayConstructor;
33
+ default: () => never[];
34
+ };
35
+ transfer: {
36
+ type: FunctionConstructor;
37
+ default: null;
38
+ };
39
+ }>> & Readonly<{
40
+ onClose?: ((...args: any[]) => any) | undefined;
41
+ onAdd?: ((...args: any[]) => any) | undefined;
42
+ }>, {
43
+ enable: boolean;
44
+ count: boolean;
45
+ tags: unknown[];
46
+ transfer: Function;
47
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
48
+ export default _default;
@@ -0,0 +1,111 @@
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ content: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ direction: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ rows: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: number;
13
+ };
14
+ expandText: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ collapseText: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ symbol: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ lineHeight: {
27
+ type: (StringConstructor | NumberConstructor)[];
28
+ default: string;
29
+ };
30
+ }>, {}, {
31
+ ellipsis: {
32
+ leading: string;
33
+ tailing: string;
34
+ };
35
+ maxHeight: number;
36
+ exceeded: boolean;
37
+ expanded: boolean;
38
+ }, {}, {
39
+ /**
40
+ * 创建虚拟 container,内容为 props.content 的内容
41
+ */
42
+ createContainer(): void;
43
+ /**
44
+ * 展开收起
45
+ * @param type
46
+ */
47
+ clickHandle(type: any): void;
48
+ /**
49
+ * 文本点击
50
+ */
51
+ handleClick(): void;
52
+ /**
53
+ * 计算省略号的位置
54
+ * @param container
55
+ */
56
+ calcEllipse(container: any): void;
57
+ tailorMiddle(leftPart: any, rightPart: any, container: any): any;
58
+ /**
59
+ * 计算 start/end 省略
60
+ * @param left
61
+ * @param right
62
+ * @param container
63
+ * @return {{leading: string}|{tailing: string}|*}
64
+ */
65
+ tailor(left: any, right: any, container: any): {
66
+ leading: string;
67
+ } | {
68
+ tailing: string;
69
+ } | any;
70
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "click")[], "change" | "click", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
71
+ content: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ direction: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ rows: {
80
+ type: (StringConstructor | NumberConstructor)[];
81
+ default: number;
82
+ };
83
+ expandText: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ collapseText: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ symbol: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ lineHeight: {
96
+ type: (StringConstructor | NumberConstructor)[];
97
+ default: string;
98
+ };
99
+ }>> & Readonly<{
100
+ onChange?: ((...args: any[]) => any) | undefined;
101
+ onClick?: ((...args: any[]) => any) | undefined;
102
+ }>, {
103
+ symbol: string;
104
+ rows: string | number;
105
+ content: string;
106
+ direction: string;
107
+ expandText: string;
108
+ collapseText: string;
109
+ lineHeight: string | number;
110
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
111
+ export default _default;
@@ -0,0 +1,129 @@
1
+ import { toolbarContextKey } from '../../constants';
2
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
3
+ searchable: BooleanConstructor;
4
+ refreshable: BooleanConstructor;
5
+ buttons: {
6
+ type: ArrayConstructor;
7
+ default: () => string[];
8
+ };
9
+ back: FunctionConstructor;
10
+ cancel: FunctionConstructor;
11
+ emitter: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ footer: BooleanConstructor;
16
+ label: ObjectConstructor;
17
+ }>, {}, {}, {}, {
18
+ goBack(): void;
19
+ createButton(key: any, { label, icon, type, separateLine, loadable, circle, onClick, title }: {
20
+ label: any;
21
+ icon: any;
22
+ type: any;
23
+ separateLine?: boolean | undefined;
24
+ loadable: any;
25
+ circle: any;
26
+ onClick: any;
27
+ title: any;
28
+ }): any;
29
+ getLeftButtons(): any[];
30
+ getRightButtons(): any[];
31
+ getSearchButton(): any;
32
+ getRefreshButton(): any;
33
+ getSettingsButton(): any;
34
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
35
+ searchable: BooleanConstructor;
36
+ refreshable: BooleanConstructor;
37
+ buttons: {
38
+ type: ArrayConstructor;
39
+ default: () => string[];
40
+ };
41
+ back: FunctionConstructor;
42
+ cancel: FunctionConstructor;
43
+ emitter: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ footer: BooleanConstructor;
48
+ label: ObjectConstructor;
49
+ }>> & Readonly<{}>, {
50
+ footer: boolean;
51
+ searchable: boolean;
52
+ refreshable: boolean;
53
+ buttons: unknown[];
54
+ emitter: string;
55
+ }, {}, {}, {}, string, () => {
56
+ [toolbarContextKey]: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
57
+ searchable: BooleanConstructor;
58
+ refreshable: BooleanConstructor;
59
+ buttons: {
60
+ type: ArrayConstructor;
61
+ default: () => string[];
62
+ };
63
+ back: FunctionConstructor;
64
+ cancel: FunctionConstructor;
65
+ emitter: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ footer: BooleanConstructor;
70
+ label: ObjectConstructor;
71
+ }>> & Readonly<{}>, {}, {}, {}, {
72
+ goBack(): void;
73
+ createButton(key: any, { label, icon, type, separateLine, loadable, circle, onClick, title }: {
74
+ label: any;
75
+ icon: any;
76
+ type: any;
77
+ separateLine?: boolean | undefined;
78
+ loadable: any;
79
+ circle: any;
80
+ onClick: any;
81
+ title: any;
82
+ }): any;
83
+ getLeftButtons(): any[];
84
+ getRightButtons(): any[];
85
+ getSearchButton(): any;
86
+ getRefreshButton(): any;
87
+ getSettingsButton(): any;
88
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, {}, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
89
+ P: {};
90
+ B: {};
91
+ D: {};
92
+ C: {};
93
+ M: {};
94
+ Defaults: {};
95
+ }, Readonly<globalThis.ExtractPropTypes<{
96
+ searchable: BooleanConstructor;
97
+ refreshable: BooleanConstructor;
98
+ buttons: {
99
+ type: ArrayConstructor;
100
+ default: () => string[];
101
+ };
102
+ back: FunctionConstructor;
103
+ cancel: FunctionConstructor;
104
+ emitter: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ footer: BooleanConstructor;
109
+ label: ObjectConstructor;
110
+ }>> & Readonly<{}>, {}, {}, {}, {
111
+ goBack(): void;
112
+ createButton(key: any, { label, icon, type, separateLine, loadable, circle, onClick, title }: {
113
+ label: any;
114
+ icon: any;
115
+ type: any;
116
+ separateLine?: boolean | undefined;
117
+ loadable: any;
118
+ circle: any;
119
+ onClick: any;
120
+ title: any;
121
+ }): any;
122
+ getLeftButtons(): any[];
123
+ getRightButtons(): any[];
124
+ getSearchButton(): any;
125
+ getRefreshButton(): any;
126
+ getSettingsButton(): any;
127
+ }, {}>;
128
+ }, true, {}, any>;
129
+ export default _default;
package/toolbar/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/Bh2SlzOo.mjs";
1
+ import { t as e } from "../chunks/DgH_4qOn2.mjs";
2
2
  export { e as default };