yxuse 3.0.90 → 3.0.92

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 (90) hide show
  1. package/lib/api.cjs.js +1 -1
  2. package/lib/api.es.js +2 -2
  3. package/lib/components.cjs.js +1 -1
  4. package/lib/components.es.js +11 -9
  5. package/lib/hooks.cjs.js +1 -1
  6. package/lib/hooks.es.js +6 -6
  7. package/lib/index.cjs.js +1 -1
  8. package/lib/index.cjs11.js +1 -1
  9. package/lib/index.cjs12.js +1 -1
  10. package/lib/index.cjs13.js +1 -1
  11. package/lib/index.cjs14.js +1 -1
  12. package/lib/index.cjs2.js +1 -1
  13. package/lib/index.cjs3.js +1 -1
  14. package/lib/index.cjs4.js +1 -1
  15. package/lib/index.cjs5.js +1 -1
  16. package/lib/index.cjs5.js.gz +0 -0
  17. package/lib/index.cjs6.js +1 -1
  18. package/lib/index.cjs7.js +1 -1
  19. package/lib/index.cjs8.js +1 -1
  20. package/lib/index.cjs9.js +1 -1
  21. package/lib/index.es.js +8 -9
  22. package/lib/index.es11.js +454 -15
  23. package/lib/index.es11.js.gz +0 -0
  24. package/lib/index.es12.js +226 -405
  25. package/lib/index.es13.js +29 -202
  26. package/lib/index.es14.js +19 -34
  27. package/lib/index.es2.js +4 -3
  28. package/lib/index.es3.js +2 -2
  29. package/lib/index.es4.js +3 -3
  30. package/lib/index.es5.js +1751 -34
  31. package/lib/index.es5.js.gz +0 -0
  32. package/lib/index.es6.js +35 -841
  33. package/lib/index.es6.js.gz +0 -0
  34. package/lib/index.es7.js +1 -1
  35. package/lib/index.es8.js +1 -1
  36. package/lib/index.es9.js +4 -125
  37. package/lib/theme.cjs.js +1 -1
  38. package/lib/theme.es.js +12 -13
  39. package/lib/translate.cjs.js +1 -1
  40. package/lib/translate.es.js +9 -10
  41. package/lib/utils.cjs.js +1 -1
  42. package/lib/utils.es.js +5 -4
  43. package/lib/yxIcon.cjs.js +1 -1
  44. package/lib/yxIcon.es.js +2 -2
  45. package/lib/yxi18n.cjs.js +1 -1
  46. package/lib/yxi18n.es.js +1 -1
  47. package/lib/yxuse.css +1 -1
  48. package/lib/yxuse.css.gz +0 -0
  49. package/package.json +1 -1
  50. package/types/components/CommonPage/index.d.ts +3 -0
  51. package/types/components/CommonPage/page.d.ts +64 -0
  52. package/types/components/CommonPage/pagination.d.ts +9 -0
  53. package/types/components/CommonPage/props.d.ts +36 -0
  54. package/types/components/CommonPage/search.d.ts +4 -0
  55. package/types/components/CommonPage/table.d.ts +3 -0
  56. package/types/components/CommonPage/type.d.ts +1 -0
  57. package/types/components/YxForm/index.vue.d.ts +1 -1
  58. package/types/components/YxForm/type.d.ts +14 -1
  59. package/types/components/YxNormalPage/config.d.ts +12 -0
  60. package/types/components/YxNormalPage/form.d.ts +7 -0
  61. package/types/components/YxNormalPage/index.d.ts +3 -0
  62. package/types/components/YxNormalPage/page.d.ts +83 -0
  63. package/types/components/YxNormalPage/pagination.d.ts +9 -0
  64. package/types/components/YxNormalPage/props.d.ts +40 -0
  65. package/types/components/YxNormalPage/search.d.ts +9 -0
  66. package/types/components/YxNormalPage/table.d.ts +5 -0
  67. package/types/components/YxNormalPage/type.d.ts +69 -0
  68. package/types/components/YxTable/index.vue.d.ts +4 -4
  69. package/types/components/YxTableBar/bar.d.ts +47 -0
  70. package/types/components/YxTableBar/config.d.ts +18 -0
  71. package/types/components/YxTableBar/index.d.ts +11 -0
  72. package/types/components/YxTableBar/props.d.ts +23 -0
  73. package/types/components/YxTableBar/type.d.ts +11 -0
  74. package/types/components/YxTablePro/index.d.ts +14 -14
  75. package/types/components/YxUpload/index.vue.d.ts +3 -3
  76. package/types/components/Yxbutton/index.vue.d.ts +6 -6
  77. package/types/components/index.d.ts +2 -0
  78. package/types/hooks/useConfirm/index.d.ts +1 -1
  79. package/types/hooks/useDialog/type.d.ts +1 -1
  80. package/types/theme/config.d.ts +1 -1
  81. package/types/theme/index.d.ts +1 -1
  82. package/types/utils/common/index.d.ts +7 -1
  83. package/types/utils/common/util.d.ts +1 -1
  84. package/types/utils/excel/index.d.ts +8 -8
  85. package/types/utils/http/index.d.ts +8 -0
  86. package/types/utils/subscribe/index.d.ts +1 -1
  87. package/lib/index.cjs15.js +0 -1
  88. package/lib/index.cjs6.js.gz +0 -0
  89. package/lib/index.es12.js.gz +0 -0
  90. package/lib/index.es15.js +0 -22
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @Author: wangxin wangxin@emposat.com
3
+ * @Date: 2025-08-12 16:18:41
4
+ * @LastEditors: wangxin wangxin@emposat.com
5
+ * @LastEditTime: 2025-08-13 15:59:06
6
+ * @FilePath: packages/components/YxNormalPage/pagination.tsx
7
+ * @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
8
+ */
9
+ export declare const paginationRender: (pageInfo: any, updatePage: Function) => import("vue/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { PropType } from 'vue';
2
+ import { YxPageTableProps, YxPageFormProps, YxPageSearchProps, YxPageRequestConfig, YxPageConf, YxPageTableBarProps } from './type.ts';
3
+
4
+ export declare const pageProps: {
5
+ searchProps: {
6
+ required: boolean;
7
+ type: PropType<YxPageSearchProps>;
8
+ default: () => {};
9
+ };
10
+ tableProps: {
11
+ required: boolean;
12
+ type: PropType<YxPageTableProps>;
13
+ default: () => {};
14
+ };
15
+ formProps: {
16
+ required: boolean;
17
+ type: PropType<YxPageFormProps>;
18
+ default: () => {};
19
+ };
20
+ tableBarProps: {
21
+ required: boolean;
22
+ type: PropType<YxPageTableBarProps>;
23
+ default: () => {};
24
+ };
25
+ pageConfig: {
26
+ required: boolean;
27
+ type: PropType<YxPageConf>;
28
+ default: () => {
29
+ isPage: boolean;
30
+ gap: number;
31
+ pageSize: number;
32
+ pageIndex: number;
33
+ };
34
+ };
35
+ requestConfig: {
36
+ required: boolean;
37
+ type: PropType<YxPageRequestConfig>;
38
+ default: () => {};
39
+ };
40
+ };
@@ -0,0 +1,9 @@
1
+ import { YxPageConf, YxPageSearchProps } from '..';
2
+
3
+ export declare const searchRender: (searchProps: YxPageSearchProps, { search, create, name, reset, createHandle }: YxPageConf & {
4
+ search: Function;
5
+ createHandle: Function;
6
+ }) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
7
+ [key: string]: any;
8
+ }>;
9
+ export declare const getSearchFormData: () => any;
@@ -0,0 +1,5 @@
1
+ import { YxTableProps } from '..';
2
+
3
+ export declare const tableRender: (tableProps: YxTableProps, slots: any) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
4
+ [key: string]: any;
5
+ }>;
@@ -0,0 +1,69 @@
1
+ import { TableBarProps, YxFormProps, YxTableProps } from '..';
2
+
3
+ /**表单配置类型*/
4
+ export interface YxPageFormProps extends YxFormProps {
5
+ formList: any;
6
+ }
7
+ export interface YxPageSearchProps extends YxFormProps {
8
+ /**按钮插槽*/
9
+ btnSlots?: any;
10
+ formList: any;
11
+ }
12
+ export interface YxPageTableProps extends YxTableProps {
13
+ /**操作栏回调*/
14
+ onOperateHandle?: (type: string, data: any, index: number) => void;
15
+ }
16
+ export interface YxPageTableBarProps extends TableBarProps {
17
+ /**title插槽*/
18
+ barTitle?: any;
19
+ }
20
+ export interface YxPageConf {
21
+ /**是否需要分页*/
22
+ isPage?: boolean;
23
+ /**页间距*/
24
+ gap?: number;
25
+ /**是否需要重置按钮*/
26
+ reset?: boolean;
27
+ /**新增按钮*/
28
+ create?: boolean;
29
+ /**名称-新增/删除/编辑*/
30
+ name?: string;
31
+ /**分页大小*/
32
+ pageSize?: number;
33
+ /**当前页*/
34
+ pageIndex?: number;
35
+ /**分页大小*/
36
+ sizes?: number[];
37
+ /**分页布局*/
38
+ layout?: string;
39
+ /**是否需要TableBar*/
40
+ tableBar?: boolean;
41
+ /**是否将search表单放入tableBar title */
42
+ searchFormToBarTitle?: boolean;
43
+ }
44
+ export interface YxPageRequestConfig {
45
+ /**新增回调*/
46
+ createCallback?: Function;
47
+ /**搜索回调*/
48
+ searchCallback: Function;
49
+ /**编辑回调*/
50
+ updateCallback?: Function;
51
+ /**删除回调*/
52
+ deleteCallback?: Function;
53
+ /**详情回调*/
54
+ getDetailCallback?: Function;
55
+ }
56
+ export type YxPageProps = Partial<{
57
+ /**搜索配置*/
58
+ searchProps?: Omit<YxPageSearchProps, never>;
59
+ /**table配置*/
60
+ tableProps: Omit<YxPageTableProps, never>;
61
+ /**表单配置*/
62
+ formProps: Omit<YxPageFormProps, never>;
63
+ /**页面配置*/
64
+ pageConfig?: YxPageConf;
65
+ /**请求配置*/
66
+ requestConfig?: YxPageRequestConfig;
67
+ /**tableBar配置*/
68
+ tableBarProps?: Omit<YxPageTableBarProps, never>;
69
+ }>;
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
7
7
  };
