@lemon30_npm/csit-vue3 0.0.15 → 0.0.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.
Files changed (64) hide show
  1. package/dist/csit-vue3.js +190 -190
  2. package/dist/index.css +1 -1
  3. package/package.json +105 -8
  4. package/dist/types/ci-blue-line-title/index.d.ts +0 -3
  5. package/dist/types/ci-blue-line-title/index.vue.d.ts +0 -14
  6. package/dist/types/ci-blue-line-title/type.d.ts +0 -4
  7. package/dist/types/ci-common-list/ci-common-list-layout/index.d.ts +0 -2
  8. package/dist/types/ci-common-list/ci-common-list-layout/index.vue.d.ts +0 -19
  9. package/dist/types/ci-common-list/ci-common-list-pagination/index.d.ts +0 -3
  10. package/dist/types/ci-common-list/ci-common-list-pagination/index.vue.d.ts +0 -7
  11. package/dist/types/ci-common-list/ci-common-list-pagination/type.d.ts +0 -5
  12. package/dist/types/ci-common-list/ci-common-list-query/index.d.ts +0 -2
  13. package/dist/types/ci-common-list/ci-common-list-query/index.vue.d.ts +0 -12
  14. package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/index.d.ts +0 -3
  15. package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/index.vue.d.ts +0 -15
  16. package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/type.d.ts +0 -7
  17. package/dist/types/ci-dictionary-select/config.d.ts +0 -14
  18. package/dist/types/ci-dictionary-select/index.d.ts +0 -3
  19. package/dist/types/ci-dictionary-select/index.vue.d.ts +0 -14
  20. package/dist/types/ci-dictionary-select/model/index.d.ts +0 -8
  21. package/dist/types/ci-dictionary-select/type.d.ts +0 -16
  22. package/dist/types/ci-echarts/ci-echart-ChinaMap/index.d.ts +0 -3
  23. package/dist/types/ci-echarts/ci-echart-ChinaMap/index.vue.d.ts +0 -17
  24. package/dist/types/ci-echarts/ci-echart-ChinaMap/model/ChinaGeoJson.d.ts +0 -33
  25. package/dist/types/ci-echarts/ci-echart-ChinaMap/model/index.d.ts +0 -16
  26. package/dist/types/ci-echarts/ci-echart-ChinaMap/model/options.d.ts +0 -110
  27. package/dist/types/ci-echarts/ci-echart-ChinaMap/type.d.ts +0 -18
  28. package/dist/types/ci-echarts/ci-echart-bar/index.d.ts +0 -3
  29. package/dist/types/ci-echarts/ci-echart-bar/index.vue.d.ts +0 -8
  30. package/dist/types/ci-echarts/ci-echart-bar/model/option-illegality-active-type-distribution.d.ts +0 -63
  31. package/dist/types/ci-echarts/ci-echart-bar/model/options.d.ts +0 -17
  32. package/dist/types/ci-echarts/ci-echart-bar/type.d.ts +0 -27
  33. package/dist/types/ci-echarts/ci-echart-pie/index.d.ts +0 -3
  34. package/dist/types/ci-echarts/ci-echart-pie/index.vue.d.ts +0 -8
  35. package/dist/types/ci-echarts/ci-echart-pie/model/option-data-distribution.d.ts +0 -77
  36. package/dist/types/ci-echarts/ci-echart-pie/model/options.d.ts +0 -30
  37. package/dist/types/ci-echarts/ci-echart-pie/type.d.ts +0 -26
  38. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/index.d.ts +0 -3
  39. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/index.vue.d.ts +0 -24
  40. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/model/index.d.ts +0 -4
  41. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/type.d.ts +0 -12
  42. package/dist/types/ci-no-data-status/index.d.ts +0 -3
  43. package/dist/types/ci-no-data-status/index.vue.d.ts +0 -11
  44. package/dist/types/ci-no-data-status/type.d.ts +0 -3
  45. package/dist/types/ci-page-header/index.d.ts +0 -3
  46. package/dist/types/ci-page-header/index.vue.d.ts +0 -21
  47. package/dist/types/ci-page-header/type.d.ts +0 -7
  48. package/dist/types/ci-svg-icon/index.d.ts +0 -4
  49. package/dist/types/ci-svg-icon/index.vue.d.ts +0 -8
  50. package/dist/types/ci-svg-icon/type.d.ts +0 -7
  51. package/dist/types/ci-time-line-list/index.d.ts +0 -3
  52. package/dist/types/ci-time-line-list/index.vue.d.ts +0 -14
  53. package/dist/types/ci-time-line-list/model/index.d.ts +0 -5
  54. package/dist/types/ci-time-line-list/type.d.ts +0 -8
  55. package/dist/types/ci-upload/computed/index.d.ts +0 -8
  56. package/dist/types/ci-upload/expose/index.d.ts +0 -17
  57. package/dist/types/ci-upload/hooks/useUpload.d.ts +0 -8
  58. package/dist/types/ci-upload/hooks/useUploadRetry.d.ts +0 -13
  59. package/dist/types/ci-upload/index.d.ts +0 -3
  60. package/dist/types/ci-upload/index.vue.d.ts +0 -56
  61. package/dist/types/ci-upload/props/index.d.ts +0 -27
  62. package/dist/types/ci-upload/type.d.ts +0 -39
  63. package/dist/types/ci-upload/utils/file-icon-maps.d.ts +0 -1
  64. package/dist/types/ci-upload/utils/file.d.ts +0 -8
