@dazhicheng/ui 1.6.20 → 1.6.22
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-modal/index.d.ts +1 -0
- package/dist/components/tt-modal/index.js +8 -3
- package/dist/components/tt-modal/src/RenderModal.vue.js +224 -210
- package/dist/components/tt-modal/src/hooks/useModalRender.js +66 -67
- package/dist/components/tt-modal/src/index.js +9 -7
- package/dist/components/tt-modal/src/utils/modal-api.d.ts +9 -3
- package/dist/components/tt-modal/src/utils/modal-api.js +42 -36
- package/dist/components/tt-modal/src/utils/modal-close-transition.d.ts +13 -0
- package/dist/components/tt-modal/src/utils/modal-close-transition.js +13 -0
- package/dist/components/tt-modal/src/utils/modal-host-app.d.ts +5 -0
- package/dist/components/tt-modal/src/utils/modal-host-app.js +12 -0
- package/dist/components/tt-modal/src/utils/modal-scope.d.ts +21 -0
- package/dist/components/tt-modal/src/utils/modal-scope.js +20 -0
- package/dist/components/tt-modal/src/utils/modal-service.d.ts +23 -0
- package/dist/components/tt-modal/src/utils/modal-service.js +51 -0
- package/dist/components/tt-modal/src/utils/modal-stack.d.ts +14 -13
- package/dist/components/tt-modal/src/utils/modal-stack.js +20 -9
- package/dist/components/tt-modal/src/utils/modal-z-index.d.ts +15 -0
- package/dist/components/tt-modal/src/utils/modal-z-index.js +24 -0
- package/dist/components/tt-modal/src/utils/resolve-modal-target.d.ts +14 -0
- package/dist/components/tt-modal/src/utils/resolve-modal-target.js +83 -47
- package/dist/components/tt-upload/index.d.ts +15 -0
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +9 -0
- package/dist/components/tt-upload/src/TtUpload.vue.js +22 -22
- package/dist/components/tt-upload/src/typing.d.ts +10 -0
- package/dist/components/tt-upload/src/typing.js +10 -0
- package/dist/index.js +132 -127
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,92 +1,93 @@
|
|
|
1
1
|
import { TtButton as p } from "./components/tt-button/index.js";
|
|
2
|
-
import { TtAddButton as
|
|
2
|
+
import { TtAddButton as ao } 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
|
-
import { addComponent as s, setConfig as
|
|
6
|
-
import { TtFormItemErrorTooltip as
|
|
7
|
-
import { TtIcon as
|
|
8
|
-
import { TtImage as
|
|
9
|
-
import { RenderDrawer as
|
|
5
|
+
import { addComponent as s, setConfig as d } from "./components/tt-form/index.js";
|
|
6
|
+
import { TtFormItemErrorTooltip as i } from "./components/tt-form-item-error-tooltip/index.js";
|
|
7
|
+
import { TtIcon as l, TtAddIcon as u, TtSubIcon as x } from "./components/tt-icon/index.js";
|
|
8
|
+
import { TtImage as T } from "./components/tt-image/index.js";
|
|
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
|
|
12
|
-
import { TtSelect as
|
|
13
|
-
import { TtText as
|
|
14
|
-
import { TtUpload as
|
|
15
|
-
import { TtNavAnchor as
|
|
16
|
-
import { TtApiComponent as
|
|
11
|
+
import { TtModal as so } from "./components/tt-modal/index.js";
|
|
12
|
+
import { TtSelect as M } from "./components/tt-select/index.js";
|
|
13
|
+
import { TtText as b } from "./components/tt-text/index.js";
|
|
14
|
+
import { TtUpload as w } from "./components/tt-upload/index.js";
|
|
15
|
+
import { TtNavAnchor as R } from "./components/tt-nav-anchor/index.js";
|
|
16
|
+
import { TtApiComponent as h } from "./components/tt-api-component/index.js";
|
|
17
17
|
import * as e from "./directives/index.js";
|
|
18
|
-
import { setup as
|
|
19
|
-
import { TtLog as
|
|
20
|
-
import { TtPanelSelect as
|
|
21
|
-
import { TtRadioGroup as
|
|
22
|
-
import { setXHR as
|
|
18
|
+
import { setup as g } from "./hooks/useSetup.js";
|
|
19
|
+
import { TtLog as A } from "./components/tt-log/index.js";
|
|
20
|
+
import { TtPanelSelect as P } from "./components/tt-panel-select/index.js";
|
|
21
|
+
import { TtRadioGroup as S } from "./components/tt-radio-group/index.js";
|
|
22
|
+
import { setXHR as lo } from "./utils/xhr.js";
|
|
23
23
|
/* empty css */
|
|
24
24
|
/* empty css */
|
|
25
25
|
/* empty css */
|
|
26
26
|
/* empty css */
|
|
27
27
|
/* empty css */
|
|
28
|
-
import { default as
|
|
29
|
-
import { useModalForm as
|
|
30
|
-
import { TtLoading as
|
|
31
|
-
import { TtTable as
|
|
32
|
-
import { useFormSchemasLink as
|
|
33
|
-
import { useDataPermissionOptions as
|
|
34
|
-
import { useBasicDataOptions as
|
|
35
|
-
import { usePanelSelectSchemas as
|
|
36
|
-
import { CODES as
|
|
37
|
-
import { useFormat as
|
|
38
|
-
import { useLoading as
|
|
39
|
-
import { useScreenshotOss as
|
|
40
|
-
import { createUppercaseInputProps as
|
|
28
|
+
import { default as xo } from "./components/tt-area/TtArea.vue.js";
|
|
29
|
+
import { useModalForm as no } from "./components/tt-modal-form/useModalForm.js";
|
|
30
|
+
import { TtLoading as Mo } from "./components/tt-loading/index.js";
|
|
31
|
+
import { TtTable as wo, TtTableAction as Ro, TtTableButton as ho } from "./components/tt-table/index.js";
|
|
32
|
+
import { useFormSchemasLink as Ao } from "./hooks/useFormSchemasLink.js";
|
|
33
|
+
import { useDataPermissionOptions as So } from "./hooks/useDataPermissionOptions.js";
|
|
34
|
+
import { useBasicDataOptions as Do } from "./hooks/useBasicDataOptions.js";
|
|
35
|
+
import { usePanelSelectSchemas as Fo } from "./hooks/usePanelSelectSchemas.js";
|
|
36
|
+
import { CODES as Lo, GROUP_BY as Eo } from "./hooks/basicDataCodes.js";
|
|
37
|
+
import { useFormat as Uo } from "./hooks/useFormat.js";
|
|
38
|
+
import { useLoading as zo } from "./hooks/useLoading.js";
|
|
39
|
+
import { useScreenshotOss as Go } from "./hooks/useScreenshotOss.js";
|
|
40
|
+
import { createUppercaseInputProps as Vo, toUppercaseInputValue as _o, uppercaseInputProps as $o } from "./utils/uppercaseInput.js";
|
|
41
41
|
import { setupDrawer as C } from "./components/tt-drawer/src/index.js";
|
|
42
|
-
import { useShowDrawer as
|
|
42
|
+
import { useShowDrawer as yo } from "./components/tt-drawer/src/index.js";
|
|
43
43
|
import { setupModal as D } from "./components/tt-modal/src/index.js";
|
|
44
|
-
import { useShowModal as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { showTtDrawer as
|
|
48
|
-
import { useDrawerResizable as
|
|
49
|
-
import { showTtModal as
|
|
50
|
-
import {
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
44
|
+
import { useShowModal as Xo } from "./components/tt-modal/src/index.js";
|
|
45
|
+
import { default as Zo } from "./directives/disabled-tip/index.js";
|
|
46
|
+
import { default as Jo } from "./directives/auto-tip/index.js";
|
|
47
|
+
import { showTtDrawer as Qo, useDrawerRender as Wo } from "./components/tt-drawer/src/hooks/useDrawerRender.js";
|
|
48
|
+
import { useDrawerResizable as rr } from "./components/tt-drawer/src/hooks/useResizable.js";
|
|
49
|
+
import { showTtModal as tr, useModalRender as mr } from "./components/tt-modal/src/hooks/useModalRender.js";
|
|
50
|
+
import { closeAllTtModal as ar, closeTtModal as fr, openTtModal as sr, ttModal as dr } from "./components/tt-modal/src/utils/modal-service.js";
|
|
51
|
+
import { default as lr } from "./directives/dialog-resize/index.js";
|
|
52
|
+
import * as ro from "zod";
|
|
53
|
+
import { useGroupForm as xr } from "./components/tt-form/src/group-form/useGroupForm.js";
|
|
54
|
+
import { COMPONENT_MAP as nr } from "./components/tt-form/src/config.js";
|
|
55
|
+
import { useForm as Mr } from "./components/tt-form/src/useForm.js";
|
|
56
|
+
import { TtImageViewer as wr } from "./components/tt-image/src/components/ImageViewer.js";
|
|
57
|
+
import { vTtLoading as hr } from "./components/tt-loading/src/directive.js";
|
|
58
|
+
import { Loading as Ar } from "./components/tt-loading/src/service.js";
|
|
59
|
+
import { useTableContext as Sr, useTableFormContext as Cr } from "./components/tt-table/src/hooks/useTableContext.js";
|
|
60
|
+
import { useTableFormRender as Ir, useTableRender as Fr } from "./components/tt-table/src/hooks/useTableRender.js";
|
|
61
|
+
import { ttUploadProps as Lr } from "./components/tt-upload/src/typing.js";
|
|
61
62
|
const I = [
|
|
62
63
|
p,
|
|
63
|
-
|
|
64
|
+
n,
|
|
64
65
|
c,
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
l,
|
|
67
|
+
M,
|
|
67
68
|
f,
|
|
68
|
-
|
|
69
|
+
b,
|
|
69
70
|
a,
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
i,
|
|
72
|
+
T,
|
|
73
|
+
w,
|
|
72
74
|
R,
|
|
73
|
-
|
|
75
|
+
u,
|
|
74
76
|
x,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
h,
|
|
78
|
+
A,
|
|
77
79
|
P,
|
|
78
|
-
S
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}), C(r), D(r);
|
|
80
|
+
S
|
|
81
|
+
], F = (o) => {
|
|
82
|
+
I.forEach((r) => o.use(r)), Object.keys(e).forEach((r) => {
|
|
83
|
+
const t = e[r], m = r.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
84
|
+
o.directive(m, t);
|
|
85
|
+
}), C(o), D(o);
|
|
85
86
|
};
|
|
86
|
-
function
|
|
87
|
-
s(
|
|
87
|
+
function eo(o) {
|
|
88
|
+
s(o == null ? void 0 : o.components), d(o == null ? void 0 : o.defineRules, o == null ? void 0 : o.modelPropNameMap);
|
|
88
89
|
}
|
|
89
|
-
const
|
|
90
|
+
const to = {
|
|
90
91
|
/**
|
|
91
92
|
* 安装组件
|
|
92
93
|
* @param app Vue 应用实例
|
|
@@ -97,73 +98,77 @@ const tr = {
|
|
|
97
98
|
* @param options 全局参数
|
|
98
99
|
* @returns 合并后的全局参数
|
|
99
100
|
*/
|
|
100
|
-
setup:
|
|
101
|
+
setup: g
|
|
101
102
|
};
|
|
102
103
|
export {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
Lo as CODES,
|
|
105
|
+
nr as COMPONENT_MAP,
|
|
106
|
+
Eo as GROUP_BY,
|
|
107
|
+
Ar as Loading,
|
|
108
|
+
n as RenderDrawer,
|
|
108
109
|
c as RenderModal,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
ao as TtAddButton,
|
|
111
|
+
u as TtAddIcon,
|
|
112
|
+
h as TtApiComponent,
|
|
113
|
+
xo as TtArea,
|
|
113
114
|
p as TtButton,
|
|
114
115
|
a as TtCheckbox,
|
|
115
116
|
f as TtEmpty,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
117
|
+
l as TtIcon,
|
|
118
|
+
T as TtImage,
|
|
119
|
+
wr as TtImageViewer,
|
|
120
|
+
Mo as TtLoading,
|
|
121
|
+
A as TtLog,
|
|
122
|
+
so as TtModal,
|
|
123
|
+
R as TtNavAnchor,
|
|
124
|
+
P as TtPanelSelect,
|
|
125
|
+
S as TtRadioGroup,
|
|
126
|
+
M as TtSelect,
|
|
127
|
+
x as TtSubIcon,
|
|
128
|
+
wo as TtTable,
|
|
129
|
+
Ro as TtTableAction,
|
|
130
|
+
ho as TtTableButton,
|
|
131
|
+
b as TtText,
|
|
132
|
+
w as TtUpload,
|
|
132
133
|
s as addComponent,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
134
|
+
Jo as autoTip,
|
|
135
|
+
ar as closeAllTtModal,
|
|
136
|
+
fr as closeTtModal,
|
|
137
|
+
Vo as createUppercaseInputProps,
|
|
138
|
+
to as default,
|
|
139
|
+
lr as dialogResize,
|
|
140
|
+
Zo as disabledTip,
|
|
141
|
+
eo as formAdapter,
|
|
142
|
+
sr as openTtModal,
|
|
143
|
+
d as setConfig,
|
|
144
|
+
lo as setXHR,
|
|
141
145
|
C as setupDrawer,
|
|
142
146
|
D as setupModal,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
Mr as
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
147
|
+
Qo as showTtDrawer,
|
|
148
|
+
tr as showTtModal,
|
|
149
|
+
_o as toUppercaseInputValue,
|
|
150
|
+
dr as ttModal,
|
|
151
|
+
Lr as ttUploadProps,
|
|
152
|
+
$o as uppercaseInputProps,
|
|
153
|
+
Do as useBasicDataOptions,
|
|
154
|
+
So as useDataPermissionOptions,
|
|
155
|
+
Wo as useDrawerRender,
|
|
156
|
+
rr as useDrawerResizable,
|
|
157
|
+
Mr as useForm,
|
|
158
|
+
Ao as useFormSchemasLink,
|
|
159
|
+
Uo as useFormat,
|
|
160
|
+
xr as useGroupForm,
|
|
161
|
+
zo as useLoading,
|
|
162
|
+
no as useModalForm,
|
|
163
|
+
mr as useModalRender,
|
|
164
|
+
Fo as usePanelSelectSchemas,
|
|
165
|
+
Go as useScreenshotOss,
|
|
166
|
+
yo as useShowDrawer,
|
|
167
|
+
Xo as useShowModal,
|
|
168
|
+
Sr as useTableContext,
|
|
169
|
+
Cr as useTableFormContext,
|
|
170
|
+
Ir as useTableFormRender,
|
|
171
|
+
Fr as useTableRender,
|
|
172
|
+
hr as vTtLoading,
|
|
173
|
+
ro as z
|
|
169
174
|
};
|