@dazhicheng/ui 1.5.202 → 1.5.204

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 (149) hide show
  1. package/dist/_virtual/___vite-browser-external.js +6 -0
  2. package/dist/_virtual/__vite-browser-external.js +4 -0
  3. package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
  4. package/dist/_virtual/_commonjsHelpers.js +24 -0
  5. package/dist/_virtual/aes.js +4 -0
  6. package/dist/_virtual/cipher-core.js +4 -0
  7. package/dist/_virtual/core.js +4 -0
  8. package/dist/_virtual/enc-base64.js +4 -0
  9. package/dist/_virtual/enc-utf8.js +4 -0
  10. package/dist/_virtual/evpkdf.js +4 -0
  11. package/dist/_virtual/hmac.js +4 -0
  12. package/dist/_virtual/md5.js +4 -0
  13. package/dist/_virtual/mode-ecb.js +4 -0
  14. package/dist/_virtual/pad-pkcs7.js +4 -0
  15. package/dist/_virtual/sha1.js +4 -0
  16. package/dist/components/tt-api-component/index.js +17 -4
  17. package/dist/components/tt-api-component/index.vue2.js +24 -13
  18. package/dist/components/tt-area/TtArea.vue3.js +24 -13
  19. package/dist/components/tt-button/index.js +18 -5
  20. package/dist/components/tt-button/index.vue2.js +27 -16
  21. package/dist/components/tt-checkbox/index.js +17 -4
  22. package/dist/components/tt-checkbox/index.vue.js +38 -28
  23. package/dist/components/tt-drawer/index.js +17 -7
  24. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +48 -36
  25. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +39 -26
  26. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +23 -10
  27. package/dist/components/tt-drawer/src/props.js +22 -9
  28. package/dist/components/tt-drawer/src/utils/drawer-api.js +42 -33
  29. package/dist/components/tt-empty/index.js +28 -18
  30. package/dist/components/tt-form/index.js +22 -14
  31. package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +23 -14
  32. package/dist/components/tt-form/src/components/FormActions.vue2.js +42 -32
  33. package/dist/components/tt-form/src/form/FormDescription.vue.js +19 -10
  34. package/dist/components/tt-form/src/form/FormItem.vue.js +18 -9
  35. package/dist/components/tt-form/src/form/FormLabel.vue.js +18 -9
  36. package/dist/components/tt-form/src/form/RenderContent.vue.js +25 -13
  37. package/dist/components/tt-form/src/form-render/FormField.vue2.js +62 -55
  38. package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +36 -28
  39. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +64 -56
  40. package/dist/components/tt-form/src/form-render/array-register/utils.js +18 -8
  41. package/dist/components/tt-form/src/form-render/dependencies.js +36 -24
  42. package/dist/components/tt-form/src/form-render/form.vue2.js +17 -7
  43. package/dist/components/tt-form/src/form-render/helper.js +29 -16
  44. package/dist/components/tt-form/src/form-render/rootWrapperClass.js +17 -7
  45. package/dist/components/tt-form/src/formApi.js +59 -48
  46. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +17 -4
  47. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +67 -57
  48. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +55 -46
  49. package/dist/components/tt-form/src/group-form/groupFormApi.js +21 -10
  50. package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +27 -17
  51. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +32 -23
  52. package/dist/components/tt-form/src/index.vue2.js +53 -45
  53. package/dist/components/tt-form/src/useFormContext.js +74 -62
  54. package/dist/components/tt-form-item-error-tooltip/index.js +18 -5
  55. package/dist/components/tt-form-item-error-tooltip/index.vue.js +32 -21
  56. package/dist/components/tt-icon/index.js +20 -7
  57. package/dist/components/tt-image/index.js +19 -6
  58. package/dist/components/tt-image/src/components/ImageViewer.js +27 -17
  59. package/dist/components/tt-loading/index.js +16 -4
  60. package/dist/components/tt-loading/src/directive.js +34 -22
  61. package/dist/components/tt-log/index.js +17 -4
  62. package/dist/components/tt-log/index.vue.js +21 -8
  63. package/dist/components/tt-modal/index.js +16 -5
  64. package/dist/components/tt-modal/src/RenderModal.vue.js +163 -151
  65. package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +38 -28
  66. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +24 -11
  67. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +36 -23
  68. package/dist/components/tt-modal/src/props.js +22 -9
  69. package/dist/components/tt-modal/src/utils/modal-api.js +39 -29
  70. package/dist/components/tt-modal-form/index.vue.js +44 -36
  71. package/dist/components/tt-nav-anchor/index.js +17 -4
  72. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +69 -57
  73. package/dist/components/tt-panel-select/index.js +17 -4
  74. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +51 -40
  75. package/dist/components/tt-panel-select/src/index.vue.js +35 -24
  76. package/dist/components/tt-select/index.js +17 -4
  77. package/dist/components/tt-select/src/Select.vue.js +79 -68
  78. package/dist/components/tt-select/src/components/SelectTable.vue.js +41 -30
  79. package/dist/components/tt-select/src/components/Table.vue.js +86 -76
  80. package/dist/components/tt-select/src/hooks/useDataSource.js +59 -49
  81. package/dist/components/tt-select/src/hooks/useSelect.js +46 -38
  82. package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +123 -112
  83. package/dist/components/tt-table/index.js +19 -12
  84. package/dist/components/tt-table/src/Table.vue.js +82 -71
  85. package/dist/components/tt-table/src/TableForm.vue.js +77 -65
  86. package/dist/components/tt-table/src/components/TableAction.vue.js +49 -39
  87. package/dist/components/tt-table/src/components/TableButtons.js +73 -60
  88. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +14 -3
  89. package/dist/components/tt-table/src/components/TableToobalTools.vue.js +36 -25
  90. package/dist/components/tt-table/src/hooks/useColumns.js +72 -65
  91. package/dist/components/tt-table/src/hooks/useCustomColumns.js +43 -31
  92. package/dist/components/tt-table/src/hooks/useDataSource.js +50 -42
  93. package/dist/components/tt-table/src/hooks/usePagination.js +36 -25
  94. package/dist/components/tt-table/src/props.js +55 -42
  95. package/dist/components/tt-table/src/utils/table-api.js +33 -22
  96. package/dist/components/tt-table/src/utils/table-form-api.js +35 -24
  97. package/dist/components/tt-text/index.js +17 -4
  98. package/dist/components/tt-upload/index.js +19 -6
  99. package/dist/components/tt-upload/src/TtUpload.vue.js +77 -66
  100. package/dist/directives/disabled-tip/index.js +37 -26
  101. package/dist/hooks/useFormSchemasLink.js +90 -79
  102. package/dist/hooks/useScreenshotOss.js +49 -35
  103. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  104. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js +64 -0
  105. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.js +545 -0
  106. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js +508 -0
  107. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.js +81 -0
  108. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js +10 -0
  109. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.js +71 -0
  110. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.js +84 -0
  111. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js +72 -0
  112. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js +22 -0
  113. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js +11 -0
  114. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.js +50 -0
  115. package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js +1024 -0
  116. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.js +32 -0
  117. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/apply-style.js +11 -0
  118. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-node.js +92 -0
  119. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-pseudos.js +34 -0
  120. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/dataurl.js +52 -0
  121. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-images.js +43 -0
  122. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-resources.js +47 -0
  123. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-webfonts.js +122 -0
  124. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/index.js +30 -0
  125. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/mimes.js +24 -0
  126. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/util.js +106 -0
  127. package/dist/node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.js +16 -0
  128. package/dist/node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.js +21 -0
  129. package/dist/node_modules/.pnpm/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +2922 -0
  130. package/dist/node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js +93 -0
  131. package/dist/packages/hooks/src/propTypes.js +17 -0
  132. package/dist/packages/hooks/src/tools.js +6 -0
  133. package/dist/packages/hooks/src/useDebounce.js +32 -0
  134. package/dist/packages/hooks/src/useDesign.js +12 -0
  135. package/dist/packages/hooks/src/useElementScreenshot.js +136 -0
  136. package/dist/packages/hooks/src/useIsScroll.js +12 -0
  137. package/dist/packages/hooks/src/usePriorityValue.js +45 -0
  138. package/dist/packages/utils/src/calc.js +14 -0
  139. package/dist/packages/utils/src/check.js +10 -0
  140. package/dist/packages/utils/src/install.js +11 -0
  141. package/dist/packages/utils/src/is.js +64 -0
  142. package/dist/packages/utils/src/merge.js +13 -0
  143. package/dist/packages/utils/src/stateHandler.js +33 -0
  144. package/dist/packages/utils/src/string.js +6 -0
  145. package/dist/packages/utils/src/testid-helper.js +14 -0
  146. package/dist/packages/utils/src/tool.js +181 -0
  147. package/dist/plugins/default/renderCellContent.js +39 -28
  148. package/dist/plugins/vxeTable/switchStatus.js +37 -26
  149. package/package.json +3 -3
