@zl-ui-kit/components 0.0.0-stage → 0.3.0

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 (272) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +24 -2
  3. package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
  4. package/dist/components/ZlAction/List.css +1 -0
  5. package/dist/components/ZlAction/List.vue.d.ts +37 -0
  6. package/dist/components/ZlAction/List.vue.mjs +138 -0
  7. package/dist/components/ZlAction/List3.vue.mjs +6 -0
  8. package/dist/components/ZlAction/index.vue.d.ts +3 -0
  9. package/dist/components/ZlAction/index.vue.mjs +22 -0
  10. package/dist/components/ZlAction/index2.vue.mjs +5 -0
  11. package/dist/components/ZlAction/types.d.ts +20 -0
  12. package/dist/components/ZlAddSub/index.css +1 -0
  13. package/dist/components/ZlAddSub/index.vue.d.ts +32 -0
  14. package/dist/components/ZlAddSub/index.vue.mjs +8 -0
  15. package/dist/components/ZlAddSub/index2.vue.mjs +47 -0
  16. package/dist/components/ZlAppLayout/Horizontal.css +1 -0
  17. package/dist/components/ZlAppLayout/Horizontal.vue.d.ts +22 -0
  18. package/dist/components/ZlAppLayout/Horizontal.vue.mjs +6 -0
  19. package/dist/components/ZlAppLayout/Horizontal2.vue.mjs +42 -0
  20. package/dist/components/ZlAppLayout/Vertical.css +1 -0
  21. package/dist/components/ZlAppLayout/Vertical.vue.d.ts +27 -0
  22. package/dist/components/ZlAppLayout/Vertical.vue.mjs +6 -0
  23. package/dist/components/ZlAppLayout/Vertical2.vue.mjs +56 -0
  24. package/dist/components/ZlAppLayout/index.vue.d.ts +21 -0
  25. package/dist/components/ZlAppLayout/index.vue.mjs +17 -0
  26. package/dist/components/ZlAppLayout/index2.vue.mjs +5 -0
  27. package/dist/components/ZlAppMenu/AppMenu.css +1 -0
  28. package/dist/components/ZlAppMenu/AppMenu.vue.d.ts +25 -0
  29. package/dist/components/ZlAppMenu/AppMenu.vue.mjs +37 -0
  30. package/dist/components/ZlAppMenu/AppMenu3.vue.mjs +6 -0
  31. package/dist/components/ZlAppMenu/AppMenuItem.vue.d.ts +11 -0
  32. package/dist/components/ZlAppMenu/AppMenuItem.vue.mjs +58 -0
  33. package/dist/components/ZlAppMenu/AppMenuItem2.vue.mjs +5 -0
  34. package/dist/components/ZlAppSlogan/index.css +1 -0
  35. package/dist/components/ZlAppSlogan/index.vue.d.ts +8 -0
  36. package/dist/components/ZlAppSlogan/index.vue.mjs +30 -0
  37. package/dist/components/ZlAppSlogan/index3.vue.mjs +6 -0
  38. package/dist/components/ZlAutoTooltip/index.css +1 -0
  39. package/dist/components/ZlAutoTooltip/index.vue.d.ts +19 -0
  40. package/dist/components/ZlAutoTooltip/index.vue.mjs +8 -0
  41. package/dist/components/ZlAutoTooltip/index2.vue.mjs +49 -0
  42. package/dist/components/ZlAvatar/Group.css +1 -0
  43. package/dist/components/ZlAvatar/Group.vue.d.ts +17 -0
  44. package/dist/components/ZlAvatar/Group.vue.mjs +8 -0
  45. package/dist/components/ZlAvatar/Group2.vue.mjs +37 -0
  46. package/dist/components/ZlAvatar/index.css +1 -0
  47. package/dist/components/ZlAvatar/index.vue.d.ts +11 -0
  48. package/dist/components/ZlAvatar/index.vue.mjs +8 -0
  49. package/dist/components/ZlAvatar/index2.vue.mjs +39 -0
  50. package/dist/components/ZlCard/index.css +1 -0
  51. package/dist/components/ZlCard/index.vue.d.ts +30 -0
  52. package/dist/components/ZlCard/index.vue.mjs +48 -0
  53. package/dist/components/ZlCard/index3.vue.mjs +6 -0
  54. package/dist/components/ZlCardPage/index.css +1 -0
  55. package/dist/components/ZlCardPage/index.vue.d.ts +642 -0
  56. package/dist/components/ZlCardPage/index.vue.mjs +114 -0
  57. package/dist/components/ZlCardPage/index3.vue.mjs +6 -0
  58. package/dist/components/ZlChart/index.css +1 -0
  59. package/dist/components/ZlChart/index.vue.d.ts +12 -0
  60. package/dist/components/ZlChart/index.vue.mjs +48 -0
  61. package/dist/components/ZlChart/index3.vue.mjs +6 -0
  62. package/dist/components/ZlCheckAll/index.css +1 -0
  63. package/dist/components/ZlCheckAll/index.vue.d.ts +20 -0
  64. package/dist/components/ZlCheckAll/index.vue.mjs +8 -0
  65. package/dist/components/ZlCheckAll/index2.vue.mjs +55 -0
  66. package/dist/components/ZlCheckboxTag/index.css +1 -0
  67. package/dist/components/ZlCheckboxTag/index.vue.d.ts +52 -0
  68. package/dist/components/ZlCheckboxTag/index.vue.mjs +68 -0
  69. package/dist/components/ZlCheckboxTag/index3.vue.mjs +6 -0
  70. package/dist/components/ZlCopy/copy.d.ts +5 -0
  71. package/dist/components/ZlCopy/copy.mjs +12 -0
  72. package/dist/components/ZlCopy/index.css +1 -0
  73. package/dist/components/ZlCopy/index.vue.d.ts +30 -0
  74. package/dist/components/ZlCopy/index.vue.mjs +8 -0
  75. package/dist/components/ZlCopy/index2.vue.mjs +54 -0
  76. package/dist/components/ZlDescription/index.css +1 -0
  77. package/dist/components/ZlDescription/index.vue.d.ts +41 -0
  78. package/dist/components/ZlDescription/index.vue.mjs +59 -0
  79. package/dist/components/ZlDescription/index3.vue.mjs +6 -0
  80. package/dist/components/ZlDictTag/index.vue.d.ts +16 -0
  81. package/dist/components/ZlDictTag/index.vue.mjs +52 -0
  82. package/dist/components/ZlDictTag/index2.vue.mjs +5 -0
  83. package/dist/components/ZlDrawer/index.css +1 -0
  84. package/dist/components/ZlDrawer/index.vue.d.ts +35 -0
  85. package/dist/components/ZlDrawer/index.vue.mjs +83 -0
  86. package/dist/components/ZlDrawer/index3.vue.mjs +6 -0
  87. package/dist/components/ZlDynamicComponent/index.vue.d.ts +46 -0
  88. package/dist/components/ZlDynamicComponent/index.vue.mjs +80 -0
  89. package/dist/components/ZlDynamicComponent/index2.vue.mjs +5 -0
  90. package/dist/components/ZlDynamicComponent/types.d.ts +28 -0
  91. package/dist/components/ZlEditor/ZlSqlEditor.vue.d.ts +59 -0
  92. package/dist/components/ZlEditor/ZlSqlEditor.vue.mjs +67 -0
  93. package/dist/components/ZlEditor/ZlSqlEditor2.vue.mjs +5 -0
  94. package/dist/components/ZlEditor/index.css +1 -0
  95. package/dist/components/ZlEditor/index.vue.d.ts +19 -0
  96. package/dist/components/ZlEditor/index.vue.mjs +55 -0
  97. package/dist/components/ZlEditor/index3.vue.mjs +6 -0
  98. package/dist/components/ZlEditor/setupMonacoEnvironment.d.ts +16 -0
  99. package/dist/components/ZlEditor/setupMonacoEnvironment.mjs +9 -0
  100. package/dist/components/ZlEditor/useSqlCompletion.d.ts +16 -0
  101. package/dist/components/ZlEditor/useSqlCompletion.mjs +91 -0
  102. package/dist/components/ZlEditor/zl-editor-theme.d.ts +2 -0
  103. package/dist/components/ZlEmpty/index.css +1 -0
  104. package/dist/components/ZlEmpty/index.vue.d.ts +11 -0
  105. package/dist/components/ZlEmpty/index.vue.mjs +8 -0
  106. package/dist/components/ZlEmpty/index2.vue.mjs +74 -0
  107. package/dist/components/ZlFilePreview/FileFetchError.css +1 -0
  108. package/dist/components/ZlFilePreview/FileFetchError.vue.d.ts +3 -0
  109. package/dist/components/ZlFilePreview/FileFetchError.vue.mjs +8 -0
  110. package/dist/components/ZlFilePreview/FileFetchError2.vue.mjs +14 -0
  111. package/dist/components/ZlFilePreview/components.d.ts +13 -0
  112. package/dist/components/ZlFilePreview/components.mjs +101 -0
  113. package/dist/components/ZlFilePreview/index.css +1 -0
  114. package/dist/components/ZlFilePreview/index.vue.d.ts +6 -0
  115. package/dist/components/ZlFilePreview/index.vue.mjs +63 -0
  116. package/dist/components/ZlFilePreview/index3.vue.mjs +6 -0
  117. package/dist/components/ZlFileViewer/index.css +1 -0
  118. package/dist/components/ZlFileViewer/index.vue.d.ts +8 -0
  119. package/dist/components/ZlFileViewer/index.vue.mjs +8 -0
  120. package/dist/components/ZlFileViewer/index2.vue.mjs +26 -0
  121. package/dist/components/ZlForm/ZlFormChild.vue.d.ts +16 -0
  122. package/dist/components/ZlForm/ZlFormChild.vue.mjs +12 -0
  123. package/dist/components/ZlForm/ZlFormChild2.vue.mjs +5 -0
  124. package/dist/components/ZlForm/index.css +1 -0
  125. package/dist/components/ZlForm/index.vue.d.ts +59 -0
  126. package/dist/components/ZlForm/index.vue.mjs +133 -0
  127. package/dist/components/ZlForm/index3.vue.mjs +6 -0
  128. package/dist/components/ZlGrid/ZlGridItem.vue.d.ts +26 -0
  129. package/dist/components/ZlGrid/ZlGridItem.vue.mjs +49 -0
  130. package/dist/components/ZlGrid/ZlGridItem2.vue.mjs +5 -0
  131. package/dist/components/ZlGrid/context.d.ts +8 -0
  132. package/dist/components/ZlGrid/context.mjs +5 -0
  133. package/dist/components/ZlGrid/index.css +1 -0
  134. package/dist/components/ZlGrid/index.vue.d.ts +41 -0
  135. package/dist/components/ZlGrid/index.vue.mjs +72 -0
  136. package/dist/components/ZlGrid/index3.vue.mjs +6 -0
  137. package/dist/components/ZlGrid/types.d.ts +20 -0
  138. package/dist/components/ZlHorizontalTable/index.css +1 -0
  139. package/dist/components/ZlHorizontalTable/index.vue.d.ts +52 -0
  140. package/dist/components/ZlHorizontalTable/index.vue.mjs +8 -0
  141. package/dist/components/ZlHorizontalTable/index2.vue.mjs +54 -0
  142. package/dist/components/ZlI18nProvider/index.vue.d.ts +18 -0
  143. package/dist/components/ZlI18nProvider/index.vue.mjs +21 -0
  144. package/dist/components/ZlI18nProvider/index2.vue.mjs +5 -0
  145. package/dist/components/ZlIcon/index.css +1 -0
  146. package/dist/components/ZlIcon/index.vue.d.ts +22 -0
  147. package/dist/components/ZlIcon/index.vue.mjs +8 -0
  148. package/dist/components/ZlIcon/index2.vue.mjs +34 -0
  149. package/dist/components/ZlIcon/presetIconifyIcon.d.ts +5 -0
  150. package/dist/components/ZlIcon/presetIconifyIcon.mjs +10 -0
  151. package/dist/components/ZlIconHover/index.vue.d.ts +3 -0
  152. package/dist/components/ZlIconHover/index.vue.mjs +14 -0
  153. package/dist/components/ZlIconHover/index2.vue.mjs +5 -0
  154. package/dist/components/ZlIconLabel/index.css +1 -0
  155. package/dist/components/ZlIconLabel/index.vue.d.ts +28 -0
  156. package/dist/components/ZlIconLabel/index.vue.mjs +31 -0
  157. package/dist/components/ZlIconLabel/index3.vue.mjs +6 -0
  158. package/dist/components/ZlLayoutSwitch/index.css +1 -0
  159. package/dist/components/ZlLayoutSwitch/index.vue.d.ts +15 -0
  160. package/dist/components/ZlLayoutSwitch/index.vue.mjs +8 -0
  161. package/dist/components/ZlLayoutSwitch/index2.vue.mjs +48 -0
  162. package/dist/components/ZlLogin/components/LoginForm.css +1 -0
  163. package/dist/components/ZlLogin/components/LoginForm.vue.d.ts +73 -0
  164. package/dist/components/ZlLogin/components/LoginForm.vue.mjs +8 -0
  165. package/dist/components/ZlLogin/components/LoginForm2.vue.mjs +105 -0
  166. package/dist/components/ZlLogin/components/SlideChecker.css +1 -0
  167. package/dist/components/ZlLogin/components/SlideChecker.vue.d.ts +15 -0
  168. package/dist/components/ZlLogin/components/SlideChecker.vue.mjs +8 -0
  169. package/dist/components/ZlLogin/components/SlideChecker2.vue.mjs +58 -0
  170. package/dist/components/ZlLogin/index.css +1 -0
  171. package/dist/components/ZlLogin/index.vue.d.ts +33 -0
  172. package/dist/components/ZlLogin/index.vue.mjs +63 -0
  173. package/dist/components/ZlLogin/index3.vue.mjs +6 -0
  174. package/dist/components/ZlPagination/index.css +1 -0
  175. package/dist/components/ZlPagination/index.vue.d.ts +17 -0
  176. package/dist/components/ZlPagination/index.vue.mjs +8 -0
  177. package/dist/components/ZlPagination/index2.vue.mjs +43 -0
  178. package/dist/components/ZlPagination/usePagination.d.ts +20 -0
  179. package/dist/components/ZlPagination/usePagination.mjs +39 -0
  180. package/dist/components/ZlPdfViewer/index.css +1 -0
  181. package/dist/components/ZlPdfViewer/index.vue.d.ts +7 -0
  182. package/dist/components/ZlPdfViewer/index.vue.mjs +23 -0
  183. package/dist/components/ZlPdfViewer/index3.vue.mjs +6 -0
  184. package/dist/components/ZlPermission/index.vue.d.ts +22 -0
  185. package/dist/components/ZlPermission/index.vue.mjs +17 -0
  186. package/dist/components/ZlPermission/index2.vue.mjs +5 -0
  187. package/dist/components/ZlPermission/usePermission.d.ts +12 -0
  188. package/dist/components/ZlPermission/usePermission.mjs +34 -0
  189. package/dist/components/ZlPopconfirm/index.css +1 -0
  190. package/dist/components/ZlPopconfirm/index.vue.d.ts +36 -0
  191. package/dist/components/ZlPopconfirm/index.vue.mjs +85 -0
  192. package/dist/components/ZlPopconfirm/index3.vue.mjs +6 -0
  193. package/dist/components/ZlRadioTag/index.css +1 -0
  194. package/dist/components/ZlRadioTag/index.vue.d.ts +42 -0
  195. package/dist/components/ZlRadioTag/index.vue.mjs +62 -0
  196. package/dist/components/ZlRadioTag/index3.vue.mjs +6 -0
  197. package/dist/components/ZlSearch/index.css +1 -0
  198. package/dist/components/ZlSearch/index.vue.d.ts +420 -0
  199. package/dist/components/ZlSearch/index.vue.mjs +244 -0
  200. package/dist/components/ZlSearch/index3.vue.mjs +6 -0
  201. package/dist/components/ZlSearchTable/index.css +1 -0
  202. package/dist/components/ZlSearchTable/index.vue.d.ts +841 -0
  203. package/dist/components/ZlSearchTable/index.vue.mjs +125 -0
  204. package/dist/components/ZlSearchTable/index3.vue.mjs +6 -0
  205. package/dist/components/ZlSection/index.css +1 -0
  206. package/dist/components/ZlSection/index.vue.d.ts +29 -0
  207. package/dist/components/ZlSection/index.vue.mjs +49 -0
  208. package/dist/components/ZlSection/index3.vue.mjs +6 -0
  209. package/dist/components/ZlSorter/ZlSorterList.css +1 -0
  210. package/dist/components/ZlSorter/ZlSorterList.vue.d.ts +24 -0
  211. package/dist/components/ZlSorter/ZlSorterList.vue.mjs +8 -0
  212. package/dist/components/ZlSorter/ZlSorterList2.vue.mjs +39 -0
  213. package/dist/components/ZlSorter/index.css +1 -0
  214. package/dist/components/ZlSorter/index.vue.d.ts +31 -0
  215. package/dist/components/ZlSorter/index.vue.mjs +8 -0
  216. package/dist/components/ZlSorter/index2.vue.mjs +46 -0
  217. package/dist/components/ZlSwitch/index.css +1 -0
  218. package/dist/components/ZlSwitch/index.vue.d.ts +35 -0
  219. package/dist/components/ZlSwitch/index.vue.mjs +47 -0
  220. package/dist/components/ZlSwitch/index3.vue.mjs +6 -0
  221. package/dist/components/ZlTable/index.css +1 -0
  222. package/dist/components/ZlTable/index.vue.d.ts +51 -0
  223. package/dist/components/ZlTable/index.vue.mjs +121 -0
  224. package/dist/components/ZlTable/index3.vue.mjs +6 -0
  225. package/dist/components/ZlTable/useTablePagination.d.ts +29 -0
  226. package/dist/components/ZlTable/useTablePagination.mjs +27 -0
  227. package/dist/components/ZlTabs/index.css +1 -0
  228. package/dist/components/ZlTabs/index.vue.d.ts +42 -0
  229. package/dist/components/ZlTabs/index.vue.mjs +44 -0
  230. package/dist/components/ZlTabs/index3.vue.mjs +6 -0
  231. package/dist/components/ZlTag/ZlCornerTag.css +1 -0
  232. package/dist/components/ZlTag/ZlCornerTag.vue.d.ts +25 -0
  233. package/dist/components/ZlTag/ZlCornerTag.vue.mjs +32 -0
  234. package/dist/components/ZlTag/ZlCornerTag3.vue.mjs +6 -0
  235. package/dist/components/ZlTag/index.css +1 -0
  236. package/dist/components/ZlTag/index.vue.d.ts +167 -0
  237. package/dist/components/ZlTag/index.vue.mjs +79 -0
  238. package/dist/components/ZlTag/index3.vue.mjs +6 -0
  239. package/dist/components/ZlText/index.css +1 -0
  240. package/dist/components/ZlText/index.vue.d.ts +21 -0
  241. package/dist/components/ZlText/index.vue.mjs +8 -0
  242. package/dist/components/ZlText/index2.vue.mjs +19 -0
  243. package/dist/components/ZlTitle/index.css +1 -0
  244. package/dist/components/ZlTitle/index.vue.d.ts +29 -0
  245. package/dist/components/ZlTitle/index.vue.mjs +8 -0
  246. package/dist/components/ZlTitle/index2.vue.mjs +59 -0
  247. package/dist/components/ZlTree/index.css +1 -0
  248. package/dist/components/ZlTree/index.vue.d.ts +47 -0
  249. package/dist/components/ZlTree/index.vue.mjs +104 -0
  250. package/dist/components/ZlTree/index3.vue.mjs +6 -0
  251. package/dist/components/ZlTreeSelect/index.css +1 -0
  252. package/dist/components/ZlTreeSelect/index.vue.d.ts +33 -0
  253. package/dist/components/ZlTreeSelect/index.vue.mjs +8 -0
  254. package/dist/components/ZlTreeSelect/index2.vue.mjs +75 -0
  255. package/dist/components/ZlUpload/index.css +1 -0
  256. package/dist/components/ZlUpload/index.vue.d.ts +50 -0
  257. package/dist/components/ZlUpload/index.vue.mjs +8 -0
  258. package/dist/components/ZlUpload/index2.vue.mjs +153 -0
  259. package/dist/index.d.ts +79 -0
  260. package/dist/index.mjs +227 -0
  261. package/dist/locales/createZlI18n.d.ts +43 -0
  262. package/dist/locales/createZlI18n.mjs +19 -0
  263. package/dist/locales/en.d.ts +7 -0
  264. package/dist/locales/en.mjs +40 -0
  265. package/dist/locales/index.d.ts +10 -0
  266. package/dist/locales/messages.d.ts +7 -0
  267. package/dist/locales/messages.mjs +13 -0
  268. package/dist/locales/zh-cn.d.ts +7 -0
  269. package/dist/locales/zh-cn.mjs +40 -0
  270. package/dist/types.d.ts +46 -0
  271. package/dist/utils/echarts.d.ts +69 -0
  272. package/package.json +112 -3
