@dazhicheng/ui 1.5.199 → 1.5.201

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 (242) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/api/dataTypeContext.js +17 -0
  3. package/dist/assets/img/empty_images/no_data.png.js +4 -0
  4. package/dist/assets/img/empty_images/search.png.js +4 -0
  5. package/dist/assets/img/image_status/develop.png.js +4 -0
  6. package/dist/assets/img/image_status/loading.gif.js +4 -0
  7. package/dist/assets/img/image_status/loading_fail.png.js +4 -0
  8. package/dist/assets/img/image_status/no_network.png.js +4 -0
  9. package/dist/assets/img/image_status/no_permission.png.js +4 -0
  10. package/dist/assets/svg/action_more.svg.js +4 -0
  11. package/dist/assets/svg/close.svg.js +4 -0
  12. package/dist/assets/svg/item_error.svg.js +4 -0
  13. package/dist/assets/svg/paixu-jiangxu.svg.js +4 -0
  14. package/dist/assets/svg/paixu-moren.svg.js +4 -0
  15. package/dist/assets/svg/paixu-shengxu.svg.js +4 -0
  16. package/dist/assets/svg/quanping.svg.js +4 -0
  17. package/dist/assets/svg/suoxiao.svg.js +4 -0
  18. package/dist/components/tt-api-component/index.js +7 -0
  19. package/dist/components/tt-api-component/index.vue.js +7 -0
  20. package/dist/components/tt-api-component/index.vue2.js +199 -0
  21. package/dist/components/tt-area/TtArea.vue.js +7 -0
  22. package/dist/components/tt-area/TtArea.vue2.js +36 -0
  23. package/dist/components/tt-button/components/AddButton.vue.js +24 -0
  24. package/dist/components/tt-button/components/AddButton.vue2.js +4 -0
  25. package/dist/components/tt-button/index.js +9 -0
  26. package/dist/components/tt-button/index.vue.js +7 -0
  27. package/dist/components/tt-button/index.vue2.js +68 -0
  28. package/dist/components/tt-checkbox/index.js +7 -0
  29. package/dist/components/tt-checkbox/index.vue.js +77 -0
  30. package/dist/components/tt-checkbox/index.vue2.js +4 -0
  31. package/dist/components/tt-drawer/index.js +14 -0
  32. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +156 -0
  33. package/dist/components/tt-drawer/src/RenderDrawer.vue3.js +5 -0
  34. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +56 -0
  35. package/dist/components/tt-drawer/src/components/DrawerFooter.vue3.js +5 -0
  36. package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +7 -0
  37. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +21 -0
  38. package/dist/components/tt-drawer/src/hooks/useDrawerRender.js +124 -0
  39. package/dist/components/tt-drawer/src/hooks/useResizable.js +98 -0
  40. package/dist/components/tt-drawer/src/index.js +17 -0
  41. package/dist/components/tt-drawer/src/props.js +72 -0
  42. package/dist/components/tt-drawer/src/utils/drawer-api.js +191 -0
  43. package/dist/components/tt-empty/index.js +34 -0
  44. package/dist/components/tt-form/index.js +65 -0
  45. package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +38 -0
  46. package/dist/components/tt-form/src/components/ExpandableArrow.vue3.js +5 -0
  47. package/dist/components/tt-form/src/components/FormActions.vue2.js +177 -0
  48. package/dist/components/tt-form/src/components/FormActions.vue3.js +5 -0
  49. package/dist/components/tt-form/src/components/FormElInput.vue.js +80 -0
  50. package/dist/components/tt-form/src/components/FormElInput.vue2.js +4 -0
  51. package/dist/components/tt-form/src/components/Slot.js +28 -0
  52. package/dist/components/tt-form/src/config.js +57 -0
  53. package/dist/components/tt-form/src/form/FormControl.vue.js +16 -0
  54. package/dist/components/tt-form/src/form/FormControl.vue2.js +4 -0
  55. package/dist/components/tt-form/src/form/FormDescription.vue.js +21 -0
  56. package/dist/components/tt-form/src/form/FormDescription.vue2.js +4 -0
  57. package/dist/components/tt-form/src/form/FormItem.vue.js +20 -0
  58. package/dist/components/tt-form/src/form/FormItem.vue2.js +4 -0
  59. package/dist/components/tt-form/src/form/FormLabel.vue.js +19 -0
  60. package/dist/components/tt-form/src/form/FormLabel.vue2.js +4 -0
  61. package/dist/components/tt-form/src/form/FormMessage.vue.js +18 -0
  62. package/dist/components/tt-form/src/form/FormMessage.vue2.js +4 -0
  63. package/dist/components/tt-form/src/form/FormMessageToolTip.vue.js +30 -0
  64. package/dist/components/tt-form/src/form/FormMessageToolTip.vue2.js +4 -0
  65. package/dist/components/tt-form/src/form/RenderContent.vue.js +31 -0
  66. package/dist/components/tt-form/src/form/RenderContent.vue2.js +4 -0
  67. package/dist/components/tt-form/src/form/injectionKeys.js +4 -0
  68. package/dist/components/tt-form/src/form/useFormField.js +24 -0
  69. package/dist/components/tt-form/src/form-render/FormField.vue.js +4 -0
  70. package/dist/components/tt-form/src/form-render/FormField.vue2.js +346 -0
  71. package/dist/components/tt-form/src/form-render/FormFieldContact.js +54 -0
  72. package/dist/components/tt-form/src/form-render/FormLabel.vue.js +4 -0
  73. package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +102 -0
  74. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +195 -0
  75. package/dist/components/tt-form/src/form-render/array-register/props.js +47 -0
  76. package/dist/components/tt-form/src/form-render/array-register/utils.js +12 -0
  77. package/dist/components/tt-form/src/form-render/context.js +15 -0
  78. package/dist/components/tt-form/src/form-render/dependencies.js +51 -0
  79. package/dist/components/tt-form/src/form-render/expandable.js +46 -0
  80. package/dist/components/tt-form/src/form-render/form.vue2.js +197 -0
  81. package/dist/components/tt-form/src/form-render/form.vue3.js +5 -0
  82. package/dist/components/tt-form/src/form-render/helper.js +22 -0
  83. package/dist/components/tt-form/src/form-render/rootWrapperClass.js +10 -0
  84. package/dist/components/tt-form/src/formApi.js +790 -0
  85. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +223 -0
  86. package/dist/components/tt-form/src/group-form/GroupForm.vue3.js +5 -0
  87. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +278 -0
  88. package/dist/components/tt-form/src/group-form/GroupSection.vue3.js +5 -0
  89. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +153 -0
  90. package/dist/components/tt-form/src/group-form/LazyFormField.vue3.js +5 -0
  91. package/dist/components/tt-form/src/group-form/groupFormApi.js +700 -0
  92. package/dist/components/tt-form/src/group-form/lazyContext.js +38 -0
  93. package/dist/components/tt-form/src/group-form/useGroupForm.js +83 -0
  94. package/dist/components/tt-form/src/group-form/utils.js +106 -0
  95. package/dist/components/tt-form/src/hooks/useArrayRegistry.js +22 -0
  96. package/dist/components/tt-form/src/hooks/useFieldArray.js +137 -0
  97. package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +33 -0
  98. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +81 -0
  99. package/dist/components/tt-form/src/index.vue2.js +149 -0
  100. package/dist/components/tt-form/src/index.vue3.js +5 -0
  101. package/dist/components/tt-form/src/shared/createContext.js +14 -0
  102. package/dist/components/tt-form/src/shared/global-state.js +22 -0
  103. package/dist/components/tt-form/src/shared/zod-defaults.js +47 -0
  104. package/dist/components/tt-form/src/types/forms.js +6 -0
  105. package/dist/components/tt-form/src/useForm.js +28 -0
  106. package/dist/components/tt-form/src/useFormContext.js +320 -0
  107. package/dist/components/tt-form/src/utils/array-path.js +18 -0
  108. package/dist/components/tt-form-item-error-tooltip/index.js +9 -0
  109. package/dist/components/tt-form-item-error-tooltip/index.vue.js +183 -0
  110. package/dist/components/tt-form-item-error-tooltip/index.vue3.js +5 -0
  111. package/dist/components/tt-icon/components/AddIcon.vue.js +28 -0
  112. package/dist/components/tt-icon/components/AddIcon.vue2.js +4 -0
  113. package/dist/components/tt-icon/components/SubIcon.vue.js +28 -0
  114. package/dist/components/tt-icon/components/SubIcon.vue2.js +4 -0
  115. package/dist/components/tt-icon/index.js +11 -0
  116. package/dist/components/tt-icon/index.vue.js +8 -0
  117. package/dist/components/tt-icon/index.vue2.js +115 -0
  118. package/dist/components/tt-image/index.js +9 -0
  119. package/dist/components/tt-image/src/components/ImageViewer.js +41 -0
  120. package/dist/components/tt-image/tt-image.js +55 -0
  121. package/dist/components/tt-loading/index.js +8 -0
  122. package/dist/components/tt-loading/src/directive.js +51 -0
  123. package/dist/components/tt-loading/src/loading.vue.js +7 -0
  124. package/dist/components/tt-loading/src/loading.vue2.js +75 -0
  125. package/dist/components/tt-loading/src/service.js +79 -0
  126. package/dist/components/tt-log/index.js +7 -0
  127. package/dist/components/tt-log/index.vue.js +30 -0
  128. package/dist/components/tt-log/index.vue2.js +4 -0
  129. package/dist/components/tt-modal/index.js +14 -0
  130. package/dist/components/tt-modal/src/RenderModal.vue.js +310 -0
  131. package/dist/components/tt-modal/src/RenderModal.vue3.js +5 -0
  132. package/dist/components/tt-modal/src/components/ModalFooter.vue.js +7 -0
  133. package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +74 -0
  134. package/dist/components/tt-modal/src/components/ModalHeader.vue.js +7 -0
  135. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +22 -0
  136. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +48 -0
  137. package/dist/components/tt-modal/src/components/ModalWrapper.vue2.js +4 -0
  138. package/dist/components/tt-modal/src/hooks/useModalRender.js +131 -0
  139. package/dist/components/tt-modal/src/index.js +17 -0
  140. package/dist/components/tt-modal/src/props.js +75 -0
  141. package/dist/components/tt-modal/src/utils/modal-api.js +200 -0
  142. package/dist/components/tt-modal/src/utils/modal-stack.js +28 -0
  143. package/dist/components/tt-modal-form/hooks/useModalFormSlot.js +22 -0
  144. package/dist/components/tt-modal-form/index.vue.js +178 -0
  145. package/dist/components/tt-modal-form/index.vue2.js +4 -0
  146. package/dist/components/tt-modal-form/useModalForm.js +30 -0
  147. package/dist/components/tt-nav-anchor/index.js +8 -0
  148. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +234 -0
  149. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue3.js +5 -0
  150. package/dist/components/tt-nav-anchor/src/constants.js +4 -0
  151. package/dist/components/tt-panel-select/index.js +7 -0
  152. package/dist/components/tt-panel-select/src/common.js +4 -0
  153. package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +56 -0
  154. package/dist/components/tt-panel-select/src/components/PanelLeft.vue2.js +4 -0
  155. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +277 -0
  156. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue2.js +4 -0
  157. package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +108 -0
  158. package/dist/components/tt-panel-select/src/components/PanelRight.vue2.js +4 -0
  159. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +184 -0
  160. package/dist/components/tt-panel-select/src/hooks/usePanelSelection.js +91 -0
  161. package/dist/components/tt-panel-select/src/index.vue.js +386 -0
  162. package/dist/components/tt-panel-select/src/index.vue2.js +4 -0
  163. package/dist/components/tt-select/index.js +8 -0
  164. package/dist/components/tt-select/src/Select.vue.js +315 -0
  165. package/dist/components/tt-select/src/Select.vue3.js +5 -0
  166. package/dist/components/tt-select/src/components/SelectTable.vue.js +86 -0
  167. package/dist/components/tt-select/src/components/SelectTable.vue3.js +5 -0
  168. package/dist/components/tt-select/src/components/Table.vue.js +307 -0
  169. package/dist/components/tt-select/src/components/Table.vue3.js +5 -0
  170. package/dist/components/tt-select/src/const.js +19 -0
  171. package/dist/components/tt-select/src/hooks/useDataSource.js +196 -0
  172. package/dist/components/tt-select/src/hooks/useGrid.js +97 -0
  173. package/dist/components/tt-select/src/hooks/useKeyboard.js +63 -0
  174. package/dist/components/tt-select/src/hooks/usePagination.js +45 -0
  175. package/dist/components/tt-select/src/hooks/useSelect.js +100 -0
  176. package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
  177. package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +345 -0
  178. package/dist/components/tt-select/src/props.js +201 -0
  179. package/dist/components/tt-select/src/utils/index.js +16 -0
  180. package/dist/components/tt-table/index.js +33 -0
  181. package/dist/components/tt-table/src/Table.vue.js +623 -0
  182. package/dist/components/tt-table/src/Table.vue3.js +5 -0
  183. package/dist/components/tt-table/src/TableForm.vue.js +317 -0
  184. package/dist/components/tt-table/src/TableForm.vue2.js +4 -0
  185. package/dist/components/tt-table/src/componentMap.js +4 -0
  186. package/dist/components/tt-table/src/components/RowContext.js +24 -0
  187. package/dist/components/tt-table/src/components/TableAction.vue.js +222 -0
  188. package/dist/components/tt-table/src/components/TableAction.vue2.js +4 -0
  189. package/dist/components/tt-table/src/components/TableButtons.js +117 -0
  190. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +233 -0
  191. package/dist/components/tt-table/src/components/TableColumnModal.vue3.js +5 -0
  192. package/dist/components/tt-table/src/components/TableToobalTools.vue.js +87 -0
  193. package/dist/components/tt-table/src/components/TableToobalTools.vue2.js +4 -0
  194. package/dist/components/tt-table/src/emits.js +15 -0
  195. package/dist/components/tt-table/src/hooks/useCellArea.js +15 -0
  196. package/dist/components/tt-table/src/hooks/useColumns.js +275 -0
  197. package/dist/components/tt-table/src/hooks/useCustomColumns.js +53 -0
  198. package/dist/components/tt-table/src/hooks/useDataSource.js +224 -0
  199. package/dist/components/tt-table/src/hooks/useLeftRightSlot.js +64 -0
  200. package/dist/components/tt-table/src/hooks/usePagination.js +44 -0
  201. package/dist/components/tt-table/src/hooks/useRowSelection.js +84 -0
  202. package/dist/components/tt-table/src/hooks/useTableContext.js +20 -0
  203. package/dist/components/tt-table/src/hooks/useTableEvent.js +197 -0
  204. package/dist/components/tt-table/src/hooks/useTableForm.js +60 -0
  205. package/dist/components/tt-table/src/hooks/useTableRender.js +33 -0
  206. package/dist/components/tt-table/src/hooks/useTableSlot.js +17 -0
  207. package/dist/components/tt-table/src/props.js +482 -0
  208. package/dist/components/tt-table/src/toolProps.js +30 -0
  209. package/dist/components/tt-table/src/utils/context.js +17 -0
  210. package/dist/components/tt-table/src/utils/table-api.js +386 -0
  211. package/dist/components/tt-table/src/utils/table-form-api.js +122 -0
  212. package/dist/components/tt-text/index.js +7 -0
  213. package/dist/components/tt-text/index.vue.js +7 -0
  214. package/dist/components/tt-text/index.vue2.js +73 -0
  215. package/dist/components/tt-upload/index.js +9 -0
  216. package/dist/components/tt-upload/src/TtUpload.vue.js +305 -0
  217. package/dist/components/tt-upload/src/TtUpload.vue2.js +4 -0
  218. package/dist/components/tt-upload/src/typing.js +107 -0
  219. package/dist/directives/auto-tip/index.js +62 -0
  220. package/dist/directives/dialog-resize/index.js +49 -0
  221. package/dist/directives/dialog-resize/use-css-variable.js +44 -0
  222. package/dist/directives/dialog-resize/use-draggable.js +35 -0
  223. package/dist/directives/dialog-resize/use-fullscreen.js +38 -0
  224. package/dist/directives/dialog-resize/use-parse-translate.js +9 -0
  225. package/dist/directives/dialog-resize/use-resizer.js +37 -0
  226. package/dist/directives/disabled-tip/index.js +78 -0
  227. package/dist/directives/index.js +8 -0
  228. package/dist/hooks/useDataPermissionOptions.js +142 -0
  229. package/dist/hooks/useFormSchemasLink.js +261 -0
  230. package/dist/hooks/useFormat.js +44 -0
  231. package/dist/hooks/useLoading.js +22 -0
  232. package/dist/hooks/useScreenshotOss.js +69 -0
  233. package/dist/hooks/useSetup.js +59 -0
  234. package/dist/index.js +142 -60274
  235. package/dist/plugins/default/renderCellContent.js +58 -0
  236. package/dist/plugins/vxeTable/switchStatus.js +91 -0
  237. package/dist/plugins.js +4 -146
  238. package/dist/style.css +1 -1
  239. package/dist/utils/xhr.js +8 -0
  240. package/package.json +3 -1
  241. package/dist/index-NG5FNCLD.js +0 -3430
  242. package/dist/index.modern-4Cf3dcJP.js +0 -3069
