xxl-job-vue3 1.0.1 → 1.0.3

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.

Potentially problematic release.


This version of xxl-job-vue3 might be problematic. Click here for more details.

Files changed (144) hide show
  1. package/README.md +47 -6
  2. package/dist/403-CTPolQ5H.js +35 -0
  3. package/dist/404-0rmNV6Ru.js +35 -0
  4. package/dist/500-ru5Ta0V3.js +35 -0
  5. package/dist/index-CmPY3CIN.js +1341 -0
  6. package/dist/lib-index-DAtV9jYE.js +40469 -0
  7. package/dist/style.css +1 -1
  8. package/dist/types/src/api/config/servicePort.d.ts +6 -0
  9. package/dist/types/src/api/helper/axiosCancel.d.ts +20 -0
  10. package/dist/types/src/api/helper/checkStatus.d.ts +6 -0
  11. package/dist/types/src/api/index.d.ts +24 -0
  12. package/dist/types/src/api/interface/common.d.ts +72 -0
  13. package/dist/types/src/api/interface/index.d.ts +10 -0
  14. package/dist/types/src/api/interface/xxlJob/jobDashboard.d.ts +36 -0
  15. package/dist/types/src/api/interface/xxlJob/jobExecutor.d.ts +32 -0
  16. package/dist/types/src/api/interface/xxlJob/jobInfo.d.ts +73 -0
  17. package/dist/types/src/api/interface/xxlJob/jobLogs.d.ts +29 -0
  18. package/dist/types/src/api/modules/common.d.ts +4 -0
  19. package/dist/types/src/api/modules/index.d.ts +12 -0
  20. package/dist/types/src/api/modules/upload.d.ts +11 -0
  21. package/dist/types/src/api/modules/xxlJob/jobDashboard.d.ts +10 -0
  22. package/dist/types/src/api/modules/xxlJob/jobExecutor.d.ts +23 -0
  23. package/dist/types/src/api/modules/xxlJob/jobInfo.d.ts +51 -0
  24. package/dist/types/src/api/modules/xxlJob/jobLogs.d.ts +16 -0
  25. package/dist/types/src/components/ECharts/config/index.d.ts +6 -0
  26. package/dist/types/src/components/ECharts/index.vue.d.ts +44 -0
  27. package/dist/types/src/components/ErrorMessage/403.vue.d.ts +2 -0
  28. package/dist/types/src/components/ErrorMessage/404.vue.d.ts +2 -0
  29. package/dist/types/src/components/ErrorMessage/500.vue.d.ts +2 -0
  30. package/dist/types/src/components/Grid/components/GridItem.vue.d.ts +67 -0
  31. package/dist/types/src/components/Grid/index.vue.d.ts +65 -0
  32. package/dist/types/src/components/Grid/interface/index.d.ts +5 -0
  33. package/dist/types/src/components/Loading/fullScreen.d.ts +5 -0
  34. package/dist/types/src/components/ProTable/components/ColSetting.vue.d.ts +19 -0
  35. package/dist/types/src/components/ProTable/components/Pagination.vue.d.ts +21 -0
  36. package/dist/types/src/components/ProTable/components/TableColumn.vue.d.ts +17 -0
  37. package/dist/types/src/components/ProTable/index.vue.d.ts +3132 -0
  38. package/dist/types/src/components/ProTable/interface/index.d.ts +102 -0
  39. package/dist/types/src/components/SearchForm/components/SearchFormItem.vue.d.ts +28 -0
  40. package/dist/types/src/components/SearchForm/index.vue.d.ts +46 -0
  41. package/dist/types/src/components/SwitchDark/index.vue.d.ts +2 -0
  42. package/dist/types/src/config/index.d.ts +4 -0
  43. package/dist/types/src/config/nprogress.d.ts +3 -0
  44. package/dist/types/src/directives/index.d.ts +6 -0
  45. package/dist/types/src/directives/modules/auth.d.ts +4 -0
  46. package/dist/types/src/enums/httpEnum.d.ts +29 -0
  47. package/dist/types/src/hooks/interface/index.d.ts +30 -0
  48. package/dist/types/src/hooks/useAuthButtons.d.ts +8 -0
  49. package/dist/types/src/hooks/useDownload.d.ts +20 -0
  50. package/dist/types/src/hooks/useHandleData.d.ts +12 -0
  51. package/dist/types/src/hooks/useOnline.d.ts +6 -0
  52. package/dist/types/src/hooks/useSelection.d.ts +17 -0
  53. package/dist/types/src/hooks/useTable.d.ts +46 -0
  54. package/dist/types/src/hooks/useTheme.d.ts +13 -0
  55. package/dist/types/src/hooks/useTime.d.ts +15 -0
  56. package/dist/types/src/languages/index.d.ts +62 -0
  57. package/dist/types/src/languages/modules/en.d.ts +31 -0
  58. package/dist/types/src/languages/modules/zh.d.ts +30 -0
  59. package/dist/types/src/layouts/LayoutClassic/index.vue.d.ts +2 -0
  60. package/dist/types/src/layouts/LayoutTransverse/index.vue.d.ts +2 -0
  61. package/dist/types/src/layouts/components/Footer/index.vue.d.ts +2 -0
  62. package/dist/types/src/layouts/components/Header/ToolBarLeft.vue.d.ts +2 -0
  63. package/dist/types/src/layouts/components/Header/ToolBarRight.vue.d.ts +2 -0
  64. package/dist/types/src/layouts/components/Header/components/Avatar.vue.d.ts +2 -0
  65. package/dist/types/src/layouts/components/Header/components/Breadcrumb.vue.d.ts +2 -0
  66. package/dist/types/src/layouts/components/Header/components/CollapseIcon.vue.d.ts +2 -0
  67. package/dist/types/src/layouts/components/Header/components/Fullscreen.vue.d.ts +2 -0
  68. package/dist/types/src/layouts/components/Header/components/ThemeSetting.vue.d.ts +2 -0
  69. package/dist/types/src/layouts/components/Main/components/Maximize.vue.d.ts +2 -0
  70. package/dist/types/src/layouts/components/Main/index.vue.d.ts +28 -0
  71. package/dist/types/src/layouts/components/Menu/SubMenu.vue.d.ts +15 -0
  72. package/dist/types/src/layouts/components/Tabs/components/MoreButton.vue.d.ts +6 -0
  73. package/dist/types/src/layouts/components/Tabs/index.vue.d.ts +6 -0
  74. package/dist/types/src/layouts/components/ThemeDrawer/index.vue.d.ts +2 -0
  75. package/dist/types/src/layouts/index.vue.d.ts +2 -0
  76. package/dist/types/src/lib-index.d.ts +9 -0
  77. package/dist/types/src/main.d.ts +1 -0
  78. package/dist/types/src/routers/index.d.ts +22 -0
  79. package/dist/types/src/routers/modules/dynamicRouter.d.ts +6 -0
  80. package/dist/types/src/routers/modules/staticRouter.d.ts +22 -0
  81. package/dist/types/src/stores/helper/persist.d.ts +10 -0
  82. package/dist/types/src/stores/index.d.ts +2 -0
  83. package/dist/types/src/stores/interface/index.d.ts +66 -0
  84. package/dist/types/src/stores/modules/auth.d.ts +156 -0
  85. package/dist/types/src/stores/modules/global.d.ts +43 -0
  86. package/dist/types/src/stores/modules/keepAlive.d.ts +7 -0
  87. package/dist/types/src/stores/modules/tabs.d.ts +10 -0
  88. package/dist/types/src/stores/modules/user.d.ts +17 -0
  89. package/dist/types/src/styles/theme/aside.d.ts +5 -0
  90. package/dist/types/src/styles/theme/header.d.ts +5 -0
  91. package/dist/types/src/styles/theme/menu.d.ts +5 -0
  92. package/dist/types/src/utils/aes.d.ts +12 -0
  93. package/dist/types/src/utils/color.d.ts +28 -0
  94. package/dist/types/src/utils/dict.d.ts +257 -0
  95. package/dist/types/src/utils/eleValidate.d.ts +4 -0
  96. package/dist/types/src/utils/errorHandler.d.ts +5 -0
  97. package/dist/types/src/utils/index.d.ts +235 -0
  98. package/dist/types/src/utils/is/index.d.ts +126 -0
  99. package/dist/types/src/utils/mittBus.d.ts +2 -0
  100. package/dist/types/src/utils/sm3.d.ts +6 -0
  101. package/dist/types/src/utils/sm4.d.ts +14 -0
  102. package/dist/types/src/utils/svg.d.ts +4 -0
  103. package/dist/types/src/utils/xxl-bridge.d.ts +21 -0
  104. package/dist/types/src/views/xxlJob/jobDashboard/index.vue.d.ts +2 -0
  105. package/dist/types/src/views/xxlJob/jobExecutor/components/EditExecutor.vue.d.ts +21 -0
  106. package/dist/types/src/views/xxlJob/jobExecutor/index.vue.d.ts +2 -0
  107. package/dist/types/src/views/xxlJob/jobInfo/components/CreateCronExpression.vue.d.ts +28 -0
  108. package/dist/types/src/views/xxlJob/jobInfo/components/JobInfoDetail.vue.d.ts +10 -0
  109. package/dist/types/src/views/xxlJob/jobInfo/components/RegisterNode.vue.d.ts +11 -0
  110. package/dist/types/src/views/xxlJob/jobInfo/components/RunOnceView.vue.d.ts +11 -0
  111. package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabDay.vue.d.ts +26 -0
  112. package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabHour.vue.d.ts +13 -0
  113. package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabMin.vue.d.ts +13 -0
  114. package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabMonth.vue.d.ts +13 -0
  115. package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabResult.vue.d.ts +15 -0
  116. package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabSecond.vue.d.ts +13 -0
  117. package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabWeek.vue.d.ts +27 -0
  118. package/dist/types/src/views/xxlJob/jobInfo/components/lib/CrontabYear.vue.d.ts +14 -0
  119. package/dist/types/src/views/xxlJob/jobInfo/index.vue.d.ts +2 -0
  120. package/dist/types/src/views/xxlJob/jobLogs/components/JobTaskClearDialog.vue.d.ts +16 -0
  121. package/dist/types/src/views/xxlJob/jobLogs/components/JobTaskInfoView.vue.d.ts +17 -0
  122. package/dist/types/src/views/xxlJob/jobLogs/index.vue.d.ts +2 -0
  123. package/dist/xxl-job-vue3.es.js +6 -5
  124. package/dist/xxl-job-vue3.umd.js +95 -79
  125. package/package.json +139 -136
  126. package/dist/403-BgYs1MY9.js +0 -36
  127. package/dist/404-DHj5v1Yh.js +0 -36
  128. package/dist/500-BMPMnB5R.js +0 -36
  129. package/dist/CrontabDay-BtWkPZgc.js +0 -4
  130. package/dist/CrontabHour-CWW94JsR.js +0 -4
  131. package/dist/CrontabMin-4na7Y7jF.js +0 -4
  132. package/dist/CrontabMonth-dsg6XXW5.js +0 -4
  133. package/dist/CrontabResult-rMgvC2Ov.js +0 -4
  134. package/dist/CrontabSecond-B57qJvYE.js +0 -4
  135. package/dist/CrontabWeek-dPVVzR9P.js +0 -4
  136. package/dist/CrontabYear-DImaFqLN.js +0 -4
  137. package/dist/EditExecutor-DZ3Ic8Ex.js +0 -4
  138. package/dist/JobTaskClearDialog-D-E19g9O.js +0 -4
  139. package/dist/RunOnceView-D4oyLKNh.js +0 -4
  140. package/dist/index-C8Y_Od96.js +0 -100151
  141. package/dist/index-D6UxUdAp.js +0 -4463
  142. package/dist/index-DI263EBt.js +0 -4
  143. package/dist/index-DvUlhZYD.js +0 -4
  144. package/dist/index-Zr37j6aO.js +0 -4
