@dazhicheng/ui 1.5.265 → 1.6.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 (104) hide show
  1. package/dist/components/tt-area/TtArea.vue.js +1 -1
  2. package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
  3. package/dist/components/tt-drawer/src/hooks/useResizable.js +2 -2
  4. package/dist/components/tt-form/src/components/FormElInput.vue.js +51 -38
  5. package/dist/components/tt-form/src/form-render/FormField.vue2.js +36 -36
  6. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +3 -3
  7. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +3 -1
  8. package/dist/components/tt-icon/index.vue.js +2 -2
  9. package/dist/components/tt-loading/src/loading.vue.js +2 -2
  10. package/dist/components/tt-modal-form/index.vue.js +13 -12
  11. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +2 -2
  12. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +93 -86
  13. package/dist/components/tt-panel-select/src/index.vue.js +1 -0
  14. package/dist/components/tt-select/src/Select.vue.d.ts +4 -4
  15. package/dist/components/tt-select/src/components/Table.vue.d.ts +4 -4
  16. package/dist/components/tt-table/index.d.ts +523 -358
  17. package/dist/components/tt-table/index.js +7 -4
  18. package/dist/components/tt-table/src/Table.vue.d.ts +306 -216
  19. package/dist/components/tt-table/src/Table.vue.js +405 -618
  20. package/dist/components/tt-table/src/TableForm.vue.d.ts +384 -19
  21. package/dist/components/tt-table/src/TableForm.vue.js +219 -228
  22. package/dist/components/tt-table/src/components/TableAction.vue.js +108 -131
  23. package/dist/components/tt-table/src/components/TableButtons.js +25 -25
  24. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +88 -85
  25. package/dist/components/tt-table/src/components/TableToolbarTools.vue.d.ts +80 -0
  26. package/dist/components/tt-table/src/components/{TableToobalTools.vue.js → TableToolbarTools.vue.js} +29 -31
  27. package/dist/components/tt-table/src/components/TableToolbarTools.vue2.js +4 -0
  28. package/dist/components/tt-table/src/emits.js +2 -1
  29. package/dist/components/tt-table/src/hooks/useColumnPersistence.d.ts +19 -0
  30. package/dist/components/tt-table/src/hooks/useColumnPersistence.js +63 -0
  31. package/dist/components/tt-table/src/hooks/useColumns.d.ts +505 -21
  32. package/dist/components/tt-table/src/hooks/useColumns.js +100 -245
  33. package/dist/components/tt-table/src/hooks/useGridProps.d.ts +36 -0
  34. package/dist/components/tt-table/src/hooks/useGridProps.js +121 -0
  35. package/dist/components/tt-table/src/hooks/useKeyboardNav.d.ts +11 -0
  36. package/dist/components/tt-table/src/hooks/useKeyboardNav.js +97 -0
  37. package/dist/components/tt-table/src/hooks/usePagination.d.ts +14 -8
  38. package/dist/components/tt-table/src/hooks/usePagination.js +29 -33
  39. package/dist/components/tt-table/src/hooks/useQuery.d.ts +41 -0
  40. package/dist/components/tt-table/src/hooks/useQuery.js +147 -0
  41. package/dist/components/tt-table/src/hooks/useRowIdentity.d.ts +22 -0
  42. package/dist/components/tt-table/src/hooks/useRowIdentity.js +96 -0
  43. package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +23 -7
  44. package/dist/components/tt-table/src/hooks/useRowSelection.js +95 -71
  45. package/dist/components/tt-table/src/hooks/{useLeftRightSlot.d.ts → useSideSlot.d.ts} +25 -17
  46. package/dist/components/tt-table/src/hooks/useSideSlot.js +77 -0
  47. package/dist/components/tt-table/src/hooks/useSyncProps.d.ts +12 -0
  48. package/dist/components/tt-table/src/hooks/useSyncProps.js +55 -0
  49. package/dist/components/tt-table/src/hooks/useTableData.d.ts +71 -0
  50. package/dist/components/tt-table/src/hooks/useTableData.js +307 -0
  51. package/dist/components/tt-table/src/hooks/useTableFooter.d.ts +15 -0
  52. package/dist/components/tt-table/src/hooks/useTableFooter.js +46 -0
  53. package/dist/components/tt-table/src/hooks/useTableForm.d.ts +10 -5
  54. package/dist/components/tt-table/src/hooks/useTableForm.js +55 -48
  55. package/dist/components/tt-table/src/hooks/useTableMethods.d.ts +165 -0
  56. package/dist/components/tt-table/src/hooks/useTableMethods.js +183 -0
  57. package/dist/components/tt-table/src/hooks/useTableRender.d.ts +24 -55
  58. package/dist/components/tt-table/src/props.d.ts +318 -151
  59. package/dist/components/tt-table/src/props.js +117 -270
  60. package/dist/components/tt-table/src/table-defaults.d.ts +25 -0
  61. package/dist/components/tt-table/src/table-defaults.js +71 -0
  62. package/dist/components/tt-table/src/table-mutation-events.d.ts +43 -0
  63. package/dist/components/tt-table/src/table-mutation-events.js +70 -0
  64. package/dist/components/tt-table/src/types/table.d.ts +207 -88
  65. package/dist/components/tt-table/src/types/tableAction.d.ts +23 -0
  66. package/dist/components/tt-table/src/types/tableForm.d.ts +15 -26
  67. package/dist/components/tt-table/src/utils/action-tab-index.d.ts +2 -0
  68. package/dist/components/tt-table/src/utils/action-tab-index.js +50 -0
  69. package/dist/components/tt-table/src/utils/context.js +25 -12
  70. package/dist/components/tt-table/src/utils/table-api.d.ts +136 -58
  71. package/dist/components/tt-table/src/utils/table-api.js +198 -165
  72. package/dist/components/tt-table/src/utils/table-form-api.d.ts +11 -11
  73. package/dist/components/tt-table/src/utils/table-form-api.js +41 -31
  74. package/dist/components/types.d.ts +0 -20
  75. package/dist/hooks/useSetup.js +0 -3
  76. package/dist/index.d.ts +1 -0
  77. package/dist/index.js +105 -101
  78. package/dist/packages/hooks/src/useDebounce.js +6 -6
  79. package/dist/packages/utils/src/is.js +20 -18
  80. package/dist/packages/utils/src/tool.js +76 -149
  81. package/dist/style.css +1 -1
  82. package/dist/utils/uppercaseInput.d.ts +29 -0
  83. package/dist/utils/uppercaseInput.js +16 -0
  84. package/package.json +3 -3
  85. package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +0 -576
  86. package/dist/components/tt-table/src/components/TableToobalTools.vue2.js +0 -4
  87. package/dist/components/tt-table/src/enum.d.ts +0 -2
  88. package/dist/components/tt-table/src/hooks/useCellArea.d.ts +0 -15
  89. package/dist/components/tt-table/src/hooks/useCellArea.js +0 -15
  90. package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +0 -20
  91. package/dist/components/tt-table/src/hooks/useCustomColumns.js +0 -65
  92. package/dist/components/tt-table/src/hooks/useDataSource.d.ts +0 -29
  93. package/dist/components/tt-table/src/hooks/useDataSource.js +0 -232
  94. package/dist/components/tt-table/src/hooks/useLeftRightSlot.js +0 -64
  95. package/dist/components/tt-table/src/hooks/useTable.d.ts +0 -7
  96. package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +0 -101
  97. package/dist/components/tt-table/src/hooks/useTableEvent.js +0 -197
  98. package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +0 -10
  99. package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +0 -15
  100. package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +0 -11
  101. package/dist/components/tt-table/src/hooks/useTableSlot.js +0 -17
  102. package/dist/components/tt-table/src/utils/filters.d.ts +0 -109
  103. package/dist/components/tt-table/src/utils/vxeTable.d.ts +0 -28
  104. package/dist/packages/utils/src/check.js +0 -10
