@lemon30_npm/csit-vue3 0.0.6 → 0.0.8

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 (184) hide show
  1. package/README.md +29 -10
  2. package/dist/csit-vue3.js +21 -13
  3. package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
  4. package/dist/lib/axios/index.js +67 -0
  5. package/dist/lib/axios/middlewares/middleware-executor.js +15 -0
  6. package/dist/lib/axios/middlewares/request-middlewares/addXRequestedWith.js +12 -0
  7. package/dist/lib/axios/middlewares/request-middlewares/dafeiyiqi-disposeGetUrlParams.js +17 -0
  8. package/dist/lib/axios/middlewares/request-middlewares/logRequest.js +7 -0
  9. package/dist/lib/axios/middlewares/response-middlewares/formatResponseData.js +7 -0
  10. package/dist/lib/axios/middlewares/response-middlewares/handle-error/errorMessages.js +14 -0
  11. package/dist/lib/axios/middlewares/response-middlewares/handle-error/handleError.js +35 -0
  12. package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleFileStream.js +11 -0
  13. package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleSuccess.js +20 -0
  14. package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleTokenInvalidToLogin.js +18 -0
  15. package/dist/lib/axios/middlewares/response-middlewares/logResponse.js +13 -0
  16. package/dist/lib/ci-blue-line-title/index.css +1 -0
  17. package/dist/lib/ci-blue-line-title/index.js +7 -0
  18. package/dist/lib/ci-blue-line-title/index.vue.js +7 -0
  19. package/dist/lib/ci-blue-line-title/index.vue2.js +29 -0
  20. package/dist/lib/ci-common-list/ci-common-list-layout/index.css +1 -0
  21. package/dist/lib/ci-common-list/ci-common-list-layout/index.js +7 -0
  22. package/dist/lib/ci-common-list/ci-common-list-layout/index.vue.js +7 -0
  23. package/dist/lib/ci-common-list/ci-common-list-layout/index.vue2.js +87 -0
  24. package/dist/lib/ci-common-list/ci-common-list-pagination/index.js +7 -0
  25. package/dist/lib/ci-common-list/ci-common-list-pagination/index.vue.js +7 -0
  26. package/dist/lib/ci-common-list/ci-common-list-pagination/index.vue2.js +31 -0
  27. package/dist/lib/ci-common-list/ci-common-list-query/index.css +1 -0
  28. package/dist/lib/ci-common-list/ci-common-list-query/index.js +7 -0
  29. package/dist/lib/ci-common-list/ci-common-list-query/index.vue.js +7 -0
  30. package/dist/lib/ci-common-list/ci-common-list-query/index.vue2.js +80 -0
  31. package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.css +1 -0
  32. package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.js +7 -0
  33. package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.vue.js +7 -0
  34. package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.vue2.js +51 -0
  35. package/dist/lib/ci-dictionary-select/config.js +18 -0
  36. package/dist/lib/ci-dictionary-select/index.css +0 -0
  37. package/dist/lib/ci-dictionary-select/index.js +7 -0
  38. package/dist/lib/ci-dictionary-select/index.vue.js +7 -0
  39. package/dist/lib/ci-dictionary-select/index.vue2.js +78 -0
  40. package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.css +1 -0
  41. package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.js +7 -0
  42. package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.vue.js +7 -0
  43. package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.vue2.js +77 -0
  44. package/dist/lib/ci-echarts/ci-echart-ChinaMap/model/ChinaGeoJson.js +911 -0
  45. package/dist/lib/ci-echarts/ci-echart-ChinaMap/model/index.js +14 -0
  46. package/dist/lib/ci-echarts/ci-echart-ChinaMap/model/options.js +278 -0
  47. package/dist/lib/ci-echarts/ci-echart-bar/index.css +1 -0
  48. package/dist/lib/ci-echarts/ci-echart-bar/index.js +10 -0
  49. package/dist/lib/ci-echarts/ci-echart-bar/index.vue.js +7 -0
  50. package/dist/lib/ci-echarts/ci-echart-bar/index.vue2.js +42 -0
  51. package/dist/lib/ci-echarts/ci-echart-bar/model/options.js +22 -0
  52. package/dist/lib/ci-echarts/ci-echart-pie/index.css +1 -0
  53. package/dist/lib/ci-echarts/ci-echart-pie/index.js +10 -0
  54. package/dist/lib/ci-echarts/ci-echart-pie/index.vue.js +7 -0
  55. package/dist/lib/ci-echarts/ci-echart-pie/index.vue2.js +50 -0
  56. package/dist/lib/ci-echarts/ci-echart-pie/model/options.js +38 -0
  57. package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.css +1 -0
  58. package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.js +7 -0
  59. package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.vue.js +7 -0
  60. package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.vue2.js +77 -0
  61. package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/model/index.js +47 -0
  62. package/dist/lib/ci-no-data-status/images/No-data-available.png.js +4 -0
  63. package/dist/lib/ci-no-data-status/index.css +1 -0
  64. package/dist/lib/ci-no-data-status/index.js +7 -0
  65. package/dist/lib/ci-no-data-status/index.vue.js +7 -0
  66. package/dist/lib/ci-no-data-status/index.vue2.js +25 -0
  67. package/dist/lib/ci-page-header/index.css +1 -0
  68. package/dist/lib/ci-page-header/index.js +7 -0
  69. package/dist/lib/ci-page-header/index.vue.js +7 -0
  70. package/dist/lib/ci-page-header/index.vue2.js +60 -0
  71. package/dist/lib/ci-svg-icon/index.js +8 -0
  72. package/dist/lib/ci-svg-icon/index.vue.js +26 -0
  73. package/dist/lib/ci-svg-icon/index.vue2.js +4 -0
  74. package/dist/lib/ci-time-line-list/index.css +1 -0
  75. package/dist/lib/ci-time-line-list/index.js +7 -0
  76. package/dist/lib/ci-time-line-list/index.vue.js +7 -0
  77. package/dist/lib/ci-time-line-list/index.vue2.js +49 -0
  78. package/dist/lib/ci-time-line-list/model/index.js +56 -0
  79. package/dist/lib/ci-upload/computed/index.js +16 -0
  80. package/dist/lib/ci-upload/expose/index.js +25 -0
  81. package/dist/lib/ci-upload/hooks/useUpload.js +58 -0
  82. package/dist/lib/ci-upload/hooks/useUploadRetry.js +45 -0
  83. package/dist/lib/ci-upload/icons/icon-loading-blue.svg.js +4 -0
  84. package/dist/lib/ci-upload/icons/icon-upload-btn-disabled.svg.js +4 -0
  85. package/dist/lib/ci-upload/icons/icon-upload-btn-hover.svg.js +4 -0
  86. package/dist/lib/ci-upload/icons/icon-upload-btn.svg.js +4 -0
  87. package/dist/lib/ci-upload/icons/icon-upload-fail.svg.js +4 -0
  88. package/dist/lib/ci-upload/icons/icon-upload-retry.svg.js +4 -0
  89. package/dist/lib/ci-upload/icons/icon-upload-success.svg.js +4 -0
  90. package/dist/lib/ci-upload/icons/icons-file-extension/dmg.svg.js +4 -0
  91. package/dist/lib/ci-upload/icons/icons-file-extension/doc.svg.js +4 -0
  92. package/dist/lib/ci-upload/icons/icons-file-extension/docx.svg.js +4 -0
  93. package/dist/lib/ci-upload/icons/icons-file-extension/file-type-default.svg.js +4 -0
  94. package/dist/lib/ci-upload/icons/icons-file-extension/gd.svg.js +4 -0
  95. package/dist/lib/ci-upload/icons/icons-file-extension/jpg.svg.js +4 -0
  96. package/dist/lib/ci-upload/icons/icons-file-extension/jpge.svg.js +4 -0
  97. package/dist/lib/ci-upload/icons/icons-file-extension/ofd.svg.js +4 -0
  98. package/dist/lib/ci-upload/icons/icons-file-extension/pdf.svg.js +4 -0
  99. package/dist/lib/ci-upload/icons/icons-file-extension/png.svg.js +4 -0
  100. package/dist/lib/ci-upload/icons/icons-file-extension/rar.svg.js +4 -0
  101. package/dist/lib/ci-upload/icons/icons-file-extension/sep.svg.js +4 -0
  102. package/dist/lib/ci-upload/icons/icons-file-extension/txt.svg.js +4 -0
  103. package/dist/lib/ci-upload/icons/icons-file-extension/wps.svg.js +4 -0
  104. package/dist/lib/ci-upload/icons/icons-file-extension/wpt.svg.js +4 -0
  105. package/dist/lib/ci-upload/icons/icons-file-extension/xls.svg.js +4 -0
  106. package/dist/lib/ci-upload/icons/icons-file-extension/xlsx.svg.js +4 -0
  107. package/dist/lib/ci-upload/icons/icons-file-extension/zip.svg.js +4 -0
  108. package/dist/lib/ci-upload/index.css +1 -0
  109. package/dist/lib/ci-upload/index.js +8 -0
  110. package/dist/lib/ci-upload/index.vue.js +7 -0
  111. package/dist/lib/ci-upload/index.vue2.js +385 -0
  112. package/dist/lib/ci-upload/props/index.js +48 -0
  113. package/dist/lib/ci-upload/styles/index.css +1 -0
  114. package/dist/lib/ci-upload/utils/file-icon-maps.js +50 -0
  115. package/dist/lib/ci-upload/utils/file.js +25 -0
  116. package/dist/lib/components/components-global/SvgIcon/index.vue.js +26 -0
  117. package/dist/lib/components/components-global/SvgIcon/index.vue2.js +4 -0
  118. package/dist/lib/components/index.js +85 -0
  119. package/dist/lib/config/env-config/index.js +4 -0
  120. package/dist/lib/config/system-config/projectSettings.js +7 -0
  121. package/dist/lib/favicon.ico +0 -0
  122. package/dist/lib/utils/system/useSystem.js +9 -0
  123. package/dist/types/ci-blue-line-title/index.d.ts +3 -0
  124. package/dist/types/ci-blue-line-title/index.vue.d.ts +14 -0
  125. package/dist/types/ci-blue-line-title/type.d.ts +4 -0
  126. package/dist/types/ci-common-list/ci-common-list-layout/index.d.ts +2 -0
  127. package/dist/types/ci-common-list/ci-common-list-layout/index.vue.d.ts +19 -0
  128. package/dist/types/ci-common-list/ci-common-list-pagination/index.d.ts +3 -0
  129. package/dist/types/ci-common-list/ci-common-list-pagination/index.vue.d.ts +7 -0
  130. package/dist/types/ci-common-list/ci-common-list-pagination/type.d.ts +5 -0
  131. package/dist/types/ci-common-list/ci-common-list-query/index.d.ts +2 -0
  132. package/dist/types/ci-common-list/ci-common-list-query/index.vue.d.ts +12 -0
  133. package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/index.d.ts +3 -0
  134. package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/index.vue.d.ts +15 -0
  135. package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/type.d.ts +7 -0
  136. package/dist/types/ci-dictionary-select/config.d.ts +14 -0
  137. package/dist/types/ci-dictionary-select/index.d.ts +3 -0
  138. package/dist/types/ci-dictionary-select/index.vue.d.ts +14 -0
  139. package/dist/types/ci-dictionary-select/model/index.d.ts +8 -0
  140. package/dist/types/ci-dictionary-select/type.d.ts +16 -0
  141. package/dist/types/ci-echarts/ci-echart-ChinaMap/index.d.ts +3 -0
  142. package/dist/types/ci-echarts/ci-echart-ChinaMap/index.vue.d.ts +17 -0
  143. package/dist/types/ci-echarts/ci-echart-ChinaMap/model/ChinaGeoJson.d.ts +33 -0
  144. package/dist/types/ci-echarts/ci-echart-ChinaMap/model/index.d.ts +16 -0
  145. package/dist/types/ci-echarts/ci-echart-ChinaMap/model/options.d.ts +110 -0
  146. package/dist/types/ci-echarts/ci-echart-ChinaMap/type.d.ts +18 -0
  147. package/dist/types/ci-echarts/ci-echart-bar/index.d.ts +3 -0
  148. package/dist/types/ci-echarts/ci-echart-bar/index.vue.d.ts +8 -0
  149. package/dist/types/ci-echarts/ci-echart-bar/model/option-illegality-active-type-distribution.d.ts +63 -0
  150. package/dist/types/ci-echarts/ci-echart-bar/model/options.d.ts +17 -0
  151. package/dist/types/ci-echarts/ci-echart-bar/type.d.ts +27 -0
  152. package/dist/types/ci-echarts/ci-echart-pie/index.d.ts +3 -0
  153. package/dist/types/ci-echarts/ci-echart-pie/index.vue.d.ts +8 -0
  154. package/dist/types/ci-echarts/ci-echart-pie/model/option-data-distribution.d.ts +77 -0
  155. package/dist/types/ci-echarts/ci-echart-pie/model/options.d.ts +30 -0
  156. package/dist/types/ci-echarts/ci-echart-pie/type.d.ts +26 -0
  157. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/index.d.ts +3 -0
  158. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/index.vue.d.ts +24 -0
  159. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/model/index.d.ts +4 -0
  160. package/dist/types/ci-element-plus/ci-el-date-picker-daterange/type.d.ts +12 -0
  161. package/dist/types/ci-no-data-status/index.d.ts +3 -0
  162. package/dist/types/ci-no-data-status/index.vue.d.ts +11 -0
  163. package/dist/types/ci-no-data-status/type.d.ts +3 -0
  164. package/dist/types/ci-page-header/index.d.ts +3 -0
  165. package/dist/types/ci-page-header/index.vue.d.ts +21 -0
  166. package/dist/types/ci-page-header/type.d.ts +7 -0
  167. package/dist/types/ci-svg-icon/index.d.ts +4 -0
  168. package/dist/types/ci-svg-icon/index.vue.d.ts +8 -0
  169. package/dist/types/ci-svg-icon/type.d.ts +7 -0
  170. package/dist/types/ci-time-line-list/index.d.ts +3 -0
  171. package/dist/types/ci-time-line-list/index.vue.d.ts +14 -0
  172. package/dist/types/ci-time-line-list/model/index.d.ts +5 -0
  173. package/dist/types/ci-time-line-list/type.d.ts +8 -0
  174. package/dist/types/ci-upload/computed/index.d.ts +8 -0
  175. package/dist/types/ci-upload/expose/index.d.ts +17 -0
  176. package/dist/types/ci-upload/hooks/useUpload.d.ts +8 -0
  177. package/dist/types/ci-upload/hooks/useUploadRetry.d.ts +13 -0
  178. package/dist/types/ci-upload/index.d.ts +3 -0
  179. package/dist/types/ci-upload/index.vue.d.ts +56 -0
  180. package/dist/types/ci-upload/props/index.d.ts +27 -0
  181. package/dist/types/ci-upload/type.d.ts +39 -0
  182. package/dist/types/ci-upload/utils/file-icon-maps.d.ts +1 -0
  183. package/dist/types/ci-upload/utils/file.d.ts +8 -0
  184. package/package.json +19 -14
