@dazhicheng/ui 1.6.47 → 1.6.49
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 +38 -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 +118 -0
- package/dist/components/tt-drawer/index.d.ts +3 -3
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +1 -1
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +2 -2
- package/dist/components/tt-modal/index.d.ts +32 -32
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +22 -22
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +2 -2
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +5 -5
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/index.vue.d.ts +1 -1
- package/dist/components/tt-table/index.d.ts +17 -8
- package/dist/components/tt-table/index.js +5 -4
- package/dist/components/tt-table/src/Table.vue.d.ts +12 -6
- package/dist/components/tt-table/src/TableForm.vue.d.ts +146 -3
- package/dist/components/tt-table/src/TableForm.vue.js +241 -216
- 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/useSideSlot.d.ts +4 -4
- package/dist/components/tt-table/src/hooks/useTableForm.js +13 -12
- package/dist/components/tt-table/src/props.d.ts +8 -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 +8 -0
- package/dist/components/tt-table/src/types/tableTools.d.ts +2 -0
- package/dist/components/tt-upload/index.d.ts +11 -11
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +4 -4
- 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
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
|
};
|