8
8
  }>>, {
9
9
  tableRef: import('vue').Ref<any, any>;
10
- exportDataToExcel: (fileName?: string | undefined) => void;
10
+ exportDataToExcel: (fileName?: string) => void;
11
11
  updateColumns: (newColumns: ColumnsConfig) => Promise<void>;
12
12
  tableFormValidate: () => Promise<boolean>;
13
13
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -20,9 +20,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
20
20
  headerOverflowHide: boolean;
21
21
  };
22
22
  }>>> & Readonly<{
23
- "onOperate-handle"?: ((type: string, data: object, index: number) => any) | undefined;
24
- "onSort-end"?: ((oldIndex: number, newIndex: number) => any) | undefined;
25
- "onUpdate-page"?: ((type: string, value: number) => any) | undefined;
23
+ "onOperate-handle"?: (type: string, data: object, index: number) => any;
24
+ "onSort-end"?: (oldIndex: number, newIndex: number) => any;
25
+ "onUpdate-page"?: (type: string, value: number) => any;
26
26
  }>, {
27
27
  config: import('./type.ts').TableConf;
28
28
  rowKey: string;
@@ -0,0 +1,47 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ columns: {
3
+ type: import('vue').PropType<import('..').TableColumn[]>;
4
+ default: () => any[];
5
+ };
6
+ barLayout: {
7
+ type: import('vue').PropType<String>;
8
+ default: () => string;
9
+ };
10
+ barStyle: {
11
+ type: import('vue').PropType<any>;
12
+ default: {
13
+ padding: string;
14
+ };
15
+ };
16
+ tableKey: {
17
+ type: import('vue').PropType<string | number>;
18
+ default: string;
19
+ };
20
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
21
+ [key: string]: any;
22
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ columns: {
24
+ type: import('vue').PropType<import('..').TableColumn[]>;
25
+ default: () => any[];
26
+ };
27
+ barLayout: {
28
+ type: import('vue').PropType<String>;
29
+ default: () => string;
30
+ };
31
+ barStyle: {
32
+ type: import('vue').PropType<any>;
33
+ default: {
34
+ padding: string;
35
+ };
36
+ };
37
+ tableKey: {
38
+ type: import('vue').PropType<string | number>;
39
+ default: string;
40
+ };
41
+ }>> & Readonly<{}>, {
42
+ columns: import('..').TableColumn[];
43
+ barLayout: String;
44
+ barStyle: any;
45
+ tableKey: string | number;
46
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
47
+ export default _default;
@@ -0,0 +1,18 @@
1
+ export declare const tableBarConfig: ({
2
+ icon: string;
3
+ label: string;
4
+ key: string;
5
+ render: (item: any, options: any) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
6
+ [key: string]: any;
7
+ }>;
8
+ iconActive?: undefined;
9
+ } | {
10
+ icon: string;
11
+ iconActive: string;
12
+ label: string;
13
+ key: string;
14
+ render: (item: any, options: any) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
15
+ [key: string]: any;
16
+ }>;
17
+ })[];
18
+ export declare const setCollapse: (value: any) => void;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @Author: wangxin wangxin@emposat.com
3
+ * @Date: 2025-08-13 16:37:24
4
+ * @LastEditors: wangxin wangxin@emposat.com
5
+ * @LastEditTime: 2025-08-13 16:49:15
6
+ * @FilePath: packages/components/YxTableBar/index.ts
7
+ * @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
8
+ */
9
+ export { default as YxTableBar } from './bar.ts';
10
+ export * from './type.ts';
11
+ export * from './bar.ts';
@@ -0,0 +1,23 @@
1
+ import { TableColumn } from '..';
2
+ import { PropType } from 'vue';
3
+
4
+ export declare const tableBarProps: {
5
+ columns: {
6
+ type: PropType<TableColumn[]>;
7
+ default: () => any[];
8
+ };
9
+ barLayout: {
10
+ type: PropType<String>;
11
+ default: () => string;
12
+ };
13
+ barStyle: {
14
+ type: PropType<any>;
15
+ default: {
16
+ padding: string;
17
+ };
18
+ };
19
+ tableKey: {
20
+ type: PropType<string | number>;
21
+ default: string;
22
+ };
23
+ };
@@ -0,0 +1,11 @@
1
+ import { TableColumn } from '..';
2
+
3
+ export interface TableBarProps {
4
+ /**列设置*/
5
+ columns?: TableColumn[];
6
+ /**表格Bar布局*/
7
+ barLayout?: BarLayout;
8
+ /**表格Bar样式*/
9
+ barStyle?: string;
10
+ }
11
+ export type BarLayout = "refresh" | "font" | "column" | "border" | "fullscreen";
@@ -1,27 +1,27 @@
1
1
  declare const YxTablePro: import('vue').DefineComponent<{
2
2
  tableData: any[];
3
- rowKey?: string | undefined;
3
+ rowKey?: string;
4
4
  columns: import('./type').ColumnsConfig;
5
- pageInfo?: import('./type').PageInfo | undefined;
6
- sort?: boolean | undefined;
7
- sortHandle?: string | undefined;
5
+ pageInfo?: import('./type').PageInfo;
6
+ sort?: boolean;
7
+ sortHandle?: string;
8
8
  }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("operate-handle" | "sort-end" | "update-page")[], "operate-handle" | "sort-end" | "update-page", import('vue').PublicProps, Readonly<{
9
9
  tableData: any[];
10
- rowKey?: string | undefined;
10
+ rowKey?: string;
11
11
  columns: import('./type').ColumnsConfig;
12
- pageInfo?: import('./type').PageInfo | undefined;
13
- sort?: boolean | undefined;
14
- sortHandle?: string | undefined;
12
+ pageInfo?: import('./type').PageInfo;
13
+ sort?: boolean;
14
+ sortHandle?: string;
15
15
  }> & Readonly<{
16
- "onOperate-handle"?: ((...args: any[]) => any) | undefined;
17
- "onSort-end"?: ((...args: any[]) => any) | undefined;
18
- "onUpdate-page"?: ((...args: any[]) => any) | undefined;
16
+ "onOperate-handle"?: (...args: any[]) => any;
17
+ "onSort-end"?: (...args: any[]) => any;
18
+ "onUpdate-page"?: (...args: any[]) => any;
19
19
  }>, {
20
- sort: boolean | undefined;
20
+ sort: boolean;
21
+ rowKey: string;
21
22
  tableData: any[];
22
- rowKey: string | undefined;
23
23
  columns: import('./type').ColumnsConfig;
24
- pageInfo: import('./type').PageInfo | undefined;
24
+ pageInfo: import('./type').PageInfo;
25
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
26
  export default YxTablePro;
27
27
  export * from './type';
@@ -2,14 +2,14 @@ import { UploadUserFile, UploadInstance } from 'element-plus';
2
2
  import { YxUploadProps } from './type';
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<YxUploadProps>>, {
5
- upload: import('vue').Ref<UploadInstance | undefined, UploadInstance | undefined>;
5
+ upload: import('vue').Ref<UploadInstance, UploadInstance>;
6
6
  getFileList: () => UploadUserFile[];
7
7
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
8
  "update:fileObsUrl": (value: string) => void;
9
9
  getFile: (value: any) => void;
10
10
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<YxUploadProps>>> & Readonly<{
11
- "onUpdate:fileObsUrl"?: ((value: string) => any) | undefined;
12
- onGetFile?: ((value: any) => any) | undefined;
11
+ "onUpdate:fileObsUrl"?: (value: string) => any;
12
+ onGetFile?: (value: any) => any;
13
13
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
14
  export default _default;
15
15
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,18 +1,18 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- onClick?: (() => void | Promise<void>) | undefined;
2
+ onClick?: () => void | Promise<void>;
3
3
  /**不显示loading */
4
- noLoading?: boolean | undefined;
4
+ noLoading?: boolean;
5
5
  /**是否需要回车键触发click事件 */
6
- enter?: boolean | undefined;
6
+ enter?: boolean;
7
7
  }>, {
8
8
  enter: boolean;
9
9
  noLoading: boolean;
10
10
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
- onClick?: (() => void | Promise<void>) | undefined;
11
+ onClick?: () => void | Promise<void>;
12
12
  /**不显示loading */
13
- noLoading?: boolean | undefined;
13
+ noLoading?: boolean;
14
14
  /**是否需要回车键触发click事件 */
15
- enter?: boolean | undefined;
15
+ enter?: boolean;
16
16
  }>, {
17
17
  enter: boolean;
18
18
  noLoading: boolean;
@@ -1,6 +1,8 @@
1
1
  export * from './YxDialog/index';
2
2
  export * from './YxDrawer/index';
3
3
  export * from './YxTable/index';
4
+ export * from './YxNormalPage/index';
5
+ export * from './YxTableBar/index';
4
6
  export * from './YxForm/index';
5
7
  export * from './Update/index';
6
8
  export * from './YxIcon/index';
@@ -1,3 +1,3 @@
1
1
  import { ElMessageBoxOptions } from 'element-plus';
2
2
 
3
- export declare const useConfirm: (content: string, confrmCallback: Function, options?: ElMessageBoxOptions) => void;
3
+ export declare const useConfirm: (content: string, confirmCallback: Function, options?: ElMessageBoxOptions) => void;
@@ -5,7 +5,7 @@ export interface Props {
5
5
  /**宽度 */
6
6
  width?: string;
7
7
  /**标题 */
8
- title?: string;
8
+ title?: string | undefined;
9
9
  /**是否显示底部按钮 */
10
10
  showFooter?: boolean;
11
11
  /**是否在成功后自动关闭弹窗 */
@@ -13,5 +13,5 @@ export declare const defaultConfig: {
13
13
  isRenderLang: boolean;
14
14
  systemKey: string;
15
15
  isTranslateApi: boolean;
16
- whitelistTranslateApi: never[];
16
+ whitelistTranslateApi: any[];
17
17
  };
@@ -45,7 +45,7 @@ export declare const getGroupColor: (groupName: string) => object;
45
45
  * @param cssVarName 色值变量
46
46
  * @param color 名称
47
47
  */
48
- export declare const findColorByTheme: (cssVarName: string, color: string) => string | null;
48
+ export declare const findColorByTheme: (cssVarName: string, color: string) => string;
49
49
  /**
50
50
  * @description:注册当前系统私有css变量
51
51
  * @param systemName 系统名称
@@ -36,7 +36,7 @@ export declare const enumToArray: <T extends Record<string, string | number>>(en
36
36
  * @description 判断该色值是否是深色
37
37
  * @param color 色值
38
38
  */
39
- export declare const isDarkColor: (color: string) => boolean | null;
39
+ export declare const isDarkColor: (color: string) => boolean;
40
40
  /**
41
41
  * @description 判断两个色值是否为相近色
42
42
  * @param color1 第一个色值
@@ -70,4 +70,10 @@ export declare const getCownDownTime: (time: string) => string;
70
70
  * @options 其他参数
71
71
  */
72
72
  export declare const useConfirm: (content: string, confrmCallback: Function, options?: ElMessageBoxOptions) => void;
73
+ /**
74
+ * 深拷贝
75
+ * @param obj 要深拷贝的对象
76
+ * @returns 深拷贝后的对象
77
+ */
78
+ export declare function deepClone<T>(value: T, cache?: WeakMap<any, any>): T;
73
79
  export {};
@@ -1,7 +1,7 @@
1
1
  import { App, Plugin } from 'vue';
2
2
 
3
3
  export type SFCWithInstall<T> = T & Plugin;
4
- export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E | undefined) => SFCWithInstall<T> & E;
4
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
5
5
  export declare const makeInstaller: (components?: Plugin[]) => {
6
6
  install: (app: App) => void;
7
7
  };
@@ -1,13 +1,13 @@
1
1
  export declare function export_table_to_excel(id: any): void;
2
2
  export declare function export_json_to_excel({ multiHeader, header, data, filename, merges, autoWidth, excelWidth, bookType }?: {
3
- multiHeader?: never[] | undefined;
3
+ multiHeader?: any[];
4
4
  header: any;
5
5
  data: any;
6
6
  filename: any;
7
- merges?: never[] | undefined;
8
- autoWidth?: boolean | undefined;
9
- excelWidth?: boolean | undefined;
10
- bookType?: string | undefined;
7
+ merges?: any[];
8
+ autoWidth?: boolean;
9
+ excelWidth?: boolean;
10
+ bookType?: string;
11
11
  }): void;
12
12
  export declare function readFile(file: any): Promise<unknown>;
13
13
  export declare function readExcel(file: any): Promise<unknown[]>;
@@ -17,9 +17,9 @@ export declare function export_excel_style({ header, data, filename, merges, aut
17
17
  header: any;
18
18
  data: any;
19
19
  filename: any;
20
- merges?: never[] | undefined;
21
- autoWidth?: boolean | undefined;
22
- excelWidth?: boolean | undefined;
20
+ merges?: any[];
21
+ autoWidth?: boolean;
22
+ excelWidth?: boolean;
23
23
  }): void;
24
24
  export declare function checkFileType(file: any, fileType: any): string;
25
25
  export declare function parseFile(file: any, config: any): Promise<{
@@ -14,6 +14,8 @@ declare class YxHttp {
14
14
  customResquestInterceptors?: any;
15
15
  /**自定义响应拦截器逻辑 */
16
16
  customResponseInterceptors?: Function;
17
+ /** 自定义全局响应处理回调*/
18
+ customGlobalResHandler?: (res: any) => boolean;
17
19
  constructor(config: CustomAxiosRequestConfig);
18
20
  private setupInterceptors;
19
21
  private getResMessage;
@@ -59,6 +61,12 @@ declare class YxHttp {
59
61
  * @param callback
60
62
  */
61
63
  interceptorsResponseCallback(callback: Function): void;
64
+ /**
65
+ * 自定义请求拦截器回调
66
+ * @param url
67
+ * @param callback
68
+ */
69
+ customGlobalResHandlerCallback(callback: Function): void;
62
70
  }
63
71
  declare const _default: YxHttp;
64
72
  export default _default;
@@ -6,7 +6,7 @@ declare class YxSubscribe {
6
6
  private subscribers;
7
7
  constructor();
8
8
  subscribe(sub: string, fn: Function): void;
9
- unsubscribe(sub: string, fn?: Function): never[] | undefined;
9
+ unsubscribe(sub: string, fn?: Function): any[];
10
10
  publish(message: Message): void;
11
11
  }
12
12
  declare const _default: YxSubscribe;
@@ -1 +0,0 @@
1
- "use strict";const e=require("./index.cjs12.js"),t=(t,o)=>e.http.post(`${e.URL.ttc.INTEGRATED_BASE_URL}/file/upload`,t,o),o=()=>e.http.get(`${e.URL.ttc.INTEGRATED_BASE_URL}/resource/group/list`,{},{headers:{noLoading:!0}}),r=(t,o)=>e.http.get(`${e.URL.ttc.INTEGRATED_BASE_URL}/resource/file/list/${o}/${t}`,{},{headers:{noLoading:!0}}),s=Object.freeze(Object.defineProperty({__proto__:null,getGroupListApi:o,getResourceListApi:r,uploadResourceApi:t},Symbol.toStringTag,{value:"Module"}));exports.getGroupListApi=o,exports.getResourceListApi=r,exports.index=s,exports.uploadResourceApi=t;
Binary file
Binary file
package/lib/index.es15.js DELETED
@@ -1,22 +0,0 @@
1
- import { a as http, U as URL } from "./index.es12.js";
2
- const uploadResourceApi = (params, config) => http.post(`${URL["ttc"].INTEGRATED_BASE_URL}/file/upload`, params, config);
3
- const getGroupListApi = () => http.get(
4
- `${URL["ttc"].INTEGRATED_BASE_URL}/resource/group/list`,
5
- {},
6
- {
7
- headers: { noLoading: true }
8
- }
9
- );
10
- const getResourceListApi = (groupUuid, sign) => http.get(`${URL["ttc"].INTEGRATED_BASE_URL}/resource/file/list/${sign}/${groupUuid}`, {}, { headers: { noLoading: true } });
11
- const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12
- __proto__: null,
13
- getGroupListApi,
14
- getResourceListApi,
15
- uploadResourceApi
16
- }, Symbol.toStringTag, { value: "Module" }));
17
- export {
18
- getResourceListApi as a,
19
- getGroupListApi as g,
20
- index as i,
21
- uploadResourceApi as u
22
- };