@@ -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,3 @@
1
+ import { default as CiElDatePickerDaterange } from './index.vue';
2
+ export default CiElDatePickerDaterange;
3
+ export * from './type';
@@ -0,0 +1,24 @@
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;
@@ -0,0 +1,4 @@
1
+ export declare const shortcutsData: {
2
+ text: string;
3
+ value: () => Date[];
4
+ }[];
@@ -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,3 @@
1
+ import { default as CiNoDataStatus } from './index.vue';
2
+ export default CiNoDataStatus;
3
+ export * from './type';
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,3 @@
1
+ export interface NoDataStatusProps {
2
+ height?: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ import { default as CiPageHeader } from './index.vue';
2
+ export default CiPageHeader;
3
+ export * from './type';
@@ -0,0 +1,21 @@
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
+ };
@@ -0,0 +1,7 @@
1
+ export interface CiPageHeaderProps {
2
+ title?: string;
3
+ isShowTitle?: boolean;
4
+ messageBoxMessage?: string;
5
+ messageBoxTitle?: string;
6
+ isShowMessageBox?: boolean;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { default as CiSvgIcon } from './index.vue';
2
+ export default CiSvgIcon;
3
+ export { CiSvgIcon };
4
+ export * from './type';
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,7 @@
1
+ export interface CiSvgIconProps {
2
+ prefix?: string;
3
+ name: string;
4
+ color?: string;
5
+ width?: string;
6
+ height?: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ import { default as CiTimelineList } from './index.vue';
2
+ export default CiTimelineList;
3
+ export * from './type';
@@ -0,0 +1,14 @@
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
+ };
@@ -0,0 +1,5 @@
1
+ export declare const timelineListData: {
2
+ id: string;
3
+ title: string;
4
+ time: string;
5
+ }[];
@@ -0,0 +1,8 @@
1
+ export interface ItemData {
2
+ id: string | number;
3
+ title?: string;
4
+ time?: string;
5
+ }
6
+ export interface TimelineListProps {
7
+ data?: ItemData[];
8
+ }
@@ -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,3 @@
1
+ import { default as CiUpload } from './index.vue';
2
+ export default CiUpload;
3
+ export * from './type';
@@ -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
+ 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
+ };
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon30_npm/csit-vue3",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "author": "cuiwq",
6
6
  "license": "MIT",
