@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.
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-drawer/src/hooks/useResizable.js +2 -2
- package/dist/components/tt-form/src/components/FormElInput.vue.js +51 -38
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +36 -36
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +3 -3
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +3 -1
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-modal-form/index.vue.js +13 -12
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +2 -2
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +93 -86
- package/dist/components/tt-panel-select/src/index.vue.js +1 -0
- package/dist/components/tt-select/src/Select.vue.d.ts +4 -4
- package/dist/components/tt-select/src/components/Table.vue.d.ts +4 -4
- package/dist/components/tt-table/index.d.ts +523 -358
- package/dist/components/tt-table/index.js +7 -4
- package/dist/components/tt-table/src/Table.vue.d.ts +306 -216
- package/dist/components/tt-table/src/Table.vue.js +405 -618
- package/dist/components/tt-table/src/TableForm.vue.d.ts +384 -19
- package/dist/components/tt-table/src/TableForm.vue.js +219 -228
- package/dist/components/tt-table/src/components/TableAction.vue.js +108 -131
- package/dist/components/tt-table/src/components/TableButtons.js +25 -25
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +88 -85
- package/dist/components/tt-table/src/components/TableToolbarTools.vue.d.ts +80 -0
- package/dist/components/tt-table/src/components/{TableToobalTools.vue.js → TableToolbarTools.vue.js} +29 -31
- package/dist/components/tt-table/src/components/TableToolbarTools.vue2.js +4 -0
- package/dist/components/tt-table/src/emits.js +2 -1
- package/dist/components/tt-table/src/hooks/useColumnPersistence.d.ts +19 -0
- package/dist/components/tt-table/src/hooks/useColumnPersistence.js +63 -0
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +505 -21
- package/dist/components/tt-table/src/hooks/useColumns.js +100 -245
- package/dist/components/tt-table/src/hooks/useGridProps.d.ts +36 -0
- package/dist/components/tt-table/src/hooks/useGridProps.js +121 -0
- package/dist/components/tt-table/src/hooks/useKeyboardNav.d.ts +11 -0
- package/dist/components/tt-table/src/hooks/useKeyboardNav.js +97 -0
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +14 -8
- package/dist/components/tt-table/src/hooks/usePagination.js +29 -33
- package/dist/components/tt-table/src/hooks/useQuery.d.ts +41 -0
- package/dist/components/tt-table/src/hooks/useQuery.js +147 -0
- package/dist/components/tt-table/src/hooks/useRowIdentity.d.ts +22 -0
- package/dist/components/tt-table/src/hooks/useRowIdentity.js +96 -0
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +23 -7
- package/dist/components/tt-table/src/hooks/useRowSelection.js +95 -71
- package/dist/components/tt-table/src/hooks/{useLeftRightSlot.d.ts → useSideSlot.d.ts} +25 -17
- package/dist/components/tt-table/src/hooks/useSideSlot.js +77 -0
- package/dist/components/tt-table/src/hooks/useSyncProps.d.ts +12 -0
- package/dist/components/tt-table/src/hooks/useSyncProps.js +55 -0
- package/dist/components/tt-table/src/hooks/useTableData.d.ts +71 -0
- package/dist/components/tt-table/src/hooks/useTableData.js +307 -0
- package/dist/components/tt-table/src/hooks/useTableFooter.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useTableFooter.js +46 -0
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +10 -5
- package/dist/components/tt-table/src/hooks/useTableForm.js +55 -48
- package/dist/components/tt-table/src/hooks/useTableMethods.d.ts +165 -0
- package/dist/components/tt-table/src/hooks/useTableMethods.js +183 -0
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +24 -55
- package/dist/components/tt-table/src/props.d.ts +318 -151
- package/dist/components/tt-table/src/props.js +117 -270
- package/dist/components/tt-table/src/table-defaults.d.ts +25 -0
- package/dist/components/tt-table/src/table-defaults.js +71 -0
- package/dist/components/tt-table/src/table-mutation-events.d.ts +43 -0
- package/dist/components/tt-table/src/table-mutation-events.js +70 -0
- package/dist/components/tt-table/src/types/table.d.ts +207 -88
- package/dist/components/tt-table/src/types/tableAction.d.ts +23 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts +15 -26
- package/dist/components/tt-table/src/utils/action-tab-index.d.ts +2 -0
- package/dist/components/tt-table/src/utils/action-tab-index.js +50 -0
- package/dist/components/tt-table/src/utils/context.js +25 -12
- package/dist/components/tt-table/src/utils/table-api.d.ts +136 -58
- package/dist/components/tt-table/src/utils/table-api.js +198 -165
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +11 -11
- package/dist/components/tt-table/src/utils/table-form-api.js +41 -31
- package/dist/components/types.d.ts +0 -20
- package/dist/hooks/useSetup.js +0 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +105 -101
- package/dist/packages/hooks/src/useDebounce.js +6 -6
- package/dist/packages/utils/src/is.js +20 -18
- package/dist/packages/utils/src/tool.js +76 -149
- package/dist/style.css +1 -1
- package/dist/utils/uppercaseInput.d.ts +29 -0
- package/dist/utils/uppercaseInput.js +16 -0
- package/package.json +3 -3
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +0 -576
- package/dist/components/tt-table/src/components/TableToobalTools.vue2.js +0 -4
- package/dist/components/tt-table/src/enum.d.ts +0 -2
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts +0 -15
- package/dist/components/tt-table/src/hooks/useCellArea.js +0 -15
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +0 -20
- package/dist/components/tt-table/src/hooks/useCustomColumns.js +0 -65
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts +0 -29
- package/dist/components/tt-table/src/hooks/useDataSource.js +0 -232
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.js +0 -64
- package/dist/components/tt-table/src/hooks/useTable.d.ts +0 -7
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +0 -101
- package/dist/components/tt-table/src/hooks/useTableEvent.js +0 -197
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +0 -10
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +0 -15
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +0 -11
- package/dist/components/tt-table/src/hooks/useTableSlot.js +0 -17
- package/dist/components/tt-table/src/utils/filters.d.ts +0 -109
- package/dist/components/tt-table/src/utils/vxeTable.d.ts +0 -28
- package/dist/packages/utils/src/check.js +0 -10
|
@@ -1,63 +1,72 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
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
|
|
7
|
-
import { reactive as i, computed as u, toValue as
|
|
8
|
-
import { bindMethods as
|
|
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
|
|
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
|
|
18
|
-
import { getDefaultState as y, TableApi as
|
|
19
|
-
|
|
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
|
-
|
|
33
|
+
r(this, "formApi", i({}));
|
|
27
34
|
/** 表格 API 实例(TableApi) */
|
|
28
|
-
|
|
35
|
+
r(this, "tableApi", i({}));
|
|
29
36
|
/** vxe-grid 表格实例 */
|
|
30
|
-
|
|
37
|
+
r(this, "grid", i({}));
|
|
31
38
|
/** 当前表单+表格的 props 状态 */
|
|
32
|
-
|
|
39
|
+
r(this, "state", null);
|
|
33
40
|
/** 表单操作方法集合(TableFormActionType) */
|
|
34
|
-
|
|
41
|
+
r(this, "tableForm", i({}));
|
|
35
42
|
/** 响应式 store,存储表单+表格的状态 */
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
r(this, "store");
|
|
44
|
+
r(this, "isMounted", !1);
|
|
45
|
+
r(this, "stateHandler");
|
|
39
46
|
/**
|
|
40
47
|
* 当前选中的行 key 数组(响应式)
|
|
41
48
|
*/
|
|
42
|
-
|
|
43
|
-
const e = { ...t }, o =
|
|
44
|
-
|
|
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:
|
|
48
|
-
tableRowId:
|
|
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
|
|
56
|
-
const
|
|
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 =
|
|
60
|
-
l.useStore = (
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
package/dist/hooks/useSetup.js
CHANGED
|
@@ -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
|
|
2
|
-
import { TtAddButton as
|
|
3
|
-
import { TtCheckbox as
|
|
4
|
-
import { TtEmpty as
|
|
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
|
|
8
|
-
import { TtImage as
|
|
9
|
-
import { RenderDrawer as
|
|
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
|
|
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
|
|
20
|
-
import { TtPanelSelect as
|
|
21
|
-
import { TtRadioGroup as
|
|
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
|
|
28
|
-
import { useModalForm as
|
|
29
|
-
import { TtLoading as
|
|
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
|
|
33
|
-
import { useBasicDataOptions as
|
|
34
|
-
import { usePanelSelectSchemas as
|
|
35
|
-
import { CODES as
|
|
36
|
-
import { useFormat as
|
|
37
|
-
import { useLoading as
|
|
38
|
-
import { useScreenshotOss as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { default as
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
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
|
|
51
|
-
import { COMPONENT_MAP as
|
|
52
|
-
import { useForm as
|
|
53
|
-
import { TtImageViewer as
|
|
54
|
-
import { vTtLoading as
|
|
55
|
-
import { Loading as
|
|
56
|
-
import { useTableContext as
|
|
57
|
-
import { useTableFormRender as
|
|
58
|
-
import { ttUploadProps as
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
64
|
+
u,
|
|
64
65
|
b,
|
|
65
|
-
p,
|
|
66
|
-
w,
|
|
67
66
|
f,
|
|
67
|
+
w,
|
|
68
|
+
a,
|
|
68
69
|
d,
|
|
69
|
-
|
|
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
|
-
|
|
78
|
-
|
|
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
|
-
}),
|
|
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:
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
108
|
-
|
|
108
|
+
pr as TtAddButton,
|
|
109
|
+
x as TtAddIcon,
|
|
109
110
|
g as TtApiComponent,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
122
|
-
|
|
122
|
+
S as TtPanelSelect,
|
|
123
|
+
A as TtRadioGroup,
|
|
123
124
|
b as TtSelect,
|
|
124
|
-
|
|
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
|
-
|
|
132
|
+
Zr as autoTip,
|
|
133
|
+
Gr as createUppercaseInputProps,
|
|
132
134
|
er as default,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
mo as dialogResize,
|
|
136
|
+
Xr as disabledTip,
|
|
135
137
|
or as formAdapter,
|
|
136
138
|
i as setConfig,
|
|
137
139
|
ir as setXHR,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
|
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
|
|
13
|
-
const o =
|
|
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
|
-
|
|
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
|
|
22
|
-
return e(n) ? !0 :
|
|
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
|
|
24
|
+
function m(n) {
|
|
25
25
|
return t(n, "Date");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
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
|
|
33
|
+
function a(n) {
|
|
34
34
|
return typeof n == "function";
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function g(n) {
|
|
37
37
|
return t(n, "Boolean");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
39
|
+
function d(n) {
|
|
40
|
+
return Array.isArray(n);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function D(n) {
|
|
43
43
|
return typeof Element > "u" ? !1 : n instanceof Element;
|
|
44
44
|
}
|
|
45
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
d as isArray,
|
|
52
|
+
g as isBoolean,
|
|
53
|
+
m as isDate,
|
|
54
|
+
S as isDayjsObject,
|
|
54
55
|
f as isDef,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
D as isElement,
|
|
57
|
+
j as isEmpty,
|
|
58
|
+
a as isFunction,
|
|
58
59
|
s as isNull,
|
|
59
60
|
e as isNullOrUnDef,
|
|
60
|
-
|
|
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
|
};
|