@@ -0,0 +1,125 @@
1
+ import { defineComponent as E, useSlots as K, useAttrs as T, computed as m, ref as b, toRef as V, watch as L, openBlock as y, createElementBlock as W, createBlock as Z, createSlots as q, withCtx as f, renderSlot as d, renderList as S, normalizeProps as $, guardReactiveProps as P, createCommentVNode as x, createVNode as F, mergeProps as G, unref as h } from "vue";
2
+ import { usePageableRequest as H } from "@zl-ui-kit/composables";
3
+ import J from "../ZlSearch/index.vue.mjs";
4
+ import '../ZlTable/index.css';import '../ZlSearch/index.css';/* empty css */
5
+ import M from "../ZlTable/index.vue.mjs";
6
+ /* empty css */
7
+ import { useTablePagination as Q } from "../ZlTable/useTablePagination.mjs";
8
+ const U = { class: "zl-search-table" }, R = "search-", ne = /* @__PURE__ */ E({
9
+ name: "ZlSearchTable",
10
+ inheritAttrs: !1,
11
+ __name: "index",
12
+ props: {
13
+ immediate: { type: Boolean, default: !0 },
14
+ request: {},
15
+ columns: { default: () => [] },
16
+ queryItems: { default: () => [] },
17
+ pagination: { type: [Object, Boolean] }
18
+ },
19
+ emits: ["search-reset"],
20
+ setup(r, { expose: w, emit: z }) {
21
+ const s = r, B = z, k = K(), p = T(), g = m(() => {
22
+ const e = [], t = [];
23
+ return Object.keys(k).forEach((a) => {
24
+ if (a.startsWith(R)) {
25
+ if (a === "search-actions")
26
+ return;
27
+ t.push({ slot: a, subSlot: a.slice(R.length) });
28
+ } else
29
+ e.push(a);
30
+ }), { table: e, search: t };
31
+ }), n = b(null), i = b(null), v = m(() => {
32
+ const e = { manual: !0, initialData: [] };
33
+ return typeof s.request == "function" ? { service: s.request, options: e } : {
34
+ ...s.request,
35
+ options: Object.assign({ initialData: [] }, s.request.options, { manual: !0 })
36
+ };
37
+ }), { loading: A, data: C, run: I, params: _, refresh: j } = H(v.value.service, v.value.options), N = m(() => _.value?.[0]), O = p.dataKey ?? p["data-key"] ?? "rows", { data: D, pagination: l } = Q({
38
+ data: C,
39
+ pagination: V(s, "pagination"),
40
+ dataKey: O,
41
+ // 分页事件由 ZlTable 内部处理,这里无需重复派发
42
+ emit: {}
43
+ });
44
+ let u;
45
+ function o(e, t = l.value !== !1 ? { pageNum: 1, pageSize: l.value.pageSize } : void 0) {
46
+ u = {
47
+ ...u,
48
+ ...e,
49
+ ...t
50
+ }, I(u);
51
+ }
52
+ return L(
53
+ () => s.immediate,
54
+ (e) => {
55
+ e && !s.queryItems.length && o();
56
+ },
57
+ { immediate: !0, once: !0 }
58
+ ), w({
59
+ refresh: j,
60
+ params: N,
61
+ search: new Proxy({}, {
62
+ get(e, t) {
63
+ return !n.value && t === "search" ? o : n.value?.[t];
64
+ },
65
+ has(e, t) {
66
+ return t in (n.value ?? {});
67
+ }
68
+ }),
69
+ table: new Proxy({}, {
70
+ get(e, t) {
71
+ return i.value?.[t];
72
+ },
73
+ has(e, t) {
74
+ return t in (i.value ?? {});
75
+ }
76
+ })
77
+ }), (e, t) => (y(), W("div", U, [
78
+ r.queryItems.length || e.$slots.searchActions || e.$slots["search-actions"] ? (y(), Z(J, {
79
+ key: 0,
80
+ ref_key: "searchRef",
81
+ ref: n,
82
+ items: r.queryItems,
83
+ immediate: r.immediate,
84
+ onSearch: o,
85
+ onReset: t[0] || (t[0] = (a) => B("search-reset"))
86
+ }, q({ _: 2 }, [
87
+ e.$slots.searchActions || e.$slots["search-actions"] ? {
88
+ name: "actions",
89
+ fn: f(() => [
90
+ d(e.$slots, "search-actions")
91
+ ]),
92
+ key: "0"
93
+ } : void 0,
94
+ S(g.value.search, (a) => ({
95
+ name: a.subSlot,
96
+ fn: f((c) => [
97
+ d(e.$slots, a.slot, $(P(c)))
98
+ ])
99
+ }))
100
+ ]), 1032, ["items", "immediate"])) : x("", !0),
101
+ F(M, G({
102
+ ref_key: "tableRef",
103
+ ref: i,
104
+ class: "zl-search-table__table",
105
+ columns: r.columns,
106
+ data: h(D),
107
+ pagination: h(l),
108
+ loading: h(A)
109
+ }, e.$attrs, {
110
+ onPaginationChange: t[1] || (t[1] = (a) => o(void 0, a))
111
+ }), q({ _: 2 }, [
112
+ S(g.value.table, (a) => ({
113
+ name: a,
114
+ fn: f((c) => [
115
+ d(e.$slots, a, $(P(c)))
116
+ ])
117
+ }))
118
+ ]), 1040, ["columns", "data", "pagination", "loading"])
119
+ ]));
120
+ }
121
+ });
122
+ export {
123
+ ne as default
124
+ };
125
+ //# sourceMappingURL=index.vue.mjs.map
@@ -0,0 +1,6 @@
1
+ import o from "./index.vue.mjs";
2
+ import './index.css';/* empty css */
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index3.vue.mjs.map
@@ -0,0 +1 @@
1
+ .zl-section{height:100%;background-color:var(--zl-bg-1);border-radius:var(--zl-radius-large, 6px);box-shadow:0 2px 5px 0 var(--zl-shadow, rgba(36, 46, 67, .1))}.zl-section.is-block{display:flex;flex-direction:column;overflow:hidden}.zl-section.is-block .zl-section__container{flex:1;overflow:auto}.zl-section.is-block-hidden .zl-section__container{overflow:hidden}.zl-section__header{display:flex;align-items:center;padding:10px 16px;border-bottom:1px solid var(--zl-border-2, #e3e9ef)}.zl-section__icon{font-size:12px;margin-right:4px}.zl-section__icon-wrap{display:flex}.zl-section__title{flex:1;color:var(--zl-text-1, #242e43);font-size:12px;font-weight:600;line-height:20px;display:flex;align-items:center}.zl-section__container{padding:10px 16px}
@@ -0,0 +1,29 @@
1
+ type __VLS_Props = {
2
+ /** 标题图标名(zl: 前缀自动补全) */
3
+ icon?: string;
4
+ title?: string;
5
+ /** 块状布局(内容区滚动) */
6
+ block?: boolean;
7
+ /** 块状布局且隐藏溢出 */
8
+ blockHidden?: boolean;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ 'title-prepend'?(_: {}): any;
14
+ actions?(_: {}): any;
15
+ default?(_: {}): any;
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
29
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1,49 @@
1
+ import { defineComponent as c, openBlock as n, createElementBlock as i, normalizeClass as a, createVNode as d, createCommentVNode as s, createElementVNode as t, toDisplayString as r, renderSlot as l } from "vue";
2
+ import m from "../ZlIcon/index.vue.mjs";
3
+ const _ = {
4
+ key: 0,
5
+ class: "zl-section__header"
6
+ }, k = {
7
+ key: 0,
8
+ class: "zl-section__icon-wrap"
9
+ }, u = { class: "zl-section__title" }, z = { class: "zl-section__actions" }, h = { class: "zl-section__container" }, y = /* @__PURE__ */ c({
10
+ name: "ZlSection",
11
+ __name: "index",
12
+ props: {
13
+ icon: {},
14
+ title: {},
15
+ block: { type: Boolean },
16
+ blockHidden: { type: Boolean }
17
+ },
18
+ setup(e) {
19
+ return (o, b) => (n(), i("section", {
20
+ class: a(["zl-section", {
21
+ "is-block": e.block || e.blockHidden,
22
+ "is-block-hidden": e.blockHidden
23
+ }])
24
+ }, [
25
+ e.title || o.$slots.actions ? (n(), i("div", _, [
26
+ e.icon ? (n(), i("div", k, [
27
+ d(m, {
28
+ class: "zl-section__icon",
29
+ icon: `zl:${e.icon}`
30
+ }, null, 8, ["icon"])
31
+ ])) : s("", !0),
32
+ t("div", u, [
33
+ t("span", null, r(e.title), 1),
34
+ l(o.$slots, "title-prepend")
35
+ ]),
36
+ t("div", z, [
37
+ l(o.$slots, "actions")
38
+ ])
39
+ ])) : s("", !0),
40
+ t("div", h, [
41
+ l(o.$slots, "default")
42
+ ])
43
+ ], 2));
44
+ }
45
+ });
46
+ export {
47
+ y as default
48
+ };
49
+ //# sourceMappingURL=index.vue.mjs.map
@@ -0,0 +1,6 @@
1
+ import o from "./index.vue.mjs";
2
+ import './index.css';/* empty css */
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index3.vue.mjs.map
@@ -0,0 +1 @@
1
+ .zl-sorter-list[data-v-01b68d91]{display:flex}.zl-sorter-list__separator[data-v-01b68d91]{margin:4px 2px;width:1px;background-color:var(--zl-border-2, #e3e9ef)}.zl-sorter-list__separator[data-v-01b68d91]:last-child{display:none}
@@ -0,0 +1,24 @@
1
+ export interface SorterItem {
2
+ label?: string;
3
+ model: string;
4
+ }
5
+ type __VLS_Props = {
6
+ sorters?: SorterItem[];
7
+ multiple?: boolean;
8
+ };
9
+ type __VLS_PublicProps = {
10
+ modelValue?: Record<string, any>;
11
+ } & __VLS_Props;
12
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ "update:modelValue": (value: Record<string, any>) => any;
14
+ } & {
15
+ change: (model: Record<string, any>, key: string, value: string) => any;
16
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
+ onChange?: ((model: Record<string, any>, key: string, value: string) => any) | undefined;
18
+ "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
19
+ }>, {
20
+ sorters: SorterItem[];
21
+ multiple: boolean;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ export default _default;
24
+ //# sourceMappingURL=ZlSorterList.vue.d.ts.map
@@ -0,0 +1,8 @@
1
+ import o from "./ZlSorterList2.vue.mjs";
2
+ import './ZlSorterList.css';/* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-01b68d91"]]);
5
+ export {
6
+ s as default
7
+ };
8
+ //# sourceMappingURL=ZlSorterList.vue.mjs.map
@@ -0,0 +1,39 @@
1
+ import { defineComponent as f, useModel as V, openBlock as n, createElementBlock as d, Fragment as s, renderList as g, createVNode as h, createElementVNode as v, mergeModels as u } from "vue";
2
+ import C from "./index.vue.mjs";
3
+ const _ = { class: "zl-sorter-list" }, L = /* @__PURE__ */ f({
4
+ name: "ZlSorterList",
5
+ __name: "ZlSorterList",
6
+ props: /* @__PURE__ */ u({
7
+ sorters: { default: () => [] },
8
+ multiple: { type: Boolean, default: !1 }
9
+ }, {
10
+ modelValue: { default: () => ({}) },
11
+ modelModifiers: {}
12
+ }),
13
+ emits: /* @__PURE__ */ u(["change"], ["update:modelValue"]),
14
+ setup(t, { emit: m }) {
15
+ const i = t, c = m, o = V(t, "modelValue");
16
+ function p(a, e) {
17
+ i.multiple || (o.value = {
18
+ [a]: e
19
+ }), c("change", o.value, a, e);
20
+ }
21
+ return (a, e) => (n(), d("div", _, [
22
+ (n(!0), d(s, null, g(t.sorters, (l) => (n(), d(s, {
23
+ key: l.model
24
+ }, [
25
+ h(C, {
26
+ modelValue: o.value[l.model],
27
+ "onUpdate:modelValue": (r) => o.value[l.model] = r,
28
+ label: l.label,
29
+ onChange: (r) => p(l.model, r)
30
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "onChange"]),
31
+ e[0] || (e[0] = v("div", { class: "zl-sorter-list__separator" }, null, -1))
32
+ ], 64))), 128))
33
+ ]));
34
+ }
35
+ });
36
+ export {
37
+ L as default
38
+ };
39
+ //# sourceMappingURL=ZlSorterList2.vue.mjs.map
@@ -0,0 +1 @@
1
+ .zl-sorter[data-v-e1d99cfd]{display:inline-flex;align-items:center;cursor:pointer;gap:4px;font-size:12px;padding:1px 4px}.zl-sorter__label[data-v-e1d99cfd]{color:var(--zl-text-2, #4d5e7d)}.zl-sorter__label.active[data-v-e1d99cfd]{color:var(--zl-link-6, var(--el-color-primary, #3261ce))}.zl-sorter__icon[data-v-e1d99cfd]{display:inline-flex;flex-direction:column;font-size:8px;color:var(--zl-text-4, #b3c0cc)}.zl-sorter__icon .active[data-v-e1d99cfd]{color:var(--zl-link-6, var(--el-color-primary, #3261ce))}
@@ -0,0 +1,31 @@
1
+ type __VLS_Props = {
2
+ label?: string;
3
+ };
4
+ type __VLS_PublicProps = {
5
+ modelValue?: '' | 'asc' | 'desc';
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLSpanElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:modelValue": (value: "" | "desc" | "asc") => any;
18
+ } & {
19
+ change: (value: "" | "desc" | "asc") => any;
20
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
+ onChange?: ((value: "" | "desc" | "asc") => any) | undefined;
22
+ "onUpdate:modelValue"?: ((value: "" | "desc" | "asc") => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
31
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1,8 @@
1
+ import o from "./index2.vue.mjs";
2
+ import './index.css';/* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e1d99cfd"]]);
5
+ export {
6
+ m as default
7
+ };
8
+ //# sourceMappingURL=index.vue.mjs.map
@@ -0,0 +1,46 @@
1
+ import { defineComponent as u, useModel as m, openBlock as p, createElementBlock as f, createElementVNode as t, normalizeClass as a, renderSlot as v, createTextVNode as _, toDisplayString as V, createVNode as o, mergeModels as c } from "vue";
2
+ import n from "../ZlIcon/index.vue.mjs";
3
+ const z = { class: "zl-sorter__icon" }, k = /* @__PURE__ */ u({
4
+ name: "ZlSorter",
5
+ __name: "index",
6
+ props: /* @__PURE__ */ c({
7
+ label: {}
8
+ }, {
9
+ modelValue: {},
10
+ modelModifiers: {}
11
+ }),
12
+ emits: /* @__PURE__ */ c(["change"], ["update:modelValue"]),
13
+ setup(s, { emit: r }) {
14
+ const i = r, e = m(s, "modelValue");
15
+ function d() {
16
+ let l = "asc";
17
+ e.value === "asc" ? l = "desc" : e.value === "desc" && (l = ""), e.value = l, i("change", l);
18
+ }
19
+ return (l, b) => (p(), f("span", {
20
+ class: "zl-sorter",
21
+ onClick: d
22
+ }, [
23
+ t("span", {
24
+ class: a(["zl-sorter__label", { active: e.value === "desc" || e.value === "asc" }])
25
+ }, [
26
+ v(l.$slots, "default", {}, () => [
27
+ _(V(s.label), 1)
28
+ ], !0)
29
+ ], 2),
30
+ t("span", z, [
31
+ o(n, {
32
+ icon: "zl:caret-top",
33
+ class: a({ active: e.value === "asc" })
34
+ }, null, 8, ["class"]),
35
+ o(n, {
36
+ icon: "zl:caret-bottom",
37
+ class: a({ active: e.value === "desc" })
38
+ }, null, 8, ["class"])
39
+ ])
40
+ ]));
41
+ }
42
+ });
43
+ export {
44
+ k as default
45
+ };
46
+ //# sourceMappingURL=index2.vue.mjs.map
@@ -0,0 +1 @@
1
+ .zl-switch{display:flex;align-items:center}.zl-switch__text{white-space:nowrap;margin-left:8px;color:var(--zl-text-2);font-size:12px;line-height:20px}.zl-switch__text--checked{color:var(--zl-primary-6, var(--el-color-primary))}
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ modelValue?: boolean | string | number;
3
+ defaultChecked?: boolean;
4
+ checkedValue?: boolean | string | number;
5
+ uncheckedValue?: boolean | string | number;
6
+ checkedText?: string;
7
+ uncheckedText?: string;
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ checked?(_: {}): any;
13
+ unchecked?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
+ "update:modelValue": (value: string | number | boolean) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
23
+ }>, {
24
+ defaultChecked: boolean;
25
+ checkedValue: boolean | string | number;
26
+ uncheckedValue: boolean | string | number;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
35
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1,47 @@
1
+ import { defineComponent as V, ref as f, computed as d, resolveComponent as x, openBlock as n, createElementBlock as u, createVNode as C, mergeProps as T, normalizeClass as g, renderSlot as s, createTextVNode as h, toDisplayString as m, createCommentVNode as w } from "vue";
2
+ const y = { class: "zl-switch" }, N = /* @__PURE__ */ V({
3
+ name: "ZlSwitch",
4
+ inheritAttrs: !1,
5
+ __name: "index",
6
+ props: {
7
+ modelValue: { type: [Boolean, String, Number] },
8
+ defaultChecked: { type: Boolean, default: !1 },
9
+ checkedValue: { type: [Boolean, String, Number], default: !0 },
10
+ uncheckedValue: { type: [Boolean, String, Number], default: !1 },
11
+ checkedText: {},
12
+ uncheckedText: {}
13
+ },
14
+ emits: ["update:modelValue"],
15
+ setup(l, { emit: r }) {
16
+ const e = l, i = r, o = f(e.defaultChecked ? e.checkedValue : e.uncheckedValue), k = d(() => e.modelValue ?? o.value), c = d(() => k.value === e.checkedValue);
17
+ function p(t) {
18
+ const a = t ? e.checkedValue : e.uncheckedValue;
19
+ o.value = a, i("update:modelValue", a);
20
+ }
21
+ return (t, a) => {
22
+ const v = x("el-switch");
23
+ return n(), u("span", y, [
24
+ C(v, T(t.$attrs, {
25
+ "model-value": c.value,
26
+ "active-value": !0,
27
+ "inactive-value": !1,
28
+ "onUpdate:modelValue": p
29
+ }), null, 16, ["model-value"]),
30
+ t.$slots.checked || l.checkedText || t.$slots.unchecked || l.uncheckedText ? (n(), u("span", {
31
+ key: 0,
32
+ class: g(["zl-switch__text", { "zl-switch__text--checked": c.value }])
33
+ }, [
34
+ c.value ? s(t.$slots, "checked", {}, () => [
35
+ h(m(l.checkedText), 1)
36
+ ], void 0, 0) : s(t.$slots, "unchecked", {}, () => [
37
+ h(m(l.uncheckedText), 1)
38
+ ], void 0, 1)
39
+ ], 2)) : w("", !0)
40
+ ]);
41
+ };
42
+ }
43
+ });
44
+ export {
45
+ N as default
46
+ };
47
+ //# sourceMappingURL=index.vue.mjs.map
@@ -0,0 +1,6 @@
1
+ import o from "./index.vue.mjs";
2
+ import './index.css';/* empty css */
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index3.vue.mjs.map
@@ -0,0 +1 @@
1
+ .zl-table{display:flex;flex-direction:column;height:100%}.zl-table__inner{flex:1}.zl-table .zl-action-list{color:var(--zl-text-1)}
@@ -0,0 +1,51 @@
1
+ import { TableColumn } from '../../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
3
+ columns: TableColumn[];
4
+ /** 数组(本地数据)或 { [dataKey]: rows, pageNum, pageSize, total }(分页数据) */
5
+ data: any[] | Record<string, any>;
6
+ dataKey?: string;
7
+ /** actions 列宽加宽(参考实现 expandAction 语义) */
8
+ expandAction?: boolean;
9
+ pagination?: Record<string, any> | boolean;
10
+ /** 表格 loading(作用于表格区) */
11
+ loading?: boolean;
12
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ "page-change": (pageNum: number) => any;
14
+ "page-size-change": (pageSize: number) => any;
15
+ "pagination-change": (payload: {
16
+ pageNum: number;
17
+ pageSize: number;
18
+ }) => any;
19
+ }, string, import('vue').PublicProps, Readonly<{
20
+ columns: TableColumn[];
21
+ /** 数组(本地数据)或 { [dataKey]: rows, pageNum, pageSize, total }(分页数据) */
22
+ data: any[] | Record<string, any>;
23
+ dataKey?: string;
24
+ /** actions 列宽加宽(参考实现 expandAction 语义) */
25
+ expandAction?: boolean;
26
+ pagination?: Record<string, any> | boolean;
27
+ /** 表格 loading(作用于表格区) */
28
+ loading?: boolean;
29
+ }> & Readonly<{
30
+ "onPage-change"?: ((pageNum: number) => any) | undefined;
31
+ "onPage-size-change"?: ((pageSize: number) => any) | undefined;
32
+ "onPagination-change"?: ((payload: {
33
+ pageNum: number;
34
+ pageSize: number;
35
+ }) => any) | undefined;
36
+ }>, {
37
+ loading: boolean;
38
+ dataKey: string;
39
+ expandAction: boolean;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
41
+ tableRef: unknown;
42
+ }, any>, Partial<Record<any, (_: any) => any>> & Partial<Record<any, (_: any) => any>> & {
43
+ expand?(_: any): any;
44
+ }>;
45
+ export default _default;
46
+ type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
51
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1,121 @@
1
+ import { defineComponent as T, ref as j, toRef as y, computed as P, resolveComponent as w, resolveDirective as D, openBlock as o, createElementBlock as k, withDirectives as K, createBlock as f, mergeProps as i, unref as l, withCtx as c, renderSlot as h, normalizeProps as O, guardReactiveProps as V, createCommentVNode as v, Fragment as Z, renderList as E, createSlots as F, createTextVNode as I, toDisplayString as L } from "vue";
2
+ import q from "../ZlAction/List.vue.mjs";
3
+ import '../ZlAction/List.css';/* empty css */
4
+ import G from "../ZlPagination/index.vue.mjs";
5
+ import { useTablePagination as H } from "./useTablePagination.mjs";
6
+ const J = { class: "zl-table" }, M = { inheritAttrs: !1 }, ee = /* @__PURE__ */ T({
7
+ ...M,
8
+ name: "ZlTable",
9
+ __name: "index",
10
+ props: {
11
+ columns: {},
12
+ data: {},
13
+ dataKey: { default: "rows" },
14
+ expandAction: { type: Boolean, default: !1 },
15
+ pagination: { type: [Object, Boolean] },
16
+ loading: { type: Boolean, default: !1 }
17
+ },
18
+ emits: ["pagination-change", "page-change", "page-size-change"],
19
+ setup(u, { expose: C, emit: S }) {
20
+ const g = u, N = S, _ = j(null), { data: m, pagination: s, onPageChange: x, onPageSizeChange: z } = H({
21
+ data: y(g, "data"),
22
+ pagination: y(g, "pagination"),
23
+ dataKey: g.dataKey,
24
+ emit: N
25
+ }), A = P(() => {
26
+ const a = typeof s.value == "object" ? s.value.total : void 0;
27
+ return typeof a == "number" ? a : m.value?.length ?? 0;
28
+ }), $ = P(() => g.columns.map((a) => {
29
+ const { label: r, prop: n, slot: d, actions: p, title: e, dataIndex: t, columnSlot: B, ellipsis: b, ...R } = a;
30
+ return {
31
+ label: r || e,
32
+ prop: n || t,
33
+ slotName: (typeof d == "string" ? d : void 0) || (d || Array.isArray(p) ? n || t : void 0),
34
+ headerSlotName: B ? `header-${t || n}` : void 0,
35
+ actions: Array.isArray(p) ? p : void 0,
36
+ actionProps: a.actionProps,
37
+ // arco 列属性兼容映射:ellipsis → EP showOverflowTooltip
38
+ rest: { ...b !== void 0 ? { showOverflowTooltip: b !== !1 } : {}, ...R }
39
+ };
40
+ }));
41
+ return C(
42
+ new Proxy({}, {
43
+ get(a, r) {
44
+ return _.value?.[r];
45
+ },
46
+ has(a, r) {
47
+ return r in (_.value ?? {});
48
+ }
49
+ })
50
+ ), (a, r) => {
51
+ const n = w("el-table-column"), d = w("el-table"), p = D("loading");
52
+ return o(), k("div", J, [
53
+ K((o(), f(d, i({
54
+ ref_key: "tableRef",
55
+ ref: _,
56
+ class: "zl-table__inner"
57
+ }, { border: !1, ...a.$attrs }, { data: l(m) }), {
58
+ default: c(() => [
59
+ a.$slots.expand ? (o(), f(n, {
60
+ key: 0,
61
+ type: "expand"
62
+ }, {
63
+ default: c((e) => [
64
+ h(a.$slots, "expand", O(V(e)))
65
+ ]),
66
+ _: 3
67
+ })) : v("", !0),
68
+ (o(!0), k(Z, null, E($.value, (e) => (o(), f(n, i({
69
+ key: e.prop ?? e.label,
70
+ label: e.label,
71
+ prop: e.prop
72
+ }, { ref_for: !0 }, e.rest, {
73
+ width: e.actions ? e.rest.width ?? (u.expandAction ? 120 : 80) : e.rest.width,
74
+ align: e.actions ? e.rest.align ?? "center" : e.rest.align
75
+ }), F({ _: 2 }, [
76
+ e.headerSlotName ? {
77
+ name: "header",
78
+ fn: c((t) => [
79
+ h(a.$slots, e.headerSlotName, i({ ref_for: !0 }, t))
80
+ ]),
81
+ key: "0"
82
+ } : void 0,
83
+ e.slotName || e.actions ? {
84
+ name: "default",
85
+ fn: c((t) => [
86
+ e.actions ? (o(), f(q, i({
87
+ key: 0,
88
+ ref_for: !0
89
+ }, e.actionProps, {
90
+ actions: e.actions,
91
+ "visible-args": [t.row, t],
92
+ "action-args": [t.row, t],
93
+ "icon-more": { darkSurface: !0 }
94
+ }), null, 16, ["actions", "visible-args", "action-args"])) : e.slotName ? h(a.$slots, e.slotName, i({ ref_for: !0 }, t), () => [
95
+ I(L(e.prop ? t.row[e.prop] : ""), 1)
96
+ ], void 0, 1) : v("", !0)
97
+ ]),
98
+ key: "1"
99
+ } : void 0
100
+ ]), 1040, ["label", "prop", "width", "align"]))), 128))
101
+ ]),
102
+ _: 3
103
+ }, 16, ["data"])), [
104
+ [p, u.loading]
105
+ ]),
106
+ l(s) !== !1 ? (o(), f(G, i({
107
+ key: 0,
108
+ class: "zl-table__pagination"
109
+ }, typeof l(s) == "object" ? l(s) : {}, {
110
+ total: A.value,
111
+ onPageChange: l(x),
112
+ onPageSizeChange: l(z)
113
+ }), null, 16, ["total", "onPageChange", "onPageSizeChange"])) : v("", !0)
114
+ ]);
115
+ };
116
+ }
117
+ });
118
+ export {
119
+ ee as default
120
+ };
121
+ //# sourceMappingURL=index.vue.mjs.map