@@ -43,22 +43,21 @@
43
43
  "build-only-lib": "vite build --config vite.lib.config.ts",
44
44
  "prepublishOnly": "npm run build"
45
45
  },
46
- "dependencies": {
46
+ "peerDependencies": {
47
47
  "@element-plus/icons-vue": "^2.3.1",
48
+ "axios": "^1.7.7",
49
+ "echarts": "^5.5.1",
50
+ "echarts-map": "^3.0.1",
51
+ "element-plus": "^2.9.7",
48
52
  "lodash": "^4.17.21",
49
53
  "moment": "^2.30.1",
50
54
  "nanoid": "^5.0.8",
51
55
  "pinia": "^2.2.6",
52
- "vue-router": "^4.4.5"
53
- },
54
- "peerDependencies": {
55
- "echarts": "^5.5.1",
56
- "echarts-map": "^3.0.1",
57
- "element-plus": "^2.9.7",
58
56
  "vue": "^3.5.12",
59
- "axios": "^1.7.7"
57
+ "vue-router": "^4.4.5"
60
58
  },
61
59
  "devDependencies": {
60
+ "@element-plus/icons-vue": "^2.3.1",
62
61
  "@tsconfig/node20": "^20.1.4",
63
62
  "@types/node": "^22.9.0",
64
63
  "@vitejs/plugin-legacy": "^5.4.2",
@@ -66,12 +65,21 @@
66
65
  "@vue/eslint-config-prettier": "^10.1.0",
67
66
  "@vue/eslint-config-typescript": "^14.1.3",
68
67
  "@vue/tsconfig": "^0.5.1",
68
+ "axios": "^1.7.7",
69
+ "echarts": "^5.5.1",
70
+ "echarts-map": "^3.0.1",
71
+ "element-plus": "^2.9.7",
69
72
  "eslint": "^9.14.0",
70
73
  "eslint-plugin-vue": "^9.30.0",
71
74
  "less": "^4.2.0",
75
+ "lodash": "^4.17.21",
72
76
  "mockjs": "^1.1.0",
77
+ "moment": "^2.30.1",
78
+ "nanoid": "^5.0.8",
73
79
  "npm-run-all2": "^7.0.1",
80
+ "pinia": "^2.2.6",
74
81
  "prettier": "^3.3.3",
82
+ "rollup-plugin-visualizer": "^6.0.3",
75
83
  "typescript": "~5.6.3",
76
84
  "unplugin-vue-components": "^0.27.4",
77
85
  "vite": "^5.4.10",
@@ -80,11 +88,8 @@
80
88
  "vite-plugin-remove-console": "^2.2.0",
81
89
  "vite-plugin-svg-icons": "^2.0.1",
82
90
  "vite-plugin-vue-devtools": "^7.5.4",
83
- "vitepress": "^1.6.3",
84
- "echarts": "^5.5.1",
85
- "echarts-map": "^3.0.1",
86
- "element-plus": "^2.9.7",
91
+ "vitepress": "^2.0.0-alpha.7",
87
92
  "vue": "^3.5.12",
88
- "axios": "^1.7.7"
93
+ "vue-router": "^4.4.5"
89
94
  }
90
95
  }