@@ -0,0 +1,102 @@
1
+ import { VNode, ComponentPublicInstance, Ref } from 'vue';
2
+ import { BreakPoint, Responsive } from '../../Grid/interface';
3
+ import { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
4
+ import { ProTableProps, default as ProTable } from '../index.vue';
5
+ import { DefaultRow } from 'element-plus/es/components/table/src/table/defaults';
6
+
7
+ export interface EnumProps {
8
+ /**选项框显示的文字*/
9
+ label?: string;
10
+ /**选项框值*/
11
+ value?: string | number | boolean | any[];
12
+ /**是否禁用此选项*/
13
+ disabled?: boolean;
14
+ /**当 tag 为 true 时,此选择会指定 tag 显示类型*/
15
+ tagType?: string;
16
+ /**为树形选择时,可以通过 children 属性指定子选项*/
17
+ children?: EnumProps[];
18
+ /***/
19
+ [key: string]: any;
20
+ }
21
+ export type TypeProps = "index" | "selection" | "radio" | "expand" | "sort";
22
+ export type SearchType = "input" | "input-number" | "select" | "select-v2" | "tree-select" | "cascader" | "date-picker" | "time-picker" | "time-select" | "switch" | "slider";
23
+ export type SearchRenderScope = {
24
+ searchParam: {
25
+ [key: string]: any;
26
+ };
27
+ placeholder: string;
28
+ clearable: boolean;
29
+ options: EnumProps[];
30
+ data: EnumProps[];
31
+ };
32
+ export type SearchProps = {
33
+ /**当前项搜索框的类型*/
34
+ el?: SearchType;
35
+ /** 严格遵循父子不互相关联*/
36
+ checkStrictly?: boolean;
37
+ /**是否多选*/
38
+ isMultiple?: boolean;
39
+ /**当前项搜索框的 label*/
40
+ label?: string;
41
+ /**搜索项参数,根据 element plus 官方文档来传递,该属性所有值会透传到组件*/
42
+ props?: any;
43
+ /**当搜索项 key 不为 prop 属性时,可通过 key 指定*/
44
+ key?: string;
45
+ /**搜索提示*/
46
+ tooltip?: string;
47
+ /**搜索项排序(从大到小)*/
48
+ order?: number;
49
+ /**搜索项所占用的列数,默认为 1 列*/
50
+ span?: number;
51
+ /**搜索字段左侧偏移列数*/
52
+ offset?: number;
53
+ /**搜索项默认值*/
54
+ defaultValue?: string | number | boolean | any[] | Ref<any>;
55
+ /**自定义搜索内容渲染(tsx语法)*/
56
+ render?: (scope: SearchRenderScope) => VNode;
57
+ } & Partial<Record<BreakPoint, Responsive>>;
58
+ export type FieldNamesProps = {
59
+ /**搜索下拉对应字典label*/
60
+ label: string;
61
+ /**搜索下拉对应字典value*/
62
+ value: string;
63
+ children?: string;
64
+ };
65
+ export type RenderScope<T extends DefaultRow> = {
66
+ row: T;
67
+ $index: number;
68
+ column: TableColumnCtx<T>;
69
+ [key: string]: any;
70
+ };
71
+ export type HeaderRenderScope<T extends DefaultRow> = {
72
+ $index: number;
73
+ column: TableColumnCtx<T>;
74
+ [key: string]: any;
75
+ };
76
+ export interface ColumnProps<T extends DefaultRow = any> extends Partial<Omit<TableColumnCtx<T>, "type" | "children" | "renderCell" | "renderHeader">> {
77
+ /**列类型*/
78
+ type?: TypeProps;
79
+ /**是否是标签展示*/
80
+ tag?: boolean | Ref<boolean>;
81
+ /**是否显示在表格当中*/
82
+ isShow?: boolean | Ref<boolean>;
83
+ /**是否在 ColSetting 中可配置*/
84
+ isSetting?: boolean | Ref<boolean>;
85
+ /**搜索项配置*/
86
+ search?: SearchProps | undefined;
87
+ /**枚举字典*/
88
+ enum?: EnumProps[] | Ref<EnumProps[]> | ((params?: any) => Promise<any>);
89
+ /**当前单元格值是否根据 enum 格式化*/
90
+ isFilterEnum?: boolean | Ref<boolean>;
91
+ /**指定 label && value && children 的 key 值*/
92
+ fieldNames?: FieldNamesProps;
93
+ /**自定义表头内容渲染(tsx语法)*/
94
+ headerRender?: (scope: HeaderRenderScope<T>) => VNode;
95
+ /**自定义单元格内容渲染(tsx语法)*/
96
+ render?: (scope: RenderScope<T>) => VNode | string;
97
+ /**多级表头*/
98
+ _children?: ColumnProps<T>[];
99
+ /**是否禁用*/
100
+ isDisabled?: boolean | Ref<boolean>;
101
+ }
102
+ export type ProTableInstance = Omit<InstanceType<typeof ProTable>, keyof ComponentPublicInstance | keyof ProTableProps>;
@@ -0,0 +1,28 @@
1
+ import { ColumnProps } from '../../ProTable/interface';
2
+
3
+ interface SearchFormItem {
4
+ column: ColumnProps;
5
+ searchParam: {
6
+ [key: string]: any;
7
+ };
8
+ }
9
+ declare function __VLS_template(): {
10
+ default?(_: {}): any;
11
+ };
12
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SearchFormItem>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SearchFormItem>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,46 @@
1
+ import { ColumnProps } from '../ProTable/interface';
2
+ import { BreakPoint } from '../Grid/interface';
3
+
4
+ interface ProTableProps {
5
+ isHideSearchBtn?: boolean;
6
+ columns?: ColumnProps[];
7
+ searchParam?: {
8
+ [key: string]: any;
9
+ };
10
+ searchCol: number | Record<BreakPoint, number>;
11
+ search: (params: any) => void;
12
+ reset: (params: any) => void;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableProps>, {
15
+ columns: () => never[];
16
+ searchParam: () => {};
17
+ isHideSearchBtn: boolean;
18
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableProps>, {
19
+ columns: () => never[];
20
+ searchParam: () => {};
21
+ isHideSearchBtn: boolean;
22
+ }>>> & Readonly<{}>, {
23
+ searchParam: {
24
+ [key: string]: any;
25
+ };
26
+ columns: ColumnProps[];
27
+ isHideSearchBtn: boolean;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
29
+ export default _default;
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToRuntimeProps<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: import('vue').PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
39
+ type __VLS_WithDefaults<P, D> = {
40
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
+ default: D[K];
42
+ }> : P[K];
43
+ };
44
+ type __VLS_Prettify<T> = {
45
+ [K in keyof T]: T[K];
46
+ } & {};
@@ -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,4 @@
1
+ export declare const DEFAULT_PRIMARY: string;
2
+ export declare const ROUTER_WHITE_LIST: string[];
3
+ export declare const AMAP_MAP_KEY: string;
4
+ export declare const BAIDU_MAP_KEY: string;
@@ -0,0 +1,3 @@
1
+ import { default as NProgress } from 'nprogress';
2
+
3
+ export default NProgress;
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+
3
+ declare const directives: {
4
+ install: (app: App<Element>) => void;
5
+ };
6
+ export default directives;
@@ -0,0 +1,4 @@
1
+ import { Directive } from 'vue';
2
+
3
+ declare const auth: Directive;
4
+ export default auth;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @description:请求配置
3
+ */
4
+ export declare enum ResultEnum {
5
+ SUCCESS = 200,
6
+ ERROR = 500,
7
+ OVERDUE = 403,
8
+ TIMEOUT = 10000,
9
+ TYPE = "success"
10
+ }
11
+ /**
12
+ * @description:请求方法
13
+ */
14
+ export declare enum RequestEnum {
15
+ GET = "GET",
16
+ POST = "POST",
17
+ PATCH = "PATCH",
18
+ PUT = "PUT",
19
+ DELETE = "DELETE"
20
+ }
21
+ /**
22
+ * @description:常用的 contentTyp 类型
23
+ */
24
+ export declare enum ContentTypeEnum {
25
+ JSON = "application/json;charset=UTF-8",
26
+ TEXT = "text/plain;charset=UTF-8",
27
+ FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
28
+ FORM_DATA = "multipart/form-data;charset=UTF-8"
29
+ }
@@ -0,0 +1,30 @@
1
+ export declare namespace Table {
2
+ interface Pageable {
3
+ pageNum: number;
4
+ pageSize: number;
5
+ total: number;
6
+ }
7
+ interface StateProps {
8
+ tableData: any[];
9
+ pageable: Pageable;
10
+ searchParam: {
11
+ [key: string]: any;
12
+ };
13
+ searchInitParam: {
14
+ [key: string]: any;
15
+ };
16
+ totalParam: {
17
+ [key: string]: any;
18
+ };
19
+ icon?: {
20
+ [key: string]: any;
21
+ };
22
+ }
23
+ }
24
+ export declare namespace HandleData {
25
+ type MessageType = "" | "success" | "warning" | "info" | "error";
26
+ }
27
+ export declare namespace Theme {
28
+ type ThemeType = "light" | "inverted" | "dark";
29
+ type GreyOrWeakType = "grey" | "weak";
30
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @description 页面按钮权限
3
+ * */
4
+ export declare const useAuthButtons: () => {
5
+ BUTTONS: import('vue').ComputedRef<{
6
+ [key: string]: boolean;
7
+ }>;
8
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @description 接收数据流生成 blob,创建链接,下载文件
3
+ * @param {Function} api 导出表格的api方法 (必传)
4
+ * @param {String} tempName 导出的文件名 (必传)
5
+ * @param {Object} params 导出的参数 (默认{})
6
+ * @param {Boolean} isNotify 是否有导出消息提示 (默认为 true)
7
+ * @param {String} fileType 导出的文件格式 (默认为.xlsx)
8
+ * @param {String} isAddTime 加不加时间戳 (默认为 true)
9
+ * @param {String} isNeedDecrypt 是否需要解密文件流 (默认为 true)
10
+ * @param {String} key 解密key (默认为 '')
11
+ * */
12
+ export declare const useDownload: (api: (param: any) => Promise<any>, tempName: string, params?: any, isNotify?: boolean, fileType?: string, isAddTime?: boolean, isNeedDecrypt?: boolean, key?: string) => Promise<void>;
13
+ /**
14
+ * @description 接收数据流生成 blob,创建链接,预览pdf
15
+ * @param {Function} api 导出表格的api方法 (必传)
16
+ * @param {String} tempName 导出的文件名 (必传)
17
+ * @param {Object} params 导出的参数 (默认{})
18
+ * @param {String} fileType 导出的文件格式 (默认为.xlsx)
19
+ * */
20
+ export declare const useViewPdf: (api: (param: any) => Promise<any>, tempName: string, params?: any, fileType?: string) => Promise<void>;
@@ -0,0 +1,12 @@
1
+ import { HandleData } from './interface';
2
+
3
+ /**
4
+ * @description 操作单条数据信息 (二次确认【删除、禁用、启用、重置密码】)
5
+ * @param {Function} api 操作数据接口的api方法 (必传)
6
+ * @param {Object} params 携带的操作数据参数 {id,params} (必传)
7
+ * @param {String} message 提示信息 (必传)
8
+ * @param {String} responseMsg 返回信息 (必传)
9
+ * @param {String} confirmType icon类型 (不必传,默认为 warning)
10
+ * @returns {Promise}
11
+ */
12
+ export declare const useHandleData: (api: (params: any) => Promise<any>, params: any | undefined, message: string, responseMsg: string, confirmType?: HandleData.MessageType, tipMsg?: string) => Promise<unknown>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @description 网络是否可用
3
+ * */
4
+ export declare const useOnline: () => {
5
+ online: import('vue').Ref<boolean, boolean>;
6
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @description 表格多选数据操作
3
+ * @param {String} rowKey 当表格可以多选时,所指定的 id
4
+ * */
5
+ export declare const useSelection: (rowKey?: string) => {
6
+ isSelected: import('vue').Ref<boolean, boolean>;
7
+ selectedList: import('vue').Ref<{
8
+ [key: string]: any;
9
+ }[], {
10
+ [key: string]: any;
11
+ }[]>;
12
+ selectedListIds: import('vue').ComputedRef<string[]>;
13
+ selectionChange: (rowArr: {
14
+ [key: string]: any;
15
+ }[]) => void;
16
+ selectedRow: import('vue').ComputedRef<any>;
17
+ };
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @description table 页面操作方法封装
3
+ * @param {Function} api 获取表格数据 api 方法 (必传)
4
+ * @param {Object} initParam 获取数据初始化参数 (非必传,默认为{})
5
+ * @param {Boolean} isPageable 是否有分页 (非必传,默认为true)
6
+ * @param {Function} dataCallBack 对后台返回的数据进行处理的方法 (非必传)
7
+ * */
8
+ export declare const useTable: (api?: (params: any) => Promise<any>, initParam?: object, isPageable?: boolean, dataCallBack?: (data: any) => any, requestError?: (error: any) => void) => {
9
+ getTableList: () => Promise<void>;
10
+ search: () => void;
11
+ searchNotChangePage: () => void;
12
+ reset: () => void;
13
+ handleSizeChange: (val: number) => void;
14
+ handleCurrentChange: (val: number) => void;
15
+ updatedTotalParam: () => void;
16
+ tableData: import('vue').Ref<any[], any[]>;
17
+ pageable: import('vue').Ref<{
18
+ pageNum: number;
19
+ pageSize: number;
20
+ total: number;
21
+ }, {
22
+ pageNum: number;
23
+ pageSize: number;
24
+ total: number;
25
+ }>;
26
+ searchParam: import('vue').Ref<{
27
+ [key: string]: any;
28
+ }, {
29
+ [key: string]: any;
30
+ }>;
31
+ searchInitParam: import('vue').Ref<{
32
+ [key: string]: any;
33
+ }, {
34
+ [key: string]: any;
35
+ }>;
36
+ totalParam: import('vue').Ref<{
37
+ [key: string]: any;
38
+ }, {
39
+ [key: string]: any;
40
+ }>;
41
+ icon?: import('vue').Ref<{
42
+ [key: string]: any;
43
+ } | undefined, {
44
+ [key: string]: any;
45
+ } | undefined> | undefined;
46
+ };
@@ -0,0 +1,13 @@
1
+ import { Theme } from './interface';
2
+
3
+ /**
4
+ * @description 全局主题 hooks
5
+ * */
6
+ export declare const useTheme: () => {
7
+ initTheme: () => void;
8
+ switchDark: () => void;
9
+ changePrimary: (val: string | null) => void;
10
+ changeGreyOrWeak: (type: Theme.GreyOrWeakType, value: boolean) => void;
11
+ setAsideTheme: () => void;
12
+ setHeaderTheme: () => void;
13
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @description 获取本地时间
3
+ */
4
+ export declare const useTime: () => {
5
+ year: import('vue').Ref<number, number>;
6
+ month: import('vue').Ref<string | number, string | number>;
7
+ day: import('vue').Ref<string | number, string | number>;
8
+ hour: import('vue').Ref<string | number, string | number>;
9
+ minute: import('vue').Ref<string | number, string | number>;
10
+ second: import('vue').Ref<string | number, string | number>;
11
+ week: import('vue').Ref<string, string>;
12
+ nowTime: import('vue').Ref<string, string>;
13
+ nowTimeFormat: import('vue').Ref<string, string>;
14
+ nowTime_Export: import('vue').Ref<string, string>;
15
+ };
@@ -0,0 +1,62 @@
1
+ declare const i18n: import('vue-i18n').I18n<{
2
+ zh: {
3
+ home: {
4
+ welcome: string;
5
+ };
6
+ tabs: {
7
+ refresh: string;
8
+ maximize: string;
9
+ closeCurrent: string;
10
+ closeLeft: string;
11
+ closeRight: string;
12
+ closeOther: string;
13
+ closeAll: string;
14
+ };
15
+ header: {
16
+ componentSize: string;
17
+ language: string;
18
+ theme: string;
19
+ layoutConfig: string;
20
+ primary: string;
21
+ darkMode: string;
22
+ greyMode: string;
23
+ weakMode: string;
24
+ fullScreen: string;
25
+ exitFullScreen: string;
26
+ changePassword: string;
27
+ editPersonalInfo: string;
28
+ logout: string;
29
+ };
30
+ };
31
+ en: {
32
+ home: {
33
+ welcome: string;
34
+ };
35
+ tabs: {
36
+ refresh: string;
37
+ maximize: string;
38
+ closeCurrent: string;
39
+ closeLeft: string;
40
+ closeRight: string;
41
+ closeOther: string;
42
+ closeAll: string;
43
+ };
44
+ header: {
45
+ componentSize: string;
46
+ language: string;
47
+ theme: string;
48
+ layoutConfig: string;
49
+ primary: string;
50
+ darkMode: string;
51
+ greyMode: string;
52
+ weakMode: string;
53
+ fullScreen: string;
54
+ exitFullScreen: string;
55
+ personalData: string;
56
+ changePassword: string;
57
+ editPersonalInfo: string;
58
+ logout: string;
59
+ };
60
+ };
61
+ }, {}, {}, string, false>;
62
+ export default i18n;
@@ -0,0 +1,31 @@
1
+ declare const _default: {
2
+ home: {
3
+ welcome: string;
4
+ };
5
+ tabs: {
6
+ refresh: string;
7
+ maximize: string;
8
+ closeCurrent: string;
9
+ closeLeft: string;
10
+ closeRight: string;
11
+ closeOther: string;
12
+ closeAll: string;
13
+ };
14
+ header: {
15
+ componentSize: string;
16
+ language: string;
17
+ theme: string;
18
+ layoutConfig: string;
19
+ primary: string;
20
+ darkMode: string;
21
+ greyMode: string;
22
+ weakMode: string;
23
+ fullScreen: string;
24
+ exitFullScreen: string;
25
+ personalData: string;
26
+ changePassword: string;
27
+ editPersonalInfo: string;
28
+ logout: string;
29
+ };
30
+ };
31
+ export default _default;
@@ -0,0 +1,30 @@
1
+ declare const _default: {
2
+ home: {
3
+ welcome: string;
4
+ };
5
+ tabs: {
6
+ refresh: string;
7
+ maximize: string;
8
+ closeCurrent: string;
9
+ closeLeft: string;
10
+ closeRight: string;
11
+ closeOther: string;
12
+ closeAll: string;
13
+ };
14
+ header: {
15
+ componentSize: string;
16
+ language: string;
17
+ theme: string;
18
+ layoutConfig: string;
19
+ primary: string;
20
+ darkMode: string;
21
+ greyMode: string;
22
+ weakMode: string;
23
+ fullScreen: string;
24
+ exitFullScreen: string;
25
+ changePassword: string;
26
+ editPersonalInfo: string;
27
+ logout: string;
28
+ };
29
+ };
30
+ 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,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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -0,0 +1,28 @@
1
+ export interface ProTableProps {
2
+ isShowCustomTabs?: boolean;
3
+ }
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableProps>, {
5
+ isShowCustomTabs: boolean;
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableProps>, {
7
+ isShowCustomTabs: boolean;
8
+ }>>> & Readonly<{}>, {
9
+ isShowCustomTabs: boolean;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ type __VLS_WithDefaults<P, D> = {
22
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
23
+ default: D[K];
24
+ }> : P[K];
25
+ };
26
+ type __VLS_Prettify<T> = {
27
+ [K in keyof T]: T[K];
28
+ } & {};
@@ -0,0 +1,15 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ menuList: Menu.MenuOptions[];
3
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ menuList: Menu.MenuOptions[];
5
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
7
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
+ type __VLS_TypePropsToRuntimeProps<T> = {
9
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
10
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
11
+ } : {
12
+ type: import('vue').PropType<T[K]>;
13
+ required: true;
14
+ };
15
+ };
@@ -0,0 +1,6 @@
1
+ export interface ProTableProps {
2
+ /** 是否是自定义tabs*/
3
+ isCustomTabs: boolean;
4
+ }
5
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ export default _default;