@hbdlzy/ui-core 0.1.4 → 0.1.6
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/README.md +7 -0
- package/components.manifest.json +32 -35
- package/dist/components/BaseCard/BaseCard.types.d.ts +36 -36
- package/dist/components/BaseCard/BaseCard.vue.d.ts +122 -122
- package/dist/components/BaseCard/index.d.ts +3 -3
- package/dist/components/BaseEChart/BaseEChart.types.d.ts +26 -26
- package/dist/components/BaseEChart/BaseEChart.vue.d.ts +66 -66
- package/dist/components/BaseEChart/index.d.ts +3 -3
- package/dist/components/BaseExportButton/BaseExportButton.types.d.ts +21 -21
- package/dist/components/BaseExportButton/BaseExportButton.utils.d.ts +4 -4
- package/dist/components/BaseExportButton/BaseExportButton.vue.d.ts +128 -128
- package/dist/components/BaseExportButton/index.d.ts +5 -5
- package/dist/components/BaseTable/BaseTable.types.d.ts +163 -163
- package/dist/components/BaseTable/BaseTable.vue.d.ts +157 -157
- package/dist/components/BaseTable/index.d.ts +3 -3
- package/dist/components/OutlinedCascader/OutlinedCascader.types.d.ts +28 -25
- package/dist/components/OutlinedCascader/OutlinedCascader.vue.d.ts +94 -85
- package/dist/components/OutlinedCascader/index.d.ts +3 -3
- package/dist/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +30 -27
- package/dist/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +97 -88
- package/dist/components/OutlinedDatePicker/index.d.ts +3 -3
- package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +29 -26
- package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +106 -97
- package/dist/components/OutlinedDateTimePicker/index.d.ts +3 -3
- package/dist/components/OutlinedInput/OutlinedInput.types.d.ts +32 -29
- package/dist/components/OutlinedInput/OutlinedInput.vue.d.ts +106 -97
- package/dist/components/OutlinedInput/index.d.ts +3 -3
- package/dist/components/OutlinedSelect/OutlinedSelect.types.d.ts +41 -38
- package/dist/components/OutlinedSelect/OutlinedSelect.vue.d.ts +125 -116
- package/dist/components/OutlinedSelect/index.d.ts +3 -3
- package/dist/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +31 -28
- package/dist/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +103 -94
- package/dist/components/OutlinedTimePicker/index.d.ts +3 -3
- package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +49 -46
- package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +146 -137
- package/dist/components/OutlinedTreeSelect/index.d.ts +3 -3
- package/dist/echarts/index.d.ts +9 -9
- package/dist/excel/exportExcel.d.ts +18 -18
- package/dist/index.cjs +42 -1
- package/dist/index.d.ts +27 -30
- package/dist/index.js +643 -644
- package/dist/ripple/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +6 -4
- package/src/components/BaseExportButton/BaseExportButton.vue +1 -3
- package/src/components/BaseTable/BaseTable.types.ts +1 -1
- package/src/components/OutlinedCascader/OutlinedCascader.types.ts +3 -0
- package/src/components/OutlinedCascader/OutlinedCascader.vue +71 -6
- package/src/components/OutlinedCascader/README.md +3 -0
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.types.ts +3 -0
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.vue +71 -6
- package/src/components/OutlinedDatePicker/README.md +3 -0
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.ts +3 -0
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue +144 -64
- package/src/components/OutlinedDateTimePicker/README.md +3 -0
- package/src/components/OutlinedInput/OutlinedInput.types.ts +3 -0
- package/src/components/OutlinedInput/OutlinedInput.vue +87 -8
- package/src/components/OutlinedInput/README.md +3 -0
- package/src/components/OutlinedSelect/OutlinedSelect.types.ts +3 -0
- package/src/components/OutlinedSelect/OutlinedSelect.vue +72 -6
- package/src/components/OutlinedSelect/README.md +3 -0
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.types.ts +3 -0
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.vue +75 -8
- package/src/components/OutlinedTimePicker/README.md +3 -0
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.types.ts +3 -0
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.vue +72 -6
- package/src/components/OutlinedTreeSelect/README.md +3 -0
- package/src/index.ts +5 -4
- package/src/ripple/index.ts +213 -0
- package/dist/components/BaseDialog/BaseDialog.types.d.ts +0 -25
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -100
- package/dist/components/BaseDialog/index.d.ts +0 -3
- package/dist/components/BaseSearchForm/BaseSearchForm.types.d.ts +0 -42
- package/dist/components/BaseSearchForm/BaseSearchForm.utils.d.ts +0 -5
- package/dist/components/BaseSearchForm/BaseSearchForm.vue.d.ts +0 -88
- package/dist/components/BaseSearchForm/index.d.ts +0 -4
- package/src/components/BaseDialog/BaseDialog.types.ts +0 -28
- package/src/components/BaseDialog/BaseDialog.vue +0 -158
- package/src/components/BaseDialog/README.md +0 -69
- package/src/components/BaseDialog/index.ts +0 -10
- package/src/components/BaseSearchForm/BaseSearchForm.types.ts +0 -46
- package/src/components/BaseSearchForm/BaseSearchForm.utils.ts +0 -41
- package/src/components/BaseSearchForm/BaseSearchForm.vue +0 -267
- package/src/components/BaseSearchForm/README.md +0 -66
- package/src/components/BaseSearchForm/index.ts +0 -20
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { echarts } from '../../echarts';
|
|
2
|
-
import type { BaseEChartProps } from './BaseEChart.types';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseEChartProps>, {
|
|
4
|
-
option: () => {};
|
|
5
|
-
initOptions: () => echarts.EChartsInitOpts;
|
|
6
|
-
setOptionOptions: () => echarts.SetOptionOpts;
|
|
7
|
-
loading: boolean;
|
|
8
|
-
autoResize: boolean;
|
|
9
|
-
useDefaultColors: boolean;
|
|
10
|
-
colorStorageKey: string;
|
|
11
|
-
defaultColors: () => never[];
|
|
12
|
-
group: undefined;
|
|
13
|
-
}>>, {
|
|
14
|
-
getInstance: () => echarts.ECharts | null;
|
|
15
|
-
setOption: (option: echarts.EChartsOption, setOptionOptions?: boolean | echarts.SetOptionOpts | undefined) => echarts.ECharts | null;
|
|
16
|
-
resize: (resizeOptions?: echarts.ResizeOpts | undefined) => void;
|
|
17
|
-
dispatchAction: (payload: Record<string, unknown>) => void;
|
|
18
|
-
showLoading: (type?: string | undefined, loadingOptions?: object | undefined) => void;
|
|
19
|
-
hideLoading: () => void;
|
|
20
|
-
clear: () => void;
|
|
21
|
-
dispose: () => void;
|
|
22
|
-
on: (eventName: string, handler: (...args: any[]) => void, context?: unknown) => void;
|
|
23
|
-
off: (eventName?: string | undefined, handler?: ((...args: any[]) => void) | undefined) => void;
|
|
24
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
-
ready: (chart: echarts.ECharts) => void;
|
|
26
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseEChartProps>, {
|
|
27
|
-
option: () => {};
|
|
28
|
-
initOptions: () => echarts.EChartsInitOpts;
|
|
29
|
-
setOptionOptions: () => echarts.SetOptionOpts;
|
|
30
|
-
loading: boolean;
|
|
31
|
-
autoResize: boolean;
|
|
32
|
-
useDefaultColors: boolean;
|
|
33
|
-
colorStorageKey: string;
|
|
34
|
-
defaultColors: () => never[];
|
|
35
|
-
group: undefined;
|
|
36
|
-
}>>> & Readonly<{
|
|
37
|
-
onReady?: ((chart: echarts.ECharts) => any) | undefined;
|
|
38
|
-
}>, {
|
|
39
|
-
option: echarts.EChartsOption;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
autoResize: boolean;
|
|
44
|
-
useDefaultColors: boolean;
|
|
45
|
-
colorStorageKey: string;
|
|
46
|
-
defaultColors: string[];
|
|
47
|
-
group: string;
|
|
48
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
49
|
-
export default _default;
|
|
50
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
51
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
52
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
53
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
54
|
-
} : {
|
|
55
|
-
type: import('vue').PropType<T[K]>;
|
|
56
|
-
required: true;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
type __VLS_WithDefaults<P, D> = {
|
|
60
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
61
|
-
default: D[K];
|
|
62
|
-
}> : P[K];
|
|
63
|
-
};
|
|
64
|
-
type __VLS_Prettify<T> = {
|
|
65
|
-
[K in keyof T]: T[K];
|
|
66
|
-
} & {};
|
|
1
|
+
import { echarts } from '../../echarts';
|
|
2
|
+
import type { BaseEChartProps } from './BaseEChart.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseEChartProps>, {
|
|
4
|
+
option: () => {};
|
|
5
|
+
initOptions: () => echarts.EChartsInitOpts;
|
|
6
|
+
setOptionOptions: () => echarts.SetOptionOpts;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
autoResize: boolean;
|
|
9
|
+
useDefaultColors: boolean;
|
|
10
|
+
colorStorageKey: string;
|
|
11
|
+
defaultColors: () => never[];
|
|
12
|
+
group: undefined;
|
|
13
|
+
}>>, {
|
|
14
|
+
getInstance: () => echarts.ECharts | null;
|
|
15
|
+
setOption: (option: echarts.EChartsOption, setOptionOptions?: boolean | echarts.SetOptionOpts | undefined) => echarts.ECharts | null;
|
|
16
|
+
resize: (resizeOptions?: echarts.ResizeOpts | undefined) => void;
|
|
17
|
+
dispatchAction: (payload: Record<string, unknown>) => void;
|
|
18
|
+
showLoading: (type?: string | undefined, loadingOptions?: object | undefined) => void;
|
|
19
|
+
hideLoading: () => void;
|
|
20
|
+
clear: () => void;
|
|
21
|
+
dispose: () => void;
|
|
22
|
+
on: (eventName: string, handler: (...args: any[]) => void, context?: unknown) => void;
|
|
23
|
+
off: (eventName?: string | undefined, handler?: ((...args: any[]) => void) | undefined) => void;
|
|
24
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
ready: (chart: echarts.ECharts) => void;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseEChartProps>, {
|
|
27
|
+
option: () => {};
|
|
28
|
+
initOptions: () => echarts.EChartsInitOpts;
|
|
29
|
+
setOptionOptions: () => echarts.SetOptionOpts;
|
|
30
|
+
loading: boolean;
|
|
31
|
+
autoResize: boolean;
|
|
32
|
+
useDefaultColors: boolean;
|
|
33
|
+
colorStorageKey: string;
|
|
34
|
+
defaultColors: () => never[];
|
|
35
|
+
group: undefined;
|
|
36
|
+
}>>> & Readonly<{
|
|
37
|
+
onReady?: ((chart: echarts.ECharts) => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
option: echarts.EChartsOption;
|
|
40
|
+
initOptions: echarts.EChartsInitOpts;
|
|
41
|
+
setOptionOptions: boolean | echarts.SetOptionOpts;
|
|
42
|
+
loading: boolean;
|
|
43
|
+
autoResize: boolean;
|
|
44
|
+
useDefaultColors: boolean;
|
|
45
|
+
colorStorageKey: string;
|
|
46
|
+
defaultColors: string[];
|
|
47
|
+
group: string;
|
|
48
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
51
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
52
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
53
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
54
|
+
} : {
|
|
55
|
+
type: import('vue').PropType<T[K]>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
type __VLS_WithDefaults<P, D> = {
|
|
60
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
61
|
+
default: D[K];
|
|
62
|
+
}> : P[K];
|
|
63
|
+
};
|
|
64
|
+
type __VLS_Prettify<T> = {
|
|
65
|
+
[K in keyof T]: T[K];
|
|
66
|
+
} & {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import BaseEChart from './BaseEChart.vue';
|
|
2
|
-
export default BaseEChart;
|
|
3
|
-
export type { BaseEChartExpose, BaseEChartProps } from './BaseEChart.types';
|
|
1
|
+
import BaseEChart from './BaseEChart.vue';
|
|
2
|
+
export default BaseEChart;
|
|
3
|
+
export type { BaseEChartExpose, BaseEChartProps } from './BaseEChart.types';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { ExcelExportOptions } from '../../excel/exportExcel';
|
|
2
|
-
export interface ExportResponseHeaders {
|
|
3
|
-
[key: string]: string | undefined;
|
|
4
|
-
}
|
|
5
|
-
export interface ExportResponseLike {
|
|
6
|
-
data: Blob | BlobPart | ArrayBuffer;
|
|
7
|
-
headers?: ExportResponseHeaders;
|
|
8
|
-
}
|
|
9
|
-
export type ExportRequestHandler = () => Promise<ExportResponseLike>;
|
|
10
|
-
export type ExportMode = 'excel' | 'request' | 'none' | 'invalid';
|
|
11
|
-
export type ExportBeforeHandler = () => boolean | void | Promise<boolean | void>;
|
|
12
|
-
export interface ExportSuccessPayload {
|
|
13
|
-
mode: Exclude<ExportMode, 'none' | 'invalid'>;
|
|
14
|
-
fileName?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface BaseExportExcelConfig<Row = Record<string, any>> {
|
|
17
|
-
excelOptions: ExcelExportOptions<Row>;
|
|
18
|
-
}
|
|
19
|
-
export interface BaseExportRequestConfig {
|
|
20
|
-
requestHandler: ExportRequestHandler;
|
|
21
|
-
}
|
|
1
|
+
import type { ExcelExportOptions } from '../../excel/exportExcel';
|
|
2
|
+
export interface ExportResponseHeaders {
|
|
3
|
+
[key: string]: string | undefined;
|
|
4
|
+
}
|
|
5
|
+
export interface ExportResponseLike {
|
|
6
|
+
data: Blob | BlobPart | ArrayBuffer;
|
|
7
|
+
headers?: ExportResponseHeaders;
|
|
8
|
+
}
|
|
9
|
+
export type ExportRequestHandler = () => Promise<ExportResponseLike>;
|
|
10
|
+
export type ExportMode = 'excel' | 'request' | 'none' | 'invalid';
|
|
11
|
+
export type ExportBeforeHandler = () => boolean | void | Promise<boolean | void>;
|
|
12
|
+
export interface ExportSuccessPayload {
|
|
13
|
+
mode: Exclude<ExportMode, 'none' | 'invalid'>;
|
|
14
|
+
fileName?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface BaseExportExcelConfig<Row = Record<string, any>> {
|
|
17
|
+
excelOptions: ExcelExportOptions<Row>;
|
|
18
|
+
}
|
|
19
|
+
export interface BaseExportRequestConfig {
|
|
20
|
+
requestHandler: ExportRequestHandler;
|
|
21
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExportResponseLike } from './BaseExportButton.types';
|
|
2
|
-
export declare function extractFileNameFromDisposition(contentDisposition?: string): string;
|
|
3
|
-
export declare function normalizeExportFileName(fileName?: string): string;
|
|
4
|
-
export declare function downloadExportResponse(response: ExportResponseLike, fallbackFileName?: string): string;
|
|
1
|
+
import type { ExportResponseLike } from './BaseExportButton.types';
|
|
2
|
+
export declare function extractFileNameFromDisposition(contentDisposition?: string): string;
|
|
3
|
+
export declare function normalizeExportFileName(fileName?: string): string;
|
|
4
|
+
export declare function downloadExportResponse(response: ExportResponseLike, fallbackFileName?: string): string;
|
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type
|
|
3
|
-
import type { ExportBeforeHandler, ExportRequestHandler, ExportSuccessPayload } from './BaseExportButton.types';
|
|
4
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
-
label: {
|
|
6
|
-
type: StringConstructor;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
type: {
|
|
10
|
-
type: PropType<"" | "
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
size: {
|
|
14
|
-
type: PropType<"default" | "small" | "large">;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
plain: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
link: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
text: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
disabled: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
fileName: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
excelOptions: PropType<ExcelExportOptions<Record<string, any>>>;
|
|
38
|
-
requestHandler: PropType<ExportRequestHandler>;
|
|
39
|
-
beforeExport: PropType<ExportBeforeHandler>;
|
|
40
|
-
successMessage: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
errorMessage: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
autoMessage: {
|
|
49
|
-
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
51
|
-
};
|
|
52
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
-
start: () => void;
|
|
54
|
-
success: (payload: ExportSuccessPayload) => void;
|
|
55
|
-
error: (error: unknown) => void;
|
|
56
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
-
label: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
default: string;
|
|
60
|
-
};
|
|
61
|
-
type: {
|
|
62
|
-
type: PropType<"" | "
|
|
63
|
-
default: string;
|
|
64
|
-
};
|
|
65
|
-
size: {
|
|
66
|
-
type: PropType<"default" | "small" | "large">;
|
|
67
|
-
default: string;
|
|
68
|
-
};
|
|
69
|
-
plain: {
|
|
70
|
-
type: BooleanConstructor;
|
|
71
|
-
default: boolean;
|
|
72
|
-
};
|
|
73
|
-
link: {
|
|
74
|
-
type: BooleanConstructor;
|
|
75
|
-
default: boolean;
|
|
76
|
-
};
|
|
77
|
-
text: {
|
|
78
|
-
type: BooleanConstructor;
|
|
79
|
-
default: boolean;
|
|
80
|
-
};
|
|
81
|
-
disabled: {
|
|
82
|
-
type: BooleanConstructor;
|
|
83
|
-
default: boolean;
|
|
84
|
-
};
|
|
85
|
-
fileName: {
|
|
86
|
-
type: StringConstructor;
|
|
87
|
-
default: string;
|
|
88
|
-
};
|
|
89
|
-
excelOptions: PropType<ExcelExportOptions<Record<string, any>>>;
|
|
90
|
-
requestHandler: PropType<ExportRequestHandler>;
|
|
91
|
-
beforeExport: PropType<ExportBeforeHandler>;
|
|
92
|
-
successMessage: {
|
|
93
|
-
type: StringConstructor;
|
|
94
|
-
default: string;
|
|
95
|
-
};
|
|
96
|
-
errorMessage: {
|
|
97
|
-
type: StringConstructor;
|
|
98
|
-
default: string;
|
|
99
|
-
};
|
|
100
|
-
autoMessage: {
|
|
101
|
-
type: BooleanConstructor;
|
|
102
|
-
default: boolean;
|
|
103
|
-
};
|
|
104
|
-
}>> & Readonly<{
|
|
105
|
-
onError?: ((error: unknown) => any) | undefined;
|
|
106
|
-
onSuccess?: ((payload: ExportSuccessPayload) => any) | undefined;
|
|
107
|
-
onStart?: (() => any) | undefined;
|
|
108
|
-
}>, {
|
|
109
|
-
type: "" | "
|
|
110
|
-
label: string;
|
|
111
|
-
link: boolean;
|
|
112
|
-
text: boolean;
|
|
113
|
-
disabled: boolean;
|
|
114
|
-
fileName: string;
|
|
115
|
-
size: "default" | "small" | "large";
|
|
116
|
-
plain: boolean;
|
|
117
|
-
successMessage: string;
|
|
118
|
-
errorMessage: string;
|
|
119
|
-
autoMessage: boolean;
|
|
120
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
121
|
-
default?(_: {}): any;
|
|
122
|
-
}>;
|
|
123
|
-
export default _default;
|
|
124
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
125
|
-
new (): {
|
|
126
|
-
$slots: S;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { type ExcelExportOptions } from '../../excel/exportExcel';
|
|
3
|
+
import type { ExportBeforeHandler, ExportRequestHandler, ExportSuccessPayload } from './BaseExportButton.types';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
label: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
type: {
|
|
10
|
+
type: PropType<"" | "info" | "primary" | "success" | "warning" | "danger">;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
type: PropType<"default" | "small" | "large">;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
plain: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
link: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
text: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
disabled: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
fileName: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
excelOptions: PropType<ExcelExportOptions<Record<string, any>>>;
|
|
38
|
+
requestHandler: PropType<ExportRequestHandler>;
|
|
39
|
+
beforeExport: PropType<ExportBeforeHandler>;
|
|
40
|
+
successMessage: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
errorMessage: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
autoMessage: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
start: () => void;
|
|
54
|
+
success: (payload: ExportSuccessPayload) => void;
|
|
55
|
+
error: (error: unknown) => void;
|
|
56
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
+
label: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
type: {
|
|
62
|
+
type: PropType<"" | "info" | "primary" | "success" | "warning" | "danger">;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
size: {
|
|
66
|
+
type: PropType<"default" | "small" | "large">;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
plain: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
link: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
text: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
disabled: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
fileName: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
excelOptions: PropType<ExcelExportOptions<Record<string, any>>>;
|
|
90
|
+
requestHandler: PropType<ExportRequestHandler>;
|
|
91
|
+
beforeExport: PropType<ExportBeforeHandler>;
|
|
92
|
+
successMessage: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
errorMessage: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
autoMessage: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
}>> & Readonly<{
|
|
105
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
106
|
+
onSuccess?: ((payload: ExportSuccessPayload) => any) | undefined;
|
|
107
|
+
onStart?: (() => any) | undefined;
|
|
108
|
+
}>, {
|
|
109
|
+
type: "" | "info" | "primary" | "success" | "warning" | "danger";
|
|
110
|
+
label: string;
|
|
111
|
+
link: boolean;
|
|
112
|
+
text: boolean;
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
fileName: string;
|
|
115
|
+
size: "default" | "small" | "large";
|
|
116
|
+
plain: boolean;
|
|
117
|
+
successMessage: string;
|
|
118
|
+
errorMessage: string;
|
|
119
|
+
autoMessage: boolean;
|
|
120
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
121
|
+
default?(_: {}): any;
|
|
122
|
+
}>;
|
|
123
|
+
export default _default;
|
|
124
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
125
|
+
new (): {
|
|
126
|
+
$slots: S;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BaseExportButton from './BaseExportButton.vue';
|
|
2
|
-
export { BaseExportButton };
|
|
3
|
-
export { downloadExportResponse, extractFileNameFromDisposition, normalizeExportFileName } from './BaseExportButton.utils';
|
|
4
|
-
export type { BaseExportExcelConfig, BaseExportRequestConfig, ExportBeforeHandler, ExportMode, ExportRequestHandler, ExportResponseHeaders, ExportResponseLike, ExportSuccessPayload } from './BaseExportButton.types';
|
|
5
|
-
export default BaseExportButton;
|
|
1
|
+
import BaseExportButton from './BaseExportButton.vue';
|
|
2
|
+
export { BaseExportButton };
|
|
3
|
+
export { downloadExportResponse, extractFileNameFromDisposition, normalizeExportFileName } from './BaseExportButton.utils';
|
|
4
|
+
export type { BaseExportExcelConfig, BaseExportRequestConfig, ExportBeforeHandler, ExportMode, ExportRequestHandler, ExportResponseHeaders, ExportResponseLike, ExportSuccessPayload } from './BaseExportButton.types';
|
|
5
|
+
export default BaseExportButton;
|