@@ -0,0 +1,317 @@
1
+ import { defineComponent as Me, useSlots as Ee, ref as Oe, computed as f, toValue as v, getCurrentInstance as Ae, unref as r, onMounted as U, watch as O, onUnmounted as _e, createElementBlock as q, openBlock as G, normalizeClass as B, createCommentVNode as ke, createElementVNode as Re, createVNode as A, renderSlot as g, createSlots as J, renderList as Q, withCtx as M, normalizeProps as X, guardReactiveProps as Y, mergeProps as Z, toHandlers as $e, nextTick as Be } from "vue";
2
+ import { useForm as Ve } from "@dazhicheng-ui/index";
3
+ import { useDesign as Le, useDebounceFn as V } from "@dazhicheng/hooks";
4
+ import { extractResourceFromApi as xe, generateTestId as _, kebabToCamelCase as Ke, mergeWithArrayOverride as je, isFunction as ze } from "@dazhicheng/utils";
5
+ import { useStore as De } from "@tanstack/vue-store";
6
+ import { omit as Ne } from "lodash-es";
7
+ import He from "xe-utils";
8
+ import We from "./components/TableColumnModal.vue2.js";
9
+ /* empty css */
10
+ import { provideFormActionTestIds as Ue } from "./utils/context.js";
11
+ import qe from "./components/TableToobalTools.vue.js";
12
+ import { basicTableEmits as ee } from "./emits.js";
13
+ import { GlobalConfig as Ge } from "@dazhicheng-ui/hooks/useSetup";
14
+ import Je from "./Table.vue.js";
15
+ /* empty css */
16
+ import { createTableFormContext as Qe } from "./hooks/useTableContext.js";
17
+ import { useTableForm as Xe } from "./hooks/useTableForm.js";
18
+ import { useCustomColumns as Ye } from "./hooks/useCustomColumns.js";
19
+ import { useTableSlot as Ze } from "./hooks/useTableSlot.js";
20
+ import { tableFormProps as et } from "./props.js";
21
+ import { getDefaultState as tt } from "./utils/table-api.js";
22
+ import { TableFormApi as ot } from "./utils/table-form-api.js";
23
+ const st = ["data-testid"], at = ["data-testid"], Mt = /* @__PURE__ */ Me({
24
+ name: "TtTableForm",
25
+ __name: "TableForm",
26
+ props: et,
27
+ emits: [
28
+ "register",
29
+ "update:table-data",
30
+ "columns-setting",
31
+ "change-row-height",
32
+ "export",
33
+ "import",
34
+ "set-columns",
35
+ ...ee
36
+ ],
37
+ setup(te, { expose: oe, emit: se }) {
38
+ var N, H, W;
39
+ const m = te, T = se, L = Ee(), { prefixCls: k } = Le("table-form"), w = Oe();
40
+ let t = m.tableFormApi;
41
+ if (!t) {
42
+ t = new ot(m);
43
+ const e = t;
44
+ e.useStore = (o) => De(t.store, o), t = e;
45
+ }
46
+ const R = (N = t == null ? void 0 : t.useStore) == null ? void 0 : N.call(t), C = f(() => {
47
+ var o;
48
+ if (m.testId) return m.testId;
49
+ const e = (o = v(R)) == null ? void 0 : o.table;
50
+ return e != null && e.api ? xe(e.api) : "table";
51
+ }), ae = f(() => _(C.value, "tableform")), re = f(() => _(C.value, "search-form-header")), le = f(() => _(C.value, "search-btn-query")), ne = f(() => _(C.value, "search-btn-reset")), ie = f(() => ({
52
+ submit: le.value,
53
+ reset: ne.value
54
+ }));
55
+ Ue(ie);
56
+ const x = {}, c = Ae(), S = f(() => v(R)), { getFormSlotKeysFunc: ue, getTableSlotKeysFunc: me, replaceTableSlotKey: ce, replaceFormSlotKey: de } = Ze(), {
57
+ tableData: pe,
58
+ getFormProps: $,
59
+ getTableProps: d,
60
+ getTableToolProps: be,
61
+ handleSearchInfoChange: K
62
+ } = Xe(
63
+ S,
64
+ t.tableApi.reload,
65
+ t.tableApi.getLoading,
66
+ t.tableApi.getPagination,
67
+ T
68
+ ), { run: fe } = V(
69
+ async () => {
70
+ const e = await s.getValues();
71
+ await s.resetForm(e, { force: !0 });
72
+ const o = await s.getValues();
73
+ s.setLatestSubmissionValues(o), (await (s == null ? void 0 : s.validate())).valid && K(o);
74
+ },
75
+ 200,
76
+ { leading: !0 }
77
+ ), { run: ge } = V(
78
+ async (e) => {
79
+ await t.grid.clearFilter(), await K(e);
80
+ },
81
+ 200,
82
+ { leading: !0 }
83
+ ), [he, s] = Ve({
84
+ ...v($),
85
+ handleSubmit: ge,
86
+ handleReset: fe,
87
+ submitOnEnter: !0,
88
+ submitButtonOptions: {
89
+ content: (H = Ge.form) == null ? void 0 : H.submitTitle
90
+ },
91
+ showCollapseButton: !0,
92
+ collapsed: !0,
93
+ collapseTriggerResize: !0
94
+ }), { initCustomSetting: Ce, saveColumns: Se } = Ye({
95
+ getTableProps: d,
96
+ tableMethods: t.tableApi,
97
+ getProps: S
98
+ }), j = async () => {
99
+ await Be(), t.tableApi && t.tableApi.redoHeight();
100
+ };
101
+ ee.forEach((e) => {
102
+ const o = He.camelCase(e);
103
+ x[o] = (...a) => T(e, ...a);
104
+ });
105
+ const ve = {
106
+ ...x
107
+ };
108
+ function Te(e) {
109
+ t.setState((o) => o.table ? (o.table.getSyncSlotComponent = m.table.getSyncSlotComponent, je(
110
+ {
111
+ ...e,
112
+ table: {
113
+ ...tt(),
114
+ ...e.table
115
+ }
116
+ },
117
+ o
118
+ )) : {}), e.table && t.tableApi.setState(e.table), e.form && (s == null || s.setState(e.form));
119
+ }
120
+ const { run: we } = V(
121
+ async (e) => {
122
+ s.isMounted && r(S).useSearchForm ? s.validate().then(async (o) => {
123
+ if (o.valid) {
124
+ const a = await s.getValues();
125
+ await t.tableApi.reload({
126
+ ...e,
127
+ searchInfo: {
128
+ ...e == null ? void 0 : e.searchInfo,
129
+ ...a
130
+ }
131
+ });
132
+ }
133
+ }) : t.tableApi.reload({
134
+ ...e,
135
+ searchInfo: {
136
+ ...e == null ? void 0 : e.searchInfo
137
+ }
138
+ });
139
+ },
140
+ 200,
141
+ { leading: !0 }
142
+ ), E = {
143
+ tableMethods: t.tableApi,
144
+ formMethods: s,
145
+ setTableProps: t.tableApi.setState,
146
+ setFormProps: s.setState,
147
+ setProps: Te,
148
+ reload: we,
149
+ selectedKeys: f(() => v(t.tableApi.selectedKeys))
150
+ };
151
+ async function ye() {
152
+ const { tableRefreshBefore: e } = S.value;
153
+ e && ze(e) && await e(), E.reload();
154
+ }
155
+ async function Fe(e) {
156
+ var p, u;
157
+ const o = ((u = (p = S.value) == null ? void 0 : p.table) == null ? void 0 : u.columns) || [], a = new Map(o.map((i) => [i.field, i])), n = e.checkedModel.map((i) => a.get(i)).filter(Boolean);
158
+ if (e.isExport) {
159
+ T("export", e.checkedModel, e.modalApi);
160
+ return;
161
+ }
162
+ e.modalApi.setModalProps({
163
+ confirmLoading: !0
164
+ }), d.value.useHttpCache && await Se(JSON.stringify(e.checkedModel)), t.tableApi.setTableColumns(n), e.modalApi.setModalProps({
165
+ confirmLoading: !1
166
+ }), e.modalApi.closeModal(), T("set-columns", n);
167
+ }
168
+ function z(e = !1) {
169
+ var u, i, h, b, y, F, P, I;
170
+ const { notSetColumnField: o, columns: a } = r(d), n = (b = (h = (i = ((u = t.tableApi.getTableInstance()) == null ? void 0 : u.getTableColumn()) || []) == null ? void 0 : i.visibleColumn) == null ? void 0 : h.map((l) => l.field)) == null ? void 0 : b.filter(Boolean), p = ((F = (y = r(a)) == null ? void 0 : y.filter((l) => l.visible === !0 || l.visible === void 0)) == null ? void 0 : F.map((l) => l.field)) || [];
171
+ (P = w.value) == null || P.openModal({
172
+ columns: v(a) || [],
173
+ displayFields: e ? p : n,
174
+ disabledColumnField: o || []
175
+ }), (I = w.value) == null || I.setModalProps({
176
+ title: "列设置"
177
+ });
178
+ }
179
+ function D(e = !1) {
180
+ var u, i, h, b, y, F, P, I;
181
+ const { notSetColumnField: o, columns: a } = r(d), n = (b = (h = (i = ((u = t.tableApi.getTableInstance()) == null ? void 0 : u.getTableColumn()) || []) == null ? void 0 : i.visibleColumn) == null ? void 0 : h.map((l) => l.field)) == null ? void 0 : b.filter(Boolean), p = ((F = (y = r(a)) == null ? void 0 : y.filter((l) => l.visible === !0 || l.visible === void 0)) == null ? void 0 : F.map((l) => l.field)) || [];
182
+ (P = w.value) == null || P.openModal({
183
+ columns: v(a) || [],
184
+ displayFields: e ? p : n,
185
+ disabledColumnField: o || [],
186
+ isExport: !0
187
+ }), (I = w.value) == null || I.setModalProps({
188
+ title: "自定义导出"
189
+ });
190
+ }
191
+ Qe({ formInstance: s }), U(() => {
192
+ c && T("register", E, c == null ? void 0 : c.uid), setTimeout(() => {
193
+ Ce();
194
+ }, 16);
195
+ }), O(
196
+ () => t.tableApi.getLoading.value,
197
+ () => {
198
+ s && s.setState({
199
+ submitButtonOptions: { loading: t.tableApi.getLoading.value }
200
+ });
201
+ },
202
+ { immediate: (W = R.value.table) == null ? void 0 : W.immediate }
203
+ ), O(
204
+ () => $.value,
205
+ (e) => {
206
+ s && (s == null || s.setState(e));
207
+ },
208
+ { deep: !0 }
209
+ ), O(
210
+ () => d.value,
211
+ (e) => {
212
+ var o;
213
+ t != null && t.tableApi && ((o = t == null ? void 0 : t.tableApi) == null || o.setState(e));
214
+ },
215
+ { deep: !0 }
216
+ ), window.addEventListener("resize", j), U(() => {
217
+ t == null || t.mount(E, s), s == null || s.setState($.value);
218
+ });
219
+ function Pe(e) {
220
+ return Object.fromEntries(Object.entries(e).filter(([o]) => !o.startsWith("on")));
221
+ }
222
+ function Ie(e, o) {
223
+ return Object.fromEntries(Object.keys(e).map((a) => [a, o[a]]));
224
+ }
225
+ return O(
226
+ () => Ne(m, ["tableFormApi"]),
227
+ () => {
228
+ var u;
229
+ const e = {}, o = ((u = c == null ? void 0 : c.vnode) == null ? void 0 : u.props) || {}, a = new Set(Object.keys(m));
230
+ for (const [i, h] of Object.entries(o)) {
231
+ const b = Ke(i);
232
+ a.has(b) && (e[b] = h);
233
+ }
234
+ const n = Pe(e), p = Ie(n, m);
235
+ t.setState(p);
236
+ },
237
+ { deep: !0 }
238
+ ), _e(() => {
239
+ t == null || t.unmount(), window.removeEventListener("resize", j);
240
+ }), oe({ ...E, instance: c }), (e, o) => (G(), q("div", {
241
+ class: B(r(k)),
242
+ "data-testid": ae.value
243
+ }, [
244
+ S.value.useSearchForm ? (G(), q("div", {
245
+ key: 0,
246
+ class: B(`${r(k)}-header`),
247
+ "data-testid": re.value
248
+ }, [
249
+ A(r(he), {
250
+ "test-id": `${C.value}-search-form`
251
+ }, J({ _: 2 }, [
252
+ Q(r(ue)(r(L)), (a) => ({
253
+ name: r(de)(a),
254
+ fn: M((n) => [
255
+ g(e.$slots, a, X(Y(n || {})))
256
+ ])
257
+ }))
258
+ ]), 1032, ["test-id"]),
259
+ g(e.$slots, "header-down")
260
+ ], 10, at)) : ke("", !0),
261
+ Re("div", {
262
+ class: B({
263
+ [`${r(k)}-wrapper`]: !0,
264
+ "pt-(--tt-base-padding)!": !0,
265
+ "pb-(--tt-base-padding)!": !r(d).showPager
266
+ })
267
+ }, [
268
+ g(e.$slots, "table-top"),
269
+ A(Je, Z(r(d), {
270
+ data: r(pe),
271
+ "table-row-id": e.tableRowId,
272
+ "table-id": C.value,
273
+ "form-api": r(s),
274
+ "table-api": r(t).tableApi
275
+ }, $e(ve)), J({ _: 2 }, [
276
+ Q(r(me)(r(L)), (a) => ({
277
+ name: r(ce)(a),
278
+ fn: M((n) => [
279
+ g(e.$slots, a, X(Y(n || {})))
280
+ ])
281
+ })),
282
+ r(d).showToolbar ? {
283
+ name: "toolbar_tools",
284
+ fn: M(() => [
285
+ A(qe, Z(r(be), {
286
+ onOnRefresh: ye,
287
+ onOnExport: D,
288
+ onOnColumnsSetting: z
289
+ }), {
290
+ "toolbar-left": M(() => [
291
+ g(e.$slots, "t-toolbar_tools-left")
292
+ ]),
293
+ "toolbar-right": M(() => [
294
+ g(e.$slots, "t-toolbar_tools-right")
295
+ ]),
296
+ _: 3
297
+ }, 16),
298
+ g(e.$slots, "t-toolbar_tools")
299
+ ]),
300
+ key: "0"
301
+ } : void 0
302
+ ]), 1040, ["data", "table-row-id", "table-id", "form-api", "table-api"]),
303
+ g(e.$slots, "table-bottom")
304
+ ], 2),
305
+ A(We, {
306
+ ref_key: "tableColumnModalRef",
307
+ ref: w,
308
+ "open-export": D,
309
+ "open-column": z,
310
+ onOnSubmit: Fe
311
+ }, null, 512)
312
+ ], 10, st));
313
+ }
314
+ });
315
+ export {
316
+ Mt as default
317
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./TableForm.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const n = /* @__PURE__ */ new Map();
2
+ export {
3
+ n as componentMap
4
+ };
@@ -0,0 +1,24 @@
1
+ import { defineComponent as n, provide as t, computed as p } from "vue";
2
+ const d = Symbol("rowIndex"), u = n({
3
+ name: "RowContext",
4
+ props: {
5
+ /** 当前行索引 */
6
+ rowIndex: {
7
+ type: Number,
8
+ required: !0
9
+ }
10
+ },
11
+ setup(r, { slots: e }) {
12
+ return t(
13
+ d,
14
+ p(() => r.rowIndex)
15
+ ), () => {
16
+ var o;
17
+ return (o = e.default) == null ? void 0 : o.call(e);
18
+ };
19
+ }
20
+ });
21
+ export {
22
+ d as ROW_INDEX_KEY,
23
+ u as RowContext
24
+ };
@@ -0,0 +1,222 @@
1
+ import { defineComponent as q, useAttrs as G, ref as x, inject as _, computed as a, unref as r, toRaw as S, h as J, createElementBlock as s, openBlock as i, normalizeClass as h, createVNode as k, createBlock as c, createCommentVNode as u, withCtx as p, Fragment as f, renderList as A, renderSlot as Q, withDirectives as F, mergeProps as Z, normalizeStyle as W, toDisplayString as E, createElementVNode as ee, withModifiers as te, createSlots as oe, createTextVNode as re } from "vue";
2
+ import { propTypes as v, useDesign as ne } from "@dazhicheng/hooks";
3
+ import { calcWordsWidth as le, isBoolean as ie, isFunction as se, generateTestId as M, toKebabCase as P, isArray as de, isObject as ae } from "@dazhicheng/utils";
4
+ import { TtButton as C } from "@dazhicheng-ui/components/tt-button";
5
+ import { TtIcon as I } from "@dazhicheng-ui/components/tt-icon";
6
+ import R from "@dazhicheng-ui/directives/disabled-tip";
7
+ import { ElDivider as ue, ElSpace as pe, ElPopover as ce } from "element-plus";
8
+ import fe from "../../../../assets/svg/action_more.svg.js";
9
+ import { ROW_INDEX_KEY as me } from "./RowContext.js";
10
+ const ve = { key: 1 }, be = ["onClick"], Be = /* @__PURE__ */ q({
11
+ name: "TtTableAction",
12
+ __name: "TableAction",
13
+ props: {
14
+ /** 操作项 */
15
+ actions: {
16
+ type: Array,
17
+ default: () => []
18
+ },
19
+ /** 当前行索引(从0开始,用于生成唯一 testid) */
20
+ rowIndex: {
21
+ type: Number,
22
+ default: void 0
23
+ },
24
+ /** vxe-table 插槽上下文对象(包含 $rowIndex 等参数) */
25
+ slotContext: {
26
+ type: Object,
27
+ default: void 0
28
+ },
29
+ /** 是否分割线 */
30
+ // divider: propTypes.bool.def(true),
31
+ /** 是否清除冒泡 */
32
+ stopButtonPropagation: v.bool.def(!1),
33
+ /** 显示buttton的个数 默认是2 */
34
+ showBtnNums: v.number.def(3),
35
+ /** 弹出框的宽度 */
36
+ popoverWidth: v.number.def(27),
37
+ /** 是否自动换行 */
38
+ wrap: v.bool.def(!0)
39
+ },
40
+ setup(T) {
41
+ const n = T, b = G(), { prefixCls: B } = ne("table-action"), m = x(!1), D = _(
42
+ "tableIdContext",
43
+ a(() => "")
44
+ ), j = _(me, void 0), z = a(() => {
45
+ if (n.rowIndex !== void 0 && n.rowIndex !== null)
46
+ return n.rowIndex;
47
+ const t = r(j);
48
+ if (t != null)
49
+ return t;
50
+ if (n.slotContext && n.slotContext.$rowIndex !== void 0)
51
+ return n.slotContext.$rowIndex;
52
+ if (b.$rowIndex !== void 0 && b.$rowIndex !== null)
53
+ return b.$rowIndex;
54
+ });
55
+ function y(t) {
56
+ const o = r(D), e = z.value;
57
+ return e != null ? M(o, "action", `row${e}`, P(t)) : M(o, "action", P(t));
58
+ }
59
+ function $(t) {
60
+ const o = t.ifShow;
61
+ let e = !0;
62
+ return ie(o) && (e = o), se(o) && (e = o(t)), e;
63
+ }
64
+ const V = a(() => (S(n.actions) || []).filter((t) => $(t)).slice(0, n.showBtnNums)), g = a(() => (S(n.actions) || []).filter((t) => $(t)).slice(n.showBtnNums)), O = a(() => r(g).length > 0), U = a(() => "left flex items-center"), K = a(() => {
65
+ const t = document.getElementsByTagName("body")[0], o = window.getComputedStyle(t).fontFamily, e = g.value.map((d) => le(d.label, "12px", o) + 22), l = Math.max(...e);
66
+ return l > n.popoverWidth ? l : n.popoverWidth;
67
+ });
68
+ function N(t, o) {
69
+ const e = t;
70
+ return de(e) && e.length > 0 ? e.some((l) => !!(l != null && l.condition)) : ae(e) ? !!e.condition : !!o;
71
+ }
72
+ function H(t) {
73
+ if (!n.stopButtonPropagation) return;
74
+ t.composedPath().find((l) => {
75
+ var d;
76
+ return ((d = l.tagName) == null ? void 0 : d.toUpperCase()) === "BUTTON";
77
+ }) && t.stopPropagation();
78
+ }
79
+ const L = J(ue, {
80
+ direction: "vertical",
81
+ style: { fontSize: "12px", margin: "0 6px" }
82
+ });
83
+ function X(t) {
84
+ m.value = !0, w.value = t.target && t.target.getBoundingClientRect();
85
+ }
86
+ const w = x({
87
+ top: 0,
88
+ left: 0,
89
+ bottom: 0,
90
+ right: 0
91
+ }), Y = x({
92
+ getBoundingClientRect() {
93
+ return w.value;
94
+ }
95
+ });
96
+ return (t, o) => (i(), s("div", {
97
+ class: h([r(B), U.value]),
98
+ onClick: H
99
+ }, [
100
+ k(r(pe), {
101
+ size: 0,
102
+ spacer: r(L),
103
+ wrap: T.wrap
104
+ }, {
105
+ default: p(() => [
106
+ (i(!0), s(f, null, A(V.value, (e, l) => (i(), s(f, {
107
+ key: `${l}-${e.label}`
108
+ }, [
109
+ e.slot ? Q(t.$slots, e.slot, Z({
110
+ key: 0,
111
+ ref_for: !0
112
+ }, e)) : F((i(), c(r(C), {
113
+ key: 1,
114
+ link: "",
115
+ type: e.type || "primary",
116
+ disabled: N(e.disabledTip, e.disabled),
117
+ style: W({ color: e.color, visibility: e.isTextHide ? "hidden" : "visible" }),
118
+ loading: e.loading,
119
+ "data-index": l,
120
+ "data-testid": y(e.label || ""),
121
+ onClick: e.onClick
122
+ }, {
123
+ default: p(() => [
124
+ e.iconFont ? (i(), s(f, { key: 0 }, [
125
+ e.iconFont ? (i(), c(r(I), {
126
+ key: 0,
127
+ "icon-font": e.iconFont,
128
+ class: h({ "mr-1": !!e.label })
129
+ }, null, 8, ["icon-font", "class"])) : u("", !0)
130
+ ], 64)) : u("", !0),
131
+ e.label ? (i(), s("span", ve, E(e.label), 1)) : u("", !0)
132
+ ]),
133
+ _: 2
134
+ }, 1032, ["type", "disabled", "style", "loading", "data-index", "data-testid", "onClick"])), [
135
+ [r(R), e.disabledTip]
136
+ ])
137
+ ], 64))), 128)),
138
+ O.value ? (i(), c(r(C), {
139
+ key: 0,
140
+ link: "",
141
+ type: "primary",
142
+ "data-testid": y("more")
143
+ }, {
144
+ default: p(() => [
145
+ ee("span", {
146
+ onMouseover: te(X, ["stop"]),
147
+ onMouseleave: o[0] || (o[0] = (e) => m.value = !1)
148
+ }, [
149
+ k(r(I), {
150
+ icon: r(fe),
151
+ "is-custom-svg": "",
152
+ size: 14
153
+ }, null, 8, ["icon"])
154
+ ], 32)
155
+ ]),
156
+ _: 1
157
+ }, 8, ["data-testid"])) : u("", !0)
158
+ ]),
159
+ _: 3
160
+ }, 8, ["spacer", "wrap"]),
161
+ w.value.left ? (i(), c(r(ce), {
162
+ key: 0,
163
+ visible: m.value,
164
+ "onUpdate:visible": o[1] || (o[1] = (e) => m.value = e),
165
+ trigger: "hover",
166
+ placement: "bottom",
167
+ width: K.value,
168
+ offset: 8,
169
+ "hide-after": 0,
170
+ "virtual-ref": Y.value,
171
+ "virtual-triggering": "",
172
+ "popper-class": `${r(B)}-popover-class`,
173
+ "popper-style": {
174
+ padding: "6px 0px",
175
+ minWidth: "60px"
176
+ }
177
+ }, {
178
+ default: p(() => [
179
+ (i(!0), s(f, null, A(g.value, (e, l) => (i(), s("div", {
180
+ key: `${l}-${e.label}`,
181
+ onClick: () => {
182
+ var d;
183
+ !e.disabled && ((d = e.onClick) == null || d.call(e));
184
+ }
185
+ }, [
186
+ F((i(), c(r(C), {
187
+ link: "",
188
+ disabled: N(e.disabledTip, e.disabled),
189
+ type: e.type || "primary",
190
+ style: W({ color: e.color }),
191
+ "data-testid": y(e.label || "")
192
+ }, oe({
193
+ default: p(() => [
194
+ e.label ? (i(), s(f, { key: 0 }, [
195
+ re(E(e.label), 1)
196
+ ], 64)) : u("", !0)
197
+ ]),
198
+ _: 2
199
+ }, [
200
+ e.iconFont ? {
201
+ name: "icon",
202
+ fn: p(() => [
203
+ k(r(I), {
204
+ "icon-font": e.iconFont,
205
+ class: h({ "mr-1": !!e.label })
206
+ }, null, 8, ["icon-font", "class"])
207
+ ]),
208
+ key: "0"
209
+ } : void 0
210
+ ]), 1032, ["disabled", "type", "style", "data-testid"])), [
211
+ [r(R), e.disabledTip]
212
+ ])
213
+ ], 8, be))), 128))
214
+ ]),
215
+ _: 1
216
+ }, 8, ["visible", "width", "virtual-ref", "popper-class"])) : u("", !0)
217
+ ], 2));
218
+ }
219
+ });
220
+ export {
221
+ Be as default
222
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./TableAction.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,117 @@
1
+ import { defineComponent as I, inject as S, computed as d, toRaw as k, createVNode as n, resolveComponent as P, unref as f, isVNode as j, mergeProps as a, withDirectives as F, resolveDirective as $ } from "vue";
2
+ import { propTypes as c, useDesign as x } from "@dazhicheng/hooks";
3
+ import { isBoolean as z, isFunction as b, generateTestId as D, toKebabCase as N, isArray as O, isObject as A } from "@dazhicheng/utils";
4
+ import { TtButton as R } from "@dazhicheng-ui/components/tt-button";
5
+ import { TtIcon as m } from "@dazhicheng-ui/components/tt-icon";
6
+ import U from "@dazhicheng-ui/directives/disabled-tip";
7
+ import { ElPopover as V } from "element-plus";
8
+ import { componentMap as _ } from "../componentMap.js";
9
+ /* empty css */
10
+ function E(l) {
11
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !j(l);
12
+ }
13
+ const X = /* @__PURE__ */ I({
14
+ name: "TtTableButton",
15
+ directives: {
16
+ disabledTip: U
17
+ },
18
+ props: {
19
+ /** 按钮acitons */
20
+ actions: {
21
+ type: Array,
22
+ default: () => []
23
+ },
24
+ /** 分割线 */
25
+ divider: c.bool.def(!0),
26
+ /** 是否阻止默认行为 */
27
+ stopButtonPropagation: c.bool.def(!0)
28
+ },
29
+ setup(l, {
30
+ slots: g
31
+ }) {
32
+ const {
33
+ prefixCls: s
34
+ } = x("table-buttons"), h = S("tableIdContext", d(() => "")), T = (e) => D(f(h), "toolbar-btn", N(e)), C = (e) => {
35
+ const t = e.ifShow;
36
+ let o = !0;
37
+ return z(t) && (o = t), b(t) && (o = t(e)), o;
38
+ }, v = d(() => (k(l.actions) || []).filter((e) => C(e))), y = (e) => {
39
+ if (!l.stopButtonPropagation) return;
40
+ e.composedPath().find((r) => {
41
+ var i;
42
+ return ((i = r.tagName) == null ? void 0 : i.toUpperCase()) === "BUTTON";
43
+ }) && e.stopPropagation();
44
+ };
45
+ function B(e, t) {
46
+ const o = e;
47
+ return O(o) && o.length > 0 ? o.some((r) => !!(r != null && r.condition)) : A(o) ? !!o.condition : !!t;
48
+ }
49
+ function w(e, t = "default", o) {
50
+ if (!e || !Reflect.has(e, t) || !b(e[t]))
51
+ return null;
52
+ const r = e[t];
53
+ return r ? r(o) : null;
54
+ }
55
+ const u = (e, t) => F(n(R, a({
56
+ disabled: B(e.disabledTip, e.disabled),
57
+ key: t,
58
+ style: {
59
+ color: e.color
60
+ },
61
+ class: `${s}-reference-btn`,
62
+ onClick: e.onClick,
63
+ loading: e.loading,
64
+ type: e.type || "",
65
+ size: e.size || "default",
66
+ "data-testid": T(e.label || "")
67
+ }, e.props ?? {}), {
68
+ default: () => [n("span", null, [e.label || ""]), e.children && !e.disabled && n(m, {
69
+ "icon-font": "icon-xiala",
70
+ class: "el-icon--right"
71
+ }, null)],
72
+ ...e.iconFont && {
73
+ icon: () => n(m, {
74
+ "icon-font": e.iconFont,
75
+ size: 14
76
+ }, null)
77
+ }
78
+ }), [[$("disabled-tip"), e.disabledTip]]), p = (e) => e.map((t, o) => {
79
+ const r = _.get(t.component);
80
+ if (t.children && t.children.length > 0) {
81
+ const i = {
82
+ reference: () => u(t, o)
83
+ };
84
+ return t.disabled ? u(t, o) : n(V, {
85
+ placement: "bottom",
86
+ width: "auto",
87
+ trigger: "hover",
88
+ offset: 8,
89
+ "show-arrow": !1,
90
+ "popper-class": `${s}-popover`
91
+ }, {
92
+ default: () => [n("div", {
93
+ class: `${s}-popover-btnbox`
94
+ }, [p(t.children)])],
95
+ ...i
96
+ });
97
+ }
98
+ return t.slot ? w(g, t.slot, t) : t.component ? n(r, a({
99
+ key: o
100
+ }, t), null) : u(t, o);
101
+ });
102
+ return () => {
103
+ let e;
104
+ return n("div", {
105
+ class: `${s} flex`,
106
+ onClick: y
107
+ }, [n(P("el-space"), {
108
+ size: 8
109
+ }, E(e = p(f(v))) ? e : {
110
+ default: () => [e]
111
+ })]);
112
+ };
113
+ }
114
+ });
115
+ export {
116
+ X as default
117
+ };