@@ -1,7 +1,20 @@
1
- import { isFunction as f } from "@dazhicheng/utils";
2
- import { propTypes as t } from "@dazhicheng/hooks";
3
- import { GlobalConfig as l } from "../../../hooks/useSetup.js";
4
- const r = {
1
+ import "axios";
2
+ import "element-plus";
3
+ import { isFunction as d } from "../../../packages/utils/src/is.js";
4
+ import "vue";
5
+ import "xe-utils";
6
+ import "dayjs";
7
+ import "dayjs/plugin/utc";
8
+ import "dayjs/plugin/timezone";
9
+ import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
10
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
11
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
12
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
+ import "lodash-es";
15
+ import { propTypes as t } from "../../../packages/hooks/src/propTypes.js";
16
+ import { GlobalConfig as o } from "../../../hooks/useSetup.js";
17
+ const f = {
5
18
  /** 是否显示分页 */
6
19
  showPager: t.bool.def(!0),
7
20
  /** 数据总数 */
@@ -11,7 +24,7 @@ const r = {
11
24
  type: String,
12
25
  default: () => {
13
26
  var e;
14
- return (e = l.table) == null ? void 0 : e.currentPageField;
27
+ return (e = o.table) == null ? void 0 : e.currentPageField;
15
28
  }
16
29
  },
17
30
  /** 当前页的大小 field */
@@ -19,7 +32,7 @@ const r = {
19
32
  type: String,
20
33
  default: () => {
21
34
  var e;
22
- return (e = l.table) == null ? void 0 : e.pageSizeField;
35
+ return (e = o.table) == null ? void 0 : e.pageSizeField;
23
36
  }
24
37
  },
25
38
  /** 总数 field */
@@ -27,7 +40,7 @@ const r = {
27
40
  type: String,
28
41
  default: () => {
29
42
  var e;
30
- return (e = l.table) == null ? void 0 : e.totalField;
43
+ return (e = o.table) == null ? void 0 : e.totalField;
31
44
  }
32
45
  },
33
46
  /** 数据的 field */
@@ -35,10 +48,10 @@ const r = {
35
48
  type: String,
36
49
  default: () => {
37
50
  var e;
38
- return (e = l.table) == null ? void 0 : e.dataField;
51
+ return (e = o.table) == null ? void 0 : e.dataField;
39
52
  }
40
53
  }
41
- }, n = {
54
+ }, i = {
42
55
  /** 是否显示复选框 */
43
56
  showCheckbox: t.bool.def(!1),
44
57
  /** 是否显示单选框 */
@@ -98,7 +111,7 @@ const r = {
98
111
  type: String,
99
112
  default: () => {
100
113
  var e;
101
- return (e = l.table) == null ? void 0 : e.tableRowId;
114
+ return (e = o.table) == null ? void 0 : e.tableRowId;
102
115
  }
103
116
  },
104
117
  /** 自定义Column函数 */
@@ -106,7 +119,7 @@ const r = {
106
119
  type: Function
107
120
  // default: () => GlobalConfig.table?.customizeColumn,
108
121
  }
109
- }, i = {
122
+ }, n = {
110
123
  /** api请求方法 */
111
124
  api: {
112
125
  type: Function,
@@ -164,7 +177,7 @@ const r = {
164
177
  type: Boolean,
165
178
  default: () => {
166
179
  var e;
167
- return (e = l.table) == null ? void 0 : e.showRefresh;
180
+ return (e = o.table) == null ? void 0 : e.showRefresh;
168
181
  }
169
182
  },
170
183
  /** 是否显示右边设置 */
@@ -172,7 +185,7 @@ const r = {
172
185
  type: Boolean,
173
186
  default: () => {
174
187
  var e;
175
- return (e = l.table) == null ? void 0 : e.showSetting;
188
+ return (e = o.table) == null ? void 0 : e.showSetting;
176
189
  }
177
190
  },
178
191
  /** 是否显示自定义列 */
@@ -180,7 +193,7 @@ const r = {
180
193
  type: Boolean,
181
194
  default: () => {
182
195
  var e;
183
- return (e = l.table) == null ? void 0 : e.showSetColumn;
196
+ return (e = o.table) == null ? void 0 : e.showSetColumn;
184
197
  }
185
198
  },
186
199
  /** 是否显示自定义行距 */
@@ -188,7 +201,7 @@ const r = {
188
201
  type: Boolean,
189
202
  default: () => {
190
203
  var e;
191
- return (e = l.table) == null ? void 0 : e.showLineHeight;
204
+ return (e = o.table) == null ? void 0 : e.showLineHeight;
192
205
  }
193
206
  },
194
207
  /** 不可自定义列数组 field数组 */
@@ -197,7 +210,7 @@ const r = {
197
210
  filterNoVisibleField: t.array.def([]),
198
211
  /** 是否显示表格上方 alert */
199
212
  showTableAlert: t.bool.def(!1)
200
- }, b = {
213
+ }, p = {
201
214
  modelValue: {
202
215
  type: Array,
203
216
  default: () => []
@@ -222,7 +235,7 @@ const r = {
222
235
  type: String,
223
236
  default: () => {
224
237
  var e;
225
- return (e = l.table) == null ? void 0 : e.loadingText;
238
+ return (e = o.table) == null ? void 0 : e.loadingText;
226
239
  }
227
240
  },
228
241
  /** 暂无数据的样式 */
@@ -232,7 +245,7 @@ const r = {
232
245
  type: String,
233
246
  default: () => {
234
247
  var e;
235
- return (e = l.table) == null ? void 0 : e.emptyText;
248
+ return (e = o.table) == null ? void 0 : e.emptyText;
236
249
  }
237
250
  },
238
251
  /**
@@ -248,7 +261,7 @@ const r = {
248
261
  type: String,
249
262
  default: () => {
250
263
  var e;
251
- return (e = l.table) == null ? void 0 : e.noSearchText;
264
+ return (e = o.table) == null ? void 0 : e.noSearchText;
252
265
  }
253
266
  },
254
267
  /** 是否手动触发查询事件 */
@@ -263,7 +276,7 @@ const r = {
263
276
  type: Boolean,
264
277
  default: () => {
265
278
  var e;
266
- return (e = l.table) == null ? void 0 : e.useHttpCache;
279
+ return (e = o.table) == null ? void 0 : e.useHttpCache;
267
280
  }
268
281
  },
269
282
  /** 开启服务端缓存时默认展示的列 用户列为null时默认展示的列 */
@@ -271,7 +284,7 @@ const r = {
271
284
  type: Array,
272
285
  default: () => {
273
286
  var e;
274
- return (e = l.table) == null ? void 0 : e.defaultDisplayFields;
287
+ return (e = o.table) == null ? void 0 : e.defaultDisplayFields;
275
288
  }
276
289
  },
277
290
  /**
@@ -311,17 +324,17 @@ const r = {
311
324
  type: String,
312
325
  default: void 0
313
326
  },
314
- ...r,
315
- ...n,
327
+ ...f,
316
328
  ...i,
329
+ ...n,
317
330
  ...u
318
- }, s = {
331
+ }, b = {
319
332
  /** 按键配置项 */
320
333
  keyboardConfig: {
321
334
  type: Object,
322
335
  default: () => {
323
336
  var e;
324
- return (e = l.table) == null ? void 0 : e.keyboardConfig;
337
+ return (e = o.table) == null ? void 0 : e.keyboardConfig;
325
338
  }
326
339
  },
327
340
  /** 右键菜单配置项 */
@@ -334,7 +347,7 @@ const r = {
334
347
  type: Object,
335
348
  default: () => {
336
349
  var e;
337
- return (e = l.table) == null ? void 0 : e.mouseConfig;
350
+ return (e = o.table) == null ? void 0 : e.mouseConfig;
338
351
  }
339
352
  },
340
353
  /** 复选框配置项 */
@@ -342,7 +355,7 @@ const r = {
342
355
  type: Object,
343
356
  default: () => {
344
357
  var e;
345
- return (e = l.table) == null ? void 0 : e.checkboxConfig;
358
+ return (e = o.table) == null ? void 0 : e.checkboxConfig;
346
359
  }
347
360
  },
348
361
  /** 单选框配置项 */
@@ -350,16 +363,16 @@ const r = {
350
363
  type: Object,
351
364
  default: () => {
352
365
  var e;
353
- return (e = l.table) == null ? void 0 : e.radioConfig;
366
+ return (e = o.table) == null ? void 0 : e.radioConfig;
354
367
  }
355
368
  }
356
- }, p = Object.entries(b).reduce((e, a) => {
369
+ }, s = Object.entries(p).reduce((e, a) => {
357
370
  if (a) {
358
- const [d, o] = a;
359
- f(o.default) ? e[d] = o.default() : e[d] = o.default;
371
+ const [r, l] = a;
372
+ d(l.default) ? e[r] = l.default() : e[r] = l.default;
360
373
  }
361
374
  return e;
362
- }, {}), h = {
375
+ }, {}), B = {
363
376
  tableData: {
364
377
  type: Array,
365
378
  default: () => []
@@ -367,7 +380,7 @@ const r = {
367
380
  /** table参数 */
368
381
  table: {
369
382
  type: Object,
370
- default: p
383
+ default: s
371
384
  },
372
385
  /** 是否使用搜索form */
373
386
  useSearchForm: t.bool.def(!0),
@@ -396,7 +409,7 @@ const r = {
396
409
  type: String,
397
410
  default: () => {
398
411
  var e;
399
- return (e = l.table) == null ? void 0 : e.tableRowId;
412
+ return (e = o.table) == null ? void 0 : e.tableRowId;
400
413
  }
401
414
  },
402
415
  /** 表格 testId,用于生成测试标识 */
@@ -408,7 +421,7 @@ const r = {
408
421
  tableFormApi: {
409
422
  type: Object
410
423
  }
411
- }, m = {
424
+ }, R = {
412
425
  /** 列配置 */
413
426
  columns: {
414
427
  type: Array,
@@ -442,7 +455,7 @@ const r = {
442
455
  type: Object,
443
456
  default: () => {
444
457
  var e;
445
- return (e = l.table) == null ? void 0 : e.pagerConfig;
458
+ return (e = o.table) == null ? void 0 : e.pagerConfig;
446
459
  }
447
460
  },
448
461
  /** toolbar 配置 */
@@ -460,7 +473,7 @@ const r = {
460
473
  type: String,
461
474
  default: () => {
462
475
  var e;
463
- return (e = l.table) == null ? void 0 : e.size;
476
+ return (e = o.table) == null ? void 0 : e.size;
464
477
  }
465
478
  },
466
479
  /**
@@ -472,11 +485,11 @@ const r = {
472
485
  type: String,
473
486
  default: "right"
474
487
  },
475
- ...s
488
+ ...b
476
489
  };
477
490
  export {
478
- h as tableFormProps,
479
- m as tableOtherProps,
480
- s as tableProProps,
481
- b as tableProps
491
+ B as tableFormProps,
492
+ R as tableOtherProps,
493
+ b as tableProProps,
494
+ p as tableProps
482
495
  };
@@ -1,12 +1,23 @@
1
1
  var K = Object.defineProperty;
2
2
  var A = (a, e, t) => e in a ? K(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
3
  var s = (a, e, t) => A(a, typeof e != "symbol" ? e + "" : e, t);
4
- import { mergeWithArrayOverride as r, StateHandler as H, bindMethods as I, isFunction as k } from "@dazhicheng/utils";
4
+ import "axios";
5
+ import "element-plus";
6
+ import { isFunction as H } from "../../../../packages/utils/src/is.js";
7
+ import { reactive as l, computed as r } from "vue";
8
+ import { bindMethods as I } from "../../../../packages/utils/src/tool.js";
9
+ import { mergeWithArrayOverride as n } from "../../../../packages/utils/src/merge.js";
10
+ import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import { StateHandler as k } from "../../../../packages/utils/src/stateHandler.js";
12
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
13
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
14
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
15
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
16
+ import "lodash-es";
5
17
  import { GlobalConfig as o } from "../../../../hooks/useSetup.js";
6
18
  import { Store as z } from "@tanstack/vue-store";
7
- import { reactive as n, computed as l } from "vue";
8
19
  function M() {
9
- var a, e, t, i, d, h, m, u, c, g, w, p, b, f, y, S, C, x, R, T, v, E, P, D, F;
20
+ var a, e, t, i, d, h, m, u, c, p, g, w, f, b, y, S, C, x, R, T, v, E, P, D, F;
10
21
  return {
11
22
  showPager: !0,
12
23
  total: 0,
@@ -64,11 +75,11 @@ function M() {
64
75
  showSetting: (m = o.table) == null ? void 0 : m.showSetting,
65
76
  showRefresh: (u = o.table) == null ? void 0 : u.showRefresh,
66
77
  tableRowId: (c = o.table) == null ? void 0 : c.tableRowId,
67
- currentPageField: (g = o.table) == null ? void 0 : g.currentPageField,
68
- pageSizeField: (w = o.table) == null ? void 0 : w.pageSizeField,
69
- totalField: (p = o.table) == null ? void 0 : p.totalField,
70
- dataField: (b = o.table) == null ? void 0 : b.dataField,
71
- pagerConfig: (f = o.table) == null ? void 0 : f.pagerConfig,
78
+ currentPageField: (p = o.table) == null ? void 0 : p.currentPageField,
79
+ pageSizeField: (g = o.table) == null ? void 0 : g.pageSizeField,
80
+ totalField: (w = o.table) == null ? void 0 : w.totalField,
81
+ dataField: (f = o.table) == null ? void 0 : f.dataField,
82
+ pagerConfig: (b = o.table) == null ? void 0 : b.pagerConfig,
72
83
  size: (y = o.table) == null ? void 0 : y.size,
73
84
  keyboardConfig: (S = o.table) == null ? void 0 : S.keyboardConfig,
74
85
  menuConfig: {},
@@ -83,22 +94,22 @@ function M() {
83
94
  columnsKey: (F = o.table) == null ? void 0 : F.columnsKey
84
95
  };
85
96
  }
86
- class V {
97
+ class $ {
87
98
  /**
88
99
  * 构造函数,初始化 store、状态等
89
100
  * @param options 表格配置项
90
101
  */
91
102
  constructor(e = {}) {
92
103
  /** vxe-grid 表格实例 */
93
- s(this, "grid", n({}));
104
+ s(this, "grid", l({}));
94
105
  /** 表格操作方法集合(TtTableMethods) */
95
- s(this, "methods", n({}));
106
+ s(this, "methods", l({}));
96
107
  /** 当前表格的 props 状态 */
97
108
  s(this, "state", null);
98
109
  /** 响应式 store,存储表格的状态 */
99
110
  s(this, "store");
100
111
  /** 响应式代理状态(loading、selectedKeys) */
101
- s(this, "proxyState", n({
112
+ s(this, "proxyState", l({
102
113
  loading: !1,
103
114
  selectedKeys: [],
104
115
  isTableEvent: !1,
@@ -110,26 +121,26 @@ class V {
110
121
  * @description: 获取表格选中数据
111
122
  * @return {DT[]}
112
123
  */
113
- s(this, "selectedKeys", l(() => this.proxyState.selectedKeys));
124
+ s(this, "selectedKeys", r(() => this.proxyState.selectedKeys));
114
125
  /**
115
126
  * @description: 获取表格选中数据
116
127
  * @return {DT[]}
117
128
  */
118
- s(this, "selectedRows", l(() => this.proxyState.selectedRows));
129
+ s(this, "selectedRows", r(() => this.proxyState.selectedRows));
119
130
  /**
120
131
  * 获取表格 loading 状态(响应式)
121
132
  */
122
- s(this, "getLoading", l(() => this.proxyState.loading));
133
+ s(this, "getLoading", r(() => this.proxyState.loading));
123
134
  /**
124
135
  * 是否使用表格的event
125
136
  */
126
- s(this, "getIsTableEvent", l(() => this.proxyState.isTableEvent));
137
+ s(this, "getIsTableEvent", r(() => this.proxyState.isTableEvent));
127
138
  const t = { ...e }, i = M();
128
- this.store = new z(r(t, i), {
139
+ this.store = new z(n(t, i), {
129
140
  onUpdate: () => {
130
141
  this.state = this.store.state;
131
142
  }
132
- }), this.state = this.store.state, this.stateHandler = new H(), I(this);
143
+ }), this.state = this.store.state, this.stateHandler = new k(), I(this);
133
144
  }
134
145
  /**
135
146
  * 组件挂载时调用,注入表格实例和方法
@@ -144,10 +155,10 @@ class V {
144
155
  * @param stateOrFn 新状态或返回新状态的函数
145
156
  */
146
157
  setState(e) {
147
- k(e) ? this.store.setState((t) => {
158
+ H(e) ? this.store.setState((t) => {
148
159
  const i = e(t);
149
- return r(i, t, ["searchInfo"]);
150
- }) : this.store.setState((t) => r(e, t, ["searchInfo"]));
160
+ return n(i, t, ["searchInfo"]);
161
+ }) : this.store.setState((t) => n(e, t, ["searchInfo"]));
151
162
  }
152
163
  /**
153
164
  * 组件卸载时调用,重置挂载状态
@@ -381,6 +392,6 @@ class V {
381
392
  }
382
393
  }
383
394
  export {
384
- V as TableApi,
395
+ $ as TableApi,
385
396
  M as getDefaultState
386
397
  };
@@ -1,26 +1,37 @@
1
- var d = Object.defineProperty;
2
- var p = (r, t, e) => t in r ? d(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var s = (r, t, e) => p(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { mergeWithArrayOverride as a, StateHandler as u, bindMethods as b, isFunction as m } from "@dazhicheng/utils";
5
- import { Store as c, useStore as f } from "@tanstack/vue-store";
6
- import { reactive as o, computed as S, toValue as A } from "vue";
1
+ var n = Object.defineProperty;
2
+ var h = (r, t, e) => t in r ? n(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var s = (r, t, e) => h(r, typeof t != "symbol" ? t + "" : t, e);
4
+ import "axios";
5
+ import "element-plus";
6
+ import { isFunction as d } from "../../../../packages/utils/src/is.js";
7
+ import { reactive as i, computed as u, toValue as b } from "vue";
8
+ import { bindMethods as c } from "../../../../packages/utils/src/tool.js";
9
+ import { mergeWithArrayOverride as a } from "../../../../packages/utils/src/merge.js";
10
+ import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import { StateHandler as f } from "../../../../packages/utils/src/stateHandler.js";
12
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
13
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
14
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
15
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
16
+ import "lodash-es";
17
+ import { Store as S, useStore as A } from "@tanstack/vue-store";
7
18
  import { getDefaultState as y, TableApi as O } from "./table-api.js";
8
- class I {
19
+ class U {
9
20
  /**
10
21
  * 构造函数,初始化 store、tableApi、状态等
11
22
  * @param options 表单+表格配置项
12
23
  */
13
24
  constructor(t = {}) {
14
25
  /** form 表单实例(FormApi) */
15
- s(this, "formApi", o({}));
26
+ s(this, "formApi", i({}));
16
27
  /** 表格 API 实例(TableApi) */
17
- s(this, "tableApi", o({}));
28
+ s(this, "tableApi", i({}));
18
29
  /** vxe-grid 表格实例 */
19
- s(this, "grid", o({}));
30
+ s(this, "grid", i({}));
20
31
  /** 当前表单+表格的 props 状态 */
21
32
  s(this, "state", null);
22
33
  /** 表单操作方法集合(TableFormActionType) */
23
- s(this, "tableForm", o({}));
34
+ s(this, "tableForm", i({}));
24
35
  /** 响应式 store,存储表单+表格的状态 */
25
36
  s(this, "store");
26
37
  s(this, "isMounted", !1);
@@ -28,25 +39,25 @@ class I {
28
39
  /**
29
40
  * 当前选中的行 key 数组(响应式)
30
41
  */
31
- s(this, "selectedKeys", S(() => A(this.tableApi.selectedKeys) ?? []));
32
- const e = { ...t }, i = y();
33
- this.store = new c(
42
+ s(this, "selectedKeys", u(() => b(this.tableApi.selectedKeys) ?? []));
43
+ const e = { ...t }, o = y();
44
+ this.store = new S(
34
45
  a(e, {
35
46
  useSearchForm: !0,
36
- table: i,
37
- tableRowId: i.tableRowId || "id"
47
+ table: o,
48
+ tableRowId: o.tableRowId || "id"
38
49
  }),
39
50
  {
40
51
  onUpdate: () => {
41
52
  this.state = this.store.state;
42
53
  }
43
54
  }
44
- ), this.state = this.store.state, this.stateHandler = new u();
45
- const l = new O({
55
+ ), this.state = this.store.state, this.stateHandler = new f();
56
+ const p = new O({
46
57
  ...this.state.table,
47
58
  useSearchForm: this.state.useSearchForm || !1
48
- }), n = l;
49
- n.useStore = (h) => f(l.store, h), Object.setPrototypeOf(this.tableApi, n), b(this);
59
+ }), l = p;
60
+ l.useStore = (m) => A(p.store, m), Object.setPrototypeOf(this.tableApi, l), c(this);
50
61
  }
51
62
  /**
52
63
  * 组件挂载时调用,注入表单和表格实例
@@ -54,15 +65,15 @@ class I {
54
65
  * @param formApi 表单实例
55
66
  */
56
67
  mount(t, e) {
57
- var i;
58
- !this.isMounted && t && (Object.setPrototypeOf(this.grid, this.tableApi.grid), Object.setPrototypeOf(this.formApi, e), Object.setPrototypeOf(this.tableForm, t), (i = this.tableApi) == null || i.setState({ formApi: e }), this.stateHandler.setConditionTrue(), this.isMounted = !0);
68
+ var o;
69
+ !this.isMounted && t && (Object.setPrototypeOf(this.grid, this.tableApi.grid), Object.setPrototypeOf(this.formApi, e), Object.setPrototypeOf(this.tableForm, t), (o = this.tableApi) == null || o.setState({ formApi: e }), this.stateHandler.setConditionTrue(), this.isMounted = !0);
59
70
  }
60
71
  /**
61
72
  * 更新表单+表格的数据
62
73
  * @param stateOrFn 新状态或返回新状态的函数
63
74
  */
64
75
  setState(t) {
65
- m(t) ? this.store.setState((e) => a(t(e), e)) : this.store.setState((e) => a(t, e));
76
+ d(t) ? this.store.setState((e) => a(t(e), e)) : this.store.setState((e) => a(t, e));
66
77
  }
67
78
  /**
68
79
  * 重新加载表格数据
@@ -118,5 +129,5 @@ class I {
118
129
  }
119
130
  }
120
131
  export {
121
- I as TableFormApi
132
+ U as TableFormApi
122
133
  };
@@ -1,7 +1,20 @@
1
- import { withInstall as t } from "@dazhicheng/utils";
1
+ import "axios";
2
+ import "element-plus";
3
+ import "dayjs";
4
+ import "vue";
5
+ import { withInstall as t } from "../../packages/utils/src/install.js";
6
+ import "xe-utils";
7
+ import "dayjs/plugin/utc";
8
+ import "dayjs/plugin/timezone";
9
+ import "../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
10
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
11
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
12
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
+ import "lodash-es";
2
15
  import o from "./index.vue.js";
3
- const m = t(o);
16
+ const h = t(o);
4
17
  export {
5
- m as TtText,
6
- m as default
18
+ h as TtText,
19
+ h as default
7
20
  };
@@ -1,9 +1,22 @@
1
- import { withInstall as o } from "@dazhicheng/utils";
1
+ import "axios";
2
+ import "element-plus";
3
+ import "dayjs";
4
+ import "vue";
5
+ import { withInstall as o } from "../../packages/utils/src/install.js";
6
+ import "xe-utils";
7
+ import "dayjs/plugin/utc";
8
+ import "dayjs/plugin/timezone";
9
+ import "../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
10
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
11
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
12
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
+ import "lodash-es";
2
15
  import t from "./src/TtUpload.vue.js";
3
- import { ttUploadProps as l } from "./src/typing.js";
4
- const a = o(t);
16
+ import { ttUploadProps as I } from "./src/typing.js";
17
+ const h = o(t);
5
18
  export {
6
- a as TtUpload,
7
- a as default,
8
- l as ttUploadProps
19
+ h as TtUpload,
20
+ h as default,
21
+ I as ttUploadProps
9
22
  };