@dt-frames/ui 2.0.2 → 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/container/index.d.ts +4 -3
- package/es/components/container/index.js +24 -22
- package/es/components/container/src/slot-container.d.ts +5 -3
- package/es/components/curd/index.js +261 -229
- package/es/components/curd/src/components/Curd.d.ts +126 -331
- package/es/components/curd/src/props.d.ts +14 -15
- package/es/components/drawer/index.d.ts +3 -5
- package/es/components/drawer/index.js +55 -54
- package/es/components/drawer/src/components/DrawerHeader.d.ts +1 -3
- package/es/components/drawer/src/index.d.ts +4 -7
- package/es/components/form/index.d.ts +213 -361
- package/es/components/form/index.js +210 -163
- package/es/components/form/index.less +206 -8
- package/es/components/form/src/components/FormButtons.d.ts +3 -3
- package/es/components/form/src/components/FormItem.d.ts +152 -304
- package/es/components/form/src/components/formIcon.d.ts +4 -4
- package/es/components/form/src/components/formInputUseDialog.d.ts +3 -3
- package/es/components/form/src/enums/index.d.ts +1 -1
- package/es/components/form/src/index.d.ts +199 -347
- package/es/components/form/src/props.d.ts +8 -12
- package/es/components/form/src/types/form.type.d.ts +2 -2
- package/es/components/icons/index.d.ts +496 -2
- package/es/components/icons/index.less +5 -0
- package/es/components/icons/src/pick-icon.d.ts +5 -5
- package/es/components/modal/index.js +76 -74
- package/es/components/modal/index.less +10 -0
- package/es/components/modal/src/components/Modal.d.ts +108 -215
- package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +116 -223
- package/es/components/source/hooks/useSource.d.ts +14 -0
- package/es/components/source/index.js +66 -27
- package/es/components/source/types/source.type.d.ts +4 -8
- package/es/components/table/index.js +452 -820
- package/es/components/table/index.less +50 -14
- package/es/components/table/src/components/TableAction.d.ts +1 -1
- package/es/components/table/src/components/TableHeader.d.ts +109 -216
- package/es/components/table/src/components/TableRender.d.ts +13 -9
- package/es/components/table/src/components/tableSetting/Download.d.ts +107 -214
- package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +107 -214
- package/es/components/table/src/components/tableSetting/index.d.ts +107 -214
- package/es/components/table/src/hooks/useDataSource.d.ts +1 -2
- package/es/components/table/src/hooks/usePagination.d.ts +3 -118
- package/es/components/table/src/index.d.ts +99 -435
- package/es/components/table/src/props.d.ts +19 -74
- package/es/components/table/src/types/actions.type.d.ts +1 -2
- package/es/components/table/src/types/table.type.d.ts +13 -8
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -3240
- package/es/theme/index.js +688 -453
- package/es/theme/index.less +150 -0
- package/es/theme/src/components/header/components/logo.d.ts +0 -1
- package/es/theme/src/components/header/components/notify.d.ts +4 -3
- package/es/theme/src/components/header/components/setting-theme.d.ts +2 -1
- package/es/theme/src/components/header/components/user-info.d.ts +4 -3
- package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
- package/es/theme/src/components/header/index.d.ts +8 -7
- package/es/theme/src/components/header/multiple-header.d.ts +22 -25
- 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 +4 -2
- package/es/theme/src/index.d.ts +166 -23
- package/es/theme/src/stores/theme.store.d.ts +3 -0
- package/es/theme/src/types/theme.type.d.ts +2 -1
- package/package.json +3 -4
- package/vite.config.ts +0 -27
|
@@ -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;
|
|
@@ -9,7 +9,7 @@ export declare function useMenu(): {
|
|
|
9
9
|
getMenuHidden: import("vue").ComputedRef<boolean>;
|
|
10
10
|
getMenuTheme: import("vue").ComputedRef<import("../enums").Theme>;
|
|
11
11
|
getTrigger: import("vue").ComputedRef<boolean>;
|
|
12
|
-
getMenuWidth: import("vue").ComputedRef<
|
|
12
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
13
13
|
getLogoWidth: import("vue").ComputedRef<string | number>;
|
|
14
14
|
getMenuType: import("vue").ComputedRef<MenuType>;
|
|
15
15
|
getIsTopMenu: import("vue").ComputedRef<boolean>;
|
|
@@ -18,10 +18,12 @@ export declare function useMenu(): {
|
|
|
18
18
|
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
19
19
|
getIsHorizontal: import("vue").ComputedRef<boolean>;
|
|
20
20
|
getMiniWidthNumber: import("vue").ComputedRef<48 | 80>;
|
|
21
|
-
getRealWidth: import("vue").ComputedRef<
|
|
21
|
+
getRealWidth: import("vue").ComputedRef<number>;
|
|
22
22
|
getCalcContentWidth: import("vue").ComputedRef<string>;
|
|
23
23
|
getIsMixMode: import("vue").ComputedRef<boolean>;
|
|
24
|
+
getIsMixSidebar: import("vue").ComputedRef<boolean>;
|
|
24
25
|
getCanDrag: import("vue").ComputedRef<boolean>;
|
|
26
|
+
getMixSideTrigger: import("vue").ComputedRef<"hover" | "click">;
|
|
25
27
|
toggleCollapsed: () => void;
|
|
26
28
|
setThemeStore: (conf?: Recordable) => void;
|
|
27
29
|
};
|
package/es/theme/src/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
8
8
|
getSplit: import("vue").ComputedRef<boolean>;
|
|
9
9
|
getShowMenu: import("vue").ComputedRef<boolean>;
|
|
10
10
|
getShowSidebar: import("vue").ComputedRef<boolean>;
|
|
11
|
+
getIsMixSidebar: import("vue").ComputedRef<boolean>;
|
|
11
12
|
getFooter: import("vue").ComputedRef<import("./types/theme.type").FooterOptions>;
|
|
12
13
|
getShowFooter: import("vue").ComputedRef<any>;
|
|
13
14
|
height: any;
|
|
@@ -81,7 +82,6 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
81
82
|
getLogoWidth: import("vue").ComputedRef<string | number>;
|
|
82
83
|
props: any;
|
|
83
84
|
getLogoClass: import("vue").ComputedRef<string>;
|
|
84
|
-
readonly DtLogo: string;
|
|
85
85
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
86
86
|
theme: {
|
|
87
87
|
type: StringConstructor;
|
|
@@ -160,9 +160,10 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
160
160
|
data: {
|
|
161
161
|
type: ObjectConstructor;
|
|
162
162
|
};
|
|
163
|
-
},
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
}, {
|
|
164
|
+
props: any;
|
|
165
|
+
Container: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
166
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
166
167
|
template: {
|
|
167
168
|
type: FunctionConstructor;
|
|
168
169
|
};
|
|
@@ -475,9 +476,10 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
475
476
|
data: {
|
|
476
477
|
type: ObjectConstructor;
|
|
477
478
|
};
|
|
478
|
-
},
|
|
479
|
-
|
|
480
|
-
|
|
479
|
+
}, {
|
|
480
|
+
props: any;
|
|
481
|
+
Container: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
482
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
481
483
|
template: {
|
|
482
484
|
type: FunctionConstructor;
|
|
483
485
|
};
|
|
@@ -735,11 +737,12 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
735
737
|
getMenuFixed: import("vue").ComputedRef<boolean>;
|
|
736
738
|
getSplit: import("vue").ComputedRef<boolean>;
|
|
737
739
|
getMenuHidden: import("vue").ComputedRef<boolean>;
|
|
738
|
-
getMenuWidth: import("vue").ComputedRef<
|
|
740
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
739
741
|
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
740
742
|
getMenuTheme: import("vue").ComputedRef<import("./enums").Theme>;
|
|
741
|
-
getRealWidth: import("vue").ComputedRef<
|
|
743
|
+
getRealWidth: import("vue").ComputedRef<number>;
|
|
742
744
|
getIsMixMode: import("vue").ComputedRef<boolean>;
|
|
745
|
+
getIsMixSidebar: import("vue").ComputedRef<boolean>;
|
|
743
746
|
getCollapsedWidth: import("vue").ComputedRef<80 | 48 | 0>;
|
|
744
747
|
onBreakPointChange: (broken: boolean) => void;
|
|
745
748
|
getTriggerAttr: import("vue").ComputedRef<{
|
|
@@ -788,7 +791,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
788
791
|
DragBar: import("vue").DefineComponent<{}, {
|
|
789
792
|
getCollapsed: import("vue").ComputedRef<boolean>;
|
|
790
793
|
getCanDrag: import("vue").ComputedRef<boolean>;
|
|
791
|
-
getMenuWidth: import("vue").ComputedRef<
|
|
794
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
792
795
|
getDragBarStyle: import("vue").ComputedRef<{
|
|
793
796
|
left: string;
|
|
794
797
|
} | {
|
|
@@ -798,18 +801,160 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
798
801
|
'dt-darg-bar--hide': boolean;
|
|
799
802
|
})[]>;
|
|
800
803
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
804
|
+
MixSider: import("vue").DefineComponent<{}, {
|
|
805
|
+
MENU_WIDTH: number;
|
|
806
|
+
go: (path: string, isReplace?: boolean) => void;
|
|
807
|
+
getMenuWidth: import("vue").ComputedRef<number>;
|
|
808
|
+
getMenuTheme: import("vue").ComputedRef<import("./enums").Theme>;
|
|
809
|
+
getMixSideTrigger: import("vue").ComputedRef<"hover" | "click">;
|
|
810
|
+
setMixSiderIsHasMenu: (val: boolean) => void;
|
|
811
|
+
menuModules: any;
|
|
812
|
+
activeId: import("vue").Ref<string>;
|
|
813
|
+
subMenus: import("vue").Ref<any[]>;
|
|
814
|
+
getDomStyle: import("vue").ComputedRef<CSSProperties>;
|
|
815
|
+
getWrapStyle: import("vue").ComputedRef<CSSProperties>;
|
|
816
|
+
getSubMenuStyle: import("vue").ComputedRef<CSSProperties>;
|
|
817
|
+
setDomWidth: (width: string) => {
|
|
818
|
+
width: string;
|
|
819
|
+
minWidth: string;
|
|
820
|
+
maxWidth: string;
|
|
821
|
+
flex: string;
|
|
822
|
+
transition: string;
|
|
823
|
+
};
|
|
824
|
+
getMenuEvents: {
|
|
825
|
+
onMouseleave: () => void;
|
|
826
|
+
};
|
|
827
|
+
getItemEvents: (item: import("@dt-frames/core").Menus) => {
|
|
828
|
+
onMouseenter: () => void;
|
|
829
|
+
onClick: () => void;
|
|
830
|
+
} | {
|
|
831
|
+
onClick: () => void;
|
|
832
|
+
onMouseenter?: undefined;
|
|
833
|
+
};
|
|
834
|
+
currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>;
|
|
835
|
+
setActive: (path: string) => void;
|
|
836
|
+
handleModuleClick: (path: string, isHover?: boolean) => void;
|
|
837
|
+
DtLogo: import("vue").DefineComponent<{
|
|
838
|
+
theme: {
|
|
839
|
+
type: StringConstructor;
|
|
840
|
+
validator: (v: string) => boolean;
|
|
841
|
+
};
|
|
842
|
+
showTitle: {
|
|
843
|
+
type: BooleanConstructor;
|
|
844
|
+
default: boolean;
|
|
845
|
+
};
|
|
846
|
+
}, {
|
|
847
|
+
t: {
|
|
848
|
+
(key: string): string;
|
|
849
|
+
(key: string, locale: string): string;
|
|
850
|
+
(key: string, locale: string, list: unknown[]): string;
|
|
851
|
+
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
852
|
+
(key: string, list: unknown[]): string;
|
|
853
|
+
(key: string, named: Record<string, unknown>): string;
|
|
854
|
+
};
|
|
855
|
+
title: string;
|
|
856
|
+
getLogoWidth: import("vue").ComputedRef<string | number>;
|
|
857
|
+
props: any;
|
|
858
|
+
getLogoClass: import("vue").ComputedRef<string>;
|
|
859
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
860
|
+
theme: {
|
|
861
|
+
type: StringConstructor;
|
|
862
|
+
validator: (v: string) => boolean;
|
|
863
|
+
};
|
|
864
|
+
showTitle: {
|
|
865
|
+
type: BooleanConstructor;
|
|
866
|
+
default: boolean;
|
|
867
|
+
};
|
|
868
|
+
}>>, {
|
|
869
|
+
showTitle: boolean;
|
|
870
|
+
}>;
|
|
871
|
+
readonly DtScrollContainer: import("../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
872
|
+
scrollbarRef: any;
|
|
873
|
+
scrollTo: (to: number, duration?: number) => void;
|
|
874
|
+
getScrollWrap: () => any;
|
|
875
|
+
scrollBottom: () => void;
|
|
876
|
+
ScrollBar: import("vue").DefineComponent<{
|
|
877
|
+
wrapClass: {
|
|
878
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
879
|
+
default: string;
|
|
880
|
+
};
|
|
881
|
+
wrapStyle: ArrayConstructor;
|
|
882
|
+
viewClass: {
|
|
883
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
884
|
+
default: string;
|
|
885
|
+
};
|
|
886
|
+
viewStyle: {
|
|
887
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
888
|
+
default: string;
|
|
889
|
+
};
|
|
890
|
+
noresize: BooleanConstructor;
|
|
891
|
+
tag: {
|
|
892
|
+
type: StringConstructor;
|
|
893
|
+
default: string;
|
|
894
|
+
};
|
|
895
|
+
}, {
|
|
896
|
+
sizeWidth: import("vue").Ref<string>;
|
|
897
|
+
sizeHeight: import("vue").Ref<string>;
|
|
898
|
+
moveX: import("vue").Ref<number>;
|
|
899
|
+
moveY: import("vue").Ref<number>;
|
|
900
|
+
wrap: import("vue").Ref<any>;
|
|
901
|
+
resize: import("vue").Ref<any>;
|
|
902
|
+
props: any;
|
|
903
|
+
style: import("vue").ComputedRef<{}>;
|
|
904
|
+
handleScroll: () => void;
|
|
905
|
+
update: () => void;
|
|
906
|
+
readonly Bar: import("vue").DefineComponent<{
|
|
907
|
+
vertical: BooleanConstructor;
|
|
908
|
+
size: StringConstructor;
|
|
909
|
+
move: NumberConstructor;
|
|
910
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
911
|
+
[key: string]: any;
|
|
912
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
913
|
+
vertical: BooleanConstructor;
|
|
914
|
+
size: StringConstructor;
|
|
915
|
+
move: NumberConstructor;
|
|
916
|
+
}>>, {
|
|
917
|
+
vertical: boolean;
|
|
918
|
+
}>;
|
|
919
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
920
|
+
wrapClass: {
|
|
921
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
922
|
+
default: string;
|
|
923
|
+
};
|
|
924
|
+
wrapStyle: ArrayConstructor;
|
|
925
|
+
viewClass: {
|
|
926
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
927
|
+
default: string;
|
|
928
|
+
};
|
|
929
|
+
viewStyle: {
|
|
930
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
931
|
+
default: string;
|
|
932
|
+
};
|
|
933
|
+
noresize: BooleanConstructor;
|
|
934
|
+
tag: {
|
|
935
|
+
type: StringConstructor;
|
|
936
|
+
default: string;
|
|
937
|
+
};
|
|
938
|
+
}>>, {
|
|
939
|
+
wrapClass: string | unknown[];
|
|
940
|
+
viewClass: string | unknown[];
|
|
941
|
+
viewStyle: string | unknown[];
|
|
942
|
+
noresize: boolean;
|
|
943
|
+
tag: string;
|
|
944
|
+
}>;
|
|
945
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
946
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
801
947
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
802
948
|
LayoutMultipleHeader: import("vue").DefineComponent<{}, {
|
|
803
949
|
getHeaderHeight: import("vue").ComputedRef<number>;
|
|
804
950
|
getFixed: import("vue").ComputedRef<boolean>;
|
|
805
951
|
getShowFullHeaderRef: import("vue").ComputedRef<boolean>;
|
|
806
|
-
getHeaderTheme: import("vue").ComputedRef<import("./enums").Theme>;
|
|
807
952
|
getShowInsetHeaderRef: import("vue").ComputedRef<boolean>;
|
|
808
953
|
getTabsHeight: import("vue").ComputedRef<number>;
|
|
809
954
|
getCalcContentWidth: import("vue").ComputedRef<string>;
|
|
810
955
|
getIsMixMode: import("vue").ComputedRef<boolean>;
|
|
811
|
-
getIsTopMenu: import("vue").ComputedRef<boolean>;
|
|
812
956
|
getSplit: import("vue").ComputedRef<boolean>;
|
|
957
|
+
getIsMixSidebar: import("vue").ComputedRef<boolean>;
|
|
813
958
|
getShowMultipleTab: import("vue").ComputedRef<boolean>;
|
|
814
959
|
getPlaceholderDomStyle: import("vue").ComputedRef<{
|
|
815
960
|
height: string;
|
|
@@ -821,10 +966,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
821
966
|
includesPath?: string[];
|
|
822
967
|
}[]>;
|
|
823
968
|
getWrapStyle: import("vue").ComputedRef<CSSProperties>;
|
|
824
|
-
getClass: import("vue").ComputedRef<string
|
|
825
|
-
'dt-multiple-header--fixed': boolean;
|
|
826
|
-
'dt-multiple-header--top-menu': boolean;
|
|
827
|
-
})[]>;
|
|
969
|
+
getClass: import("vue").ComputedRef<string>;
|
|
828
970
|
LayoutHeader: import("vue").DefineComponent<{
|
|
829
971
|
fixed: BooleanConstructor;
|
|
830
972
|
}, {
|
|
@@ -870,7 +1012,6 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
870
1012
|
getLogoWidth: import("vue").ComputedRef<string | number>;
|
|
871
1013
|
props: any;
|
|
872
1014
|
getLogoClass: import("vue").ComputedRef<string>;
|
|
873
|
-
readonly DtLogo: string;
|
|
874
1015
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
875
1016
|
theme: {
|
|
876
1017
|
type: StringConstructor;
|
|
@@ -949,9 +1090,10 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
949
1090
|
data: {
|
|
950
1091
|
type: ObjectConstructor;
|
|
951
1092
|
};
|
|
952
|
-
},
|
|
953
|
-
|
|
954
|
-
|
|
1093
|
+
}, {
|
|
1094
|
+
props: any;
|
|
1095
|
+
Container: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
1096
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
955
1097
|
template: {
|
|
956
1098
|
type: FunctionConstructor;
|
|
957
1099
|
};
|
|
@@ -1264,9 +1406,10 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
1264
1406
|
data: {
|
|
1265
1407
|
type: ObjectConstructor;
|
|
1266
1408
|
};
|
|
1267
|
-
},
|
|
1268
|
-
|
|
1269
|
-
|
|
1409
|
+
}, {
|
|
1410
|
+
props: any;
|
|
1411
|
+
Container: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
1412
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1270
1413
|
template: {
|
|
1271
1414
|
type: FunctionConstructor;
|
|
1272
1415
|
};
|
|
@@ -3,6 +3,7 @@ import { ThemeOptions, HeadOptions, MenuOptions, RouteReuseOptions, FooterOption
|
|
|
3
3
|
export declare const useThemeStore: import("pinia").StoreDefinition<"dt-theme", {
|
|
4
4
|
themeConf: ThemeOptions;
|
|
5
5
|
pageLoading: boolean;
|
|
6
|
+
mixSiderHasSubMenu: boolean;
|
|
6
7
|
}, {
|
|
7
8
|
getThemeConf(): ThemeOptions;
|
|
8
9
|
getHeaderConf(): HeadOptions;
|
|
@@ -10,6 +11,8 @@ export declare const useThemeStore: import("pinia").StoreDefinition<"dt-theme",
|
|
|
10
11
|
getFooterConf(): FooterOptions | VNode;
|
|
11
12
|
getRouteReuseConf(): RouteReuseOptions;
|
|
12
13
|
getPageLoading(): boolean;
|
|
14
|
+
getMixSiderIsHasMenu(): boolean;
|
|
13
15
|
}, {
|
|
14
16
|
setThemeConf(options?: ThemeOptions): void;
|
|
17
|
+
setMixSiderIsHasMenu(val: boolean): void;
|
|
15
18
|
}>;
|
|
@@ -17,7 +17,7 @@ declare type HeadOptions = {
|
|
|
17
17
|
locale?: Language.ZH;
|
|
18
18
|
showLoginOut?: boolean;
|
|
19
19
|
showSettingTheme?: boolean;
|
|
20
|
-
logoutClick?: (
|
|
20
|
+
logoutClick?: () => ({});
|
|
21
21
|
};
|
|
22
22
|
declare type MenuOptions = {
|
|
23
23
|
fixed?: boolean;
|
|
@@ -32,6 +32,7 @@ declare type MenuOptions = {
|
|
|
32
32
|
trigger?: boolean;
|
|
33
33
|
type?: MenuType;
|
|
34
34
|
mode?: MenuMode;
|
|
35
|
+
mixSideTrigger?: 'hover' | 'click';
|
|
35
36
|
};
|
|
36
37
|
declare type FooterOptions = {
|
|
37
38
|
show?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-frames/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -46,13 +46,12 @@
|
|
|
46
46
|
"preview": "vite preview"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@dt-frames/core": "workspace:2.0.0",
|
|
50
49
|
"lodash-es": "^4.17.21",
|
|
51
50
|
"sortablejs": "^1.15.0",
|
|
52
51
|
"xlsx": "^0.18.5"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"
|
|
56
|
-
"
|
|
54
|
+
"npm-run-all": "^4.1.5",
|
|
55
|
+
"rimraf": "^3.0.2"
|
|
57
56
|
}
|
|
58
57
|
}
|
package/vite.config.ts
CHANGED
|
@@ -32,33 +32,6 @@ export default defineConfig((env) => {
|
|
|
32
32
|
|
|
33
33
|
return {
|
|
34
34
|
build: {
|
|
35
|
-
// 不需要打包进npm的文件
|
|
36
|
-
rollupOptions: {
|
|
37
|
-
external: [
|
|
38
|
-
'@vueuse/core',
|
|
39
|
-
'vue',
|
|
40
|
-
'vue-router',
|
|
41
|
-
'vue-i18n',
|
|
42
|
-
'axios',
|
|
43
|
-
'ant-design-vue',
|
|
44
|
-
'ant-design-vue/es',
|
|
45
|
-
'ant-design-vue/es/form/style',
|
|
46
|
-
'ant-design-vue/es/button/style',
|
|
47
|
-
'ant-design-vue/es/checkbox/style',
|
|
48
|
-
'ant-design-vue/es/input/style',
|
|
49
|
-
'ant-design-vue/es/popover/style',
|
|
50
|
-
'ant-design-vue/es/empty/style',
|
|
51
|
-
'ant-design-vue/es/input-number/style',
|
|
52
|
-
'lodash-es',
|
|
53
|
-
'@dt-frames/core',
|
|
54
|
-
"sortablejs",
|
|
55
|
-
"xlsx",
|
|
56
|
-
'dayjs',
|
|
57
|
-
'dayjs/locale/zh-cn',
|
|
58
|
-
'@dt-frames/plugins',
|
|
59
|
-
'@dt-frames/core'
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
35
|
lib: {
|
|
63
36
|
entry: `src/${ entryPath }.ts`,
|
|
64
37
|
formats: ['es'],
|