@dazhicheng/ui 1.6.46 → 1.6.48
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-custom-export-modal/index.d.ts +8 -0
- package/dist/components/tt-custom-export-modal/index.js +21 -0
- package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue.d.ts +37 -0
- package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue.js +322 -0
- package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue2.js +4 -0
- package/dist/components/tt-custom-export-modal/src/api.d.ts +57 -0
- package/dist/components/tt-custom-export-modal/src/api.js +44 -0
- package/dist/components/tt-custom-export-modal/src/assets/search.svg.js +8 -0
- package/dist/components/tt-custom-export-modal/src/assets/star.svg.js +7 -0
- package/dist/components/tt-custom-export-modal/src/assets/trash.svg.js +11 -0
- package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.d.ts +275 -0
- package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.js +7 -0
- package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue2.js +321 -0
- package/dist/components/tt-custom-export-modal/src/components/FieldToolbarSection.vue.d.ts +28 -0
- package/dist/components/tt-custom-export-modal/src/components/FieldToolbarSection.vue.js +65 -0
- package/dist/components/tt-custom-export-modal/src/components/FieldToolbarSection.vue2.js +4 -0
- package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue.d.ts +31 -0
- package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue.js +152 -0
- package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue2.js +4 -0
- package/dist/components/tt-custom-export-modal/src/types/index.d.ts +74 -0
- package/dist/components/tt-custom-export-modal/src/types/report.d.ts +129 -0
- package/dist/components/tt-panel-select/src/index.vue.d.ts +2 -0
- package/dist/components/tt-panel-select/src/index.vue.js +53 -49
- package/dist/components/tt-table/index.js +5 -4
- package/dist/components/tt-table/src/TableForm.vue.d.ts +143 -0
- package/dist/components/tt-table/src/TableForm.vue.js +223 -198
- package/dist/components/tt-table/src/components/TableToolbarTools.vue.d.ts +11 -0
- package/dist/components/tt-table/src/components/TableToolbarTools.vue.js +33 -25
- package/dist/components/tt-table/src/hooks/useTableForm.js +13 -12
- package/dist/components/tt-table/src/props.d.ts +5 -0
- package/dist/components/tt-table/src/props.js +4 -0
- package/dist/components/tt-table/src/toolProps.d.ts +5 -0
- package/dist/components/tt-table/src/toolProps.js +5 -0
- package/dist/components/tt-table/src/types/table.d.ts +2 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts +6 -0
- package/dist/components/tt-table/src/types/tableTools.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +102 -99
- package/dist/packages/utils/src/calc.js +26 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
27
27
|
type: BooleanConstructor;
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
|
+
showCustomExport: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
30
34
|
showSetColumn: {
|
|
31
35
|
type: BooleanConstructor;
|
|
32
36
|
default: boolean;
|
|
@@ -39,6 +43,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
39
43
|
"on-refresh": () => any;
|
|
40
44
|
"on-columns-setting": () => any;
|
|
41
45
|
"on-export": () => any;
|
|
46
|
+
"on-custom-export": () => any;
|
|
42
47
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
43
48
|
showSetting: {
|
|
44
49
|
type: BooleanConstructor;
|
|
@@ -52,6 +57,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
52
57
|
type: BooleanConstructor;
|
|
53
58
|
default: boolean;
|
|
54
59
|
};
|
|
60
|
+
showCustomExport: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
55
64
|
showSetColumn: {
|
|
56
65
|
type: BooleanConstructor;
|
|
57
66
|
default: boolean;
|
|
@@ -64,12 +73,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
64
73
|
"onOn-refresh"?: (() => any) | undefined;
|
|
65
74
|
"onOn-columns-setting"?: (() => any) | undefined;
|
|
66
75
|
"onOn-export"?: (() => any) | undefined;
|
|
76
|
+
"onOn-custom-export"?: (() => any) | undefined;
|
|
67
77
|
}>, {
|
|
68
78
|
showSetting: boolean;
|
|
69
79
|
showRefresh: boolean;
|
|
70
80
|
showExport: boolean;
|
|
71
81
|
columnsKey: string | (() => string);
|
|
72
82
|
showSetColumn: boolean;
|
|
83
|
+
showCustomExport: boolean;
|
|
73
84
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
74
85
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
75
86
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as E, inject as I, computed as a, unref as e, ref as
|
|
2
|
-
import { TtIcon as
|
|
3
|
-
import { TtButton as
|
|
1
|
+
import { defineComponent as E, inject as I, computed as a, unref as e, ref as B, createElementBlock as s, openBlock as n, createBlock as d, createCommentVNode as f, withCtx as m, renderSlot as u, Fragment as h, renderList as $, createVNode as b } from "vue";
|
|
2
|
+
import { TtIcon as y } from "../../../tt-icon/index.js";
|
|
3
|
+
import { TtButton as A } from "../../../tt-button/index.js";
|
|
4
4
|
import "axios";
|
|
5
|
-
import { ElSpace as
|
|
5
|
+
import { ElSpace as z, ElTooltip as N } from "element-plus";
|
|
6
6
|
import "dayjs";
|
|
7
7
|
import "numeral";
|
|
8
|
-
import { generateTestId as
|
|
8
|
+
import { generateTestId as V } from "../../../../packages/utils/src/testid-helper.js";
|
|
9
9
|
import "xe-utils";
|
|
10
10
|
import "dayjs/plugin/utc";
|
|
11
11
|
import "dayjs/plugin/timezone";
|
|
@@ -15,35 +15,43 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
15
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
16
16
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
17
17
|
import "lodash-es";
|
|
18
|
-
import { toolProps as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
18
|
+
import { toolProps as j } from "../toolProps.js";
|
|
19
|
+
import F from "../../../../assets/svg/RiRefreshLine.svg.js";
|
|
20
|
+
import k from "../../../../assets/svg/download.svg.js";
|
|
21
21
|
import L from "../../../../assets/svg/columnSet.svg.js";
|
|
22
22
|
const P = ["data-testid"], io = /* @__PURE__ */ E({
|
|
23
23
|
__name: "TableToolbarTools",
|
|
24
|
-
props:
|
|
25
|
-
emits: ["on-refresh", "on-columns-setting", "on-export"],
|
|
26
|
-
setup(
|
|
27
|
-
const r =
|
|
24
|
+
props: j,
|
|
25
|
+
emits: ["on-refresh", "on-columns-setting", "on-export", "on-custom-export"],
|
|
26
|
+
setup(C, { emit: g }) {
|
|
27
|
+
const r = C, l = g, v = I(
|
|
28
28
|
"tableIdContext",
|
|
29
29
|
a(() => "")
|
|
30
|
-
),
|
|
30
|
+
), w = a(() => V(e(v), "table-toolbar-tools")), c = B(/* @__PURE__ */ new Set());
|
|
31
31
|
function T(o, p) {
|
|
32
32
|
c.value.add(o), p();
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function S(o) {
|
|
35
35
|
c.value.delete(o);
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const _ = a(() => [
|
|
38
38
|
{
|
|
39
39
|
label: "自定义导出",
|
|
40
|
-
icon:
|
|
40
|
+
icon: k,
|
|
41
|
+
handler: () => {
|
|
42
|
+
l("on-custom-export");
|
|
43
|
+
},
|
|
44
|
+
if: r.showCustomExport
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "自定义导出",
|
|
48
|
+
icon: k,
|
|
41
49
|
handler: () => l("on-export"),
|
|
42
50
|
if: r.showExport
|
|
43
51
|
},
|
|
44
52
|
{
|
|
45
53
|
label: "刷新",
|
|
46
|
-
icon:
|
|
54
|
+
icon: F,
|
|
47
55
|
handler: () => l("on-refresh"),
|
|
48
56
|
if: r.showRefresh
|
|
49
57
|
},
|
|
@@ -54,15 +62,15 @@ const P = ["data-testid"], io = /* @__PURE__ */ E({
|
|
|
54
62
|
if: r.showSetColumn
|
|
55
63
|
}
|
|
56
64
|
]);
|
|
57
|
-
return (o, p) => (n(), s("div", { "data-testid":
|
|
58
|
-
o.showSetting ? (n(), d(e(
|
|
65
|
+
return (o, p) => (n(), s("div", { "data-testid": w.value }, [
|
|
66
|
+
o.showSetting ? (n(), d(e(z), {
|
|
59
67
|
key: 0,
|
|
60
68
|
size: 12
|
|
61
69
|
}, {
|
|
62
70
|
default: m(() => [
|
|
63
71
|
u(o.$slots, "toolbar-left"),
|
|
64
|
-
(n(!0), s(
|
|
65
|
-
t.if ? (n(), d(e(
|
|
72
|
+
(n(!0), s(h, null, $(_.value, (t, i) => (n(), s(h, { key: i }, [
|
|
73
|
+
t.if ? (n(), d(e(N), {
|
|
66
74
|
key: 0,
|
|
67
75
|
class: "box-item",
|
|
68
76
|
effect: "dark",
|
|
@@ -71,14 +79,14 @@ const P = ["data-testid"], io = /* @__PURE__ */ E({
|
|
|
71
79
|
"show-after": 200
|
|
72
80
|
}, {
|
|
73
81
|
default: m(() => [
|
|
74
|
-
|
|
82
|
+
b(e(A), {
|
|
75
83
|
class: "icon-table-btn",
|
|
76
84
|
"aria-label": t.label,
|
|
77
|
-
onClick: (
|
|
78
|
-
onAnimationend: (
|
|
85
|
+
onClick: (x) => T(i, t.handler),
|
|
86
|
+
onAnimationend: (x) => S(i)
|
|
79
87
|
}, {
|
|
80
88
|
default: m(() => [
|
|
81
|
-
|
|
89
|
+
b(e(y), {
|
|
82
90
|
icon: t.icon,
|
|
83
91
|
size: 16,
|
|
84
92
|
"is-custom-svg": ""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "axios";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { isFunction as m } from "../../../../packages/utils/src/is.js";
|
|
4
|
-
import { computed as
|
|
4
|
+
import { computed as i, unref as s, toValue as a } from "vue";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "numeral";
|
|
7
7
|
import "xe-utils";
|
|
@@ -13,11 +13,11 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
13
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
14
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
15
|
import { omit as u } from "lodash-es";
|
|
16
|
-
function
|
|
17
|
-
const f =
|
|
18
|
-
const { form: t } =
|
|
16
|
+
function q(n, p, h, l) {
|
|
17
|
+
const f = i(() => {
|
|
18
|
+
const { form: t } = s(n), o = {
|
|
19
19
|
...t == null ? void 0 : t.submitButtonOptions,
|
|
20
|
-
loading:
|
|
20
|
+
loading: s(h)
|
|
21
21
|
};
|
|
22
22
|
return {
|
|
23
23
|
...t,
|
|
@@ -33,18 +33,19 @@ function k(n, p, h, l) {
|
|
|
33
33
|
let e = t;
|
|
34
34
|
return m(o) && (e = await o(e) || e), m(r == null ? void 0 : r.beforeFetch) && (e = await r.beforeFetch(e) || e), e;
|
|
35
35
|
}
|
|
36
|
-
const c =
|
|
37
|
-
const { columnsKey: t, showSetting: o, showSetColumn: r, showRefresh: e, showExport: F } =
|
|
36
|
+
const c = i(() => {
|
|
37
|
+
const { columnsKey: t, showSetting: o, showSetColumn: r, showRefresh: e, showExport: w, showCustomExport: F } = s(n).table || {}, { toolConfig: S } = s(n);
|
|
38
38
|
return {
|
|
39
39
|
columnsKey: t,
|
|
40
40
|
showSetting: o,
|
|
41
41
|
showRefresh: e,
|
|
42
42
|
showSetColumn: r,
|
|
43
|
-
showExport:
|
|
44
|
-
|
|
43
|
+
showExport: w,
|
|
44
|
+
showCustomExport: F,
|
|
45
|
+
...S
|
|
45
46
|
};
|
|
46
|
-
}), g =
|
|
47
|
-
const { table: t = {}, useSearchForm: o, testId: r } = a(n), e = u(
|
|
47
|
+
}), g = i(() => {
|
|
48
|
+
const { table: t = {}, useSearchForm: o, testId: r } = a(n), e = u(s(c), ["tableRowId"]);
|
|
48
49
|
return {
|
|
49
50
|
useSearchForm: o || !1,
|
|
50
51
|
// 数据由 TableForm 单独绑定,不进入表格配置。
|
|
@@ -63,5 +64,5 @@ function k(n, p, h, l) {
|
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
+
q as useTableForm
|
|
67
68
|
};
|
|
@@ -468,6 +468,7 @@ export declare const tableFormProps: {
|
|
|
468
468
|
showIndex?: boolean;
|
|
469
469
|
showAction?: boolean;
|
|
470
470
|
showExport?: boolean;
|
|
471
|
+
showCustomExport?: boolean;
|
|
471
472
|
actionWidth?: number;
|
|
472
473
|
actionTitle?: string;
|
|
473
474
|
isCellResize?: boolean;
|
|
@@ -529,6 +530,10 @@ export declare const tableFormProps: {
|
|
|
529
530
|
tableFormApi: {
|
|
530
531
|
type: PropType<TtTableExtendedTableFormApi>;
|
|
531
532
|
};
|
|
533
|
+
/** 公共导出弹框配置,复用弹框的业务编码与异步导出回调。 */
|
|
534
|
+
customExportConfig: {
|
|
535
|
+
type: PropType<TtTableFormProps["customExportConfig"]>;
|
|
536
|
+
};
|
|
532
537
|
};
|
|
533
538
|
/** 表格的参数和vxe-table的参数相同需要重新定义 */
|
|
534
539
|
export declare const tableOtherProps: {
|
|
@@ -15,6 +15,11 @@ export declare const toolProps: {
|
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
|
+
/** 是否显示公共自定义导出按钮 */
|
|
19
|
+
showCustomExport: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
18
23
|
/** 是否显示列设置按钮 */
|
|
19
24
|
showSetColumn: {
|
|
20
25
|
type: BooleanConstructor;
|
|
@@ -3,6 +3,7 @@ import { TtSelectRowKeysType, TtTableMethods, TtTableProps } from '../types/tabl
|
|
|
3
3
|
import { TableFormApi } from '../utils/table-form-api';
|
|
4
4
|
import { TtTableToolsProps } from './tableTools';
|
|
5
5
|
import { TtExtendedFormApi, TtFormProps } from '../../../tt-form';
|
|
6
|
+
import { TtCustomExportModalProps, ExportConfirmPayload } from '../../../tt-custom-export-modal';
|
|
6
7
|
/**
|
|
7
8
|
* 搜索表单配置。
|
|
8
9
|
*
|
|
@@ -45,6 +46,11 @@ export type TtTableFormProps<Row = any, TValues extends Record<string, any> = Re
|
|
|
45
46
|
handleSearchInfoFn?: Fn;
|
|
46
47
|
/** tool配置 */
|
|
47
48
|
toolConfig?: TtTableToolsProps;
|
|
49
|
+
/** 公共导出弹框配置;businessCode 默认取 GlobalConfig.table.columnsKey,支持覆盖。 */
|
|
50
|
+
customExportConfig?: TtCustomExportModalProps & {
|
|
51
|
+
/** 公共弹框 export 事件监听器;触发后关闭弹框,不等待异步请求。 */
|
|
52
|
+
onExport?: (payload: ExportConfirmPayload) => void;
|
|
53
|
+
};
|
|
48
54
|
/** 刷新前的调用方法 */
|
|
49
55
|
tableRefreshBefore?: (...arg: any[]) => Promise<any>;
|
|
50
56
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { BaseFormComponentType } from './components/tt-form';
|
|
|
3
3
|
import { setXHR } from './utils/xhr';
|
|
4
4
|
export * from './components/tt-area';
|
|
5
5
|
export * from './components/tt-button';
|
|
6
|
+
export * from './components/tt-custom-export-modal';
|
|
6
7
|
export * from './components/tt-checkbox';
|
|
7
8
|
export * from './components/tt-drawer';
|
|
8
9
|
export * from './components/tt-empty';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TtButton as p } from "./components/tt-button/index.js";
|
|
2
|
-
import { TtAddButton as
|
|
2
|
+
import { TtAddButton as lo } from "./components/tt-button/index.js";
|
|
3
3
|
import { TtCheckbox as a } from "./components/tt-checkbox/index.js";
|
|
4
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";
|
|
@@ -8,7 +8,7 @@ import { TtIcon as d, TtAddIcon as u, TtSubIcon as x } from "./components/tt-ico
|
|
|
8
8
|
import { TtImage as T } from "./components/tt-image/index.js";
|
|
9
9
|
import { RenderDrawer as n } 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 xo } from "./components/tt-modal/index.js";
|
|
12
12
|
import { TtSelect as g } from "./components/tt-select/index.js";
|
|
13
13
|
import { TtText as M } from "./components/tt-text/index.js";
|
|
14
14
|
import { TtUpload as b } from "./components/tt-upload/index.js";
|
|
@@ -20,49 +20,51 @@ import { TtLog as R } from "./components/tt-log/index.js";
|
|
|
20
20
|
import { TtPanelSelect as S } from "./components/tt-panel-select/index.js";
|
|
21
21
|
import { TtRadioGroup as h } from "./components/tt-radio-group/index.js";
|
|
22
22
|
import { TtInputTextarea as A } from "./components/tt-input-textarea/index.js";
|
|
23
|
-
import { setXHR as
|
|
23
|
+
import { setXHR as no } from "./utils/xhr.js";
|
|
24
|
+
import { TtCustomExportModal as F } from "./components/tt-custom-export-modal/index.js";
|
|
24
25
|
/* empty css */
|
|
25
26
|
/* empty css */
|
|
26
27
|
/* empty css */
|
|
27
28
|
/* empty css */
|
|
28
29
|
/* empty css */
|
|
29
|
-
import { default as
|
|
30
|
-
import { useModalForm as
|
|
31
|
-
import { TtLoading as
|
|
32
|
-
import { TtTable as
|
|
33
|
-
import { getFileUrlOss as
|
|
34
|
-
import { TtKeepAlive as
|
|
35
|
-
import { useFormSchemasLink as
|
|
36
|
-
import { useDataPermissionOptions as
|
|
37
|
-
import { useBasicDataOptions as
|
|
38
|
-
import { usePanelSelectSchemas as
|
|
39
|
-
import { CODES as
|
|
40
|
-
import { useFormat as
|
|
41
|
-
import { useLoading as
|
|
42
|
-
import { useScreenshotOss as
|
|
43
|
-
import { createUppercaseInputProps as
|
|
44
|
-
import { setupDrawer as
|
|
45
|
-
import { useShowDrawer as
|
|
30
|
+
import { default as go } from "./components/tt-area/TtArea.vue.js";
|
|
31
|
+
import { useModalForm as bo } from "./components/tt-modal-form/useModalForm.js";
|
|
32
|
+
import { TtLoading as Oo } from "./components/tt-loading/index.js";
|
|
33
|
+
import { TtTable as Ro, TtTableAction as So, TtTableButton as ho } from "./components/tt-table/index.js";
|
|
34
|
+
import { getFileUrlOss as Fo, getPostSignatureForObsUploadHuaweiOss as Co, getPostSignatureForOssUploadOss as Io } from "./api/oss.js";
|
|
35
|
+
import { TtKeepAlive as Uo } from "./components/tt-keep-alive/index.js";
|
|
36
|
+
import { useFormSchemasLink as Lo } from "./hooks/useFormSchemasLink.js";
|
|
37
|
+
import { useDataPermissionOptions as Bo } from "./hooks/useDataPermissionOptions.js";
|
|
38
|
+
import { useBasicDataOptions as No } from "./hooks/useBasicDataOptions.js";
|
|
39
|
+
import { usePanelSelectSchemas as ko } from "./hooks/usePanelSelectSchemas.js";
|
|
40
|
+
import { CODES as Vo, GROUP_BY as _o } from "./hooks/basicDataCodes.js";
|
|
41
|
+
import { useFormat as jo } from "./hooks/useFormat.js";
|
|
42
|
+
import { useLoading as Ko } from "./hooks/useLoading.js";
|
|
43
|
+
import { useScreenshotOss as Yo } from "./hooks/useScreenshotOss.js";
|
|
44
|
+
import { createUppercaseInputProps as qo, toUppercaseInputValue as Jo, uppercaseInputProps as Qo } from "./utils/uppercaseInput.js";
|
|
45
|
+
import { setupDrawer as C } from "./components/tt-drawer/src/index.js";
|
|
46
|
+
import { useShowDrawer as or } from "./components/tt-drawer/src/index.js";
|
|
46
47
|
import { setupModal as I } from "./components/tt-modal/src/index.js";
|
|
47
|
-
import { useShowModal as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { showTtDrawer as
|
|
51
|
-
import { useDrawerResizable as
|
|
52
|
-
import { showTtModal as
|
|
53
|
-
import { closeAllTtModal as
|
|
54
|
-
import { default as
|
|
55
|
-
import * as
|
|
56
|
-
import { useGroupForm as
|
|
57
|
-
import { COMPONENT_MAP as
|
|
58
|
-
import { useForm as
|
|
59
|
-
import { TtImageViewer as
|
|
60
|
-
import { vTtLoading as
|
|
61
|
-
import { Loading as
|
|
62
|
-
import { useTableContext as
|
|
63
|
-
import { useTableFormRender as
|
|
64
|
-
import { ttUploadProps as
|
|
65
|
-
const
|
|
48
|
+
import { useShowModal as er } from "./components/tt-modal/src/index.js";
|
|
49
|
+
import { default as mr } from "./directives/disabled-tip/index.js";
|
|
50
|
+
import { default as ar } from "./directives/auto-tip/index.js";
|
|
51
|
+
import { showTtDrawer as sr, useDrawerRender as ir } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
|
|
52
|
+
import { useDrawerResizable as dr } from "./components/tt-drawer/src/hooks/useResizable.js";
|
|
53
|
+
import { showTtModal as xr, useModalRender as Tr } from "./components/tt-modal/src/hooks/useModalRender.js";
|
|
54
|
+
import { closeAllTtModal as cr, closeTtModal as gr, openTtModal as Mr, ttModal as br } from "./components/tt-modal/src/utils/modal-service.js";
|
|
55
|
+
import { default as Or } from "./directives/dialog-resize/index.js";
|
|
56
|
+
import * as po from "zod";
|
|
57
|
+
import { useGroupForm as Rr } from "./components/tt-form/src/group-form/useGroupForm.js";
|
|
58
|
+
import { COMPONENT_MAP as hr } from "./components/tt-form/src/config.js";
|
|
59
|
+
import { useForm as Fr } from "./components/tt-form/src/useForm.js";
|
|
60
|
+
import { TtImageViewer as Ir } from "./components/tt-image/src/components/ImageViewer.js";
|
|
61
|
+
import { vTtLoading as Ur } from "./components/tt-loading/src/directive.js";
|
|
62
|
+
import { Loading as Lr } from "./components/tt-loading/src/service.js";
|
|
63
|
+
import { useTableContext as Br, useTableFormContext as zr } from "./components/tt-table/src/hooks/useTableContext.js";
|
|
64
|
+
import { useTableFormRender as Gr, useTableRender as kr } from "./components/tt-table/src/hooks/useTableRender.js";
|
|
65
|
+
import { ttUploadProps as Vr } from "./components/tt-upload/src/typing.js";
|
|
66
|
+
const D = [
|
|
67
|
+
F,
|
|
66
68
|
p,
|
|
67
69
|
n,
|
|
68
70
|
c,
|
|
@@ -82,21 +84,21 @@ const C = [
|
|
|
82
84
|
S,
|
|
83
85
|
h,
|
|
84
86
|
A
|
|
85
|
-
],
|
|
86
|
-
|
|
87
|
+
], U = (o) => {
|
|
88
|
+
D.forEach((r) => o.use(r)), Object.keys(e).forEach((r) => {
|
|
87
89
|
const t = e[r], m = r.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
88
90
|
o.directive(m, t);
|
|
89
|
-
}),
|
|
91
|
+
}), C(o), I(o);
|
|
90
92
|
};
|
|
91
|
-
function
|
|
93
|
+
function ao(o) {
|
|
92
94
|
s(o == null ? void 0 : o.components), i(o == null ? void 0 : o.defineRules, o == null ? void 0 : o.modelPropNameMap);
|
|
93
95
|
}
|
|
94
|
-
const
|
|
96
|
+
const fo = {
|
|
95
97
|
/**
|
|
96
98
|
* 安装组件
|
|
97
99
|
* @param app Vue 应用实例
|
|
98
100
|
*/
|
|
99
|
-
install:
|
|
101
|
+
install: U,
|
|
100
102
|
/**
|
|
101
103
|
* 全局参数设置
|
|
102
104
|
* @param options 全局参数
|
|
@@ -105,79 +107,80 @@ const po = {
|
|
|
105
107
|
setup: P
|
|
106
108
|
};
|
|
107
109
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
Vo as CODES,
|
|
111
|
+
hr as COMPONENT_MAP,
|
|
112
|
+
_o as GROUP_BY,
|
|
113
|
+
Lr as Loading,
|
|
112
114
|
n as RenderDrawer,
|
|
113
115
|
c as RenderModal,
|
|
114
|
-
|
|
116
|
+
lo as TtAddButton,
|
|
115
117
|
u as TtAddIcon,
|
|
116
118
|
O as TtApiComponent,
|
|
117
|
-
|
|
119
|
+
go as TtArea,
|
|
118
120
|
p as TtButton,
|
|
119
121
|
a as TtCheckbox,
|
|
122
|
+
F as TtCustomExportModal,
|
|
120
123
|
f as TtEmpty,
|
|
121
124
|
d as TtIcon,
|
|
122
125
|
T as TtImage,
|
|
123
|
-
|
|
126
|
+
Ir as TtImageViewer,
|
|
124
127
|
A as TtInputTextarea,
|
|
125
|
-
|
|
126
|
-
|
|
128
|
+
Uo as TtKeepAlive,
|
|
129
|
+
Oo as TtLoading,
|
|
127
130
|
R as TtLog,
|
|
128
|
-
|
|
131
|
+
xo as TtModal,
|
|
129
132
|
w as TtNavAnchor,
|
|
130
133
|
S as TtPanelSelect,
|
|
131
134
|
h as TtRadioGroup,
|
|
132
135
|
g as TtSelect,
|
|
133
136
|
x as TtSubIcon,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
Ro as TtTable,
|
|
138
|
+
So as TtTableAction,
|
|
139
|
+
ho as TtTableButton,
|
|
137
140
|
M as TtText,
|
|
138
141
|
b as TtUpload,
|
|
139
142
|
s as addComponent,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
143
|
+
ar as autoTip,
|
|
144
|
+
cr as closeAllTtModal,
|
|
145
|
+
gr as closeTtModal,
|
|
146
|
+
qo as createUppercaseInputProps,
|
|
147
|
+
fo as default,
|
|
148
|
+
Or as dialogResize,
|
|
149
|
+
mr as disabledTip,
|
|
150
|
+
ao as formAdapter,
|
|
151
|
+
Fo as getFileUrlOss,
|
|
152
|
+
Co as getPostSignatureForObsUploadHuaweiOss,
|
|
153
|
+
Io as getPostSignatureForOssUploadOss,
|
|
154
|
+
Mr as openTtModal,
|
|
152
155
|
i as setConfig,
|
|
153
|
-
|
|
154
|
-
|
|
156
|
+
no as setXHR,
|
|
157
|
+
C as setupDrawer,
|
|
155
158
|
I as setupModal,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
159
|
+
sr as showTtDrawer,
|
|
160
|
+
xr as showTtModal,
|
|
161
|
+
Jo as toUppercaseInputValue,
|
|
162
|
+
br as ttModal,
|
|
163
|
+
Vr as ttUploadProps,
|
|
164
|
+
Qo as uppercaseInputProps,
|
|
165
|
+
No as useBasicDataOptions,
|
|
166
|
+
Bo as useDataPermissionOptions,
|
|
167
|
+
ir as useDrawerRender,
|
|
168
|
+
dr as useDrawerResizable,
|
|
169
|
+
Fr as useForm,
|
|
170
|
+
Lo as useFormSchemasLink,
|
|
171
|
+
jo as useFormat,
|
|
172
|
+
Rr as useGroupForm,
|
|
173
|
+
Ko as useLoading,
|
|
174
|
+
bo as useModalForm,
|
|
175
|
+
Tr as useModalRender,
|
|
176
|
+
ko as usePanelSelectSchemas,
|
|
177
|
+
Yo as useScreenshotOss,
|
|
178
|
+
or as useShowDrawer,
|
|
179
|
+
er as useShowModal,
|
|
180
|
+
Br as useTableContext,
|
|
181
|
+
zr as useTableFormContext,
|
|
182
|
+
Gr as useTableFormRender,
|
|
183
|
+
kr as useTableRender,
|
|
184
|
+
Ur as vTtLoading,
|
|
185
|
+
po as z
|
|
183
186
|
};
|
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
import { Decimal as
|
|
1
|
+
import { Decimal as l } from "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
2
2
|
function i(...e) {
|
|
3
|
-
let
|
|
4
|
-
for (let
|
|
5
|
-
return
|
|
3
|
+
let t = new l(e[0] ?? 0);
|
|
4
|
+
for (let n = 1; n < e.length; n++) t = t.add(new l(e[n] ?? 0));
|
|
5
|
+
return t.toNumber();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
function c(...e) {
|
|
8
|
+
let t = new l(e[0] ?? 0);
|
|
9
|
+
for (let n = 1; n < e.length; n++) t = t.sub(new l(e[n] ?? 0));
|
|
10
|
+
return t.toNumber();
|
|
11
|
+
}
|
|
12
|
+
function m(...e) {
|
|
13
|
+
let t = new l(e[0] ?? 0);
|
|
14
|
+
for (let n = 1; n < e.length; n++) t = t.mul(new l(e[n] ?? 0));
|
|
15
|
+
return t.toNumber();
|
|
16
|
+
}
|
|
17
|
+
function b(...e) {
|
|
18
|
+
let t = new l(e[0] ?? 0);
|
|
19
|
+
for (let n = 1; n < e.length; n++) t = t.div(new l(e[n] ?? 0));
|
|
20
|
+
return t.toNumber();
|
|
21
|
+
}
|
|
22
|
+
function N(e) {
|
|
23
|
+
const t = Number(e) || e === 0, n = Number.isNaN(Number(e)), o = new l(e);
|
|
24
|
+
return t && !n ? o : new l(Number.NaN);
|
|
10
25
|
}
|
|
11
26
|
export {
|
|
12
27
|
i as add,
|
|
13
|
-
|
|
28
|
+
N as calc,
|
|
29
|
+
b as divide,
|
|
30
|
+
m as multiply,
|
|
31
|
+
c as subtract
|
|
14
32
|
};
|