@@ -1,63 +1,72 @@
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);
1
+ var m = Object.defineProperty;
2
+ var b = (s, t, e) => t in s ? m(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
+ var r = (s, t, e) => b(s, typeof t != "symbol" ? t + "" : t, e);
4
4
  import "axios";
5
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";
6
+ import { isFunction as c } from "../../../../packages/utils/src/is.js";
7
+ import { reactive as i, computed as u, toValue as f } from "vue";
8
+ import { bindMethods as d } from "../../../../packages/utils/src/tool.js";
9
9
  import { mergeWithArrayOverride as a } from "../../../../packages/utils/src/merge.js";
10
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";
11
+ import { StateHandler as O } from "../../../../packages/utils/src/stateHandler.js";
12
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
13
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
14
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
15
15
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
16
16
  import "lodash-es";
17
- import { Store as S, useStore as A } from "@tanstack/vue-store";
18
- import { getDefaultState as y, TableApi as O } from "./table-api.js";
19
- class U {
17
+ import { Store as A, useStore as S } from "@tanstack/vue-store";
18
+ import { getDefaultState as y, TableApi as j } from "./table-api.js";
19
+ function g(s) {
20
+ if (!s) return;
21
+ const t = {};
22
+ return Object.keys(s).forEach((e) => {
23
+ e !== "data" && Object.assign(t, { [e]: s[e] });
24
+ }), t;
25
+ }
26
+ class V {
20
27
  /**
21
28
  * 构造函数,初始化 store、tableApi、状态等
22
29
  * @param options 表单+表格配置项
23
30
  */
24
31
  constructor(t = {}) {
25
32
  /** form 表单实例(FormApi) */
26
- s(this, "formApi", i({}));
33
+ r(this, "formApi", i({}));
27
34
  /** 表格 API 实例(TableApi) */
28
- s(this, "tableApi", i({}));
35
+ r(this, "tableApi", i({}));
29
36
  /** vxe-grid 表格实例 */
30
- s(this, "grid", i({}));
37
+ r(this, "grid", i({}));
31
38
  /** 当前表单+表格的 props 状态 */
32
- s(this, "state", null);
39
+ r(this, "state", null);
33
40
  /** 表单操作方法集合(TableFormActionType) */
34
- s(this, "tableForm", i({}));
41
+ r(this, "tableForm", i({}));
35
42
  /** 响应式 store,存储表单+表格的状态 */
36
- s(this, "store");
37
- s(this, "isMounted", !1);
38
- s(this, "stateHandler");
43
+ r(this, "store");
44
+ r(this, "isMounted", !1);
45
+ r(this, "stateHandler");
39
46
  /**
40
47
  * 当前选中的行 key 数组(响应式)
41
48
  */
42
- s(this, "selectedKeys", u(() => b(this.tableApi.selectedKeys) ?? []));
43
- const e = { ...t }, o = y();
44
- this.store = new S(
49
+ r(this, "selectedKeys", u(() => f(this.tableApi.selectedKeys) ?? []));
50
+ const e = { ...t }, o = g(t.table);
51
+ o && (e.table = o);
52
+ const p = y();
53
+ this.store = new A(
45
54
  a(e, {
46
55
  useSearchForm: !0,
47
- table: o,
48
- tableRowId: o.tableRowId || "id"
56
+ table: p,
57
+ tableRowId: p.tableRowId || "id"
49
58
  }),
50
59
  {
51
60
  onUpdate: () => {
52
61
  this.state = this.store.state;
53
62
  }
54
63
  }
55
- ), this.state = this.store.state, this.stateHandler = new f();
56
- const p = new O({
64
+ ), this.state = this.store.state, this.stateHandler = new O();
65
+ const n = new j({
57
66
  ...this.state.table,
58
67
  useSearchForm: this.state.useSearchForm || !1
59
- }), l = p;
60
- l.useStore = (m) => A(p.store, m), Object.setPrototypeOf(this.tableApi, l), c(this);
68
+ }), l = n;
69
+ l.useStore = (h) => S(n.store, h), Object.setPrototypeOf(this.tableApi, l), d(this);
61
70
  }
62
71
  /**
63
72
  * 组件挂载时调用,注入表单和表格实例
@@ -73,14 +82,14 @@ class U {
73
82
  * @param stateOrFn 新状态或返回新状态的函数
74
83
  */
75
84
  setState(t) {
76
- d(t) ? this.store.setState((e) => a(t(e), e)) : this.store.setState((e) => a(t, e));
85
+ c(t) ? this.store.setState((e) => a(t(e), e)) : this.store.setState((e) => a(t, e));
77
86
  }
78
87
  /**
79
88
  * 重新加载表格数据
80
89
  * @param data 可选的查询参数
81
90
  */
82
91
  async reload(t) {
83
- this.tableForm.reload(t);
92
+ await this.tableForm.reload(t);
84
93
  }
85
94
  /**
86
95
  * 获取表单实例
@@ -125,9 +134,10 @@ class U {
125
134
  * 组件卸载时调用,重置挂载状态
126
135
  */
127
136
  unmount() {
128
- this.isMounted = !1, this.stateHandler.reset();
137
+ var t;
138
+ this.isMounted = !1, (t = this.tableApi) == null || t.unmount(), Object.setPrototypeOf(this.grid, Object.prototype), Object.setPrototypeOf(this.formApi, Object.prototype), Object.setPrototypeOf(this.tableForm, Object.prototype), this.stateHandler.reset();
129
139
  }
130
140
  }
131
141
  export {
132
- U as TableFormApi
142
+ V as TableFormApi
133
143
  };
@@ -80,17 +80,6 @@ export type TtUiGlobalConfig = {
80
80
  * @default-id
81
81
  */
82
82
  tableRowId?: string;
83
- /**
84
- * 请求的状态码
85
- * @default-200
86
- * @deprecated
87
- */
88
- resultCode?: string | number;
89
- /**
90
- * loading text
91
- * @default-loading text
92
- */
93
- loadingText?: string;
94
83
  /**
95
84
  * empty text
96
85
  * @default-暂无数据
@@ -130,11 +119,6 @@ export type TtUiGlobalConfig = {
130
119
  * 表格边框
131
120
  */
132
121
  border?: "full" | "inner" | "outer" | "none" | boolean;
133
- /**
134
- * 是否开启缓存
135
- * @default-false 不开启
136
- */
137
- useCache?: boolean;
138
122
  /**
139
123
  * 是否显示右边刷新按钮
140
124
  * @default-true 显示
@@ -155,12 +139,8 @@ export type TtUiGlobalConfig = {
155
139
  * @default-true 显示
156
140
  */
157
141
  showSetColumn?: boolean;
158
- /** 是否显示自定义行距 */
159
- showLineHeight?: boolean;
160
142
  /** 自定义函数 */
161
143
  customizeColumn?: TtTableProps["customizeColumn"];
162
- /** 外部插槽 */
163
- getSyncSlotComponent?: TtTableProps["getSyncSlotComponent"];
164
144
  /**
165
145
  * 表格斑马线
166
146
  * @default- false
@@ -15,8 +15,6 @@ const i = {
15
15
  totalField: "total",
16
16
  dataField: "list",
17
17
  tableRowId: "id",
18
- resultCode: 200,
19
- loadingText: "加载中...",
20
18
  emptyText: "暂无数据",
21
19
  noSearchText: "请先点击查询",
22
20
  keyboardConfig: {
@@ -33,7 +31,6 @@ const i = {
33
31
  showSetting: !0,
34
32
  showRefresh: !0,
35
33
  showExport: !1,
36
- useCache: !1,
37
34
  defaultDisplayFields: [],
38
35
  isReloadResetToFirstPage: !0,
39
36
  stripe: !0,
package/dist/index.d.ts CHANGED
@@ -31,6 +31,7 @@ export { useFormat } from './hooks/useFormat';
31
31
  export { useLoading } from './hooks/useLoading';
32
32
  export { useScreenshotOss, type ScreenshotOssComponentOptions, type ScreenshotOssDataUrlResult, type ScreenshotOssOptions, type ScreenshotOssResult, } from './hooks/useScreenshotOss';
33
33
  export { setXHR };
34
+ export { createUppercaseInputProps, toUppercaseInputValue, uppercaseInputProps, type CreateUppercaseInputPropsOptions, type UppercaseInputFormatFn, } from './utils/uppercaseInput';
34
35
  /**
35
36
  * 表单组件适配器
36
37
  * @param options 适配器选项
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { TtButton as a } from "./components/tt-button/index.js";
2
- import { TtAddButton as ar } from "./components/tt-button/index.js";
3
- import { TtCheckbox as f } from "./components/tt-checkbox/index.js";
4
- import { TtEmpty as p } from "./components/tt-empty/index.js";
1
+ import { TtButton as p } from "./components/tt-button/index.js";
2
+ import { TtAddButton as pr } from "./components/tt-button/index.js";
3
+ import { TtCheckbox as a } from "./components/tt-checkbox/index.js";
4
+ import { TtEmpty as f } from "./components/tt-empty/index.js";
5
5
  import { addComponent as s, setConfig as i } from "./components/tt-form/index.js";
6
6
  import { TtFormItemErrorTooltip as d } from "./components/tt-form-item-error-tooltip/index.js";
7
- import { TtIcon as x, TtAddIcon as T, TtSubIcon as u } from "./components/tt-icon/index.js";
8
- import { TtImage as l } from "./components/tt-image/index.js";
9
- import { RenderDrawer as n } from "./components/tt-drawer/index.js";
7
+ import { TtIcon as u, TtAddIcon as x, TtSubIcon as T } from "./components/tt-icon/index.js";
8
+ import { TtImage as n } from "./components/tt-image/index.js";
9
+ import { RenderDrawer as l } from "./components/tt-drawer/index.js";
10
10
  import { RenderModal as c } from "./components/tt-modal/index.js";
11
- import { TtModal as pr } from "./components/tt-modal/index.js";
11
+ import { TtModal as fr } from "./components/tt-modal/index.js";
12
12
  import { TtSelect as b } from "./components/tt-select/index.js";
13
13
  import { TtText as w } from "./components/tt-text/index.js";
14
14
  import { TtUpload as R } from "./components/tt-upload/index.js";
@@ -16,70 +16,71 @@ import { TtNavAnchor as h } from "./components/tt-nav-anchor/index.js";
16
16
  import { TtApiComponent as g } from "./components/tt-api-component/index.js";
17
17
  import * as e from "./directives/index.js";
18
18
  import { setup as M } from "./hooks/useSetup.js";
19
- import { TtLog as S } from "./components/tt-log/index.js";
20
- import { TtPanelSelect as A } from "./components/tt-panel-select/index.js";
21
- import { TtRadioGroup as C } from "./components/tt-radio-group/index.js";
19
+ import { TtLog as P } from "./components/tt-log/index.js";
20
+ import { TtPanelSelect as S } from "./components/tt-panel-select/index.js";
21
+ import { TtRadioGroup as A } from "./components/tt-radio-group/index.js";
22
22
  import { setXHR as ir } from "./utils/xhr.js";
23
23
  /* empty css */
24
24
  /* empty css */
25
25
  /* empty css */
26
26
  /* empty css */
27
- import { default as xr } from "./components/tt-area/TtArea.vue.js";
28
- import { useModalForm as ur } from "./components/tt-modal-form/useModalForm.js";
29
- import { TtLoading as nr } from "./components/tt-loading/index.js";
27
+ import { default as ur } from "./components/tt-area/TtArea.vue.js";
28
+ import { useModalForm as Tr } from "./components/tt-modal-form/useModalForm.js";
29
+ import { TtLoading as lr } from "./components/tt-loading/index.js";
30
30
  import { TtTable as br, TtTableAction as wr, TtTableButton as Rr } from "./components/tt-table/index.js";
31
31
  import { useFormSchemasLink as gr } from "./hooks/useFormSchemasLink.js";
32
- import { useDataPermissionOptions as Sr } from "./hooks/useDataPermissionOptions.js";
33
- import { useBasicDataOptions as Cr } from "./hooks/useBasicDataOptions.js";
34
- import { usePanelSelectSchemas as Fr } from "./hooks/usePanelSelectSchemas.js";
35
- import { CODES as Pr, GROUP_BY as Lr } from "./hooks/basicDataCodes.js";
36
- import { useFormat as Ir } from "./hooks/useFormat.js";
37
- import { useLoading as vr } from "./hooks/useLoading.js";
38
- import { useScreenshotOss as Nr } from "./hooks/useScreenshotOss.js";
39
- import { setupDrawer as D } from "./components/tt-drawer/src/index.js";
40
- import { useShowDrawer as Ur } from "./components/tt-drawer/src/index.js";
41
- import { setupModal as F } from "./components/tt-modal/src/index.js";
42
- import { useShowModal as _r } from "./components/tt-modal/src/index.js";
43
- import { default as jr } from "./directives/disabled-tip/index.js";
44
- import { default as Hr } from "./directives/auto-tip/index.js";
45
- import { showTtDrawer as Xr, useDrawerRender as Yr } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
46
- import { useDrawerResizable as qr } from "./components/tt-drawer/src/hooks/useResizable.js";
47
- import { showTtModal as Kr, useModalRender as Qr } from "./components/tt-modal/src/hooks/useModalRender.js";
48
- import { default as ro } from "./directives/dialog-resize/index.js";
32
+ import { useDataPermissionOptions as Pr } from "./hooks/useDataPermissionOptions.js";
33
+ import { useBasicDataOptions as Ar } from "./hooks/useBasicDataOptions.js";
34
+ import { usePanelSelectSchemas as Dr } from "./hooks/usePanelSelectSchemas.js";
35
+ import { CODES as Fr, GROUP_BY as Or } from "./hooks/basicDataCodes.js";
36
+ import { useFormat as Er } from "./hooks/useFormat.js";
37
+ import { useLoading as Ur } from "./hooks/useLoading.js";
38
+ import { useScreenshotOss as zr } from "./hooks/useScreenshotOss.js";
39
+ import { createUppercaseInputProps as Gr, toUppercaseInputValue as kr, uppercaseInputProps as Vr } from "./utils/uppercaseInput.js";
40
+ import { setupDrawer as C } from "./components/tt-drawer/src/index.js";
41
+ import { useShowDrawer as $r } from "./components/tt-drawer/src/index.js";
42
+ import { setupModal as D } from "./components/tt-modal/src/index.js";
43
+ import { useShowModal as yr } from "./components/tt-modal/src/index.js";
44
+ import { default as Xr } from "./directives/disabled-tip/index.js";
45
+ import { default as Zr } from "./directives/auto-tip/index.js";
46
+ import { showTtDrawer as Jr, useDrawerRender as Kr } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
47
+ import { useDrawerResizable as Wr } from "./components/tt-drawer/src/hooks/useResizable.js";
48
+ import { showTtModal as oo, useModalRender as eo } from "./components/tt-modal/src/hooks/useModalRender.js";
49
+ import { default as mo } from "./directives/dialog-resize/index.js";
49
50
  import * as rr from "zod";
50
- import { useGroupForm as eo } from "./components/tt-form/src/group-form/useGroupForm.js";
51
- import { COMPONENT_MAP as mo } from "./components/tt-form/src/config.js";
52
- import { useForm as fo } from "./components/tt-form/src/useForm.js";
53
- import { TtImageViewer as so } from "./components/tt-image/src/components/ImageViewer.js";
54
- import { vTtLoading as xo } from "./components/tt-loading/src/directive.js";
55
- import { Loading as uo } from "./components/tt-loading/src/service.js";
56
- import { useTableContext as no, useTableFormContext as co } from "./components/tt-table/src/hooks/useTableContext.js";
57
- import { useTableFormRender as wo, useTableRender as Ro } from "./components/tt-table/src/hooks/useTableRender.js";
58
- import { ttUploadProps as go } from "./components/tt-upload/src/typing.js";
59
- const O = [
60
- a,
61
- n,
51
+ import { useGroupForm as ao } from "./components/tt-form/src/group-form/useGroupForm.js";
52
+ import { COMPONENT_MAP as so } from "./components/tt-form/src/config.js";
53
+ import { useForm as uo } from "./components/tt-form/src/useForm.js";
54
+ import { TtImageViewer as To } from "./components/tt-image/src/components/ImageViewer.js";
55
+ import { vTtLoading as lo } from "./components/tt-loading/src/directive.js";
56
+ import { Loading as bo } from "./components/tt-loading/src/service.js";
57
+ import { useTableContext as Ro, useTableFormContext as ho } from "./components/tt-table/src/hooks/useTableContext.js";
58
+ import { useTableFormRender as Mo, useTableRender as Po } from "./components/tt-table/src/hooks/useTableRender.js";
59
+ import { ttUploadProps as Ao } from "./components/tt-upload/src/typing.js";
60
+ const I = [
61
+ p,
62
+ l,
62
63
  c,
63
- x,
64
+ u,
64
65
  b,
65
- p,
66
- w,
67
66
  f,
67
+ w,
68
+ a,
68
69
  d,
69
- l,
70
+ n,
70
71
  R,
71
72
  h,
73
+ x,
72
74
  T,
73
- u,
74
75
  g,
76
+ P,
75
77
  S,
76
- A,
77
- C
78
- ], P = (r) => {
79
- O.forEach((o) => r.use(o)), Object.keys(e).forEach((o) => {
78
+ A
79
+ ], F = (r) => {
80
+ I.forEach((o) => r.use(o)), Object.keys(e).forEach((o) => {
80
81
  const t = e[o], m = o.replace(/([A-Z])/g, "-$1").toLowerCase();
81
82
  r.directive(m, t);
82
- }), D(r), F(r);
83
+ }), C(r), D(r);
83
84
  };
84
85
  function or(r) {
85
86
  s(r == null ? void 0 : r.components), i(r == null ? void 0 : r.defineRules, r == null ? void 0 : r.modelPropNameMap);
@@ -89,7 +90,7 @@ const er = {
89
90
  * 安装组件
90
91
  * @param app Vue 应用实例
91
92
  */
92
- install: P,
93
+ install: F,
93
94
  /**
94
95
  * 全局参数设置
95
96
  * @param options 全局参数
@@ -98,67 +99,70 @@ const er = {
98
99
  setup: M
99
100
  };
100
101
  export {
101
- Pr as CODES,
102
- mo as COMPONENT_MAP,
103
- Lr as GROUP_BY,
104
- uo as Loading,
105
- n as RenderDrawer,
102
+ Fr as CODES,
103
+ so as COMPONENT_MAP,
104
+ Or as GROUP_BY,
105
+ bo as Loading,
106
+ l as RenderDrawer,
106
107
  c as RenderModal,
107
- ar as TtAddButton,
108
- T as TtAddIcon,
108
+ pr as TtAddButton,
109
+ x as TtAddIcon,
109
110
  g as TtApiComponent,
110
- xr as TtArea,
111
- a as TtButton,
112
- f as TtCheckbox,
113
- p as TtEmpty,
114
- x as TtIcon,
115
- l as TtImage,
116
- so as TtImageViewer,
117
- nr as TtLoading,
118
- S as TtLog,
119
- pr as TtModal,
111
+ ur as TtArea,
112
+ p as TtButton,
113
+ a as TtCheckbox,
114
+ f as TtEmpty,
115
+ u as TtIcon,
116
+ n as TtImage,
117
+ To as TtImageViewer,
118
+ lr as TtLoading,
119
+ P as TtLog,
120
+ fr as TtModal,
120
121
  h as TtNavAnchor,
121
- A as TtPanelSelect,
122
- C as TtRadioGroup,
122
+ S as TtPanelSelect,
123
+ A as TtRadioGroup,
123
124
  b as TtSelect,
124
- u as TtSubIcon,
125
+ T as TtSubIcon,
125
126
  br as TtTable,
126
127
  wr as TtTableAction,
127
128
  Rr as TtTableButton,
128
129
  w as TtText,
129
130
  R as TtUpload,
130
131
  s as addComponent,
131
- Hr as autoTip,
132
+ Zr as autoTip,
133
+ Gr as createUppercaseInputProps,
132
134
  er as default,
133
- ro as dialogResize,
134
- jr as disabledTip,
135
+ mo as dialogResize,
136
+ Xr as disabledTip,
135
137
  or as formAdapter,
136
138
  i as setConfig,
137
139
  ir as setXHR,
138
- D as setupDrawer,
139
- F as setupModal,
140
- Xr as showTtDrawer,
141
- Kr as showTtModal,
142
- go as ttUploadProps,
143
- Cr as useBasicDataOptions,
144
- Sr as useDataPermissionOptions,
145
- Yr as useDrawerRender,
146
- qr as useDrawerResizable,
147
- fo as useForm,
140
+ C as setupDrawer,
141
+ D as setupModal,
142
+ Jr as showTtDrawer,
143
+ oo as showTtModal,
144
+ kr as toUppercaseInputValue,
145
+ Ao as ttUploadProps,
146
+ Vr as uppercaseInputProps,
147
+ Ar as useBasicDataOptions,
148
+ Pr as useDataPermissionOptions,
149
+ Kr as useDrawerRender,
150
+ Wr as useDrawerResizable,
151
+ uo as useForm,
148
152
  gr as useFormSchemasLink,
149
- Ir as useFormat,
150
- eo as useGroupForm,
151
- vr as useLoading,
152
- ur as useModalForm,
153
- Qr as useModalRender,
154
- Fr as usePanelSelectSchemas,
155
- Nr as useScreenshotOss,
156
- Ur as useShowDrawer,
157
- _r as useShowModal,
158
- no as useTableContext,
159
- co as useTableFormContext,
160
- wo as useTableFormRender,
161
- Ro as useTableRender,
162
- xo as vTtLoading,
153
+ Er as useFormat,
154
+ ao as useGroupForm,
155
+ Ur as useLoading,
156
+ Tr as useModalForm,
157
+ eo as useModalRender,
158
+ Dr as usePanelSelectSchemas,
159
+ zr as useScreenshotOss,
160
+ $r as useShowDrawer,
161
+ yr as useShowModal,
162
+ Ro as useTableContext,
163
+ ho as useTableFormContext,
164
+ Mo as useTableFormRender,
165
+ Po as useTableRender,
166
+ lo as vTtLoading,
163
167
  rr as z
164
168
  };
@@ -1,17 +1,17 @@
1
1
  import "axios";
2
2
  import "element-plus";
3
3
  import "dayjs";
4
- import "vue";
5
- import { debounce as m } from "../../utils/src/tool.js";
4
+ import { getCurrentScope as p, onScopeDispose as i } from "vue";
5
+ import { debounce as n } from "../../utils/src/tool.js";
6
6
  import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
7
7
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
8
8
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
9
9
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
10
10
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
11
11
  import "lodash-es";
12
- function h(r, t, i) {
13
- const o = m(r, t, i);
14
- return {
12
+ function S(r, e, t) {
13
+ const o = n(r, e ?? 200, t);
14
+ return p() && i(o.cancel), {
15
15
  /**
16
16
  * 防抖函数,保持原函数的返回类型
17
17
  * 如果原函数是异步的,返回 Promise;如果是同步的,返回原始类型
@@ -28,5 +28,5 @@ function h(r, t, i) {
28
28
  };
29
29
  }
30
30
  export {
31
- h as useDebounceFn
31
+ S as useDebounceFn
32
32
  };
@@ -18,47 +18,49 @@ function e(n) {
18
18
  function c(n) {
19
19
  return e(n) ? !1 : n instanceof Promise ? !0 : t(n, "Object");
20
20
  }
21
- function p(n) {
22
- return e(n) ? !0 : j(n) || y(n) ? n.length === 0 : n instanceof Map || n instanceof Set ? n.size === 0 : c(n) ? Object.keys(n).length === 0 : !1;
21
+ function j(n) {
22
+ return e(n) ? !0 : d(n) || y(n) ? n.length === 0 : n instanceof Map || n instanceof Set ? n.size === 0 : c(n) ? Object.keys(n).length === 0 : !1;
23
23
  }
24
- function b(n) {
24
+ function m(n) {
25
25
  return t(n, "Date");
26
26
  }
27
- function d(n) {
27
+ function b(n) {
28
28
  return t(n, "Number") && n === n;
29
29
  }
30
30
  function y(n) {
31
31
  return t(n, "String");
32
32
  }
33
- function g(n) {
33
+ function a(n) {
34
34
  return typeof n == "function";
35
35
  }
36
- function D(n) {
36
+ function g(n) {
37
37
  return t(n, "Boolean");
38
38
  }
39
- function j(n) {
40
- return n && Array.isArray(n);
39
+ function d(n) {
40
+ return Array.isArray(n);
41
41
  }
42
- function O(n) {
42
+ function D(n) {
43
43
  return typeof Element > "u" ? !1 : n instanceof Element;
44
44
  }
45
- function a(n) {
45
+ const O = typeof window > "u";
46
+ function S(n) {
46
47
  return i.isDayjs(n);
47
48
  }
48
49
  export {
49
50
  t as is,
50
- j as isArray,
51
- D as isBoolean,
52
- b as isDate,
53
- a as isDayjsObject,
51
+ d as isArray,
52
+ g as isBoolean,
53
+ m as isDate,
54
+ S as isDayjsObject,
54
55
  f as isDef,
55
- O as isElement,
56
- p as isEmpty,
57
- g as isFunction,
56
+ D as isElement,
57
+ j as isEmpty,
58
+ a as isFunction,
58
59
  s as isNull,
59
60
  e as isNullOrUnDef,
60
- d as isNumber,
61
+ b as isNumber,
61
62
  c as isObject,
63
+ O as isServer,
62
64
  y as isString,
63
65
  o as isUndefined
64
66
  };