@@ -1,63 +0,0 @@
1
- declare const _default: {
2
- tooltip: {
3
- trigger: string;
4
- };
5
- legend: {
6
- orient: string;
7
- top: string;
8
- left: string;
9
- icon: string;
10
- itemWidth: number;
11
- itemHeight: number;
12
- itemGap: number;
13
- align: string;
14
- textStyle: {
15
- fontSize: number;
16
- };
17
- };
18
- series: ({
19
- type: string;
20
- radius: string;
21
- silent: boolean;
22
- label: {
23
- show: boolean;
24
- formatter?: undefined;
25
- position?: undefined;
26
- overflow?: undefined;
27
- fontSize?: undefined;
28
- };
29
- z: number;
30
- right: string;
31
- data: {
32
- value: number;
33
- itemStyle: {
34
- color: string;
35
- };
36
- }[];
37
- minAngle?: undefined;
38
- emphasis?: undefined;
39
- } | {
40
- type: string;
41
- radius: string;
42
- z: number;
43
- minAngle: number;
44
- right: string;
45
- label: {
46
- show: boolean;
47
- formatter: string;
48
- position: string;
49
- overflow: string;
50
- fontSize: number;
51
- };
52
- data: any[];
53
- emphasis: {
54
- itemStyle: {
55
- shadowBlur: number;
56
- shadowOffsetX: number;
57
- shadowColor: string;
58
- };
59
- };
60
- silent?: undefined;
61
- })[];
62
- };
63
- export default _default;
@@ -1,17 +0,0 @@
1
- export declare const defaultOption: {
2
- xAxis: {
3
- type: string;
4
- data: string[];
5
- };
6
- yAxis: {
7
- type: string;
8
- };
9
- series: {
10
- data: number[];
11
- type: string;
12
- showBackground: boolean;
13
- backgroundStyle: {
14
- color: string;
15
- };
16
- }[];
17
- };
@@ -1,27 +0,0 @@
1
- import { GridComponentOption } from 'echarts/components';
2
- import { BarSeriesOption } from 'echarts/charts';
3
- import * as echarts from 'echarts/core';
4
- export type EChartsOption = echarts.ComposeOption<GridComponentOption | BarSeriesOption>;
5
- export interface EChartBarProps {
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
- * 好像onMounted 执行一次就行???(会先闪一次空白灰色echart 图表?) 先不试了
23
- *
24
- * 期望: 初始化页面时 只渲染最后一次后端响应的接口数据的图表 则不需要watch在组件挂载时立即执行, 只需要在值发生变化时触发
25
- */
26
- immediate?: boolean;
27
- }
@@ -1,3 +0,0 @@
1
- import { default as CiEchartPie } from './index.vue';
2
- export default CiEchartPie;
3
- export * from './type';
@@ -1,8 +0,0 @@
1
- import { PieDataProps } from './type';
2
- declare const _default: import('vue').DefineComponent<PieDataProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PieDataProps> & Readonly<{}>, {
3
- option: object;
4
- immediate: boolean;
5
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
6
- chartRef: HTMLDivElement;
7
- }, HTMLDivElement>;
8
- export default _default;
@@ -1,77 +0,0 @@
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;
@@ -1,30 +0,0 @@
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
- };
@@ -1,26 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- import { default as CiElDatePickerDaterange } from './index.vue';
2
- export default CiElDatePickerDaterange;
3
- export * from './type';
@@ -1,24 +0,0 @@
1
- import { DatePickerDateRangeProps } from './type';
2
- declare const _default: import('vue').DefineComponent<DatePickerDateRangeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
- change: (...args: any[]) => void;
4
- "update:date-picker-value": (...args: any[]) => void;
5
- "update:date-shortcuts-value": (...args: any[]) => void;
6
- "date-shortcuts-change": (...args: any[]) => void;
7
- }, string, import('vue').PublicProps, Readonly<DatePickerDateRangeProps> & Readonly<{
8
- onChange?: (...args: any[]) => any;
9
- "onUpdate:date-picker-value"?: (...args: any[]) => any;
10
- "onUpdate:date-shortcuts-value"?: (...args: any[]) => any;
11
- "onDate-shortcuts-change"?: (...args: any[]) => any;
12
- }>, {
13
- type: string;
14
- datePickerValue: Date | [Date, Date] | [string, string] | number | string | object;
15
- dateShortcutsValue: string | number | boolean;
16
- shortcuts: Array<{
17
- text: string;
18
- value: Date | Function;
19
- }>;
20
- startPlaceholder: string;
21
- endPlaceholder: string;
22
- rangeSeparator: string;
23
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
- export default _default;
@@ -1,4 +0,0 @@
1
- export declare const shortcutsData: {
2
- text: string;
3
- value: () => Date[];
4
- }[];
@@ -1,12 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- import { default as CiNoDataStatus } from './index.vue';
2
- export default CiNoDataStatus;
3
- export * from './type';
@@ -1,11 +0,0 @@
1
- import { NoDataStatusProps } from './type';
2
- /**
3
- * 组件介绍: 没有数据状态时展示效果组件
4
- *
5
- * 如果想要无数据状态组件再其父元素某一个区块内居中展示 需要外部根据其区块高度传递进来无数据状态组件要在多高内居中展示
6
- * 高度默认为自身图片高度 300px
7
- */
8
- declare const _default: import('vue').DefineComponent<NoDataStatusProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NoDataStatusProps> & Readonly<{}>, {
9
- height: string;
10
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
- export default _default;
@@ -1,3 +0,0 @@
1
- export interface NoDataStatusProps {
2
- height?: string;
3
- }
@@ -1,3 +0,0 @@
1
- import { default as CiPageHeader } from './index.vue';
2
- export default CiPageHeader;
3
- export * from './type';
@@ -1,21 +0,0 @@
1
- import { CiPageHeaderProps } from './type';
2
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CiPageHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
- clickBack: (...args: any[]) => void;
4
- }, string, import('vue').PublicProps, Readonly<CiPageHeaderProps> & Readonly<{
5
- onClickBack?: (...args: any[]) => any;
6
- }>, {
7
- title: string;
8
- isShowTitle: boolean;
9
- messageBoxMessage: string;
10
- messageBoxTitle: string;
11
- isShowMessageBox: boolean;
12
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>, {
13
- left?(_: {}): any;
14
- right?(_: {}): any;
15
- }>;
16
- export default _default;
17
- type __VLS_WithTemplateSlots<T, S> = T & {
18
- new (): {
19
- $slots: S;
20
- };
21
- };
@@ -1,7 +0,0 @@
1
- export interface CiPageHeaderProps {
2
- title?: string;
3
- isShowTitle?: boolean;
4
- messageBoxMessage?: string;
5
- messageBoxTitle?: string;
6
- isShowMessageBox?: boolean;
7
- }
@@ -1,4 +0,0 @@
1
- import { default as CiSvgIcon } from './index.vue';
2
- export default CiSvgIcon;
3
- export { CiSvgIcon };
4
- export * from './type';
@@ -1,8 +0,0 @@
1
- import { CiSvgIconProps } from './type';
2
- declare const _default: import('vue').DefineComponent<CiSvgIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CiSvgIconProps> & Readonly<{}>, {
3
- color: string;
4
- prefix: string;
5
- width: string;
6
- height: string;
7
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
- export default _default;
@@ -1,7 +0,0 @@
1
- export interface CiSvgIconProps {
2
- prefix?: string;
3
- name: string;
4
- color?: string;
5
- width?: string;
6
- height?: string;
7
- }
@@ -1,3 +0,0 @@
1
- import { default as CiTimelineList } from './index.vue';
2
- export default CiTimelineList;
3
- export * from './type';
@@ -1,14 +0,0 @@
1
- import { TimelineListProps } from './type';
2
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<TimelineListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TimelineListProps> & Readonly<{}>, {
3
- data: import('./type').ItemData[];
4
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>, {
5
- 'slot-right'?(_: {
6
- row: import('./type').ItemData;
7
- }): any;
8
- }>;
9
- export default _default;
10
- type __VLS_WithTemplateSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -1,5 +0,0 @@
1
- export declare const timelineListData: {
2
- id: string;
3
- title: string;
4
- time: string;
5
- }[];
@@ -1,8 +0,0 @@
1
- export interface ItemData {
2
- id: string | number;
3
- title?: string;
4
- time?: string;
5
- }
6
- export interface TimelineListProps {
7
- data?: ItemData[];
8
- }
@@ -1,8 +0,0 @@
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
- };
@@ -1,17 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
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
- };
@@ -1,13 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- import { default as CiUpload } from './index.vue';
2
- export default CiUpload;
3
- export * from './type';
@@ -1,56 +0,0 @@
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
- multiple: boolean;
27
- action: string;
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
- };
@@ -1,27 +0,0 @@
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
- };
@@ -1,39 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export declare const getFileIconByName: (fileName: string) => string;
@@ -1,8 +0,0 @@
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>;