@dt-frames/ui 2.0.3 → 2.0.4
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/es/assets/locales/en.ts +1 -1
- package/es/components/curd/index.js +279 -269
- package/es/components/drawer/index.d.ts +1 -1
- package/es/components/drawer/index.js +27 -27
- package/es/components/drawer/src/index.d.ts +2 -3
- package/es/components/form/index.d.ts +20 -20
- package/es/components/form/index.js +91 -45
- package/es/components/form/index.less +206 -8
- package/es/components/form/src/components/FormItem.d.ts +3 -7
- package/es/components/form/src/components/formIcon.d.ts +14 -14
- package/es/components/form/src/components/formInputUseDialog.d.ts +8 -8
- package/es/components/form/src/enums/index.d.ts +1 -1
- package/es/components/form/src/index.d.ts +16 -16
- package/es/components/form/src/props.d.ts +2 -6
- package/es/components/form/src/types/form.type.d.ts +1 -1
- package/es/components/icons/index.less +5 -0
- package/es/components/modal/index.js +35 -34
- package/es/components/modal/index.less +10 -0
- package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +9 -9
- package/es/components/source/hooks/useSource.d.ts +14 -0
- package/es/components/source/index.js +66 -28
- package/es/components/source/types/source.type.d.ts +4 -8
- package/es/components/table/index.js +278 -215
- package/es/components/table/index.less +41 -14
- package/es/components/table/src/index.d.ts +20 -10
- package/es/components/table/src/props.d.ts +8 -4
- package/es/components/table/src/types/table.type.d.ts +4 -5
- package/es/theme/index.js +342 -120
- package/es/theme/index.less +150 -0
- package/es/theme/src/components/header/components/size.d.ts +5 -5
- package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
- package/es/theme/src/components/header/index.d.ts +5 -5
- package/es/theme/src/components/header/multiple-header.d.ts +6 -7
- package/es/theme/src/components/sider/components/drag-bar.d.ts +1 -1
- package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -1
- package/es/theme/src/components/sider/index.d.ts +147 -3
- package/es/theme/src/components/sider/mix-sider.d.ts +146 -0
- package/es/theme/src/enums/theme.enum.d.ts +2 -1
- package/es/theme/src/hooks/useMenu.d.ts +5 -3
- package/es/theme/src/index.d.ts +159 -15
- package/es/theme/src/stores/theme.store.d.ts +3 -0
- package/es/theme/src/types/theme.type.d.ts +1 -0
- package/package.json +1 -3
package/es/theme/index.less
CHANGED
|
@@ -191,6 +191,130 @@
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
+
|
|
195
|
+
.dt-mix-sider{
|
|
196
|
+
transition: all 0.2s ease 0s;
|
|
197
|
+
|
|
198
|
+
& > div:first-of-type, & > div:nth-of-type(2) {
|
|
199
|
+
background-color: @menu-bg-color;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.dark .dt-mix-sider__shallow-menu{
|
|
203
|
+
li{
|
|
204
|
+
color: #ffffffa1;
|
|
205
|
+
transition: all .3s ease;
|
|
206
|
+
|
|
207
|
+
i{
|
|
208
|
+
font-size: 20px;
|
|
209
|
+
}
|
|
210
|
+
p{
|
|
211
|
+
font-size: 12px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&.active-menu {
|
|
215
|
+
background-color: @menu-sub-bg-color;
|
|
216
|
+
color: #fff;
|
|
217
|
+
&::before{
|
|
218
|
+
position: absolute;
|
|
219
|
+
top: 0;
|
|
220
|
+
left: 0;
|
|
221
|
+
width: 4px;
|
|
222
|
+
height: 100%;
|
|
223
|
+
background-color: @primary-color;
|
|
224
|
+
content: "";
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&.dark .sub-menu{
|
|
231
|
+
border-right: 1px solid #eaf0fb;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&__sub-shallow-menu{
|
|
235
|
+
padding: 6px 20px 12px 20px;
|
|
236
|
+
& > li{
|
|
237
|
+
|
|
238
|
+
li, .sub-menu{
|
|
239
|
+
line-height: 40px;
|
|
240
|
+
font-size: 13px;
|
|
241
|
+
align-items: center;
|
|
242
|
+
margin: 4px 0 8px -20px;
|
|
243
|
+
width: calc(100% + 40px);
|
|
244
|
+
padding-left: 24px;
|
|
245
|
+
i{
|
|
246
|
+
font-size: 18px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&.active-menu, &:hover {
|
|
250
|
+
color: @primary-color;
|
|
251
|
+
background-color: @menu-mix-select-bg-color;
|
|
252
|
+
i{
|
|
253
|
+
opacity: 1;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
& > div:not(.sub-menu) {
|
|
259
|
+
border-bottom: 1px solid #eaf0fb;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&:last-of-type > div{
|
|
263
|
+
border-bottom: none;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&__animate-enter-active {
|
|
269
|
+
z-index: -1;
|
|
270
|
+
animation: slideLeft 0.2s;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&__animate-leave-active{
|
|
274
|
+
z-index: -1;
|
|
275
|
+
animation: slideLeft 0.2s reverse;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
&-middle{
|
|
280
|
+
.dt-header-action {
|
|
281
|
+
i {
|
|
282
|
+
font-size: 20px;
|
|
283
|
+
}
|
|
284
|
+
span{
|
|
285
|
+
font-size: 13px;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.dt-reuse-tabs .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab span {
|
|
290
|
+
font-size: 13px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.dt-reuse-tabs .ant-tabs-extra-content i{
|
|
294
|
+
font-size: 16px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.ant-btn{
|
|
298
|
+
font-size: 13px;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
&-large{
|
|
303
|
+
.dt-sideBar .ant-menu .ant-menu-item, .dt-sideBar .ant-menu .ant-menu-submenu-title {
|
|
304
|
+
height: 48px !important;
|
|
305
|
+
}
|
|
306
|
+
.dt-menu-item span{
|
|
307
|
+
font-size: 14px !important;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.dt-reuse-tabs .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab span {
|
|
311
|
+
font-size: 13px;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.dt-reuse-tabs .ant-tabs-extra-content i{
|
|
315
|
+
font-size: 16px;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
194
318
|
}
|
|
195
319
|
|
|
196
320
|
.dt-menu-item{
|
|
@@ -424,6 +548,22 @@
|
|
|
424
548
|
}
|
|
425
549
|
}
|
|
426
550
|
|
|
551
|
+
&__item--mix-sidebar {
|
|
552
|
+
&::before{
|
|
553
|
+
content: '';
|
|
554
|
+
position: absolute;
|
|
555
|
+
left: 15%;
|
|
556
|
+
top: calc(25% + 1px);
|
|
557
|
+
width: 20%;
|
|
558
|
+
height: 75%;
|
|
559
|
+
background-color: #fff;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.dt-menu-type__item::before {
|
|
563
|
+
width: 15%;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
|
|
427
567
|
&__item--active {
|
|
428
568
|
border: 2px solid @primary-color;
|
|
429
569
|
}
|
|
@@ -601,3 +741,13 @@
|
|
|
601
741
|
.ant-modal-confirm-body .ant-modal-confirm-content{
|
|
602
742
|
color: #909399;
|
|
603
743
|
}
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
@keyframes slideLeft {
|
|
747
|
+
from {
|
|
748
|
+
transform: translateX(-100%);
|
|
749
|
+
}
|
|
750
|
+
to{
|
|
751
|
+
transform: translateX(0);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
@@ -87,8 +87,8 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
87
87
|
$slots: Readonly<{
|
|
88
88
|
[name: string]: import("vue").Slot;
|
|
89
89
|
}>;
|
|
90
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
91
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
90
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
91
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
92
92
|
$emit: (event: string, ...args: any[]) => void;
|
|
93
93
|
$el: any;
|
|
94
94
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -148,7 +148,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
148
148
|
destroyTooltipOnHide: boolean;
|
|
149
149
|
autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
|
|
150
150
|
arrowPointAtCenter: boolean;
|
|
151
|
-
}
|
|
151
|
+
}> & {
|
|
152
152
|
beforeCreate?: (() => void) | (() => void)[];
|
|
153
153
|
created?: (() => void) | (() => void)[];
|
|
154
154
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -163,7 +163,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
163
163
|
unmounted?: (() => void) | (() => void)[];
|
|
164
164
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
165
165
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
166
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
166
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
|
167
167
|
};
|
|
168
168
|
$forceUpdate: () => void;
|
|
169
169
|
$nextTick: typeof import("vue").nextTick;
|
|
@@ -277,6 +277,6 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
277
277
|
destroyTooltipOnHide: boolean;
|
|
278
278
|
autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
|
|
279
279
|
arrowPointAtCenter: boolean;
|
|
280
|
-
}
|
|
280
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
|
281
281
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
282
282
|
export default _sfc_main;
|
|
@@ -223,8 +223,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
223
223
|
$slots: Readonly<{
|
|
224
224
|
[name: string]: import("vue").Slot;
|
|
225
225
|
}>;
|
|
226
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
227
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
226
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
227
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
228
228
|
$emit: (event: string, ...args: any[]) => void;
|
|
229
229
|
$el: any;
|
|
230
230
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -284,7 +284,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
284
284
|
destroyTooltipOnHide: boolean;
|
|
285
285
|
autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
|
|
286
286
|
arrowPointAtCenter: boolean;
|
|
287
|
-
}
|
|
287
|
+
}> & {
|
|
288
288
|
beforeCreate?: (() => void) | (() => void)[];
|
|
289
289
|
created?: (() => void) | (() => void)[];
|
|
290
290
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -299,7 +299,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
299
299
|
unmounted?: (() => void) | (() => void)[];
|
|
300
300
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
301
301
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
302
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
302
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
|
303
303
|
};
|
|
304
304
|
$forceUpdate: () => void;
|
|
305
305
|
$nextTick: typeof import("vue").nextTick;
|
|
@@ -413,7 +413,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
413
413
|
destroyTooltipOnHide: boolean;
|
|
414
414
|
autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
|
|
415
415
|
arrowPointAtCenter: boolean;
|
|
416
|
-
}
|
|
416
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
|
417
417
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
418
418
|
readonly DtUserInfo: import("vue").DefineComponent<{}, {
|
|
419
419
|
t: {
|
|
@@ -4,13 +4,12 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
4
4
|
getHeaderHeight: import("vue").ComputedRef<number>;
|
|
5
5
|
getFixed: import("vue").ComputedRef<boolean>;
|
|
6
6
|
getShowFullHeaderRef: import("vue").ComputedRef<boolean>;
|
|
7
|
-
getHeaderTheme: import("vue").ComputedRef<import('../../../src/enums').Theme>;
|
|
8
7
|
getShowInsetHeaderRef: import("vue").ComputedRef<boolean>;
|
|
9
8
|
getTabsHeight: import("vue").ComputedRef<number>;
|
|
10
9
|
getCalcContentWidth: import("vue").ComputedRef<string>;
|
|
11
10
|
getIsMixMode: import("vue").ComputedRef<boolean>;
|
|
12
|
-
getIsTopMenu: import("vue").ComputedRef<boolean>;
|
|
13
11
|
getSplit: import("vue").ComputedRef<boolean>;
|
|
12
|
+
getIsMixSidebar: import("vue").ComputedRef<boolean>;
|
|
14
13
|
getShowMultipleTab: import("vue").ComputedRef<boolean>;
|
|
15
14
|
getPlaceholderDomStyle: import("vue").ComputedRef<{
|
|
16
15
|
height: string;
|
|
@@ -246,8 +245,8 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
246
245
|
$slots: Readonly<{
|
|
247
246
|
[name: string]: import("vue").Slot;
|
|
248
247
|
}>;
|
|
249
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
250
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
248
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
249
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
251
250
|
$emit: (event: string, ...args: any[]) => void;
|
|
252
251
|
$el: any;
|
|
253
252
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -307,7 +306,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
307
306
|
destroyTooltipOnHide: boolean;
|
|
308
307
|
autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
|
|
309
308
|
arrowPointAtCenter: boolean;
|
|
310
|
-
}
|
|
309
|
+
}> & {
|
|
311
310
|
beforeCreate?: (() => void) | (() => void)[];
|
|
312
311
|
created?: (() => void) | (() => void)[];
|
|
313
312
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -322,7 +321,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
322
321
|
unmounted?: (() => void) | (() => void)[];
|
|
323
322
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
324
323
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
325
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
324
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
|
326
325
|
};
|
|
327
326
|
$forceUpdate: () => void;
|
|
328
327
|
$nextTick: typeof import("vue").nextTick;
|
|
@@ -436,7 +435,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
436
435
|
destroyTooltipOnHide: boolean;
|
|
437
436
|
autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
|
|
438
437
|
arrowPointAtCenter: boolean;
|
|
439
|
-
}
|
|
438
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
|
440
439
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
441
440
|
readonly DtUserInfo: import("vue").DefineComponent<{}, {
|
|
442
441
|
t: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
2
|
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
3
3
|
getCanDrag: import("vue").ComputedRef<boolean>;
|
|
4
|
-
getMenuWidth: import("vue").ComputedRef<
|
|
4
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
5
5
|
getDragBarStyle: import("vue").ComputedRef<{
|
|
6
6
|
left: string;
|
|
7
7
|
} | {
|
|
@@ -6,7 +6,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6
6
|
}, {
|
|
7
7
|
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
8
8
|
toggleCollapsed: () => void;
|
|
9
|
-
props: any;
|
|
10
9
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
10
|
type: {
|
|
12
11
|
type: StringConstructor;
|
|
@@ -3,11 +3,12 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
3
3
|
getMenuFixed: import("vue").ComputedRef<boolean>;
|
|
4
4
|
getSplit: import("vue").ComputedRef<boolean>;
|
|
5
5
|
getMenuHidden: import("vue").ComputedRef<boolean>;
|
|
6
|
-
getMenuWidth: import("vue").ComputedRef<
|
|
6
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
7
7
|
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
8
8
|
getMenuTheme: import("vue").ComputedRef<import('../../../src/enums').Theme>;
|
|
9
|
-
getRealWidth: import("vue").ComputedRef<
|
|
9
|
+
getRealWidth: import("vue").ComputedRef<number>;
|
|
10
10
|
getIsMixMode: import("vue").ComputedRef<boolean>;
|
|
11
|
+
getIsMixSidebar: import("vue").ComputedRef<boolean>;
|
|
11
12
|
getCollapsedWidth: import("vue").ComputedRef<80 | 48 | 0>;
|
|
12
13
|
onBreakPointChange: (broken: boolean) => void;
|
|
13
14
|
getTriggerAttr: import("vue").ComputedRef<{
|
|
@@ -56,7 +57,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
56
57
|
DragBar: import("vue").DefineComponent<{}, {
|
|
57
58
|
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
58
59
|
getCanDrag: import("vue").ComputedRef<boolean>;
|
|
59
|
-
getMenuWidth: import("vue").ComputedRef<
|
|
60
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
60
61
|
getDragBarStyle: import("vue").ComputedRef<{
|
|
61
62
|
left: string;
|
|
62
63
|
} | {
|
|
@@ -66,5 +67,148 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
66
67
|
'dt-darg-bar--hide': boolean;
|
|
67
68
|
})[]>;
|
|
68
69
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
70
|
+
MixSider: import("vue").DefineComponent<{}, {
|
|
71
|
+
MENU_WIDTH: number;
|
|
72
|
+
go: (path: string, isReplace?: boolean) => void;
|
|
73
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
74
|
+
getMenuTheme: import("vue").ComputedRef<import('../../../src/enums').Theme>;
|
|
75
|
+
getMixSideTrigger: import("vue").ComputedRef<"hover" | "click">;
|
|
76
|
+
setMixSiderIsHasMenu: (val: boolean) => void;
|
|
77
|
+
menuModules: any;
|
|
78
|
+
activeId: import("vue").Ref<string>;
|
|
79
|
+
subMenus: import("vue").Ref<any[]>;
|
|
80
|
+
getDomStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
81
|
+
getWrapStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
82
|
+
getSubMenuStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
83
|
+
setDomWidth: (width: string) => {
|
|
84
|
+
width: string;
|
|
85
|
+
minWidth: string;
|
|
86
|
+
maxWidth: string;
|
|
87
|
+
flex: string;
|
|
88
|
+
transition: string;
|
|
89
|
+
};
|
|
90
|
+
getMenuEvents: {
|
|
91
|
+
onMouseleave: () => void;
|
|
92
|
+
};
|
|
93
|
+
getItemEvents: (item: import("@dt-frames/core").Menus) => {
|
|
94
|
+
onMouseenter: () => void;
|
|
95
|
+
onClick: () => void;
|
|
96
|
+
} | {
|
|
97
|
+
onClick: () => void;
|
|
98
|
+
onMouseenter?: undefined;
|
|
99
|
+
};
|
|
100
|
+
currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>;
|
|
101
|
+
setActive: (path: string) => void;
|
|
102
|
+
handleModuleClick: (path: string, isHover?: boolean) => void;
|
|
103
|
+
DtLogo: import("vue").DefineComponent<{
|
|
104
|
+
theme: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
validator: (v: string) => boolean;
|
|
107
|
+
};
|
|
108
|
+
showTitle: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
}, {
|
|
113
|
+
t: {
|
|
114
|
+
(key: string): string;
|
|
115
|
+
(key: string, locale: string): string;
|
|
116
|
+
(key: string, locale: string, list: unknown[]): string;
|
|
117
|
+
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
118
|
+
(key: string, list: unknown[]): string;
|
|
119
|
+
(key: string, named: Record<string, unknown>): string;
|
|
120
|
+
};
|
|
121
|
+
title: string;
|
|
122
|
+
getLogoWidth: import("vue").ComputedRef<string | number>;
|
|
123
|
+
props: any;
|
|
124
|
+
getLogoClass: import("vue").ComputedRef<string>;
|
|
125
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
126
|
+
theme: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
validator: (v: string) => boolean;
|
|
129
|
+
};
|
|
130
|
+
showTitle: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
}>>, {
|
|
135
|
+
showTitle: boolean;
|
|
136
|
+
}>;
|
|
137
|
+
readonly DtScrollContainer: import("../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
138
|
+
scrollbarRef: any;
|
|
139
|
+
scrollTo: (to: number, duration?: number) => void;
|
|
140
|
+
getScrollWrap: () => any;
|
|
141
|
+
scrollBottom: () => void;
|
|
142
|
+
ScrollBar: import("vue").DefineComponent<{
|
|
143
|
+
wrapClass: {
|
|
144
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
wrapStyle: ArrayConstructor;
|
|
148
|
+
viewClass: {
|
|
149
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
150
|
+
default: string;
|
|
151
|
+
};
|
|
152
|
+
viewStyle: {
|
|
153
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
noresize: BooleanConstructor;
|
|
157
|
+
tag: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
161
|
+
}, {
|
|
162
|
+
sizeWidth: import("vue").Ref<string>;
|
|
163
|
+
sizeHeight: import("vue").Ref<string>;
|
|
164
|
+
moveX: import("vue").Ref<number>;
|
|
165
|
+
moveY: import("vue").Ref<number>;
|
|
166
|
+
wrap: import("vue").Ref<any>;
|
|
167
|
+
resize: import("vue").Ref<any>;
|
|
168
|
+
props: any;
|
|
169
|
+
style: import("vue").ComputedRef<{}>;
|
|
170
|
+
handleScroll: () => void;
|
|
171
|
+
update: () => void;
|
|
172
|
+
readonly Bar: import("vue").DefineComponent<{
|
|
173
|
+
vertical: BooleanConstructor;
|
|
174
|
+
size: StringConstructor;
|
|
175
|
+
move: NumberConstructor;
|
|
176
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
177
|
+
[key: string]: any;
|
|
178
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
179
|
+
vertical: BooleanConstructor;
|
|
180
|
+
size: StringConstructor;
|
|
181
|
+
move: NumberConstructor;
|
|
182
|
+
}>>, {
|
|
183
|
+
vertical: boolean;
|
|
184
|
+
}>;
|
|
185
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
186
|
+
wrapClass: {
|
|
187
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
|
+
wrapStyle: ArrayConstructor;
|
|
191
|
+
viewClass: {
|
|
192
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
193
|
+
default: string;
|
|
194
|
+
};
|
|
195
|
+
viewStyle: {
|
|
196
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
197
|
+
default: string;
|
|
198
|
+
};
|
|
199
|
+
noresize: BooleanConstructor;
|
|
200
|
+
tag: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
default: string;
|
|
203
|
+
};
|
|
204
|
+
}>>, {
|
|
205
|
+
wrapClass: string | unknown[];
|
|
206
|
+
viewClass: string | unknown[];
|
|
207
|
+
viewStyle: string | unknown[];
|
|
208
|
+
noresize: boolean;
|
|
209
|
+
tag: string;
|
|
210
|
+
}>;
|
|
211
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
212
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
69
213
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
70
214
|
export default _sfc_main;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { Menus } from '@dt-frames/core';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
4
|
+
MENU_WIDTH: number;
|
|
5
|
+
go: (path: string, isReplace?: boolean) => void;
|
|
6
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
7
|
+
getMenuTheme: import("vue").ComputedRef<import("../../enums").Theme>;
|
|
8
|
+
getMixSideTrigger: import("vue").ComputedRef<"hover" | "click">;
|
|
9
|
+
setMixSiderIsHasMenu: (val: boolean) => void;
|
|
10
|
+
menuModules: any;
|
|
11
|
+
activeId: import("vue").Ref<string>;
|
|
12
|
+
subMenus: import("vue").Ref<any[]>;
|
|
13
|
+
getDomStyle: import("vue").ComputedRef<CSSProperties>;
|
|
14
|
+
getWrapStyle: import("vue").ComputedRef<CSSProperties>;
|
|
15
|
+
getSubMenuStyle: import("vue").ComputedRef<CSSProperties>;
|
|
16
|
+
setDomWidth: (width: string) => {
|
|
17
|
+
width: string;
|
|
18
|
+
minWidth: string;
|
|
19
|
+
maxWidth: string;
|
|
20
|
+
flex: string;
|
|
21
|
+
transition: string;
|
|
22
|
+
};
|
|
23
|
+
getMenuEvents: {
|
|
24
|
+
onMouseleave: () => void;
|
|
25
|
+
};
|
|
26
|
+
getItemEvents: (item: Menus) => {
|
|
27
|
+
onMouseenter: () => void;
|
|
28
|
+
onClick: () => void;
|
|
29
|
+
} | {
|
|
30
|
+
onClick: () => void;
|
|
31
|
+
onMouseenter?: undefined;
|
|
32
|
+
};
|
|
33
|
+
currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>;
|
|
34
|
+
setActive: (path: string) => void;
|
|
35
|
+
handleModuleClick: (path: string, isHover?: boolean) => void;
|
|
36
|
+
DtLogo: import("vue").DefineComponent<{
|
|
37
|
+
theme: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
validator: (v: string) => boolean;
|
|
40
|
+
};
|
|
41
|
+
showTitle: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
t: {
|
|
47
|
+
(key: string): string;
|
|
48
|
+
(key: string, locale: string): string;
|
|
49
|
+
(key: string, locale: string, list: unknown[]): string;
|
|
50
|
+
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
51
|
+
(key: string, list: unknown[]): string;
|
|
52
|
+
(key: string, named: Record<string, unknown>): string;
|
|
53
|
+
};
|
|
54
|
+
title: string;
|
|
55
|
+
getLogoWidth: import("vue").ComputedRef<string | number>;
|
|
56
|
+
props: any;
|
|
57
|
+
getLogoClass: import("vue").ComputedRef<string>;
|
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
theme: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
validator: (v: string) => boolean;
|
|
62
|
+
};
|
|
63
|
+
showTitle: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
}>>, {
|
|
68
|
+
showTitle: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
readonly DtScrollContainer: import("../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
71
|
+
scrollbarRef: any;
|
|
72
|
+
scrollTo: (to: number, duration?: number) => void;
|
|
73
|
+
getScrollWrap: () => any;
|
|
74
|
+
scrollBottom: () => void;
|
|
75
|
+
ScrollBar: import("vue").DefineComponent<{
|
|
76
|
+
wrapClass: {
|
|
77
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
wrapStyle: ArrayConstructor;
|
|
81
|
+
viewClass: {
|
|
82
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
viewStyle: {
|
|
86
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
noresize: BooleanConstructor;
|
|
90
|
+
tag: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
}, {
|
|
95
|
+
sizeWidth: import("vue").Ref<string>;
|
|
96
|
+
sizeHeight: import("vue").Ref<string>;
|
|
97
|
+
moveX: import("vue").Ref<number>;
|
|
98
|
+
moveY: import("vue").Ref<number>;
|
|
99
|
+
wrap: import("vue").Ref<any>;
|
|
100
|
+
resize: import("vue").Ref<any>;
|
|
101
|
+
props: any;
|
|
102
|
+
style: import("vue").ComputedRef<{}>;
|
|
103
|
+
handleScroll: () => void;
|
|
104
|
+
update: () => void;
|
|
105
|
+
readonly Bar: import("vue").DefineComponent<{
|
|
106
|
+
vertical: BooleanConstructor;
|
|
107
|
+
size: StringConstructor;
|
|
108
|
+
move: NumberConstructor;
|
|
109
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
112
|
+
vertical: BooleanConstructor;
|
|
113
|
+
size: StringConstructor;
|
|
114
|
+
move: NumberConstructor;
|
|
115
|
+
}>>, {
|
|
116
|
+
vertical: boolean;
|
|
117
|
+
}>;
|
|
118
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
119
|
+
wrapClass: {
|
|
120
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
wrapStyle: ArrayConstructor;
|
|
124
|
+
viewClass: {
|
|
125
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
viewStyle: {
|
|
129
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
noresize: BooleanConstructor;
|
|
133
|
+
tag: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
}>>, {
|
|
138
|
+
wrapClass: string | unknown[];
|
|
139
|
+
viewClass: string | unknown[];
|
|
140
|
+
viewStyle: string | unknown[];
|
|
141
|
+
noresize: boolean;
|
|
142
|
+
tag: string;
|
|
143
|
+
}>;
|
|
144
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
145
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
146
|
+
export default _sfc_main;
|