@ditari/bsui 5.1.15 → 5.1.17
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/cjs/components/card/Card.cjs.map +1 -1
- package/dist/cjs/components/card/Card.d.ts +6 -0
- package/dist/cjs/components/card/index.d.ts +3 -0
- package/dist/cjs/components/card/style.d.ts +9 -0
- package/dist/cjs/components/date/RangePicker.vue.d.ts +64 -0
- package/dist/cjs/components/date/index.d.ts +3 -0
- package/dist/cjs/components/dic/DicReplace.d.ts +24 -0
- package/dist/cjs/components/dic/index.d.ts +3 -0
- package/dist/cjs/components/form/FormLayout.d.ts +49 -0
- package/dist/cjs/components/form/index.d.ts +3 -0
- package/dist/cjs/components/icon/index.d.ts +4 -0
- package/dist/cjs/components/index.d.ts +11 -0
- package/dist/cjs/components/layout/AppContext.d.ts +16 -0
- package/dist/cjs/components/layout/AppLayout.d.ts +3 -0
- package/dist/cjs/components/layout/Layout.vue.d.ts +269 -0
- package/dist/cjs/components/layout/List.d.ts +5 -0
- package/dist/cjs/components/layout/Show.d.ts +33 -0
- package/dist/cjs/components/layout/components/index.d.ts +5 -0
- package/dist/cjs/components/layout/components/layout/HeaderLayout.vue.d.ts +106 -0
- package/dist/cjs/components/layout/components/layout/RouterContent.vue.d.ts +11 -0
- package/dist/cjs/components/layout/components/layout/RouterContentName.vue.d.ts +19 -0
- package/dist/cjs/components/layout/components/layout/ThemeApp.vue.d.ts +24 -0
- package/dist/cjs/components/layout/components/menu/Menu.d.ts +5 -0
- package/dist/cjs/components/layout/components/mobile/MobileList.d.ts +3 -0
- package/dist/cjs/components/layout/components/settings/BlockCheckbox.vue.d.ts +47 -0
- package/dist/cjs/components/layout/components/settings/SettingDrawer.d.ts +50 -0
- package/dist/cjs/components/layout/index.d.ts +8 -0
- package/dist/cjs/components/layout/style.d.ts +5 -0
- package/dist/cjs/components/select/Select.vue.d.ts +98 -0
- package/dist/cjs/components/select/index.d.ts +3 -0
- package/dist/cjs/components/tab/Search.d.ts +3 -0
- package/dist/cjs/components/tab/Tab.vue.d.ts +78 -0
- package/dist/cjs/components/tab/index.d.ts +3 -0
- package/dist/cjs/components/table/Table.cjs +5 -48
- package/dist/cjs/components/table/Table.cjs.map +1 -1
- package/dist/cjs/components/table/Table.d.ts +137 -0
- package/dist/cjs/components/table/index.d.ts +4 -0
- package/dist/cjs/components/table/interface.d.ts +46 -0
- package/dist/cjs/components/table-form/TableForm.d.ts +46 -0
- package/dist/cjs/components/table-form/TableFormItem.d.ts +32 -0
- package/dist/cjs/components/table-form/index.d.ts +9 -0
- package/dist/cjs/components/table-form/interface.d.ts +56 -0
- package/dist/cjs/components/table-form/style.d.ts +12 -0
- package/dist/cjs/hooks/useDesign.d.ts +8 -0
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/utils/useMenuCore.d.ts +9 -0
- package/dist/cjs/utils/useTheme.d.ts +9 -0
- package/dist/cjs/utils/withInstall.d.ts +12 -0
- package/dist/esm/components/card/Card.d.ts +6 -0
- package/dist/esm/components/card/Card.mjs.map +1 -1
- package/dist/esm/components/card/index.d.ts +3 -0
- package/dist/esm/components/card/style.d.ts +9 -0
- package/dist/esm/components/date/RangePicker.vue.d.ts +64 -0
- package/dist/esm/components/date/index.d.ts +3 -0
- package/dist/esm/components/dic/DicReplace.d.ts +24 -0
- package/dist/esm/components/dic/index.d.ts +3 -0
- package/dist/esm/components/form/FormLayout.d.ts +49 -0
- package/dist/esm/components/form/index.d.ts +3 -0
- package/dist/esm/components/icon/index.d.ts +4 -0
- package/dist/esm/components/index.d.ts +11 -0
- package/dist/esm/components/layout/AppContext.d.ts +16 -0
- package/dist/esm/components/layout/AppLayout.d.ts +3 -0
- package/dist/esm/components/layout/Layout.vue.d.ts +269 -0
- package/dist/esm/components/layout/List.d.ts +5 -0
- package/dist/esm/components/layout/Show.d.ts +33 -0
- package/dist/esm/components/layout/components/index.d.ts +5 -0
- package/dist/esm/components/layout/components/layout/HeaderLayout.vue.d.ts +106 -0
- package/dist/esm/components/layout/components/layout/RouterContent.vue.d.ts +11 -0
- package/dist/esm/components/layout/components/layout/RouterContentName.vue.d.ts +19 -0
- package/dist/esm/components/layout/components/layout/ThemeApp.vue.d.ts +24 -0
- package/dist/esm/components/layout/components/menu/Menu.d.ts +5 -0
- package/dist/esm/components/layout/components/mobile/MobileList.d.ts +3 -0
- package/dist/esm/components/layout/components/settings/BlockCheckbox.vue.d.ts +47 -0
- package/dist/esm/components/layout/components/settings/SettingDrawer.d.ts +50 -0
- package/dist/esm/components/layout/index.d.ts +8 -0
- package/dist/esm/components/layout/style.d.ts +5 -0
- package/dist/esm/components/select/Select.vue.d.ts +98 -0
- package/dist/esm/components/select/index.d.ts +3 -0
- package/dist/esm/components/tab/Search.d.ts +3 -0
- package/dist/esm/components/tab/Tab.vue.d.ts +78 -0
- package/dist/esm/components/tab/index.d.ts +3 -0
- package/dist/esm/components/table/Table.d.ts +137 -0
- package/dist/esm/components/table/Table.mjs +6 -49
- package/dist/esm/components/table/Table.mjs.map +1 -1
- package/dist/esm/components/table/index.d.ts +4 -0
- package/dist/esm/components/table/interface.d.ts +46 -0
- package/dist/esm/components/table-form/TableForm.d.ts +46 -0
- package/dist/esm/components/table-form/TableFormItem.d.ts +32 -0
- package/dist/esm/components/table-form/index.d.ts +9 -0
- package/dist/esm/components/table-form/interface.d.ts +56 -0
- package/dist/esm/components/table-form/style.d.ts +12 -0
- package/dist/esm/hooks/useDesign.d.ts +8 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/utils/useMenuCore.d.ts +9 -0
- package/dist/esm/utils/useTheme.d.ts +9 -0
- package/dist/esm/utils/withInstall.d.ts +12 -0
- package/dist/types/components/card/Card.d.ts.map +1 -1
- package/dist/types/components/table/Table.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { type ComputedRef } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
|
+
appStore: import("pinia").Store<"_STORE_APP_ID", import("@ditari/store").App, {}, {}>;
|
|
4
|
+
layout: import("vue").Ref<{
|
|
5
|
+
sideWidth: number;
|
|
6
|
+
headerHeight: number;
|
|
7
|
+
collapsedWidth: number;
|
|
8
|
+
collapsed: boolean;
|
|
9
|
+
}, {
|
|
10
|
+
sideWidth: number;
|
|
11
|
+
headerHeight: number;
|
|
12
|
+
collapsedWidth: number;
|
|
13
|
+
collapsed: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
modeConfig: import("vue").Ref<import("@ditari/store/dist/types/modules/useAppStore").Mode, import("@ditari/store/dist/types/modules/useAppStore").Mode>;
|
|
16
|
+
headerTokenStyle: import("vue").Ref<import("@ditari/store/dist/types/modules/useAppStore").HeaderStyle, import("@ditari/store/dist/types/modules/useAppStore").HeaderStyle>;
|
|
17
|
+
headerStyle: ComputedRef<string>;
|
|
18
|
+
headerTabStyle: ComputedRef<string>;
|
|
19
|
+
collapsedStyle: ComputedRef<string>;
|
|
20
|
+
rightStyle: ComputedRef<string>;
|
|
21
|
+
useStyle: () => {
|
|
22
|
+
headerStyle: ComputedRef<string>;
|
|
23
|
+
headerTabStyle: ComputedRef<string>;
|
|
24
|
+
collapsedStyle: ComputedRef<string>;
|
|
25
|
+
rightStyle: ComputedRef<string>;
|
|
26
|
+
};
|
|
27
|
+
readonly MenuFoldOutlined: import("@ant-design/icons-vue/lib/icons/MenuFoldOutlined").MenuFoldOutlinedIconType;
|
|
28
|
+
readonly MenuUnfoldOutlined: import("@ant-design/icons-vue/lib/icons/MenuUnfoldOutlined").MenuUnfoldOutlinedIconType;
|
|
29
|
+
Tab: import("vue").DefineComponent<{}, {
|
|
30
|
+
useStyle: () => {
|
|
31
|
+
tabsNavStyle: ComputedRef<string>;
|
|
32
|
+
tabHoverBgStyle: ComputedRef<string>;
|
|
33
|
+
closeBtnStyle: ComputedRef<string>;
|
|
34
|
+
dynamicVars: ComputedRef<{
|
|
35
|
+
"--active-tab-color": string | undefined;
|
|
36
|
+
"--splitColor": string | undefined;
|
|
37
|
+
"--active-text-color": string | undefined;
|
|
38
|
+
"--active-shadow-color": string | undefined;
|
|
39
|
+
"--tabs-text-color": string | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
42
|
+
useTabAndMenu: () => {
|
|
43
|
+
activeKey: import("vue").Ref<string, string>;
|
|
44
|
+
list: ComputedRef<{
|
|
45
|
+
closeBtnVisible: boolean;
|
|
46
|
+
menus: {
|
|
47
|
+
key: string;
|
|
48
|
+
title: string;
|
|
49
|
+
icon: import("@ant-design/icons-vue/lib/icons/ReloadOutlined").ReloadOutlinedIconType;
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
}[];
|
|
52
|
+
path?: string;
|
|
53
|
+
fullPath?: string;
|
|
54
|
+
query?: import("vue-router").LocationQuery;
|
|
55
|
+
params?: import("vue-router").RouteParams;
|
|
56
|
+
meta?: import("vue-router").RouteMeta;
|
|
57
|
+
name?: string;
|
|
58
|
+
openTime?: number | undefined;
|
|
59
|
+
}[]>;
|
|
60
|
+
enableTabContextMenu: boolean;
|
|
61
|
+
onChange: (key: string | number) => void;
|
|
62
|
+
onClose: ($event: Event, key: string | undefined) => void;
|
|
63
|
+
onContextMenuClick: ({ key }: {
|
|
64
|
+
key: string | number;
|
|
65
|
+
}, item: any) => void;
|
|
66
|
+
};
|
|
67
|
+
tabsNavStyle: ComputedRef<string>;
|
|
68
|
+
tabHoverBgStyle: ComputedRef<string>;
|
|
69
|
+
closeBtnStyle: ComputedRef<string>;
|
|
70
|
+
dynamicVars: ComputedRef<{
|
|
71
|
+
"--active-tab-color": string | undefined;
|
|
72
|
+
"--splitColor": string | undefined;
|
|
73
|
+
"--active-text-color": string | undefined;
|
|
74
|
+
"--active-shadow-color": string | undefined;
|
|
75
|
+
"--tabs-text-color": string | undefined;
|
|
76
|
+
}>;
|
|
77
|
+
activeKey: import("vue").Ref<string, string>;
|
|
78
|
+
list: ComputedRef<{
|
|
79
|
+
closeBtnVisible: boolean;
|
|
80
|
+
menus: {
|
|
81
|
+
key: string;
|
|
82
|
+
title: string;
|
|
83
|
+
icon: import("@ant-design/icons-vue/lib/icons/ReloadOutlined").ReloadOutlinedIconType;
|
|
84
|
+
disabled: boolean;
|
|
85
|
+
}[];
|
|
86
|
+
path?: string;
|
|
87
|
+
fullPath?: string;
|
|
88
|
+
query?: import("vue-router").LocationQuery;
|
|
89
|
+
params?: import("vue-router").RouteParams;
|
|
90
|
+
meta?: import("vue-router").RouteMeta;
|
|
91
|
+
name?: string;
|
|
92
|
+
openTime?: number | undefined;
|
|
93
|
+
}[]>;
|
|
94
|
+
enableTabContextMenu: boolean;
|
|
95
|
+
onChange: (key: string | number) => void;
|
|
96
|
+
onClose: ($event: Event, key: string | undefined) => void;
|
|
97
|
+
onContextMenuClick: ({ key }: {
|
|
98
|
+
key: string | number;
|
|
99
|
+
}, item: any) => void;
|
|
100
|
+
readonly Search: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
101
|
+
readonly CloseOutlined: import("@ant-design/icons-vue/lib/icons/CloseOutlined").CloseOutlinedIconType;
|
|
102
|
+
readonly cx: (...classNames: import("@emotion/css/dist/declarations/src/create-instance").ClassNamesArg[]) => string;
|
|
103
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
104
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
105
|
+
export default _default;
|
|
106
|
+
//# sourceMappingURL=HeaderLayout.vue.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
list: import("vue").Ref<import("@ditari/store").NavTabsState[], import("@ditari/store").NavTabsState[]>;
|
|
3
|
+
toPascalCase: (str: string) => string;
|
|
4
|
+
refreshingPath: import("vue").Ref<string | null, string | null>;
|
|
5
|
+
wrapperMap: Map<any, any>;
|
|
6
|
+
cachedViews: import("vue").ComputedRef<string[]>;
|
|
7
|
+
getWrapper: (Component: any, route: any) => any;
|
|
8
|
+
reloadPage: (fullPath: string) => Promise<void>;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=RouterContent.vue.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
keepAliveStore: import("pinia").Store<"_STORE_KEEP_ALIVE_ID", {
|
|
3
|
+
list: string[];
|
|
4
|
+
}, {
|
|
5
|
+
get: (state: {
|
|
6
|
+
list: string[];
|
|
7
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
|
8
|
+
list: string[];
|
|
9
|
+
}>) => string[];
|
|
10
|
+
}, {
|
|
11
|
+
deleteKeepAlive(name: string): void;
|
|
12
|
+
save(route: import("vue-router").RouteLocationNormalized): void;
|
|
13
|
+
}>;
|
|
14
|
+
get: import("vue").ComputedRef<string[]>;
|
|
15
|
+
keepAliveNames: import("vue").ComputedRef<string[]>;
|
|
16
|
+
route: import("vue-router").RouteLocationNormalizedLoadedGeneric;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=RouterContentName.vue.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Ref } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
themeJson: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
required: false;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
}>, {
|
|
9
|
+
props: any;
|
|
10
|
+
appTheme: Ref<unknown, unknown>;
|
|
11
|
+
useTheme: () => {
|
|
12
|
+
appTheme: Ref<unknown>;
|
|
13
|
+
};
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
themeJson: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => {};
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
themeJson: Record<string, any>;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=ThemeApp.vue.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onMenuClick"[], "onMenuClick", import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
2
|
+
onOnMenuClick?: ((...args: any[]) => any) | undefined;
|
|
3
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const DMobileList: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default DMobileList;
|
|
3
|
+
//# sourceMappingURL=MobileList.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
themes: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
isDark: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
checked: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
t: {
|
|
15
|
+
type: FunctionConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
}>, {
|
|
19
|
+
props: any;
|
|
20
|
+
prefixCls: import("vue").ShallowRef<string, string>;
|
|
21
|
+
cls: import("vue").ComputedRef<{
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
}>;
|
|
24
|
+
readonly CheckOutlined: import("@ant-design/icons-vue/lib/icons/CheckOutlined").CheckOutlinedIconType;
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
themes: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
30
|
+
isDark: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
required: false;
|
|
33
|
+
};
|
|
34
|
+
checked: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
required: false;
|
|
37
|
+
};
|
|
38
|
+
t: {
|
|
39
|
+
type: FunctionConstructor;
|
|
40
|
+
required: false;
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
isDark: boolean;
|
|
44
|
+
checked: boolean;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
export default _default;
|
|
47
|
+
//# sourceMappingURL=BlockCheckbox.vue.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ComputedRef } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
3
|
+
BlockCheckbox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
themes: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: false;
|
|
7
|
+
};
|
|
8
|
+
isDark: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
checked: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
t: {
|
|
17
|
+
type: FunctionConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
};
|
|
20
|
+
}>, {
|
|
21
|
+
props: any;
|
|
22
|
+
prefixCls: import("vue").ShallowRef<string, string>;
|
|
23
|
+
cls: ComputedRef<{
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}>;
|
|
26
|
+
readonly CheckOutlined: import("@ant-design/icons-vue/lib/icons/CheckOutlined").CheckOutlinedIconType;
|
|
27
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
themes: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
isDark: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
checked: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
t: {
|
|
41
|
+
type: FunctionConstructor;
|
|
42
|
+
required: false;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {
|
|
45
|
+
isDark: boolean;
|
|
46
|
+
checked: boolean;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
48
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
export default _default;
|
|
50
|
+
//# sourceMappingURL=SettingDrawer.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AppLayout from "./AppLayout";
|
|
2
|
+
import List from "./List";
|
|
3
|
+
import Show from "./Show";
|
|
4
|
+
import Layout from "./Layout.vue";
|
|
5
|
+
export * from "./AppContext";
|
|
6
|
+
export * from "./components";
|
|
7
|
+
export { AppLayout, Layout, List, Show };
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
interface DicItem {
|
|
2
|
+
value: string | number;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
value: {
|
|
7
|
+
type: null;
|
|
8
|
+
required: true;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
name: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
placeholder: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: false;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
include: {
|
|
27
|
+
type: ArrayConstructor;
|
|
28
|
+
required: false;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
}>, {
|
|
32
|
+
props: any;
|
|
33
|
+
emits: (event: "update:value" | "change" | "select", ...args: any[]) => void;
|
|
34
|
+
getDicByKey: (key: string) => import("@ditari/store/dist/types/modules/useDicStore").DictionaryItem[];
|
|
35
|
+
keepNames: string[];
|
|
36
|
+
modelValue: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
37
|
+
data: import("vue").Ref<{
|
|
38
|
+
value: string | number;
|
|
39
|
+
label: string;
|
|
40
|
+
}[], DicItem[] | {
|
|
41
|
+
value: string | number;
|
|
42
|
+
label: string;
|
|
43
|
+
}[]>;
|
|
44
|
+
onSelect: (value: string | number) => void;
|
|
45
|
+
onChange: () => void;
|
|
46
|
+
useSelect: () => {
|
|
47
|
+
data: import("vue").Ref<{
|
|
48
|
+
value: string | number;
|
|
49
|
+
label: string;
|
|
50
|
+
}[], DicItem[] | {
|
|
51
|
+
value: string | number;
|
|
52
|
+
label: string;
|
|
53
|
+
}[]>;
|
|
54
|
+
modelValue: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
55
|
+
onSearch: (keywords: string) => void;
|
|
56
|
+
onSelect: (value: string | number) => void;
|
|
57
|
+
onChange: () => void;
|
|
58
|
+
};
|
|
59
|
+
onFilterOption: (inputValue: string, options: DicItem) => boolean;
|
|
60
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "change" | "select")[], "update:value" | "change" | "select", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
+
value: {
|
|
62
|
+
type: null;
|
|
63
|
+
required: true;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
name: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
required: true;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
disabled: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
required: false;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
placeholder: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
required: false;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
include: {
|
|
82
|
+
type: ArrayConstructor;
|
|
83
|
+
required: false;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
}>, {
|
|
91
|
+
name: string;
|
|
92
|
+
value: any;
|
|
93
|
+
disabled: boolean;
|
|
94
|
+
placeholder: string;
|
|
95
|
+
include: unknown[];
|
|
96
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
97
|
+
export default _default;
|
|
98
|
+
//# sourceMappingURL=Select.vue.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=Search.d.ts.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type ComputedRef } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
|
+
useStyle: () => {
|
|
4
|
+
tabsNavStyle: ComputedRef<string>;
|
|
5
|
+
tabHoverBgStyle: ComputedRef<string>;
|
|
6
|
+
closeBtnStyle: ComputedRef<string>;
|
|
7
|
+
dynamicVars: ComputedRef<{
|
|
8
|
+
"--active-tab-color": string | undefined;
|
|
9
|
+
"--splitColor": string | undefined;
|
|
10
|
+
"--active-text-color": string | undefined;
|
|
11
|
+
"--active-shadow-color": string | undefined;
|
|
12
|
+
"--tabs-text-color": string | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
useTabAndMenu: () => {
|
|
16
|
+
activeKey: import("vue").Ref<string, string>;
|
|
17
|
+
list: ComputedRef<{
|
|
18
|
+
closeBtnVisible: boolean;
|
|
19
|
+
menus: {
|
|
20
|
+
key: string;
|
|
21
|
+
title: string;
|
|
22
|
+
icon: import("@ant-design/icons-vue/lib/icons/ReloadOutlined").ReloadOutlinedIconType;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
}[];
|
|
25
|
+
path?: string;
|
|
26
|
+
fullPath?: string;
|
|
27
|
+
query?: import("vue-router").LocationQuery;
|
|
28
|
+
params?: import("vue-router").RouteParams;
|
|
29
|
+
meta?: import("vue-router").RouteMeta;
|
|
30
|
+
name?: string;
|
|
31
|
+
openTime?: number | undefined;
|
|
32
|
+
}[]>;
|
|
33
|
+
enableTabContextMenu: boolean;
|
|
34
|
+
onChange: (key: string | number) => void;
|
|
35
|
+
onClose: ($event: Event, key: string | undefined) => void;
|
|
36
|
+
onContextMenuClick: ({ key }: {
|
|
37
|
+
key: string | number;
|
|
38
|
+
}, item: any) => void;
|
|
39
|
+
};
|
|
40
|
+
tabsNavStyle: ComputedRef<string>;
|
|
41
|
+
tabHoverBgStyle: ComputedRef<string>;
|
|
42
|
+
closeBtnStyle: ComputedRef<string>;
|
|
43
|
+
dynamicVars: ComputedRef<{
|
|
44
|
+
"--active-tab-color": string | undefined;
|
|
45
|
+
"--splitColor": string | undefined;
|
|
46
|
+
"--active-text-color": string | undefined;
|
|
47
|
+
"--active-shadow-color": string | undefined;
|
|
48
|
+
"--tabs-text-color": string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
activeKey: import("vue").Ref<string, string>;
|
|
51
|
+
list: ComputedRef<{
|
|
52
|
+
closeBtnVisible: boolean;
|
|
53
|
+
menus: {
|
|
54
|
+
key: string;
|
|
55
|
+
title: string;
|
|
56
|
+
icon: import("@ant-design/icons-vue/lib/icons/ReloadOutlined").ReloadOutlinedIconType;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
}[];
|
|
59
|
+
path?: string;
|
|
60
|
+
fullPath?: string;
|
|
61
|
+
query?: import("vue-router").LocationQuery;
|
|
62
|
+
params?: import("vue-router").RouteParams;
|
|
63
|
+
meta?: import("vue-router").RouteMeta;
|
|
64
|
+
name?: string;
|
|
65
|
+
openTime?: number | undefined;
|
|
66
|
+
}[]>;
|
|
67
|
+
enableTabContextMenu: boolean;
|
|
68
|
+
onChange: (key: string | number) => void;
|
|
69
|
+
onClose: ($event: Event, key: string | undefined) => void;
|
|
70
|
+
onContextMenuClick: ({ key }: {
|
|
71
|
+
key: string | number;
|
|
72
|
+
}, item: any) => void;
|
|
73
|
+
readonly Search: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
74
|
+
readonly CloseOutlined: import("@ant-design/icons-vue/lib/icons/CloseOutlined").CloseOutlinedIconType;
|
|
75
|
+
readonly cx: (...classNames: import("@emotion/css/dist/declarations/src/create-instance").ClassNamesArg[]) => string;
|
|
76
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
77
|
+
export default _default;
|
|
78
|
+
//# sourceMappingURL=Tab.vue.d.ts.map
|
|
@@ -131,47 +131,9 @@ const DTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
function useSlots() {
|
|
134
|
-
const divTextStyle = css.css`
|
|
135
|
-
white-space: nowrap;
|
|
136
|
-
overflow: hidden;
|
|
137
|
-
text-overflow: ellipsis;
|
|
138
|
-
display: inline-block;
|
|
139
|
-
max-width: 100%;
|
|
140
|
-
vertical-align: middle;
|
|
141
|
-
`;
|
|
142
134
|
const tableSlots2 = {
|
|
143
135
|
bodyCell: (params) => {
|
|
144
136
|
var _a;
|
|
145
|
-
const {
|
|
146
|
-
column,
|
|
147
|
-
record,
|
|
148
|
-
index
|
|
149
|
-
} = params;
|
|
150
|
-
const dataIndex = column.dataIndex;
|
|
151
|
-
if ((column.width || column.minWidth) && column.ellipsis) {
|
|
152
|
-
const {
|
|
153
|
-
customRender
|
|
154
|
-
} = column;
|
|
155
|
-
const width = column.width || column.minWidth;
|
|
156
|
-
const originalText = record[dataIndex];
|
|
157
|
-
let content;
|
|
158
|
-
if (customRender) {
|
|
159
|
-
content = customRender({
|
|
160
|
-
text: originalText,
|
|
161
|
-
record,
|
|
162
|
-
index,
|
|
163
|
-
column
|
|
164
|
-
});
|
|
165
|
-
} else {
|
|
166
|
-
content = originalText;
|
|
167
|
-
}
|
|
168
|
-
return vue.createVNode("div", {
|
|
169
|
-
"class": divTextStyle,
|
|
170
|
-
"style": {
|
|
171
|
-
width: typeof width === "number" ? `${width}px` : width
|
|
172
|
-
}
|
|
173
|
-
}, [content]);
|
|
174
|
-
}
|
|
175
137
|
return (_a = slots.bodyCell) == null ? void 0 : _a.call(slots, params);
|
|
176
138
|
},
|
|
177
139
|
summary: () => {
|
|
@@ -213,7 +175,7 @@ const DTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
213
175
|
summaryHeight = (_c = useEleHeight(summaryEl)) != null ? _c : 0;
|
|
214
176
|
}
|
|
215
177
|
tableHeight2.value = height - paginationHeight - headerHeight - summaryHeight;
|
|
216
|
-
antTableBodyRef2.value = tableEl.getElementsByClassName("ant-table-
|
|
178
|
+
antTableBodyRef2.value = tableEl.getElementsByClassName("ant-table-body")[0];
|
|
217
179
|
if (antTableBodyRef2.value) {
|
|
218
180
|
antTableBodyRef2.value.style.height = tableHeight2.value + "px";
|
|
219
181
|
}
|
|
@@ -347,7 +309,6 @@ const DTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
347
309
|
const selected = data2.length !== 0;
|
|
348
310
|
const _ids = props.data.map((record) => record[rowKey]);
|
|
349
311
|
selectedRowKeys.value = selected ? selectedRowKeys.value.concat(rowKeys.filter((key) => !selectedRowKeys.value.includes(key))) : selectedRowKeys.value.filter((key) => !_ids.includes(key));
|
|
350
|
-
console.log("onSelect", selectedRowKeys.value);
|
|
351
312
|
emit("update:keys", selectedRowKeys.value);
|
|
352
313
|
};
|
|
353
314
|
vue.watch(() => props.keys, (val) => {
|
|
@@ -382,11 +343,7 @@ const DTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
382
343
|
"vertical": true,
|
|
383
344
|
"ref": tableRef
|
|
384
345
|
}, {
|
|
385
|
-
default: () => [vue.createVNode(
|
|
386
|
-
"style": {
|
|
387
|
-
height: tableHeight.value + "px"
|
|
388
|
-
}
|
|
389
|
-
}, [vue.createVNode(antDesignVue.Table, vue.mergeProps(attrs, {
|
|
346
|
+
default: () => [vue.createVNode(antDesignVue.Table, vue.mergeProps(attrs, {
|
|
390
347
|
"loading": props.loading,
|
|
391
348
|
"size": props.size,
|
|
392
349
|
"bordered": props.bordered,
|
|
@@ -397,10 +354,11 @@ const DTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
397
354
|
"pagination": false,
|
|
398
355
|
"rowKey": props.rowKey,
|
|
399
356
|
"scroll": {
|
|
400
|
-
|
|
357
|
+
y: tableHeight.value,
|
|
358
|
+
x: "100%",
|
|
401
359
|
scrollToFirstRowOnChange: true
|
|
402
360
|
}
|
|
403
|
-
}), tableSlots)
|
|
361
|
+
}), tableSlots), pagination.value && vue.createVNode("div", {
|
|
404
362
|
"class": [paginationStyle, "d-pagination"]
|
|
405
363
|
}, [vue.createVNode(antDesignVue.Pagination, {
|
|
406
364
|
"current": paginationConfig.value.current,
|
|
@@ -423,7 +381,6 @@ const DTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
423
381
|
}
|
|
424
382
|
});
|
|
425
383
|
const useEleHeight = (node) => {
|
|
426
|
-
if (!node) return 0;
|
|
427
384
|
const list = ["margin-top", "margin-bottom", "border-top", "border-bottom", "padding-top", "padding-bottom", "height"];
|
|
428
385
|
const style = getComputedStyle(node);
|
|
429
386
|
return list.map((k) => parseInt(style.getPropertyValue(k), 10)).reduce((prev, cur) => {
|