@lemon30_npm/csit-vue3 0.0.0
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.md +0 -0
- package/dist/csit-vue3.js +5935 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.css +1 -0
- package/dist/types/src/App.vue.d.ts +2 -0
- package/dist/types/src/apis/common.d.ts +2 -0
- package/dist/types/src/axios/index.d.ts +3 -0
- package/dist/types/src/axios/middlewares/middleware-executor.d.ts +7 -0
- package/dist/types/src/axios/middlewares/request-middlewares/addContentType.d.ts +6 -0
- package/dist/types/src/axios/middlewares/request-middlewares/addToken.d.ts +6 -0
- package/dist/types/src/axios/middlewares/request-middlewares/addXRequestedWith.d.ts +5 -0
- package/dist/types/src/axios/middlewares/request-middlewares/dafeiyiqi-disposeGetUrlParams.d.ts +7 -0
- package/dist/types/src/axios/middlewares/request-middlewares/logRequest.d.ts +5 -0
- package/dist/types/src/axios/middlewares/request-middlewares/type.d.ts +4 -0
- package/dist/types/src/axios/middlewares/response-middlewares/formatResponseData.d.ts +7 -0
- package/dist/types/src/axios/middlewares/response-middlewares/handle-error/errorMessages.d.ts +5 -0
- package/dist/types/src/axios/middlewares/response-middlewares/handle-error/handleError.d.ts +7 -0
- package/dist/types/src/axios/middlewares/response-middlewares/handle-success/handleFileStream.d.ts +8 -0
- package/dist/types/src/axios/middlewares/response-middlewares/handle-success/handleSuccess.d.ts +6 -0
- package/dist/types/src/axios/middlewares/response-middlewares/handle-success/handleTokenInvalidToLogin.d.ts +6 -0
- package/dist/types/src/axios/middlewares/response-middlewares/handle-success/successMessages.d.ts +9 -0
- package/dist/types/src/axios/middlewares/response-middlewares/handleRedirect.d.ts +12 -0
- package/dist/types/src/axios/middlewares/response-middlewares/logResponse.d.ts +7 -0
- package/dist/types/src/axios/middlewares/response-middlewares/type.d.ts +8 -0
- package/dist/types/src/components/components-global/SvgIcon/index.vue.d.ts +43 -0
- package/dist/types/src/components/components-global/index.d.ts +5 -0
- package/dist/types/src/components/components-project/ci-blue-line-title/index.vue.d.ts +14 -0
- package/dist/types/src/components/components-project/ci-blue-line-title/type.d.ts +4 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-pagination/type.d.ts +5 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-start-end-datepicker/type.d.ts +7 -0
- package/dist/types/src/components/components-project/ci-dictionary-select/config.d.ts +14 -0
- package/dist/types/src/components/components-project/ci-dictionary-select/model/index.d.ts +8 -0
- package/dist/types/src/components/components-project/ci-dictionary-select/type.d.ts +16 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-ChinaMap/model/ChinaGeoJson.d.ts +33 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-ChinaMap/model/index.d.ts +16 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-ChinaMap/model/options.d.ts +110 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-ChinaMap/type.d.ts +18 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-bar/model/option-illegality-active-type-distribution.d.ts +63 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-bar/model/options.d.ts +17 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-bar/type.d.ts +27 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-pie/model/option-data-distribution.d.ts +77 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-pie/model/options.d.ts +30 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-pie/type.d.ts +26 -0
- package/dist/types/src/components/components-project/ci-element-plus/ci-el-date-picker-daterange/model/index.d.ts +4 -0
- package/dist/types/src/components/components-project/ci-element-plus/ci-el-date-picker-daterange/type.d.ts +12 -0
- package/dist/types/src/components/components-project/ci-no-data-status/type.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-page-header/type.d.ts +7 -0
- package/dist/types/src/components/components-project/ci-time-line-list/model/index.d.ts +5 -0
- package/dist/types/src/components/components-project/ci-time-line-list/type.d.ts +8 -0
- package/dist/types/src/components/components-project/ci-upload/computed/index.d.ts +8 -0
- package/dist/types/src/components/components-project/ci-upload/expose/index.d.ts +17 -0
- package/dist/types/src/components/components-project/ci-upload/hooks/useUpload.d.ts +8 -0
- package/dist/types/src/components/components-project/ci-upload/hooks/useUploadRetry.d.ts +13 -0
- package/dist/types/src/components/components-project/ci-upload/index.vue.d.ts +56 -0
- package/dist/types/src/components/components-project/ci-upload/props/index.d.ts +27 -0
- package/dist/types/src/components/components-project/ci-upload/type.d.ts +39 -0
- package/dist/types/src/components/components-project/ci-upload/utils/file-icon-maps.d.ts +1 -0
- package/dist/types/src/components/components-project/ci-upload/utils/file.d.ts +8 -0
- package/dist/types/src/components/index.d.ts +5 -0
- package/dist/types/src/config/env-config/env-development.d.ts +9 -0
- package/dist/types/src/config/env-config/env-z_newSimulation.d.ts +4 -0
- package/dist/types/src/config/env-config/env-z_production.d.ts +4 -0
- package/dist/types/src/config/env-config/env-z_simulation.d.ts +4 -0
- package/dist/types/src/config/env-config/index.d.ts +3 -0
- package/dist/types/src/config/env-config/type.d.ts +5 -0
- package/dist/types/src/config/system-config/projectSettings.d.ts +9 -0
- package/dist/types/src/layout/api/user.d.ts +5 -0
- package/dist/types/src/layout/hooks/useUser.d.ts +6 -0
- package/dist/types/src/layout/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-header/drawer-menu/MenuEachItem.vue.d.ts +15 -0
- package/dist/types/src/layout/layout-header/drawer-menu/RecentlyVisit.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-header/drawer-menu/SearchMenuResult.vue.d.ts +14 -0
- package/dist/types/src/layout/layout-header/drawer-menu/hooks/useDrawerMenu.d.ts +6 -0
- package/dist/types/src/layout/layout-header/drawer-menu/index.vue.d.ts +5 -0
- package/dist/types/src/layout/layout-header/drawer-menu/type.d.ts +20 -0
- package/dist/types/src/layout/layout-header/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-header/user-info/index.vue.d.ts +2 -0
- package/dist/types/src/layout/layout-left-menu/MenuItem.vue.d.ts +6 -0
- package/dist/types/src/layout/layout-left-menu/index.vue.d.ts +2 -0
- package/dist/types/src/layout/mock/local-dev-menus-tree/index.d.ts +51 -0
- package/dist/types/src/layout/mock/system-response-menus/dafei.d.ts +32 -0
- package/dist/types/src/layout/mock/system-response-menus/kjjg.d.ts +30 -0
- package/dist/types/src/layout/model/index.d.ts +12 -0
- package/dist/types/src/layout/store/menuStore.d.ts +167 -0
- package/dist/types/src/layout/store/userStore.d.ts +89 -0
- package/dist/types/src/layout/utils/menus.d.ts +33 -0
- package/dist/types/src/layout/utils/userInfoStorage.d.ts +7 -0
- package/dist/types/src/main.d.ts +0 -0
- package/dist/types/src/plugins/track/api/index.d.ts +7 -0
- package/dist/types/src/plugins/track/config/index.d.ts +47 -0
- package/dist/types/src/plugins/track/directive/index.d.ts +2 -0
- package/dist/types/src/plugins/track/index.d.ts +5 -0
- package/dist/types/src/plugins/track/type.d.ts +6 -0
- package/dist/types/src/plugins/track/utils/index.d.ts +21 -0
- package/dist/types/src/plugins/track/utils/trackRequest.d.ts +38 -0
- package/dist/types/src/router/index.d.ts +5 -0
- package/dist/types/src/router/middlewares/router-afterEach-middleware-runner.d.ts +9 -0
- package/dist/types/src/router/middlewares/router-beforeEach-middleware-runner.d.ts +9 -0
- package/dist/types/src/router/middlewares/router-middleware/errorHandlingMiddleware.d.ts +2 -0
- package/dist/types/src/router/middlewares/router-middleware/router-afterEach/trackLeavePageMiddleware.d.ts +2 -0
- package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/authMiddleware.d.ts +2 -0
- package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/dataPreloadMiddleware.d.ts +2 -0
- package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/keepAliveMiddleware.d.ts +2 -0
- package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/loggerMiddleware.d.ts +2 -0
- package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/trackPageMiddleware.d.ts +2 -0
- package/dist/types/src/router/middlewares/router-middleware/router-beforeEach/userAddressBarInputUrlAndClickDrawerMenuMiddleware.d.ts +6 -0
- package/dist/types/src/router/router-guards.d.ts +6 -0
- package/dist/types/src/router/routes-permission/whiteList.d.ts +6 -0
- package/dist/types/src/router/routes.d.ts +52 -0
- package/dist/types/src/stores/keepAliveStore.d.ts +19 -0
- package/dist/types/src/utils/echarts-UI-colors/index.d.ts +12 -0
- package/dist/types/src/utils/file.d.ts +18 -0
- package/dist/types/src/utils/system/useSystem.d.ts +3 -0
- package/dist/types/src/views/401/index.vue.d.ts +2 -0
- package/dist/types/src/views/401/routes/index.d.ts +14 -0
- package/dist/types/src/views/404/index.vue.d.ts +2 -0
- package/dist/types/src/views/404/routes/index.d.ts +14 -0
- package/dist/types/src/views/home/index.vue.d.ts +2 -0
- package/dist/types/src/views/home/model/quotes.d.ts +4 -0
- package/dist/types/src/views/home/routes/index.d.ts +13 -0
- package/dist/types/src/views-demo/routes/index.d.ts +8 -0
- package/dist/types/src/views-demo/usedemo-ci-common-component/index.vue.d.ts +2 -0
- package/dist/types/src/views-demo/usedemo-ci-common-component/routes/index.d.ts +13 -0
- package/dist/types/src/views-demo/usedemo-ci-common-list/api/index.d.ts +2 -0
- package/dist/types/src/views-demo/usedemo-ci-common-list/index.vue.d.ts +2 -0
- package/dist/types/src/views-demo/usedemo-ci-common-list/mock/index.d.ts +81 -0
- package/dist/types/src/views-demo/usedemo-ci-common-list/model/index.d.ts +59 -0
- package/dist/types/src/views-demo/usedemo-ci-common-list/routes/index.d.ts +13 -0
- package/dist/types/src/views-demo/usedemo-ci-common-list-start-end-datepicker/index.vue.d.ts +2 -0
- package/dist/types/src/views-demo/usedemo-ci-common-list-start-end-datepicker/routes/index.d.ts +13 -0
- package/dist/types/src/views-demo/usedemo-ci-page-header/index.vue.d.ts +2 -0
- package/dist/types/src/views-demo/usedemo-ci-page-header/routes/index.d.ts +13 -0
- package/dist/types/src/views-demo/usedemo-ci-upload/index.vue.d.ts +4 -0
- package/dist/types/src/views-demo/usedemo-ci-upload/routes/index.d.ts +13 -0
- package/package.json +90 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 当配置项很大很多时, 可以分模块提取出来 易维护
|
|
3
|
+
*/
|
|
4
|
+
export declare const mockResponseData_threeBar: {
|
|
5
|
+
dataDate: string;
|
|
6
|
+
insertDataCount: number;
|
|
7
|
+
resultDataCount: number;
|
|
8
|
+
feedDataCount: number;
|
|
9
|
+
}[];
|
|
10
|
+
declare const _default: {
|
|
11
|
+
tooltip: {
|
|
12
|
+
trigger: string;
|
|
13
|
+
axisPointer: {
|
|
14
|
+
type: string;
|
|
15
|
+
shadowStyle: {
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
legend: {
|
|
21
|
+
icon: string;
|
|
22
|
+
itemWidth: number;
|
|
23
|
+
itemHeight: number;
|
|
24
|
+
itemGap: number;
|
|
25
|
+
data: string[];
|
|
26
|
+
};
|
|
27
|
+
xAxis: {
|
|
28
|
+
type: string;
|
|
29
|
+
data: string[];
|
|
30
|
+
};
|
|
31
|
+
yAxis: {
|
|
32
|
+
type: string;
|
|
33
|
+
name: string;
|
|
34
|
+
nameTextStyle: {
|
|
35
|
+
fontSize: number;
|
|
36
|
+
color: string;
|
|
37
|
+
align: string;
|
|
38
|
+
};
|
|
39
|
+
nameLocation: string;
|
|
40
|
+
nameGap: number;
|
|
41
|
+
splitLine: {
|
|
42
|
+
show: boolean;
|
|
43
|
+
lineStyle: {
|
|
44
|
+
type: string;
|
|
45
|
+
color: string;
|
|
46
|
+
width: number;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
dataZoom: ({
|
|
51
|
+
type: string;
|
|
52
|
+
bottom: string;
|
|
53
|
+
start?: undefined;
|
|
54
|
+
end?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
type: string;
|
|
57
|
+
start: number;
|
|
58
|
+
end: number;
|
|
59
|
+
bottom?: undefined;
|
|
60
|
+
})[];
|
|
61
|
+
series: {
|
|
62
|
+
name: string;
|
|
63
|
+
data: number[];
|
|
64
|
+
type: string;
|
|
65
|
+
showBackground: boolean;
|
|
66
|
+
backgroundStyle: {
|
|
67
|
+
color: string;
|
|
68
|
+
};
|
|
69
|
+
itemStyle: {
|
|
70
|
+
color: string;
|
|
71
|
+
};
|
|
72
|
+
emphasis: {
|
|
73
|
+
focus: string;
|
|
74
|
+
};
|
|
75
|
+
}[];
|
|
76
|
+
};
|
|
77
|
+
export default _default;
|
package/dist/types/src/components/components-project/ci-echarts/ci-echart-pie/model/options.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const defaultOption: {
|
|
2
|
+
title: {
|
|
3
|
+
text: string;
|
|
4
|
+
subtext: string;
|
|
5
|
+
left: string;
|
|
6
|
+
};
|
|
7
|
+
tooltip: {
|
|
8
|
+
trigger: string;
|
|
9
|
+
};
|
|
10
|
+
legend: {
|
|
11
|
+
orient: string;
|
|
12
|
+
left: string;
|
|
13
|
+
};
|
|
14
|
+
series: {
|
|
15
|
+
name: string;
|
|
16
|
+
type: string;
|
|
17
|
+
radius: string;
|
|
18
|
+
data: {
|
|
19
|
+
value: number;
|
|
20
|
+
name: string;
|
|
21
|
+
}[];
|
|
22
|
+
emphasis: {
|
|
23
|
+
itemStyle: {
|
|
24
|
+
shadowBlur: number;
|
|
25
|
+
shadowOffsetX: number;
|
|
26
|
+
shadowColor: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TitleComponentOption, TooltipComponentOption, LegendComponentOption } from 'echarts/components';
|
|
2
|
+
import { PieSeriesOption } from 'echarts/charts';
|
|
3
|
+
import * as echarts from 'echarts/core';
|
|
4
|
+
export type EChartsOption = echarts.ComposeOption<TitleComponentOption | TooltipComponentOption | LegendComponentOption | PieSeriesOption>;
|
|
5
|
+
export interface PieDataProps {
|
|
6
|
+
option?: object;
|
|
7
|
+
/**
|
|
8
|
+
* 如果父组件不传递 option(示例: <CiEchartPie :immediate="true" />) 则使用组件内部默认 option 则需要设置immediate为true
|
|
9
|
+
* 原因: 只是为了 使用当前封装组件内的model中的option看一下是否渲染成功echarts
|
|
10
|
+
*
|
|
11
|
+
* 如果父组件传递 option(示例: <CiEchartPie :option="option" />) 则需要immediate 为 false【组件内部 默认为false】
|
|
12
|
+
*
|
|
13
|
+
* 当前端自己开发调试父组件传递过来的option时 需要将 immediate true
|
|
14
|
+
* (示例: <CiEchartPie :option="option" :immediate="true" />)
|
|
15
|
+
* 当真正调用接口时: 需要将 immediate false
|
|
16
|
+
* (示例: <CiEchartPie :option="option" />)
|
|
17
|
+
*
|
|
18
|
+
* 原因: 当父组件定义初始化option时 一般会写入series data: 此时页面现象会渲染一次 echarts图表
|
|
19
|
+
* 当接口数据响应回来时 一般会动态改动series data: 此时页面现象又回渲染一次 echarts 图表
|
|
20
|
+
* 现象: 如果 immediate true 初始化页面时 则页面会渲染两次 图表
|
|
21
|
+
* !!!如果有更好的方式 不进行配置 直接就能渲染一次 共同完善代码
|
|
22
|
+
*
|
|
23
|
+
* 期望: 初始化页面时 只渲染最后一次后端响应的接口数据的图表 则不需要watch在组件挂载时立即执行, 只需要在值发生变化时触发
|
|
24
|
+
*/
|
|
25
|
+
immediate?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DatePickerDateRangeProps {
|
|
2
|
+
datePickerValue?: Date | [Date, Date] | [string, string] | number | string | object;
|
|
3
|
+
dateShortcutsValue?: string | number | boolean;
|
|
4
|
+
shortcuts?: Array<{
|
|
5
|
+
text: string;
|
|
6
|
+
value: Date | Function;
|
|
7
|
+
}>;
|
|
8
|
+
type?: string;
|
|
9
|
+
startPlaceholder?: string;
|
|
10
|
+
endPlaceholder?: string;
|
|
11
|
+
rangeSeparator?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CiUploadProps } from '../type';
|
|
2
|
+
export declare function useCiUploadComputed(props: CiUploadProps, slots: any, defaultBeforeUpload: any): {
|
|
3
|
+
hasRealDefaultSlot: import('vue').ComputedRef<any>;
|
|
4
|
+
finalBeforeUpload: import('vue').ComputedRef<any>;
|
|
5
|
+
maxSizeInMB: import('vue').ComputedRef<string>;
|
|
6
|
+
defaultTipSlotTextInfo: import('vue').ComputedRef<string>;
|
|
7
|
+
otherSlots: import('vue').ComputedRef<string[]>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UploadUserFile } from 'element-plus';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* 封装所有要暴露给父组件的方法
|
|
5
|
+
* @param localFileList - 当前组件内部的响应式文件列表
|
|
6
|
+
* @returns 暴露出去的方法集合
|
|
7
|
+
*/
|
|
8
|
+
export declare function useExposeMethods(localFileList: Ref<UploadUserFile[]>): {
|
|
9
|
+
checkUploadStatus: () => {
|
|
10
|
+
allDone: boolean;
|
|
11
|
+
uploadingCount: number;
|
|
12
|
+
failedCount: number;
|
|
13
|
+
successCount: number;
|
|
14
|
+
totalCount: number;
|
|
15
|
+
failedFiles: UploadUserFile[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UploadRequestHandler } from 'element-plus';
|
|
2
|
+
export declare function useUpload(customAxios?: any): {
|
|
3
|
+
uploading: import('vue').Ref<boolean, boolean>;
|
|
4
|
+
progress: import('vue').Ref<number, number>;
|
|
5
|
+
currentFileName: import('vue').Ref<string, string>;
|
|
6
|
+
customHttpRequest: UploadRequestHandler;
|
|
7
|
+
downloadProgress: import('vue').Ref<number, number>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UploadUserFile } from 'element-plus';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
// 自定义 Hook:封装“重新上传”逻辑
|
|
5
|
+
//
|
|
6
|
+
// @param localFileList 响应式文件列表(来自组件的 localFileList)
|
|
7
|
+
// @param emit 用于向父组件发出事件(如更新 fileList)
|
|
8
|
+
*/
|
|
9
|
+
export declare function useUploadRetry(localFileList: Ref<UploadUserFile[]>, // 响应式的文件列表引用
|
|
10
|
+
emit: any, // 向父组件同步 fileList 的函数
|
|
11
|
+
props: any): {
|
|
12
|
+
retryUpload: (file: UploadUserFile) => Promise<void>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CiUploadFile, CiUploadProps, CiUploadUserFile } from './type';
|
|
2
|
+
import { UploadUserFile } from 'element-plus';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CiUploadProps, {
|
|
4
|
+
checkUploadStatus: () => {
|
|
5
|
+
allDone: boolean;
|
|
6
|
+
uploadingCount: number;
|
|
7
|
+
failedCount: number;
|
|
8
|
+
successCount: number;
|
|
9
|
+
totalCount: number;
|
|
10
|
+
failedFiles: UploadUserFile[];
|
|
11
|
+
};
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
|
+
onChange: (file: CiUploadFile, fileList: CiUploadUserFile[]) => any;
|
|
14
|
+
onError: (file: CiUploadFile, fileList: CiUploadUserFile[]) => any;
|
|
15
|
+
onRemove: (file: CiUploadFile, fileList: CiUploadUserFile[]) => any;
|
|
16
|
+
onSuccess: (file: CiUploadFile, fileList: CiUploadUserFile[]) => any;
|
|
17
|
+
"update:fileList": (list: CiUploadUserFile[]) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<CiUploadProps> & Readonly<{
|
|
19
|
+
onOnChange?: (file: CiUploadFile, fileList: CiUploadUserFile[]) => any;
|
|
20
|
+
onOnError?: (file: CiUploadFile, fileList: CiUploadUserFile[]) => any;
|
|
21
|
+
onOnRemove?: (file: CiUploadFile, fileList: CiUploadUserFile[]) => any;
|
|
22
|
+
onOnSuccess?: (file: CiUploadFile, fileList: CiUploadUserFile[]) => any;
|
|
23
|
+
"onUpdate:fileList"?: (list: CiUploadUserFile[]) => any;
|
|
24
|
+
}>, {
|
|
25
|
+
drag: boolean;
|
|
26
|
+
action: string;
|
|
27
|
+
multiple: boolean;
|
|
28
|
+
accept: string;
|
|
29
|
+
fileList: UploadUserFile[];
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
limit: number;
|
|
32
|
+
downloadUrl: string;
|
|
33
|
+
uploadBtnText: string;
|
|
34
|
+
maxSize: number;
|
|
35
|
+
showUploadProgress: boolean;
|
|
36
|
+
showDownloadProgress: boolean;
|
|
37
|
+
showFileExtIcon: boolean;
|
|
38
|
+
showFileSize: boolean;
|
|
39
|
+
showPreviewBtn: boolean;
|
|
40
|
+
showDownloadBtn: boolean;
|
|
41
|
+
showDeleteBtn: boolean;
|
|
42
|
+
readonly: boolean;
|
|
43
|
+
axiosInstance: any;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
45
|
+
uploadRef: unknown;
|
|
46
|
+
}, HTMLDivElement>, Partial<Record<number, (_: any) => any>> & {
|
|
47
|
+
default?(_: {}): any;
|
|
48
|
+
tip?(_: {}): any;
|
|
49
|
+
tip?(_: {}): any;
|
|
50
|
+
}>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UploadUserFile } from 'element-plus';
|
|
2
|
+
export declare const defaultProps: {
|
|
3
|
+
action: string;
|
|
4
|
+
downloadUrl: string;
|
|
5
|
+
uploadBtnText: string;
|
|
6
|
+
maxSize: number;
|
|
7
|
+
multiple: boolean;
|
|
8
|
+
limit: number;
|
|
9
|
+
accept: string;
|
|
10
|
+
fileList: () => UploadUserFile[];
|
|
11
|
+
showUploadProgress: boolean;
|
|
12
|
+
showDownloadProgress: boolean;
|
|
13
|
+
showFileExtIcon: boolean;
|
|
14
|
+
showFileSize: boolean;
|
|
15
|
+
showPreviewBtn: boolean;
|
|
16
|
+
showDownloadBtn: boolean;
|
|
17
|
+
showDeleteBtn: boolean;
|
|
18
|
+
drag: boolean;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
readonly: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 自定义请求对象:可选传入 axios 实例,用于替代默认 axios - 默认值: axios (场景:如需使用本项目配置过的 axios 实例接管上传 下载)
|
|
23
|
+
* 若传入了:将使用该实例发起上传请求(支持统一拦截器等配置)
|
|
24
|
+
* 若未传入:则默认使用全局的 axios 对象
|
|
25
|
+
*/
|
|
26
|
+
axiosInstance: any;
|
|
27
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UploadFile, UploadProps, UploadUserFile } from 'element-plus';
|
|
2
|
+
export interface CiUploadProps {
|
|
3
|
+
action?: string;
|
|
4
|
+
downloadUrl?: string;
|
|
5
|
+
uploadBtnText?: string;
|
|
6
|
+
maxSize?: number;
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
limit?: number;
|
|
9
|
+
accept?: string;
|
|
10
|
+
fileList?: UploadUserFile[];
|
|
11
|
+
beforeUpload?: UploadProps['beforeUpload'];
|
|
12
|
+
showUploadProgress?: boolean;
|
|
13
|
+
showDownloadProgress?: boolean;
|
|
14
|
+
showFileExtIcon?: boolean;
|
|
15
|
+
showFileSize?: boolean;
|
|
16
|
+
showPreviewBtn?: boolean;
|
|
17
|
+
showDownloadBtn?: boolean;
|
|
18
|
+
showDeleteBtn?: boolean;
|
|
19
|
+
drag?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 自定义请求对象:可选传入 axios 实例,用于替代默认 axios - 默认值: axios (场景:如需使用本项目配置过的 axios 实例接管上传 下载)
|
|
24
|
+
* 若传入了:将使用该实例发起上传请求(支持统一拦截器等配置)
|
|
25
|
+
* 若未传入:则默认使用全局的 axios 对象
|
|
26
|
+
*/
|
|
27
|
+
axiosInstance?: any;
|
|
28
|
+
}
|
|
29
|
+
export type CiUploadFiles = CiUploadFile[];
|
|
30
|
+
export interface CiUploadUserFile extends UploadUserFile {
|
|
31
|
+
fileName?: string;
|
|
32
|
+
fileKey?: string;
|
|
33
|
+
fileSize?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface CiUploadFile extends UploadFile {
|
|
36
|
+
fileName?: string;
|
|
37
|
+
fileKey?: string;
|
|
38
|
+
fileSize?: number;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getFileIconByName: (fileName: string) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 不能让开发者接管下载逻辑?
|
|
3
|
+
* 暂时不能, 不然开发者自己的下载逻辑中少写了部分内容,就导致页面可能出现不是预期的结果
|
|
4
|
+
* 比如: 开发者自己的下载逻辑中未添加 onDownloadProgress 下载进度回调 等
|
|
5
|
+
*/
|
|
6
|
+
export declare function downloadFileWithAxios(data: object, downloadFileUrl?: string, onProgress?: (percent: number) => void, // 新增回调参数,用于获取进度
|
|
7
|
+
onError?: (error: any) => void, // 新增错误回调参数
|
|
8
|
+
customAxios?: any): Promise<void>;
|
|
@@ -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,15 @@
|
|
|
1
|
+
import { MenuListItem } from './type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
menuList: {
|
|
4
|
+
type: () => MenuListItem[];
|
|
5
|
+
default: () => any[];
|
|
6
|
+
};
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
menuList: {
|
|
9
|
+
type: () => MenuListItem[];
|
|
10
|
+
default: () => any[];
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {
|
|
13
|
+
menuList: MenuListItem[];
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
15
|
+
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,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 接口: 定义每一项menu菜单数据类型
|
|
3
|
+
* 备注: 这个描述的字段是来自于: 【证网新仿真】 返回的数据字段
|
|
4
|
+
* menuId,menuParentId字段必须有值且符合逻辑(第一级菜单的menuParentId为系统独有名字) 前端用去判断逻辑
|
|
5
|
+
* menuIcon 如果每个一级菜单图标不一致 需要前端找到相应的svg文件名 对应好每个一级菜单与svg文件名的关系 配置权限系统菜单时 配置好
|
|
6
|
+
* 现在系统给的是默认全都一样的值 'menuIcon'
|
|
7
|
+
*/
|
|
8
|
+
export interface MenuListItem {
|
|
9
|
+
menuId: string;
|
|
10
|
+
menuTitle: string;
|
|
11
|
+
menuUrl: string;
|
|
12
|
+
menuIcon?: string;
|
|
13
|
+
menuOrderNum?: number;
|
|
14
|
+
menuDescrib?: string;
|
|
15
|
+
menuParentId: string;
|
|
16
|
+
menuType?: string;
|
|
17
|
+
target?: string;
|
|
18
|
+
keepAlive?: string;
|
|
19
|
+
children?: MenuListItem[] | null;
|
|
20
|
+
}
|
|
@@ -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,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
menuList?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
+
menuList?: any;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
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,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* !!! 此tree结构数据非常重要,处理整个菜单功能所有逻辑
|
|
3
|
+
* !!! 此tree结构数据非常重要,处理整个菜单功能所有逻辑
|
|
4
|
+
* !!! 此tree结构数据非常重要,处理整个菜单功能所有逻辑
|
|
5
|
+
*
|
|
6
|
+
* ###开发环境时使用的菜单数据
|
|
7
|
+
*
|
|
8
|
+
* @params level:只有是顶级一级菜单才会有此配置;且必须有;××× 等待研究Level这个字段有没有用处
|
|
9
|
+
* 备注: 自己为了渲染抽屉菜单随便模拟的数据 字段一部分参考了 证网新仿真 没有参考全
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* 本模拟数据字段取自[证网新仿真权限系统菜单数据]
|
|
13
|
+
* 本数据由[证网新仿真权限系统返回的平级菜单数据处理成树状结构之后的直接可用数据]
|
|
14
|
+
*/
|
|
15
|
+
export declare const mock_env_developmentMenu: {
|
|
16
|
+
menuId: string;
|
|
17
|
+
menuTitle: string;
|
|
18
|
+
menuUrl: string;
|
|
19
|
+
menuIcon: string;
|
|
20
|
+
menuOrderNum: number;
|
|
21
|
+
menuDescrib: string;
|
|
22
|
+
menuParentId: string;
|
|
23
|
+
menuType: string;
|
|
24
|
+
target: string;
|
|
25
|
+
keepAlive: string;
|
|
26
|
+
children: {
|
|
27
|
+
menuId: string;
|
|
28
|
+
menuTitle: string;
|
|
29
|
+
menuUrl: string;
|
|
30
|
+
menuIcon: string;
|
|
31
|
+
menuOrderNum: number;
|
|
32
|
+
menuDescrib: string;
|
|
33
|
+
menuParentId: string;
|
|
34
|
+
menuType: string;
|
|
35
|
+
target: string;
|
|
36
|
+
keepAlive: string;
|
|
37
|
+
children: {
|
|
38
|
+
menuId: string;
|
|
39
|
+
menuTitle: string;
|
|
40
|
+
menuUrl: string;
|
|
41
|
+
menuIcon: string;
|
|
42
|
+
menuOrderNum: number;
|
|
43
|
+
menuDescrib: string;
|
|
44
|
+
menuParentId: string;
|
|
45
|
+
menuType: string;
|
|
46
|
+
target: string;
|
|
47
|
+
keepAlive: string;
|
|
48
|
+
children: any[];
|
|
49
|
+
}[];
|
|
50
|
+
}[];
|
|
51
|
+
}[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 打非系统响应菜单
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 模拟系统后台响应的真实字段,真实结构菜单数据
|
|
6
|
+
* 控制路由权限时会用到此数据进行对比
|
|
7
|
+
*/
|
|
8
|
+
export declare const MockPermissionMenus: ({
|
|
9
|
+
menuId: string;
|
|
10
|
+
menuTitle: string;
|
|
11
|
+
menuUrl: string;
|
|
12
|
+
menuIcon: string;
|
|
13
|
+
menuOrderNum: number;
|
|
14
|
+
menuDescrib: string;
|
|
15
|
+
menuParentId: string;
|
|
16
|
+
menuType: string;
|
|
17
|
+
target: string;
|
|
18
|
+
keepAlive: string;
|
|
19
|
+
children?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
menuId: string;
|
|
22
|
+
menuTitle: string;
|
|
23
|
+
menuUrl: string;
|
|
24
|
+
menuIcon: string;
|
|
25
|
+
menuOrderNum: number;
|
|
26
|
+
menuDescrib: string;
|
|
27
|
+
menuParentId: string;
|
|
28
|
+
menuType: string;
|
|
29
|
+
target: string;
|
|
30
|
+
keepAlive: string;
|
|
31
|
+
children: any;
|
|
32
|
+
})[];
|