yxuse 3.0.40 → 3.0.42
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/_commonjsHelpers.cjs.js +2 -0
- package/lib/_commonjsHelpers.cjs.js.map +1 -0
- package/lib/_commonjsHelpers.es.js +34 -0
- package/lib/_commonjsHelpers.es.js.map +1 -0
- package/lib/api.cjs.js +2 -1
- package/lib/api.cjs.js.map +1 -0
- package/lib/api.es.js +3 -3
- package/lib/api.es.js.map +1 -0
- package/lib/app.cjs.js +2 -1
- package/lib/app.cjs.js.map +1 -0
- package/lib/app.es.js +2 -1
- package/lib/app.es.js.map +1 -0
- package/lib/components.cjs.js +2 -1
- package/lib/components.cjs.js.map +1 -0
- package/lib/components.es.js +7 -13
- package/lib/components.es.js.map +1 -0
- package/lib/dayjs.min.cjs.js +2 -0
- package/lib/dayjs.min.cjs.js.map +1 -0
- package/lib/dayjs.min.es.js +283 -0
- package/lib/dayjs.min.es.js.gz +0 -0
- package/lib/dayjs.min.es.js.map +1 -0
- package/lib/directives.cjs.js +2 -1
- package/lib/directives.cjs.js.map +1 -0
- package/lib/directives.es.js +2 -3
- package/lib/directives.es.js.map +1 -0
- package/lib/hooks.cjs.js +2 -1
- package/lib/hooks.cjs.js.map +1 -0
- package/lib/hooks.es.js +2 -2
- package/lib/hooks.es.js.map +1 -0
- package/lib/index.cjs.js +2 -1
- package/lib/index.cjs.js.map +1 -0
- package/lib/index.cjs10.js +2 -1
- package/lib/index.cjs10.js.map +1 -0
- package/lib/index.cjs11.js +2 -1
- package/lib/index.cjs11.js.map +1 -0
- package/lib/index.cjs12.js +8 -1
- package/lib/index.cjs12.js.gz +0 -0
- package/lib/index.cjs12.js.map +1 -0
- package/lib/index.cjs13.js +2 -1
- package/lib/index.cjs13.js.map +1 -0
- package/lib/index.cjs14.js +2 -0
- package/lib/index.cjs14.js.map +1 -0
- package/lib/index.cjs2.js +2 -1
- package/lib/index.cjs2.js.map +1 -0
- package/lib/index.cjs3.js +2 -1
- package/lib/index.cjs3.js.map +1 -0
- package/lib/index.cjs4.js +2 -1
- package/lib/index.cjs4.js.map +1 -0
- package/lib/index.cjs5.js +6 -10
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs5.js.map +1 -0
- package/lib/index.cjs6.js +5 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs6.js.map +1 -0
- package/lib/index.cjs7.js +17 -1
- package/lib/index.cjs7.js.gz +0 -0
- package/lib/index.cjs7.js.map +1 -0
- package/lib/index.cjs8.js +2 -1
- package/lib/index.cjs8.js.map +1 -0
- package/lib/index.cjs9.js +2 -1
- package/lib/index.cjs9.js.map +1 -0
- package/lib/index.es.js +8 -22
- package/lib/index.es.js.map +1 -0
- package/lib/index.es10.js +11 -312
- package/lib/index.es10.js.map +1 -0
- package/lib/index.es11.js +16 -2387
- package/lib/index.es11.js.map +1 -0
- package/lib/index.es12.js +5024 -159
- package/lib/index.es12.js.gz +0 -0
- package/lib/index.es12.js.map +1 -0
- package/lib/index.es13.js +231 -20
- package/lib/index.es13.js.map +1 -0
- package/lib/index.es14.js +23 -0
- package/lib/index.es14.js.map +1 -0
- package/lib/index.es2.js +6 -2
- package/lib/index.es2.js.map +1 -0
- package/lib/index.es3.js +3 -2
- package/lib/index.es3.js.map +1 -0
- package/lib/index.es4.js +3 -2
- package/lib/index.es4.js.map +1 -0
- package/lib/index.es5.js +16588 -4368
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es5.js.map +1 -0
- package/lib/index.es6.js +20633 -625
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es6.js.map +1 -0
- package/lib/index.es7.js +5386 -17
- package/lib/index.es7.js.gz +0 -0
- package/lib/index.es7.js.map +1 -0
- package/lib/index.es8.js +25 -4
- package/lib/index.es8.js.map +1 -0
- package/lib/index.es9.js +5 -9
- package/lib/index.es9.js.map +1 -0
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/lib/theme.cjs.js +2 -1
- package/lib/theme.cjs.js.map +1 -0
- package/lib/theme.es.js +9 -9
- package/lib/theme.es.js.map +1 -0
- package/lib/translate.cjs.js +2 -1
- package/lib/translate.cjs.js.map +1 -0
- package/lib/translate.es.js +12 -9
- package/lib/translate.es.js.map +1 -0
- package/lib/utils.cjs.js +2 -1
- package/lib/utils.cjs.js.map +1 -0
- package/lib/utils.es.js +9 -6
- package/lib/utils.es.js.map +1 -0
- package/lib/yxIcon.cjs.js +2 -1
- package/lib/yxIcon.cjs.js.map +1 -0
- package/lib/yxIcon.es.js +3 -2
- package/lib/yxIcon.es.js.map +1 -0
- package/lib/yxi18n.cjs.js +2 -0
- package/lib/yxi18n.cjs.js.map +1 -0
- package/lib/yxi18n.es.js +6 -0
- package/lib/yxi18n.es.js.map +1 -0
- package/package.json +11 -4
- package/types/api/auth/index.d.ts +2 -0
- package/types/components/Common/DynamicComponent/index.vue.d.ts +5 -4
- package/types/components/Toolbar/index.d.ts +1 -0
- package/types/components/Toolbar/src/index.vue.d.ts +1 -1
- package/types/components/Update/index.d.ts +1 -1
- package/types/components/Update/index.vue.d.ts +1 -1
- package/types/components/YxDialog/index.d.ts +3 -3
- package/types/components/YxDialog/index.vue.d.ts +4 -3
- package/types/components/YxDrawer/index.d.ts +3 -0
- package/types/components/YxDrawer/index.vue.d.ts +14 -0
- package/types/components/YxDrawer/type.d.ts +18 -0
- package/types/components/YxForm/index.d.ts +3 -3
- package/types/components/YxForm/index.vue.d.ts +43 -0
- package/types/components/YxForm/type.d.ts +66 -0
- package/types/components/YxIcon/index.d.ts +3 -3
- package/types/components/YxSearchForm/index.d.ts +3 -3
- package/types/components/YxSearchForm/index.vue.d.ts +8 -7
- package/types/components/YxTable/index.d.ts +3 -3
- package/types/components/YxTable/index.vue.d.ts +12 -8
- package/types/components/YxTable/type.d.ts +13 -3
- package/types/components/YxUpload/index.d.ts +3 -3
- package/types/components/YxUpload/index.vue.d.ts +7 -4
- package/types/components/YxUpload/type.d.ts +7 -1
- package/types/components/index.d.ts +9 -9
- package/types/components/type.d.ts +5 -5
- package/types/directives/index.d.ts +2 -1
- package/types/directives/modules/auth.d.ts +2 -1
- package/types/hooks/index.d.ts +1 -1
- package/types/hooks/useTime/index.d.ts +1 -1
- package/types/index.d.ts +12 -12
- package/types/theme/config.d.ts +2 -0
- package/types/theme/index.d.ts +2 -1
- package/types/translate/index.d.ts +3 -1
- package/types/utils/common/index.d.ts +19 -0
- package/types/utils/common/util.d.ts +2 -1
- package/types/utils/excel/index.d.ts +35 -0
- package/types/utils/http/config.d.ts +1 -0
- package/types/utils/http/index.d.ts +2 -1
- package/types/utils/index.d.ts +3 -3
- package/types/yxIcon/index.d.ts +2 -1
- package/types/yxi18n/index.d.ts +2 -4
- package/lib/index.cjs11.js.gz +0 -0
- package/lib/index.es10.js.gz +0 -0
- package/lib/index.es11.js.gz +0 -0
- package/lib/style.cjs.js +0 -1
- package/lib/style.es.js +0 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { FormRules, TooltipContentInstance } from 'element-plus';
|
|
2
|
+
import { CSSProperties } from 'vue';
|
|
3
|
+
|
|
4
|
+
export interface YxFromProps {
|
|
5
|
+
/**表单编辑传入编辑项 */
|
|
6
|
+
formParams: Record<string, any>;
|
|
7
|
+
/**表单列表 */
|
|
8
|
+
formList: FormItem[];
|
|
9
|
+
/**表单类型 */
|
|
10
|
+
formLayout?: "horizontal" | "vertical";
|
|
11
|
+
/**表单样式 */
|
|
12
|
+
formStyle?: formStyle;
|
|
13
|
+
/**表单验证 */
|
|
14
|
+
rules?: FormRules;
|
|
15
|
+
}
|
|
16
|
+
export type formStyle = CSSProperties & {
|
|
17
|
+
/** 列数 */
|
|
18
|
+
row?: number;
|
|
19
|
+
/** 宽度 */
|
|
20
|
+
labelWidth?: string;
|
|
21
|
+
/** 所有表单项的class */
|
|
22
|
+
formItemClassName?: string;
|
|
23
|
+
/** gap */
|
|
24
|
+
gap?: string;
|
|
25
|
+
};
|
|
26
|
+
export type PromptConf = {
|
|
27
|
+
color?: string;
|
|
28
|
+
size?: number;
|
|
29
|
+
tooltipConf?: TooltipContentInstance;
|
|
30
|
+
};
|
|
31
|
+
export interface FormItem {
|
|
32
|
+
/**表单label */
|
|
33
|
+
label?: string;
|
|
34
|
+
/**表单prop */
|
|
35
|
+
prop?: string;
|
|
36
|
+
/** 渲染类型 */
|
|
37
|
+
renderType?: string;
|
|
38
|
+
/** 组件配置 */
|
|
39
|
+
config?: Record<string, any>;
|
|
40
|
+
/** 是否显示 */
|
|
41
|
+
show?: (row: any) => boolean;
|
|
42
|
+
/** 插槽名称 */
|
|
43
|
+
slotName?: string;
|
|
44
|
+
/**自定义render方法 */
|
|
45
|
+
render?: (scope: any) => any;
|
|
46
|
+
/** 组件动态事件 */
|
|
47
|
+
event?: Record<string, Function>;
|
|
48
|
+
/** 自定义style */
|
|
49
|
+
style?: Record<string, any>;
|
|
50
|
+
/** 自定义class */
|
|
51
|
+
className?: string;
|
|
52
|
+
/** 是否必填 */
|
|
53
|
+
required?: boolean;
|
|
54
|
+
/** 规则 */
|
|
55
|
+
rules?: FormRules[];
|
|
56
|
+
/** 分组名称 */
|
|
57
|
+
groupName?: string;
|
|
58
|
+
/** 分组样式 */
|
|
59
|
+
groupStyle?: formStyle;
|
|
60
|
+
/** 表单分组 */
|
|
61
|
+
children?: FormItem[];
|
|
62
|
+
/** 提示配置 */
|
|
63
|
+
promptConf?: PromptConf;
|
|
64
|
+
/** label自定义class */
|
|
65
|
+
labelClassName?: string;
|
|
66
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as YxIcon } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as YxIcon } from './index.vue';
|
|
2
|
+
export * from './type';
|
|
3
|
+
export * from './index.vue';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as YxSearchForm } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as YxSearchForm } from './index.vue';
|
|
2
|
+
export * from './index.vue';
|
|
3
|
+
export * from './type';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { YxFormProps } from './type.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<YxFormProps>, {
|
|
3
4
|
showSearchBtn: boolean;
|
|
4
5
|
showAddBtn: boolean;
|
|
5
|
-
}
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
7
|
search: () => void;
|
|
7
8
|
add: () => void;
|
|
8
|
-
}, string, import(
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<YxFormProps>, {
|
|
9
10
|
showSearchBtn: boolean;
|
|
10
11
|
showAddBtn: boolean;
|
|
11
|
-
}>>> & {
|
|
12
|
+
}>>> & Readonly<{
|
|
12
13
|
onSearch?: (() => any) | undefined;
|
|
13
14
|
onAdd?: (() => any) | undefined;
|
|
14
|
-
}
|
|
15
|
+
}>, {
|
|
15
16
|
showSearchBtn: boolean;
|
|
16
17
|
showAddBtn: boolean;
|
|
17
|
-
}, {}>;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
19
|
export default _default;
|
|
19
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
21
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as YxTable } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as YxTable } from './index.vue';
|
|
2
|
+
export * from './type';
|
|
3
|
+
export * from './index.vue';
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TableProps } from './type.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableProps>>, {
|
|
4
|
+
tableRef: import('vue').Ref<any, any>;
|
|
5
|
+
exportDataToExcel: ({ header, tableData, fileName }: {
|
|
6
|
+
header: any;
|
|
7
|
+
tableData: any;
|
|
8
|
+
fileName: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
11
|
"operate-handle": (type: string, data: object) => void;
|
|
6
12
|
"sort-end": (oldIndex: number, newIndex: number) => void;
|
|
7
13
|
"update-page": (type: string, value: number) => void;
|
|
8
|
-
|
|
9
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableProps>>> & {
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableProps>>> & Readonly<{
|
|
10
15
|
"onOperate-handle"?: ((type: string, data: object) => any) | undefined;
|
|
11
16
|
"onSort-end"?: ((oldIndex: number, newIndex: number) => any) | undefined;
|
|
12
17
|
"onUpdate-page"?: ((type: string, value: number) => any) | undefined;
|
|
13
|
-
|
|
14
|
-
}, {}, {}>;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
19
|
export default _default;
|
|
16
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
21
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,20 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { default as YxTable } from './index.vue';
|
|
2
|
+
import { TableColumnCtx } from 'element-plus';
|
|
3
|
+
|
|
3
4
|
export type YxTableInstance = InstanceType<typeof YxTable>;
|
|
4
5
|
export interface TableProps {
|
|
6
|
+
/** 表格数据源 */
|
|
5
7
|
tableData: any[];
|
|
8
|
+
/** 表格行key */
|
|
6
9
|
rowKey: string;
|
|
10
|
+
/** 表格列配置 */
|
|
7
11
|
columns: TableColumn[];
|
|
12
|
+
/** 分页信息 */
|
|
8
13
|
pageInfo?: PageInfo;
|
|
9
14
|
/**是否开启拖拽 */
|
|
10
15
|
sort?: boolean;
|
|
16
|
+
/**拖拽节点类名 */
|
|
11
17
|
sortHandle?: string;
|
|
12
|
-
load?: Function;
|
|
13
18
|
}
|
|
14
19
|
export interface PageInfo {
|
|
20
|
+
/** 每页条数 */
|
|
15
21
|
pageSize: number;
|
|
22
|
+
/** 当前页 */
|
|
16
23
|
pageIndex: number;
|
|
24
|
+
/** 总条数 */
|
|
17
25
|
total: number;
|
|
26
|
+
/** 分页配置 */
|
|
27
|
+
layout?: string;
|
|
18
28
|
}
|
|
19
29
|
export interface Operate {
|
|
20
30
|
/**操作栏label */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as YxUpload } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as YxUpload } from './index.vue';
|
|
2
|
+
export * from './type';
|
|
3
|
+
export * from './index.vue';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { YxUploadProps } from './type';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<YxUploadProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
4
|
"update:fileObsUrl": (value: string) => void;
|
|
4
|
-
|
|
5
|
+
getFile: (value: any) => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<YxUploadProps>>> & Readonly<{
|
|
5
7
|
"onUpdate:fileObsUrl"?: ((value: string) => any) | undefined;
|
|
6
|
-
|
|
8
|
+
onGetFile?: ((value: any) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
10
|
export default _default;
|
|
8
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
12
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -2,5 +2,11 @@ export interface YxUploadProps {
|
|
|
2
2
|
/**上传提示 */
|
|
3
3
|
uploadTips?: string;
|
|
4
4
|
/**上传触发器 */
|
|
5
|
-
|
|
5
|
+
triggerRender?: Function;
|
|
6
|
+
/** 是否自定义上传方法 */
|
|
7
|
+
customUpload?: Function;
|
|
8
|
+
/** 上传触发文本 */
|
|
9
|
+
triggerText?: String;
|
|
10
|
+
/** 上传文件接口 */
|
|
11
|
+
uploadResourceApi?: Function;
|
|
6
12
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export { default as Toolbar } from
|
|
1
|
+
export * from './YxDialog/index';
|
|
2
|
+
export * from './YxDrawer/index';
|
|
3
|
+
export * from './YxTable/index';
|
|
4
|
+
export * from './YxSearchForm/index';
|
|
5
|
+
export * from './YxForm/index';
|
|
6
|
+
export * from './Update/index';
|
|
7
|
+
export * from './YxIcon/index';
|
|
8
|
+
export * from './YxUpload/index';
|
|
9
|
+
export { default as Toolbar } from './Toolbar/index';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './YxTable/type';
|
|
2
|
+
export * from './YxSearchForm/type';
|
|
3
|
+
export * from './YxForm/type';
|
|
4
|
+
export * from './YxDialog/type';
|
|
5
|
+
export * from './YxUpload/type';
|
package/types/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './useTime';
|
package/types/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * as utils from
|
|
2
|
-
export * as yxIcon from
|
|
3
|
-
export * as api from
|
|
4
|
-
export * as theme from
|
|
5
|
-
export * as components from
|
|
6
|
-
export * as translate from
|
|
7
|
-
export * as yxi18n from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
1
|
+
export * as utils from './utils';
|
|
2
|
+
export * as yxIcon from './yxIcon';
|
|
3
|
+
export * as api from './api';
|
|
4
|
+
export * as theme from './theme';
|
|
5
|
+
export * as components from './components';
|
|
6
|
+
export * as translate from './translate';
|
|
7
|
+
export * as yxi18n from './yxi18n';
|
|
8
|
+
export * from './directives';
|
|
9
|
+
export * from './hooks';
|
|
10
|
+
export * from './app';
|
|
11
|
+
export * from './bc';
|
|
12
|
+
export * from './components/type';
|
|
13
13
|
import * as utils from "./utils";
|
|
14
14
|
import * as api from "./api";
|
|
15
15
|
import * as theme from "./theme";
|
package/types/theme/config.d.ts
CHANGED
package/types/theme/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './api';
|
|
2
|
+
export declare const initTranslate: ({ to, systemKey, translateApiUrl, asyncThesaurusList }: {
|
|
2
3
|
to: any;
|
|
3
4
|
systemKey: any;
|
|
4
5
|
translateApiUrl?: any;
|
|
@@ -7,3 +8,4 @@ export declare const changeLang: (to: any) => Promise<void>;
|
|
|
7
8
|
export declare const getLang: () => Promise<any>;
|
|
8
9
|
export declare const getWordByYxI18nThesaurus: (word: any) => any;
|
|
9
10
|
export declare const getZhWordByYxI18nThesaurus: (word: any) => any;
|
|
11
|
+
export declare const loadCustomThesaurus: (systemKey: string, lang: string) => Promise<any>;
|
|
@@ -43,4 +43,23 @@ export declare const isDarkColor: (color: string) => boolean | null;
|
|
|
43
43
|
*/
|
|
44
44
|
export declare const areColorsSimilar: (color1: string, color2: string, threshold?: number) => boolean;
|
|
45
45
|
export declare const isColorEqual: (color1: any, color2: any) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @param data //后端返回的数据
|
|
48
|
+
* @param isShowError //是否显示后端服务的报错信息
|
|
49
|
+
* @param callback //回调
|
|
50
|
+
* @description 消息提示
|
|
51
|
+
*/
|
|
52
|
+
export declare const yxMessage: (data: any, callback?: Function, isShowError?: boolean) => void;
|
|
53
|
+
/**
|
|
54
|
+
* @param text 要复制的文本
|
|
55
|
+
* @description 复制文本到剪贴板
|
|
56
|
+
* @return void
|
|
57
|
+
*/
|
|
58
|
+
export declare const copyText: (text: string) => void;
|
|
59
|
+
/**
|
|
60
|
+
* @param time 时间
|
|
61
|
+
* @description 将传入的时间转为距离当前时间的 时 分 秒 的字符串
|
|
62
|
+
* @return void
|
|
63
|
+
*/
|
|
64
|
+
export declare const getCownDownTime: (time: string) => string;
|
|
46
65
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { App, Plugin } from 'vue';
|
|
2
|
+
|
|
2
3
|
export type SFCWithInstall<T> = T & Plugin;
|
|
3
4
|
export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E | undefined) => SFCWithInstall<T> & E;
|
|
4
5
|
export declare const makeInstaller: (components?: Plugin[]) => {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare function export_table_to_excel(id: any): void;
|
|
2
|
+
export declare function export_json_to_excel({ multiHeader, header, data, filename, merges, autoWidth, excelWidth, bookType }?: {
|
|
3
|
+
multiHeader?: never[] | undefined;
|
|
4
|
+
header: any;
|
|
5
|
+
data: any;
|
|
6
|
+
filename: any;
|
|
7
|
+
merges?: never[] | undefined;
|
|
8
|
+
autoWidth?: boolean | undefined;
|
|
9
|
+
excelWidth?: boolean | undefined;
|
|
10
|
+
bookType?: string | undefined;
|
|
11
|
+
}): void;
|
|
12
|
+
export declare function readFile(file: any): Promise<unknown>;
|
|
13
|
+
export declare function readExcel(file: any): Promise<unknown[]>;
|
|
14
|
+
export declare function readExcelToArray(file: any): Promise<unknown[]>;
|
|
15
|
+
export declare function saveFile(content: any, fileName: any): Promise<void>;
|
|
16
|
+
export declare function export_excel_style({ header, data, filename, merges, autoWidth, excelWidth }?: {
|
|
17
|
+
header: any;
|
|
18
|
+
data: any;
|
|
19
|
+
filename: any;
|
|
20
|
+
merges?: never[] | undefined;
|
|
21
|
+
autoWidth?: boolean | undefined;
|
|
22
|
+
excelWidth?: boolean | undefined;
|
|
23
|
+
}): void;
|
|
24
|
+
export declare function checkFileType(file: any, fileType: any): string;
|
|
25
|
+
export declare function parseFile(file: any, config: any): Promise<{
|
|
26
|
+
code: number;
|
|
27
|
+
message: string;
|
|
28
|
+
data?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
code: number;
|
|
31
|
+
data: unknown;
|
|
32
|
+
message?: undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function exportMultiSheetExcel(fileName: any, list: any): Promise<void>;
|
|
35
|
+
export declare const exportToExcel: ({ header, tableData, fileName }: any) => void;
|
package/types/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as http } from
|
|
2
|
-
export * from
|
|
3
|
-
export { default as yxSubscribe } from
|
|
1
|
+
export { default as http } from './http/index';
|
|
2
|
+
export * from './common/index';
|
|
3
|
+
export { default as yxSubscribe } from './subscribe/index';
|
package/types/yxIcon/index.d.ts
CHANGED
package/types/yxi18n/index.d.ts
CHANGED
package/lib/index.cjs11.js.gz
DELETED
|
Binary file
|
package/lib/index.es10.js.gz
DELETED
|
Binary file
|
package/lib/index.es11.js.gz
DELETED
|
Binary file
|
package/lib/style.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/lib/style.es.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|