@lemon30_npm/csit-vue3 1.0.53 → 1.0.55
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/README.dev.md +2 -2
- package/dist/csit-vue3.js +606 -579
- package/dist/index.css +1 -1
- package/dist/lib/ci-common-list/ci-common-list-query/index.css +1 -1
- package/dist/lib/ci-common-list/ci-common-list-query/index.vue.js +2 -2
- package/dist/lib/ci-common-list/ci-common-list-query/index.vue2.js +76 -60
- package/dist/lib/ci-common-list/ci-common-list-query-item/index.css +1 -1
- package/dist/lib/ci-common-list/ci-common-list-query-item/index.vue.js +2 -2
- package/dist/lib/ci-common-list/ci-common-list-query-item/index.vue2.js +20 -12
- package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.css +1 -1
- package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.vue.js +2 -2
- package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.vue2.js +19 -16
- package/dist/lib/styles/reset-elementPlus/index.css +1 -1
- package/dist/types/src/apis/common.d.ts +3 -2
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-query/index.vue.d.ts +4 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-query/type.d.ts +4 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-query-item/index.vue.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-query-item/type.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-start-end-datepicker/index.vue.d.ts +1 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-start-end-datepicker/type.d.ts +1 -0
- package/dist/types/src/config/config-env/env-n_devSimulation.d.ts +4 -0
- package/dist/types/src/config/config-env/env-n_newSimulation.d.ts +4 -0
- package/dist/types/src/config/config-env/env-n_production.d.ts +4 -0
- package/dist/types/src/config/config-env/env-n_simulation.d.ts +4 -0
- package/dist/types/src/config/config-env/env-z_devSimulation.d.ts +4 -0
- package/dist/types/src/config/config-system/projectSettings.d.ts +52 -0
- package/dist/types/src/hooks/useNavigation.d.ts +13 -0
- package/dist/types/src/layout/layout-1/index.d.ts +1 -0
- package/dist/types/src/layout/layout-2/index.d.ts +1 -0
- package/dist/types/src/layout/layout-3/index.d.ts +1 -0
- package/dist/types/src/layout/layout-4/index.d.ts +1 -0
- package/dist/types/src/layout/layout-5/index.d.ts +1 -0
- package/dist/types/src/layout/layout-all-menu-text/layout-header/drawer-menu/MenuEachItem.vue.d.ts +24 -0
- package/dist/types/src/layout/layout-all-menu-text/layout-header/user-info/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-all-menu-text/layout-left-menu/MenuItem.vue.d.ts +24 -0
- package/dist/types/src/layout/layout-all-menu-text/layout-left-menu/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-all-menu-text/pages/unfold-icon/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-all-menu-text/theme/themes.d.ts +81 -0
- package/dist/types/src/layout/layout-left-sidebar-menus/hooks/useUser.d.ts +6 -0
- package/dist/types/src/layout/layout-left-sidebar-menus/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-left-sidebar-menus/layout-header/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-left-sidebar-menus/layout-header/user-info/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-left-sidebar-menus/layout-left-menu/MenuItem.vue.d.ts +24 -0
- package/dist/types/src/layout/layout-left-sidebar-menus/layout-left-menu/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-left-sidebar-menus/model/index.d.ts +12 -0
- package/dist/types/src/layout/layout-left-sidebar-menus/pages/unfold-icon/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-left-sidebar-menus/theme/themes.d.ts +78 -0
- package/dist/types/src/layout/layout-origin-menus/hooks/useUser.d.ts +6 -0
- package/dist/types/src/layout/layout-origin-menus/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-origin-menus/layout-header/drawer-menu/MenuEachItem.vue.d.ts +24 -0
- package/dist/types/src/layout/layout-origin-menus/layout-header/drawer-menu/RecentlyVisit.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-origin-menus/layout-header/drawer-menu/SearchMenuResult.vue.d.ts +14 -0
- package/dist/types/src/layout/layout-origin-menus/layout-header/drawer-menu/hooks/useDrawerMenu.d.ts +6 -0
- package/dist/types/src/layout/layout-origin-menus/layout-header/drawer-menu/index.vue.d.ts +5 -0
- package/dist/types/src/layout/layout-origin-menus/layout-header/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-origin-menus/layout-header/user-info/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-origin-menus/layout-left-menu/MenuItem.vue.d.ts +24 -0
- package/dist/types/src/layout/layout-origin-menus/layout-left-menu/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-origin-menus/model/index.d.ts +12 -0
- package/dist/types/src/layout/layout-origin-menus/pages/unfold-icon/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-origin-menus/theme/themes.d.ts +78 -0
- package/dist/types/src/layout/layout-recursion-menus/hooks/useUser.d.ts +6 -0
- package/dist/types/src/layout/layout-recursion-menus/index.vue.d.ts +2 -0
- package/dist/types/src/layout/{layout-header → layout-recursion-menus/layout-header}/drawer-menu/MenuEachItem.vue.d.ts +1 -1
- package/dist/types/src/layout/layout-recursion-menus/layout-header/drawer-menu/RecentlyVisit.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-recursion-menus/layout-header/drawer-menu/SearchMenuResult.vue.d.ts +14 -0
- package/dist/types/src/layout/layout-recursion-menus/layout-header/drawer-menu/hooks/useDrawerMenu.d.ts +6 -0
- package/dist/types/src/layout/layout-recursion-menus/layout-header/drawer-menu/index.vue.d.ts +5 -0
- package/dist/types/src/layout/layout-recursion-menus/layout-header/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-recursion-menus/layout-header/user-info/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-recursion-menus/layout-left-menu/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-recursion-menus/model/index.d.ts +12 -0
- package/dist/types/src/layout/mock/system-response-menus/kjjg.d.ts +1 -1
- package/dist/types/src/layout/models/layout-name-map.d.ts +11 -0
- package/dist/types/src/layout/{store → stores}/menuStore.d.ts +1 -1
- package/dist/types/src/layout/stores/unfoldIconStore.d.ts +22 -0
- package/dist/types/src/layout/{store → stores}/userStore.d.ts +1 -1
- package/dist/types/src/layout/switcher/switcher-layout/index.vue.d.ts +2 -0
- package/dist/types/src/layout/switcher/switcher-theme/index.vue.d.ts +2 -0
- package/dist/types/src/layout/utils/menus.d.ts +2 -2
- package/dist/types/src/layout/utils/themesLocalStorage.d.ts +4 -0
- package/dist/types/src/layout/utils/userInfoStorage.d.ts +1 -1
- package/dist/types/src/plugins/track/config/index.d.ts +16 -16
- package/dist/types/src/plugins/track/hooks/useTrack.d.ts +9 -0
- package/dist/types/src/plugins/track/index.d.ts +1 -0
- package/dist/types/src/plugins/track/type.d.ts +2 -2
- package/dist/types/src/plugins/track/utils/referer.d.ts +12 -0
- package/dist/types/src/plugins/track/utils/trackPathResolver.d.ts +14 -0
- package/dist/types/src/router/middlewares/router-afterEach-middleware-runner.d.ts +5 -5
- package/dist/types/src/router/middlewares/router-middleware/pageProgressMiddleware-complex.d.ts +48 -0
- package/dist/types/src/router/middlewares/router-middleware/pageProgressMiddleware-simple.d.ts +9 -0
- package/dist/types/src/router/middlewares/router-middleware/router-afterEach/recordNavigationMiddleware.d.ts +2 -0
- package/dist/types/src/router/middlewares/router-middleware/router-afterEach/trackPageMiddleware.d.ts +2 -0
- package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/loggerMiddleware.d.ts +3 -1
- package/dist/types/src/router/routes.d.ts +0 -50
- package/dist/types/src/router/utils/use-layout/index.d.ts +8 -0
- package/dist/types/src/router/utils/use-layout/layouts-map.d.ts +5 -0
- package/dist/types/src/stores/navigationStore.d.ts +24 -0
- package/dist/types/src/stores/routerStore.d.ts +6 -0
- package/dist/types/src/stores/themeStore.d.ts +53 -0
- package/dist/types/src/utils/logger.d.ts +14 -0
- package/dist/types/src/views/home/routes/index.d.ts +2 -0
- package/dist/types/src/views-common/401/index.vue.d.ts +2 -0
- package/dist/types/src/views-common/404/index.vue.d.ts +2 -0
- package/dist/types/src/views-demo/usedemo-el-cascader/index.vue.d.ts +2 -0
- package/dist/types/src/views-demo/usedemo-el-cascader/routes/index.d.ts +9 -0
- package/dist/types/src/views-demo/usedemo-el-table/index.vue.d.ts +2 -0
- package/dist/types/src/views-demo/usedemo-el-table/routes/index.d.ts +9 -0
- package/package.json +9 -1
- package/dist/types/src/axios/middlewares/request-middlewares/dafeiyiqi-disposeGetUrlParams.d.ts +0 -7
- package/dist/types/src/config/system-config/projectSettings.d.ts +0 -9
- package/dist/types/src/router/middlewares/router-middleware/router-afterEach/trackLeavePageMiddleware.d.ts +0 -2
- package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/trackPageMiddleware.d.ts +0 -2
- /package/dist/types/src/config/{env-config → config-env}/env-development.d.ts +0 -0
- /package/dist/types/src/config/{env-config → config-env}/env-z_newSimulation.d.ts +0 -0
- /package/dist/types/src/config/{env-config → config-env}/env-z_production.d.ts +0 -0
- /package/dist/types/src/config/{env-config → config-env}/env-z_simulation.d.ts +0 -0
- /package/dist/types/src/config/{env-config → config-env}/index.d.ts +0 -0
- /package/dist/types/src/config/{env-config → config-env}/type.d.ts +0 -0
- /package/dist/types/src/layout/{api → apis}/user.d.ts +0 -0
- /package/dist/types/src/layout/{index.vue.d.ts → components/LayoutError.vue.d.ts} +0 -0
- /package/dist/types/src/layout/{layout-header/index.vue.d.ts → components/LayoutLoading.vue.d.ts} +0 -0
- /package/dist/types/src/layout/{layout-header/drawer-menu/RecentlyVisit.vue.d.ts → components/LayoutWrapper.vue.d.ts} +0 -0
- /package/dist/types/src/layout/{hooks → layout-all-menu-text/hooks}/useUser.d.ts +0 -0
- /package/dist/types/src/layout/{layout-header/user-info → layout-all-menu-text}/index.vue.d.ts +0 -0
- /package/dist/types/src/layout/{layout-left-menu/index.vue.d.ts → layout-all-menu-text/layout-header/drawer-menu/RecentlyVisit.vue.d.ts} +0 -0
- /package/dist/types/src/layout/{layout-header → layout-all-menu-text/layout-header}/drawer-menu/SearchMenuResult.vue.d.ts +0 -0
- /package/dist/types/src/layout/{layout-header → layout-all-menu-text/layout-header}/drawer-menu/hooks/useDrawerMenu.d.ts +0 -0
- /package/dist/types/src/layout/{layout-header → layout-all-menu-text/layout-header}/drawer-menu/index.vue.d.ts +0 -0
- /package/dist/types/src/{views/401 → layout/layout-all-menu-text/layout-header/forward-back-btn}/index.vue.d.ts +0 -0
- /package/dist/types/src/{views/404 → layout/layout-all-menu-text/layout-header}/index.vue.d.ts +0 -0
- /package/dist/types/src/layout/{model → layout-all-menu-text/model}/index.d.ts +0 -0
- /package/dist/types/src/layout/{layout-left-menu → layout-recursion-menus/layout-left-menu}/MenuItem.vue.d.ts +0 -0
- /package/dist/types/src/layout/{layout-header/drawer-menu → types}/type.d.ts +0 -0
- /package/dist/types/src/{views → views-common}/401/routes/index.d.ts +0 -0
- /package/dist/types/src/{views → views-common}/404/routes/index.d.ts +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
searchValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
searchValue: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
searchValue: string;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 基础结构布局头部左侧悬浮抽屉菜单组件
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MenuListItem } from '../../types/type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
menuList: {
|
|
4
|
+
type: () => MenuListItem[];
|
|
5
|
+
default: () => any[];
|
|
6
|
+
};
|
|
7
|
+
level: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
+
menuList: {
|
|
13
|
+
type: () => MenuListItem[];
|
|
14
|
+
default: () => any[];
|
|
15
|
+
};
|
|
16
|
+
level: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
menuList: MenuListItem[];
|
|
22
|
+
level: number;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 布局头部右侧用户信息处:可点击的按钮数据
|
|
3
|
+
* iconHover: 日后提到需求如果鼠标hover到按钮上 图标要变化时: 请更改此属性值即可,且找到相应的SVG代码放到assets目录里,svg名字要和iconHover值配置的一致
|
|
4
|
+
*/
|
|
5
|
+
export declare const userInfoClickBtn: {
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
iconHover: string;
|
|
10
|
+
color: string;
|
|
11
|
+
colorHover: string;
|
|
12
|
+
}[];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const THEMES: {
|
|
2
|
+
DanQingLan: {
|
|
3
|
+
themeName: string;
|
|
4
|
+
themeVars: {
|
|
5
|
+
'csit-layout-origin-menus-header-bg': string;
|
|
6
|
+
'csit-layout-origin-menus-text-color': string;
|
|
7
|
+
'csit-layout-origin-menus-hover-menu-bg-angle': string;
|
|
8
|
+
'csit-layout-origin-menus-hover-menu-bg-start': string;
|
|
9
|
+
'csit-layout-origin-menus-hover-menu-bg-end': string;
|
|
10
|
+
'csit-layout-origin-menus-user-info-text-color': string;
|
|
11
|
+
'csit-layout-origin-menus-left-sidebar-bg': string;
|
|
12
|
+
'csit-layout-origin-menus-left-sidebar-text-color': string;
|
|
13
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-bg': string;
|
|
14
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-text-color': string;
|
|
15
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-border-color': string;
|
|
16
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-hover-bg': string;
|
|
17
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-hover-text-color': string;
|
|
18
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-border-hover-color': string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 是否是暗色主题
|
|
22
|
+
* - 1: 暗色主题
|
|
23
|
+
* - 0: 亮色主题
|
|
24
|
+
*/
|
|
25
|
+
'is-dark': string;
|
|
26
|
+
};
|
|
27
|
+
ShenChenLan: {
|
|
28
|
+
themeName: string;
|
|
29
|
+
themeVars: {
|
|
30
|
+
'csit-layout-origin-menus-header-bg': string;
|
|
31
|
+
'csit-layout-origin-menus-text-color': string;
|
|
32
|
+
'csit-layout-origin-menus-hover-menu-bg-angle': string;
|
|
33
|
+
'csit-layout-origin-menus-hover-menu-bg-start': string;
|
|
34
|
+
'csit-layout-origin-menus-hover-menu-bg-end': string;
|
|
35
|
+
'csit-layout-origin-menus-user-info-text-color': string;
|
|
36
|
+
'csit-layout-origin-menus-left-sidebar-bg': string;
|
|
37
|
+
'csit-layout-origin-menus-left-sidebar-text-color': string;
|
|
38
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-bg': string;
|
|
39
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-text-color': string;
|
|
40
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-border-color': string;
|
|
41
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-hover-bg': string;
|
|
42
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-hover-text-color': string;
|
|
43
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-border-hover-color': string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 是否是暗色主题
|
|
47
|
+
* - 1: 暗色主题
|
|
48
|
+
* - 0: 亮色主题
|
|
49
|
+
*/
|
|
50
|
+
'is-dark': string;
|
|
51
|
+
};
|
|
52
|
+
WenZhongLan: {
|
|
53
|
+
themeName: string;
|
|
54
|
+
themeVars: {
|
|
55
|
+
'csit-layout-origin-menus-header-bg': string;
|
|
56
|
+
'csit-layout-origin-menus-text-color': string;
|
|
57
|
+
'csit-layout-origin-menus-hover-menu-bg-angle': string;
|
|
58
|
+
'csit-layout-origin-menus-hover-menu-bg-start': string;
|
|
59
|
+
'csit-layout-origin-menus-hover-menu-bg-end': string;
|
|
60
|
+
'csit-layout-origin-menus-user-info-text-color': string;
|
|
61
|
+
'csit-layout-origin-menus-left-sidebar-bg': string;
|
|
62
|
+
'csit-layout-origin-menus-left-sidebar-text-color': string;
|
|
63
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-bg': string;
|
|
64
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-text-color': string;
|
|
65
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-border-color': string;
|
|
66
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-hover-bg': string;
|
|
67
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-hover-text-color': string;
|
|
68
|
+
'csit-layout-origin-menus-left-sidebar-unfoldIcon-button-border-hover-color': string;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* 是否是暗色主题
|
|
72
|
+
* - 1: 暗色主题
|
|
73
|
+
* - 0: 亮色主题
|
|
74
|
+
*/
|
|
75
|
+
'is-dark': string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare const defaulTheme = "DanQingLan";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
searchValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
searchValue: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
searchValue: string;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 基础结构布局头部左侧悬浮抽屉菜单组件
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 布局头部右侧用户信息处:可点击的按钮数据
|
|
3
|
+
* iconHover: 日后提到需求如果鼠标hover到按钮上 图标要变化时: 请更改此属性值即可,且找到相应的SVG代码放到assets目录里,svg名字要和iconHover值配置的一致
|
|
4
|
+
*/
|
|
5
|
+
export declare const userInfoClickBtn: {
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
iconHover: string;
|
|
10
|
+
color: string;
|
|
11
|
+
colorHover: string;
|
|
12
|
+
}[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 展开收起icon相关的 Store
|
|
3
|
+
* 主要用于保存侧边栏(菜单栏)的展开/收起状态
|
|
4
|
+
* state 用于存放数据
|
|
5
|
+
* actions 用于定义修改 state 的方法
|
|
6
|
+
*/
|
|
7
|
+
export declare const useUnfoldIconStore: import('pinia').StoreDefinition<"unfoldIconStore", Pick<{
|
|
8
|
+
isCollapsed: import('vue').Ref<boolean, boolean>;
|
|
9
|
+
toggleCollapse: () => void;
|
|
10
|
+
expand: () => void;
|
|
11
|
+
collapse: () => void;
|
|
12
|
+
}, "isCollapsed">, Pick<{
|
|
13
|
+
isCollapsed: import('vue').Ref<boolean, boolean>;
|
|
14
|
+
toggleCollapse: () => void;
|
|
15
|
+
expand: () => void;
|
|
16
|
+
collapse: () => void;
|
|
17
|
+
}, never>, Pick<{
|
|
18
|
+
isCollapsed: import('vue').Ref<boolean, boolean>;
|
|
19
|
+
toggleCollapse: () => void;
|
|
20
|
+
expand: () => void;
|
|
21
|
+
collapse: () => void;
|
|
22
|
+
}, "toggleCollapse" | "expand" | "collapse">>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuListItem } from '../
|
|
1
|
+
import { MenuListItem } from '../types/type';
|
|
2
2
|
export declare const useUserStore: import('pinia').StoreDefinition<"userStore", Pick<{
|
|
3
3
|
userInfo: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
4
4
|
userMenu: import('vue').Ref<{
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuListItem } from '../
|
|
1
|
+
import { MenuListItem } from '../types/type';
|
|
2
2
|
/**
|
|
3
3
|
* 根据menuParentId找到此menuParentId对应的父级数据
|
|
4
4
|
* @param list 最外层传入的数组
|
|
@@ -17,7 +17,7 @@ export declare function findIncludeSearchParent(list: MenuListItem[], searchValu
|
|
|
17
17
|
* @param array 要传入的一维数组
|
|
18
18
|
* @param menuParentId 父节点的id,注意付Id字段要为menuParentId
|
|
19
19
|
*/
|
|
20
|
-
export declare function lateralMenusToTree(array: MenuListItem[], menuParentId?: string):
|
|
20
|
+
export declare function lateralMenusToTree(array: MenuListItem[], menuParentId?: string): MenuListItem[];
|
|
21
21
|
/**
|
|
22
22
|
* 深度遍历找到第一个有 `menuUrl` 的菜单项
|
|
23
23
|
* @param menus 菜单列表
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const setLocalStorageLayoutName: (LayoutName: string) => void;
|
|
2
|
+
export declare const setLocalStorageThemeName: (themeName: string) => void;
|
|
3
|
+
export declare const getLocalStorageLayoutName: () => string;
|
|
4
|
+
export declare const getLocalStorageThemeName: () => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuListItem } from '../
|
|
1
|
+
import { MenuListItem } from '../types/type';
|
|
2
2
|
export declare const setStorageMenusOriginToTree: (menuList: MenuListItem[]) => void;
|
|
3
3
|
export declare const setStorageMenusOrigin: (menuList: MenuListItem) => void;
|
|
4
4
|
export declare const setStorageUserInfo: (userinfo: any) => void;
|
|
@@ -14,7 +14,22 @@ export declare const trackSettings: {
|
|
|
14
14
|
track_isOpenDirective: boolean;
|
|
15
15
|
track_isOpenCustomInvoke: boolean;
|
|
16
16
|
track_router: any;
|
|
17
|
-
getBaseParams:
|
|
17
|
+
getBaseParams: () => {
|
|
18
|
+
account: any;
|
|
19
|
+
userId: any;
|
|
20
|
+
userName: any;
|
|
21
|
+
deptId: any;
|
|
22
|
+
deptName: any;
|
|
23
|
+
host: string;
|
|
24
|
+
userAgent: string;
|
|
25
|
+
systemName: string;
|
|
26
|
+
systemCode: string;
|
|
27
|
+
pathFrom: any;
|
|
28
|
+
path: string;
|
|
29
|
+
url: string;
|
|
30
|
+
eventTime: string;
|
|
31
|
+
referer: any;
|
|
32
|
+
};
|
|
18
33
|
};
|
|
19
34
|
export declare function setupTrackRouter(router: any): void;
|
|
20
35
|
/**
|
|
@@ -30,18 +45,3 @@ export declare function setupTrackRouter(router: any): void;
|
|
|
30
45
|
* !!! 3. 请勿在此处添加业务参数 !!! 业务参数请在调用埋点接口时传入
|
|
31
46
|
*
|
|
32
47
|
*/
|
|
33
|
-
export declare function getBaseParams(): {
|
|
34
|
-
host: string;
|
|
35
|
-
userAgent: string;
|
|
36
|
-
systemName: string;
|
|
37
|
-
systemCode: string;
|
|
38
|
-
account: any;
|
|
39
|
-
userId: any;
|
|
40
|
-
userName: any;
|
|
41
|
-
deptId: any;
|
|
42
|
-
deptName: any;
|
|
43
|
-
pathFrom: any;
|
|
44
|
-
path: string;
|
|
45
|
-
url: string;
|
|
46
|
-
eventTime: string;
|
|
47
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface ITrackAPIs {
|
|
2
2
|
track_page_entry: (payload?: Record<string, any>) => Promise<void>;
|
|
3
3
|
track_page_leave: () => Promise<void>;
|
|
4
4
|
track_custom_invoke: (payload?: Record<string, any>) => Promise<void>;
|
|
5
|
-
track_v_track
|
|
5
|
+
track_v_track?: (payload?: Record<string, any>) => Promise<void>;
|
|
6
6
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RouteLocationNormalized } from 'vue-router';
|
|
2
|
+
/**
|
|
3
|
+
* 生成不包含 query 的 referer 字符串
|
|
4
|
+
* - 包含 origin (window.location.origin)
|
|
5
|
+
* - 包含 Vite 的 base (import.meta.env.BASE_URL)
|
|
6
|
+
* - 包含 hash 标记(如果当前页面 URL 是 hash 模式)
|
|
7
|
+
*
|
|
8
|
+
* 示例输出:
|
|
9
|
+
* - hash 模式 : http://host/base/#/path/sub
|
|
10
|
+
* - history 模式: http://host/base/path/sub
|
|
11
|
+
*/
|
|
12
|
+
export declare function getBaseParams_referer(from: RouteLocationNormalized): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RouteLocationNormalized } from 'vue-router';
|
|
2
|
+
/**
|
|
3
|
+
* 解析单个路由对象的 track_path(兼容字符串和字符串数组两种格式)
|
|
4
|
+
*
|
|
5
|
+
* 规则:
|
|
6
|
+
* - 如果 meta.track_path 是字符串 => 返回该字符串
|
|
7
|
+
* - 如果 meta.track_path 是字符串数组 => 尝试从 route.query.trackPathIndex(或若干变体)读取索引并取数组项
|
|
8
|
+
* - 如果索引缺失或无效 => 默认取索引 0,并做边界保护
|
|
9
|
+
* - 如果 meta.track_path 不存在 => 返回 null
|
|
10
|
+
*
|
|
11
|
+
* @param route - 要解析的路由对象(可以传 to 或 from)
|
|
12
|
+
* @returns 解析后的 track_path 字符串,或者 null(表示未配置)
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveTrackPath(route: RouteLocationNormalized): string | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RouteLocationNormalized } from 'vue-router';
|
|
2
|
-
type Middleware = (to: RouteLocationNormalized, from: RouteLocationNormalized) => void
|
|
2
|
+
type Middleware = (to: RouteLocationNormalized, from: RouteLocationNormalized) => void | Promise<void>;
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @param middlewares
|
|
6
|
-
* @returns Vue Router
|
|
4
|
+
* 创建 afterEach 中间件执行器
|
|
5
|
+
* @param middlewares 中间件函数数组
|
|
6
|
+
* @returns Vue Router afterEach 的回调函数
|
|
7
7
|
*/
|
|
8
|
-
export declare function routerAfterEachCreatedMiddlewareRunner(middlewares: Middleware[]): (to: RouteLocationNormalized, from: RouteLocationNormalized) => void
|
|
8
|
+
export declare function routerAfterEachCreatedMiddlewareRunner(middlewares: Middleware[]): (to: RouteLocationNormalized, from: RouteLocationNormalized) => Promise<void>;
|
|
9
9
|
export {};
|
package/dist/types/src/router/middlewares/router-middleware/pageProgressMiddleware-complex.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { NavigationGuardNext, RouteLocationNormalized } from 'vue-router';
|
|
2
|
+
/**
|
|
3
|
+
* 进度条可配置项的类型定义
|
|
4
|
+
*/
|
|
5
|
+
export type PageProgressOptions = {
|
|
6
|
+
color?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
showSpinner?: boolean;
|
|
9
|
+
speed?: number;
|
|
10
|
+
trickleSpeed?: number;
|
|
11
|
+
minimum?: number;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* 前置中间件:路由开始时启动进度条
|
|
15
|
+
* 该中间件与后置中间件成对使用(后置中间件负责 done())
|
|
16
|
+
* - 如果上一次进度条仍未完成,先把它清理掉(reset),然后从头启动新的进度条;
|
|
17
|
+
* - 否则直接启动。
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* 前置守卫中间件:进入路由时启动进度条
|
|
21
|
+
* @param to 即将进入的路由对象
|
|
22
|
+
* @param from 当前离开的路由对象
|
|
23
|
+
* @param next 控制导航是否继续的函数
|
|
24
|
+
*/
|
|
25
|
+
export declare function pageProgressStartMiddleware(to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext): void;
|
|
26
|
+
/**
|
|
27
|
+
* 后置中间件:路由完成时结束进度条
|
|
28
|
+
* 推荐把该中间件放在你的后置中间件数组的 最后 一项,这样能保证在所有中间件完成后才 done()
|
|
29
|
+
* - 结束当前进度条并把激活标志清理(done() 会先完成动画然后淡出)
|
|
30
|
+
*/
|
|
31
|
+
export declare function pageProgressDoneMiddleware(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* 可选:如果你想在运行时完全移除进度条并清理样式(很少用到)
|
|
34
|
+
* 完全销毁注入的样式并重置初始化状态(如果需要在运行时关闭进度条功能可以调用)
|
|
35
|
+
*/
|
|
36
|
+
export declare function destroyPageProgress(): void;
|
|
37
|
+
/**
|
|
38
|
+
* 初始化进度条(注入样式 + 配置 NProgress)
|
|
39
|
+
*
|
|
40
|
+
* 说明:
|
|
41
|
+
* - 该函数可重复调用,但只有第一次会实际创建 DOM 样式;后续调用会合并配置并更新样式。
|
|
42
|
+
* - 推荐在 router 启动前(例如 main.ts 或 router/index.ts 在注册中间件前)调用 initPageProgress。
|
|
43
|
+
*/
|
|
44
|
+
export declare function initPageProgress(options?: PageProgressOptions): void;
|
|
45
|
+
/**
|
|
46
|
+
* 根据配置先初始化进度条(注:只在启用时执行)
|
|
47
|
+
* 把项目配置传给 init,以覆盖颜色/高度等
|
|
48
|
+
*/
|
package/dist/types/src/router/middlewares/router-middleware/pageProgressMiddleware-simple.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NavigationGuardNext, RouteLocationNormalized } from 'vue-router';
|
|
2
|
+
/**
|
|
3
|
+
* 前置守卫中间件:进入路由时启动进度条
|
|
4
|
+
*/
|
|
5
|
+
export declare function pageProgressStartMiddleware(to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext): void;
|
|
6
|
+
/**
|
|
7
|
+
* 后置守卫中间件:路由完成后结束进度条
|
|
8
|
+
*/
|
|
9
|
+
export declare function pageProgressDoneMiddleware(): void;
|
package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/loggerMiddleware.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { RouteLocationNormalized, NavigationGuardNext } from 'vue-router';
|
|
2
|
-
export declare function loggerMiddleware(to: RouteLocationNormalized,
|
|
2
|
+
export declare function loggerMiddleware(to: RouteLocationNormalized, // 即将进入的目标路由对象
|
|
3
|
+
from: RouteLocationNormalized, // 当前导航正要离开的路由对象
|
|
4
|
+
next: NavigationGuardNext): void;
|
|
@@ -1,52 +1,2 @@
|
|
|
1
1
|
import { RouteRecordRaw } from 'vue-router';
|
|
2
|
-
/**
|
|
3
|
-
* 场景描述:用户在一个分页列表中查看数据,点击进入详情页后再返回时,列表的滚动位置和查询条件需要保留。
|
|
4
|
-
* 同时,当切换两个菜单的列表页面时,彼此不缓存
|
|
5
|
-
*
|
|
6
|
-
* !!!路由规则重要 样例如下 为了实现keepAlive配置
|
|
7
|
-
*
|
|
8
|
-
* {
|
|
9
|
-
* path: 'involveNoMonitorWarn/external/fundPlatform',
|
|
10
|
-
* component: () => import('../FundPlatformList.vue'),
|
|
11
|
-
* // 规则: 路由组件名称唯一 且 需要和引用的component里面的name名字一致; 反之亦然: 路由组件内部必须有name,且和此处一致
|
|
12
|
-
* name: 'FundPlatformList',
|
|
13
|
-
* meta: {
|
|
14
|
-
* // 标记是否需要缓存 ** 字段不必填
|
|
15
|
-
* keepAlive: true,
|
|
16
|
-
* // 只有目标页面是 keepAliveNames 里面的数据时, 当前页面才被缓存 ** 字段不必填
|
|
17
|
-
* keepAliveNames: ['FundPlatformDetail'],
|
|
18
|
-
* }
|
|
19
|
-
* }
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* 所有的详情页面路由: 需要是列表页面的子路由规则模式 即使我们目前都是配置到layout的子级路由,详情页面的路由是全部自定义的path
|
|
24
|
-
* 但是某个列表页面的详情页面路由 规则要符合是其列表页面的子路由
|
|
25
|
-
* 示例:
|
|
26
|
-
* 入口页面: path: 'statistics/submit/statistics'
|
|
27
|
-
* 入口页面其详情页面: path: 'statistics/submit/statistics/submitDetail'
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* 说明:
|
|
31
|
-
* ①: 请在当前路由配置中设置meta.track_path用于埋点path参数入参, meta.track_path格式为: 一级菜单名称,二级菜单名称,三级菜单名称,xxxx; 每一个路由配置对象都要添加, 否则调用按钮埋点请求时、v-track指令不传参时,只使用按钮文本作为埋点path参数入参;
|
|
32
|
-
* ②: 请在当前路由配置中设置meta.track_path用于埋点path参数入参, meta.track_path格式为: 一级菜单名称,二级菜单名称,三级菜单名称,xxxx; 每一个路由配置对象都要添加, 否则自定义调用按钮埋点请求时,path参数入参为空: path: '';
|
|
33
|
-
* ③: 请在当前路由配置中设置meta.track_path用于埋点path参数入参, meta.track_path格式为: 一级菜单名称,二级菜单名称,三级菜单名称,xxxx; 每一个路由配置对象都要添加, 否则调用进入页面埋点请求时埋点path参数入参为空: path: '';
|
|
34
|
-
*
|
|
35
|
-
* 示例:
|
|
36
|
-
// 配资平台列表
|
|
37
|
-
{
|
|
38
|
-
path: 'involveNoMonitorWarn/external/fundPlatform',
|
|
39
|
-
component: () => import('../FundPlatformList.vue'),
|
|
40
|
-
meta: {
|
|
41
|
-
track_path: '涉非监测预警,场外配资监测,配资平台列表',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
// 配资账户列表
|
|
45
|
-
{
|
|
46
|
-
path: 'involveNoMonitorWarn/external/fundAccount',
|
|
47
|
-
component: () => import('../FundAccountList.vue'),
|
|
48
|
-
meta: { track_path: '涉非监测预警,场外配资监测,配资账户列表' },
|
|
49
|
-
},
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
2
|
export declare const routes: Array<RouteRecordRaw>;
|