yxuse 3.0.91 → 3.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.cjs.js +1 -1
- package/lib/api.es.js +2 -2
- package/lib/components.cjs.js +1 -1
- package/lib/components.es.js +11 -9
- package/lib/hooks.cjs.js +1 -1
- package/lib/hooks.es.js +6 -6
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs11.js +1 -1
- package/lib/index.cjs12.js +1 -1
- package/lib/index.cjs13.js +1 -1
- package/lib/index.cjs14.js +1 -1
- package/lib/index.cjs2.js +1 -1
- package/lib/index.cjs3.js +1 -1
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs5.js +1 -1
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs6.js +1 -1
- package/lib/index.cjs7.js +1 -1
- package/lib/index.cjs8.js +1 -1
- package/lib/index.cjs9.js +1 -1
- package/lib/index.es.js +8 -9
- package/lib/index.es11.js +454 -15
- package/lib/index.es12.js +226 -423
- package/lib/index.es13.js +29 -202
- package/lib/index.es14.js +19 -34
- package/lib/index.es2.js +4 -3
- package/lib/index.es3.js +2 -2
- package/lib/index.es4.js +3 -3
- package/lib/index.es5.js +1770 -34
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es6.js +35 -841
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es7.js +1 -1
- package/lib/index.es8.js +1 -1
- package/lib/index.es9.js +4 -125
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +12 -13
- package/lib/translate.cjs.js +1 -1
- package/lib/translate.es.js +9 -10
- package/lib/utils.cjs.js +1 -1
- package/lib/utils.es.js +5 -4
- package/lib/yxIcon.cjs.js +1 -1
- package/lib/yxIcon.es.js +2 -2
- package/lib/yxi18n.cjs.js +1 -1
- package/lib/yxi18n.es.js +1 -1
- package/lib/yxuse.css +1 -1
- package/lib/yxuse.css.gz +0 -0
- package/package.json +2 -2
- package/types/components/CommonPage/pagination.d.ts +2 -2
- package/types/components/CommonPage/props.d.ts +2 -2
- package/types/components/YxForm/index.vue.d.ts +1 -1
- package/types/components/YxForm/type.d.ts +14 -1
- package/types/components/YxNormalPage/config.d.ts +12 -0
- package/types/components/YxNormalPage/form.d.ts +7 -0
- package/types/components/YxNormalPage/index.d.ts +3 -0
- package/types/components/YxNormalPage/page.d.ts +83 -0
- package/types/components/YxNormalPage/pagination.d.ts +9 -0
- package/types/components/YxNormalPage/props.d.ts +40 -0
- package/types/components/YxNormalPage/search.d.ts +9 -0
- package/types/components/YxNormalPage/table.d.ts +5 -0
- package/types/components/YxNormalPage/type.d.ts +69 -0
- package/types/components/YxTable/index.vue.d.ts +4 -4
- package/types/components/YxTableBar/bar.d.ts +56 -0
- package/types/components/YxTableBar/config.d.ts +18 -0
- package/types/components/YxTableBar/index.d.ts +11 -0
- package/types/components/YxTableBar/props.d.ts +27 -0
- package/types/components/YxTableBar/type.d.ts +11 -0
- package/types/components/YxTablePro/index.d.ts +14 -14
- package/types/components/YxUpload/index.vue.d.ts +3 -3
- package/types/components/Yxbutton/index.vue.d.ts +6 -6
- package/types/components/index.d.ts +2 -0
- package/types/hooks/useConfirm/index.d.ts +1 -1
- package/types/hooks/useDialog/type.d.ts +1 -1
- package/types/theme/config.d.ts +1 -1
- package/types/theme/index.d.ts +1 -1
- package/types/utils/common/index.d.ts +7 -1
- package/types/utils/common/util.d.ts +1 -1
- package/types/utils/excel/index.d.ts +8 -8
- package/types/utils/subscribe/index.d.ts +1 -1
- package/lib/index.cjs15.js +0 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.es15.js +0 -22
- /package/lib/{index.es12.js.gz → index.es11.js.gz} +0 -0
|
@@ -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
|
|
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"?: (
|
|
24
|
-
"onSort-end"?: (
|
|
25
|
-
"onUpdate-page"?: (
|
|
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,56 @@
|
|
|
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
|
+
isPage: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
27
|
+
columns: {
|
|
28
|
+
type: import('vue').PropType<import('..').TableColumn[]>;
|
|
29
|
+
default: () => any[];
|
|
30
|
+
};
|
|
31
|
+
barLayout: {
|
|
32
|
+
type: import('vue').PropType<String>;
|
|
33
|
+
default: () => string;
|
|
34
|
+
};
|
|
35
|
+
barStyle: {
|
|
36
|
+
type: import('vue').PropType<any>;
|
|
37
|
+
default: {
|
|
38
|
+
padding: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
tableKey: {
|
|
42
|
+
type: import('vue').PropType<string | number>;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
isPage: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
}>> & Readonly<{}>, {
|
|
50
|
+
columns: import('..').TableColumn[];
|
|
51
|
+
barLayout: String;
|
|
52
|
+
barStyle: any;
|
|
53
|
+
isPage: boolean;
|
|
54
|
+
tableKey: string | number;
|
|
55
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
56
|
+
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,27 @@
|
|
|
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
|
+
isPage: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -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
|
|
3
|
+
rowKey?: string;
|
|
4
4
|
columns: import('./type').ColumnsConfig;
|
|
5
|
-
pageInfo?: import('./type').PageInfo
|
|
6
|
-
sort?: boolean
|
|
7
|
-
sortHandle?: string
|
|
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
|
|
10
|
+
rowKey?: string;
|
|
11
11
|
columns: import('./type').ColumnsConfig;
|
|
12
|
-
pageInfo?: import('./type').PageInfo
|
|
13
|
-
sort?: boolean
|
|
14
|
-
sortHandle?: string
|
|
12
|
+
pageInfo?: import('./type').PageInfo;
|
|
13
|
+
sort?: boolean;
|
|
14
|
+
sortHandle?: string;
|
|
15
15
|
}> & Readonly<{
|
|
16
|
-
"onOperate-handle"?: (
|
|
17
|
-
"onSort-end"?: (
|
|
18
|
-
"onUpdate-page"?: (
|
|
16
|
+
"onOperate-handle"?: (...args: any[]) => any;
|
|
17
|
+
"onSort-end"?: (...args: any[]) => any;
|
|
18
|
+
"onUpdate-page"?: (...args: any[]) => any;
|
|
19
19
|
}>, {
|
|
20
|
-
sort: boolean
|
|
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
|
|
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
|
|
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"?: (
|
|
12
|
-
onGetFile?: (
|
|
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?: (
|
|
2
|
+
onClick?: () => void | Promise<void>;
|
|
3
3
|
/**不显示loading */
|
|
4
|
-
noLoading?: boolean
|
|
4
|
+
noLoading?: boolean;
|
|
5
5
|
/**是否需要回车键触发click事件 */
|
|
6
|
-
enter?: boolean
|
|
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?: (
|
|
11
|
+
onClick?: () => void | Promise<void>;
|
|
12
12
|
/**不显示loading */
|
|
13
|
-
noLoading?: boolean
|
|
13
|
+
noLoading?: boolean;
|
|
14
14
|
/**是否需要回车键触发click事件 */
|
|
15
|
-
enter?: boolean
|
|
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,
|
|
3
|
+
export declare const useConfirm: (content: string, confirmCallback: Function, options?: ElMessageBoxOptions) => void;
|
package/types/theme/config.d.ts
CHANGED
package/types/theme/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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?:
|
|
3
|
+
multiHeader?: any[];
|
|
4
4
|
header: any;
|
|
5
5
|
data: any;
|
|
6
6
|
filename: any;
|
|
7
|
-
merges?:
|
|
8
|
-
autoWidth?: boolean
|
|
9
|
-
excelWidth?: boolean
|
|
10
|
-
bookType?: string
|
|
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?:
|
|
21
|
-
autoWidth?: boolean
|
|
22
|
-
excelWidth?: boolean
|
|
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<{
|
|
@@ -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):
|
|
9
|
+
unsubscribe(sub: string, fn?: Function): any[];
|
|
10
10
|
publish(message: Message): void;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: YxSubscribe;
|
package/lib/index.cjs15.js
DELETED
|
@@ -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;
|
package/lib/index.cjs6.js.gz
DELETED
|
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
|
-
};
|
|
File without changes
|