@hbdlzy/ui-core 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.manifest.json +5 -0
- package/dist/components/BaseCard/BaseCard.types.d.ts +36 -0
- package/dist/components/BaseCard/BaseCard.vue.d.ts +122 -0
- package/dist/components/BaseCard/index.d.ts +3 -0
- package/dist/components/BaseEChart/BaseEChart.types.d.ts +26 -0
- package/dist/components/BaseEChart/BaseEChart.vue.d.ts +66 -0
- package/dist/components/BaseEChart/index.d.ts +3 -0
- package/dist/components/BaseExportButton/BaseExportButton.types.d.ts +21 -0
- package/dist/components/BaseExportButton/BaseExportButton.utils.d.ts +4 -0
- package/dist/components/BaseExportButton/BaseExportButton.vue.d.ts +128 -0
- package/dist/components/BaseExportButton/index.d.ts +5 -0
- package/dist/components/BaseTable/BaseTable.types.d.ts +163 -0
- package/dist/components/BaseTable/BaseTable.vue.d.ts +157 -0
- package/dist/components/BaseTable/index.d.ts +3 -0
- package/dist/components/OutlinedCascader/OutlinedCascader.types.d.ts +25 -0
- package/dist/components/OutlinedCascader/OutlinedCascader.vue.d.ts +85 -0
- package/dist/components/OutlinedCascader/index.d.ts +3 -0
- package/dist/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +27 -0
- package/dist/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +88 -0
- package/dist/components/OutlinedDatePicker/index.d.ts +3 -0
- package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +26 -0
- package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +97 -0
- package/dist/components/OutlinedDateTimePicker/index.d.ts +3 -0
- package/dist/components/OutlinedInput/OutlinedInput.types.d.ts +29 -0
- package/dist/components/OutlinedInput/OutlinedInput.vue.d.ts +97 -0
- package/dist/components/OutlinedInput/index.d.ts +3 -0
- package/dist/components/OutlinedSelect/OutlinedSelect.types.d.ts +38 -0
- package/dist/components/OutlinedSelect/OutlinedSelect.vue.d.ts +116 -0
- package/dist/components/OutlinedSelect/index.d.ts +3 -0
- package/dist/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +28 -0
- package/dist/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +94 -0
- package/dist/components/OutlinedTimePicker/index.d.ts +3 -0
- package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +46 -0
- package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +137 -0
- package/dist/components/OutlinedTreeSelect/index.d.ts +3 -0
- package/dist/echarts/index.d.ts +9 -0
- package/dist/excel/exportExcel.d.ts +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +26 -0
- package/dist/index.js +306 -30
- package/dist/style.css +1 -1
- package/package.json +5 -4
- package/src/components/BaseCard/BaseCard.types.d.ts +36 -0
- package/src/components/BaseCard/BaseCard.vue.d.ts +122 -0
- package/src/components/BaseCard/index.d.ts +3 -0
- package/src/components/BaseEChart/BaseEChart.types.d.ts +26 -0
- package/src/components/BaseEChart/BaseEChart.vue.d.ts +66 -0
- package/src/components/BaseEChart/index.d.ts +3 -0
- package/src/components/BaseExportButton/BaseExportButton.types.d.ts +21 -0
- package/src/components/BaseExportButton/BaseExportButton.utils.d.ts +4 -0
- package/src/components/BaseExportButton/BaseExportButton.vue.d.ts +128 -0
- package/src/components/BaseExportButton/index.d.ts +5 -0
- package/src/components/BaseTable/BaseTable.types.d.ts +163 -0
- package/src/components/BaseTable/BaseTable.types.ts +12 -0
- package/src/components/BaseTable/BaseTable.vue +412 -13
- package/src/components/BaseTable/BaseTable.vue.d.ts +157 -0
- package/src/components/BaseTable/README.md +106 -120
- package/src/components/BaseTable/index.d.ts +3 -0
- package/src/components/OutlinedCascader/OutlinedCascader.types.d.ts +25 -0
- package/src/components/OutlinedCascader/OutlinedCascader.vue.d.ts +85 -0
- package/src/components/OutlinedCascader/index.d.ts +3 -0
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +27 -0
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +88 -0
- package/src/components/OutlinedDatePicker/index.d.ts +3 -0
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +26 -0
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +97 -0
- package/src/components/OutlinedDateTimePicker/index.d.ts +3 -0
- package/src/components/OutlinedInput/OutlinedInput.types.d.ts +29 -0
- package/src/components/OutlinedInput/OutlinedInput.vue.d.ts +97 -0
- package/src/components/OutlinedInput/index.d.ts +3 -0
- package/src/components/OutlinedSelect/OutlinedSelect.types.d.ts +38 -0
- package/src/components/OutlinedSelect/OutlinedSelect.vue.d.ts +116 -0
- package/src/components/OutlinedSelect/index.d.ts +3 -0
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +28 -0
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +94 -0
- package/src/components/OutlinedTimePicker/index.d.ts +3 -0
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +46 -0
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +137 -0
- package/src/components/OutlinedTreeSelect/index.d.ts +3 -0
- package/src/echarts/index.d.ts +9 -0
- package/src/echarts/index.ts +13 -8
- package/src/excel/exportExcel.d.ts +18 -0
- package/src/index.d.ts +26 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type OutlinedSelectCssValue = string | number;
|
|
2
|
+
export type OutlinedSelectOptionValue = string | number | boolean | Record<string, unknown> | null;
|
|
3
|
+
export type OutlinedSelectValue = OutlinedSelectOptionValue | OutlinedSelectOptionValue[];
|
|
4
|
+
export interface OutlinedSelectOption {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: OutlinedSelectOptionValue;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface OutlinedSelectProps {
|
|
11
|
+
value?: OutlinedSelectValue;
|
|
12
|
+
options?: OutlinedSelectOption[];
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
typeInput?: string;
|
|
17
|
+
showPassword?: boolean;
|
|
18
|
+
collapseTags?: boolean;
|
|
19
|
+
collapseTagsTooltip?: boolean;
|
|
20
|
+
filterable?: boolean;
|
|
21
|
+
clearable?: boolean;
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
inputHeight?: number;
|
|
24
|
+
isBorder?: boolean;
|
|
25
|
+
keyValue?: string;
|
|
26
|
+
labelValue?: string;
|
|
27
|
+
noCheck?: boolean;
|
|
28
|
+
maxCollapseTags?: number;
|
|
29
|
+
marginBottom?: OutlinedSelectCssValue;
|
|
30
|
+
paddingTop?: OutlinedSelectCssValue;
|
|
31
|
+
}
|
|
32
|
+
export interface OutlinedSelectExpose {
|
|
33
|
+
focus: () => void;
|
|
34
|
+
blur: () => void;
|
|
35
|
+
clear: () => void;
|
|
36
|
+
toggleMenu: () => void;
|
|
37
|
+
getSelectRef: () => unknown | null;
|
|
38
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { OutlinedSelectCssValue, OutlinedSelectOption, OutlinedSelectProps, OutlinedSelectValue } from './OutlinedSelect.types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedSelectProps>, {
|
|
3
|
+
value: undefined;
|
|
4
|
+
options: () => never[];
|
|
5
|
+
placeholder: string;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
typeInput: string;
|
|
9
|
+
showPassword: boolean;
|
|
10
|
+
collapseTags: boolean;
|
|
11
|
+
collapseTagsTooltip: boolean;
|
|
12
|
+
filterable: boolean;
|
|
13
|
+
clearable: boolean;
|
|
14
|
+
multiple: boolean;
|
|
15
|
+
inputHeight: number;
|
|
16
|
+
isBorder: boolean;
|
|
17
|
+
keyValue: string;
|
|
18
|
+
labelValue: string;
|
|
19
|
+
noCheck: boolean;
|
|
20
|
+
maxCollapseTags: number;
|
|
21
|
+
marginBottom: number;
|
|
22
|
+
paddingTop: number;
|
|
23
|
+
}>>, {
|
|
24
|
+
focus: () => void;
|
|
25
|
+
blur: () => void;
|
|
26
|
+
clear: () => void;
|
|
27
|
+
toggleMenu: () => void;
|
|
28
|
+
getSelectRef: () => unknown;
|
|
29
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
input: (value: OutlinedSelectValue) => void;
|
|
31
|
+
"update:value": (value: OutlinedSelectValue) => void;
|
|
32
|
+
change: (value: OutlinedSelectValue) => void;
|
|
33
|
+
focus: (value: FocusEvent) => void;
|
|
34
|
+
blur: (value: FocusEvent) => void;
|
|
35
|
+
"visible-change": (value: boolean) => void;
|
|
36
|
+
clear: () => void;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedSelectProps>, {
|
|
38
|
+
value: undefined;
|
|
39
|
+
options: () => never[];
|
|
40
|
+
placeholder: string;
|
|
41
|
+
label: string;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
typeInput: string;
|
|
44
|
+
showPassword: boolean;
|
|
45
|
+
collapseTags: boolean;
|
|
46
|
+
collapseTagsTooltip: boolean;
|
|
47
|
+
filterable: boolean;
|
|
48
|
+
clearable: boolean;
|
|
49
|
+
multiple: boolean;
|
|
50
|
+
inputHeight: number;
|
|
51
|
+
isBorder: boolean;
|
|
52
|
+
keyValue: string;
|
|
53
|
+
labelValue: string;
|
|
54
|
+
noCheck: boolean;
|
|
55
|
+
maxCollapseTags: number;
|
|
56
|
+
marginBottom: number;
|
|
57
|
+
paddingTop: number;
|
|
58
|
+
}>>> & Readonly<{
|
|
59
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
60
|
+
onChange?: ((value: OutlinedSelectValue) => any) | undefined;
|
|
61
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
62
|
+
onInput?: ((value: OutlinedSelectValue) => any) | undefined;
|
|
63
|
+
onClear?: (() => any) | undefined;
|
|
64
|
+
"onUpdate:value"?: ((value: OutlinedSelectValue) => any) | undefined;
|
|
65
|
+
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
label: string;
|
|
68
|
+
disabled: boolean;
|
|
69
|
+
value: OutlinedSelectValue;
|
|
70
|
+
options: OutlinedSelectOption[];
|
|
71
|
+
placeholder: string;
|
|
72
|
+
clearable: boolean;
|
|
73
|
+
inputHeight: number;
|
|
74
|
+
isBorder: boolean;
|
|
75
|
+
filterable: boolean;
|
|
76
|
+
marginBottom: OutlinedSelectCssValue;
|
|
77
|
+
paddingTop: OutlinedSelectCssValue;
|
|
78
|
+
multiple: boolean;
|
|
79
|
+
showPassword: boolean;
|
|
80
|
+
typeInput: string;
|
|
81
|
+
collapseTags: boolean;
|
|
82
|
+
collapseTagsTooltip: boolean;
|
|
83
|
+
keyValue: string;
|
|
84
|
+
labelValue: string;
|
|
85
|
+
noCheck: boolean;
|
|
86
|
+
maxCollapseTags: number;
|
|
87
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
88
|
+
default?(_: {}): any;
|
|
89
|
+
empty?(_: {}): any;
|
|
90
|
+
header?(_: {}): any;
|
|
91
|
+
footer?(_: {}): any;
|
|
92
|
+
tag?(_: any): any;
|
|
93
|
+
}>;
|
|
94
|
+
export default _default;
|
|
95
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
96
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
97
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
98
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
99
|
+
} : {
|
|
100
|
+
type: import('vue').PropType<T[K]>;
|
|
101
|
+
required: true;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
type __VLS_WithDefaults<P, D> = {
|
|
105
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
106
|
+
default: D[K];
|
|
107
|
+
}> : P[K];
|
|
108
|
+
};
|
|
109
|
+
type __VLS_Prettify<T> = {
|
|
110
|
+
[K in keyof T]: T[K];
|
|
111
|
+
} & {};
|
|
112
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
113
|
+
new (): {
|
|
114
|
+
$slots: S;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type OutlinedTimePickerCssValue = string | number;
|
|
2
|
+
export type OutlinedTimePickerValue = string | number | Date | Array<string | number | Date> | null;
|
|
3
|
+
export interface OutlinedTimePickerProps {
|
|
4
|
+
value?: OutlinedTimePickerValue;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
clearable?: boolean;
|
|
9
|
+
isRange?: boolean;
|
|
10
|
+
startPlaceholder?: string;
|
|
11
|
+
endPlaceholder?: string;
|
|
12
|
+
rangeSeparator?: string;
|
|
13
|
+
format?: string;
|
|
14
|
+
valueFormat?: string;
|
|
15
|
+
arrowControl?: boolean;
|
|
16
|
+
inputHeight?: number;
|
|
17
|
+
isBorder?: boolean;
|
|
18
|
+
marginBottom?: OutlinedTimePickerCssValue;
|
|
19
|
+
paddingTop?: OutlinedTimePickerCssValue;
|
|
20
|
+
}
|
|
21
|
+
export interface OutlinedTimePickerExpose {
|
|
22
|
+
focus: () => void;
|
|
23
|
+
blur: () => void;
|
|
24
|
+
handleOpen: () => void;
|
|
25
|
+
handleClose: () => void;
|
|
26
|
+
clear: () => void;
|
|
27
|
+
getPickerRef: () => unknown | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { OutlinedTimePickerCssValue, OutlinedTimePickerProps, OutlinedTimePickerValue } from './OutlinedTimePicker.types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedTimePickerProps>, {
|
|
3
|
+
value: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
clearable: boolean;
|
|
8
|
+
isRange: boolean;
|
|
9
|
+
startPlaceholder: string;
|
|
10
|
+
endPlaceholder: string;
|
|
11
|
+
rangeSeparator: string;
|
|
12
|
+
format: string;
|
|
13
|
+
valueFormat: string;
|
|
14
|
+
arrowControl: boolean;
|
|
15
|
+
inputHeight: number;
|
|
16
|
+
isBorder: boolean;
|
|
17
|
+
marginBottom: number;
|
|
18
|
+
paddingTop: number;
|
|
19
|
+
}>>, {
|
|
20
|
+
focus: () => void;
|
|
21
|
+
blur: () => void;
|
|
22
|
+
handleOpen: () => void;
|
|
23
|
+
handleClose: () => void;
|
|
24
|
+
clear: () => void;
|
|
25
|
+
getPickerRef: () => unknown;
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
input: (value: OutlinedTimePickerValue) => void;
|
|
28
|
+
"update:value": (value: OutlinedTimePickerValue) => void;
|
|
29
|
+
change: (value: OutlinedTimePickerValue) => void;
|
|
30
|
+
focus: (value: FocusEvent) => void;
|
|
31
|
+
blur: (value: FocusEvent) => void;
|
|
32
|
+
"visible-change": (value: boolean) => void;
|
|
33
|
+
clear: () => void;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedTimePickerProps>, {
|
|
35
|
+
value: string;
|
|
36
|
+
placeholder: string;
|
|
37
|
+
label: string;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
clearable: boolean;
|
|
40
|
+
isRange: boolean;
|
|
41
|
+
startPlaceholder: string;
|
|
42
|
+
endPlaceholder: string;
|
|
43
|
+
rangeSeparator: string;
|
|
44
|
+
format: string;
|
|
45
|
+
valueFormat: string;
|
|
46
|
+
arrowControl: boolean;
|
|
47
|
+
inputHeight: number;
|
|
48
|
+
isBorder: boolean;
|
|
49
|
+
marginBottom: number;
|
|
50
|
+
paddingTop: number;
|
|
51
|
+
}>>> & Readonly<{
|
|
52
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
53
|
+
onChange?: ((value: OutlinedTimePickerValue) => any) | undefined;
|
|
54
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
55
|
+
onInput?: ((value: OutlinedTimePickerValue) => any) | undefined;
|
|
56
|
+
onClear?: (() => any) | undefined;
|
|
57
|
+
"onUpdate:value"?: ((value: OutlinedTimePickerValue) => any) | undefined;
|
|
58
|
+
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
label: string;
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
value: OutlinedTimePickerValue;
|
|
63
|
+
placeholder: string;
|
|
64
|
+
clearable: boolean;
|
|
65
|
+
inputHeight: number;
|
|
66
|
+
isBorder: boolean;
|
|
67
|
+
marginBottom: OutlinedTimePickerCssValue;
|
|
68
|
+
paddingTop: OutlinedTimePickerCssValue;
|
|
69
|
+
format: string;
|
|
70
|
+
valueFormat: string;
|
|
71
|
+
isRange: boolean;
|
|
72
|
+
startPlaceholder: string;
|
|
73
|
+
endPlaceholder: string;
|
|
74
|
+
rangeSeparator: string;
|
|
75
|
+
arrowControl: boolean;
|
|
76
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
77
|
+
export default _default;
|
|
78
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
79
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
80
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
81
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
82
|
+
} : {
|
|
83
|
+
type: import('vue').PropType<T[K]>;
|
|
84
|
+
required: true;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
type __VLS_WithDefaults<P, D> = {
|
|
88
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
89
|
+
default: D[K];
|
|
90
|
+
}> : P[K];
|
|
91
|
+
};
|
|
92
|
+
type __VLS_Prettify<T> = {
|
|
93
|
+
[K in keyof T]: T[K];
|
|
94
|
+
} & {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type OutlinedTreeSelectCssValue = string | number;
|
|
2
|
+
export type OutlinedTreeSelectOptionValue = string | number | boolean | Record<string, unknown> | null;
|
|
3
|
+
export type OutlinedTreeSelectValue = OutlinedTreeSelectOptionValue | OutlinedTreeSelectOptionValue[];
|
|
4
|
+
export interface OutlinedTreeSelectNode {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: OutlinedTreeSelectOptionValue;
|
|
7
|
+
children?: OutlinedTreeSelectNode[];
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface OutlinedTreeSelectProps {
|
|
12
|
+
value?: OutlinedTreeSelectValue;
|
|
13
|
+
data?: OutlinedTreeSelectNode[];
|
|
14
|
+
propsValue?: Record<string, unknown>;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
clearable?: boolean;
|
|
19
|
+
filterable?: boolean;
|
|
20
|
+
multiple?: boolean;
|
|
21
|
+
showCheckbox?: boolean;
|
|
22
|
+
checkStrictly?: boolean;
|
|
23
|
+
checkOnClickNode?: boolean;
|
|
24
|
+
defaultExpandAll?: boolean;
|
|
25
|
+
expandOnClickNode?: boolean;
|
|
26
|
+
renderAfterExpand?: boolean;
|
|
27
|
+
collapseTags?: boolean;
|
|
28
|
+
collapseTagsTooltip?: boolean;
|
|
29
|
+
maxCollapseTags?: number;
|
|
30
|
+
popperClass?: string;
|
|
31
|
+
nodeKey?: string;
|
|
32
|
+
keyValue?: string;
|
|
33
|
+
labelValue?: string;
|
|
34
|
+
childrenValue?: string;
|
|
35
|
+
disabledValue?: string;
|
|
36
|
+
inputHeight?: number;
|
|
37
|
+
isBorder?: boolean;
|
|
38
|
+
marginBottom?: OutlinedTreeSelectCssValue;
|
|
39
|
+
paddingTop?: OutlinedTreeSelectCssValue;
|
|
40
|
+
}
|
|
41
|
+
export interface OutlinedTreeSelectExpose {
|
|
42
|
+
focus: () => void;
|
|
43
|
+
blur: () => void;
|
|
44
|
+
clear: () => void;
|
|
45
|
+
getTreeSelectRef: () => unknown | null;
|
|
46
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { OutlinedTreeSelectCssValue, OutlinedTreeSelectProps, OutlinedTreeSelectValue } from './OutlinedTreeSelect.types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedTreeSelectProps>, {
|
|
3
|
+
value: undefined;
|
|
4
|
+
data: () => never[];
|
|
5
|
+
propsValue: undefined;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
label: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
clearable: boolean;
|
|
10
|
+
filterable: boolean;
|
|
11
|
+
multiple: boolean;
|
|
12
|
+
showCheckbox: boolean;
|
|
13
|
+
checkStrictly: boolean;
|
|
14
|
+
checkOnClickNode: boolean;
|
|
15
|
+
defaultExpandAll: boolean;
|
|
16
|
+
expandOnClickNode: boolean;
|
|
17
|
+
renderAfterExpand: boolean;
|
|
18
|
+
collapseTags: boolean;
|
|
19
|
+
collapseTagsTooltip: boolean;
|
|
20
|
+
maxCollapseTags: number;
|
|
21
|
+
popperClass: string;
|
|
22
|
+
nodeKey: string;
|
|
23
|
+
keyValue: string;
|
|
24
|
+
labelValue: string;
|
|
25
|
+
childrenValue: string;
|
|
26
|
+
disabledValue: string;
|
|
27
|
+
inputHeight: number;
|
|
28
|
+
isBorder: boolean;
|
|
29
|
+
marginBottom: number;
|
|
30
|
+
paddingTop: number;
|
|
31
|
+
}>>, {
|
|
32
|
+
focus: () => void;
|
|
33
|
+
blur: () => void;
|
|
34
|
+
clear: () => void;
|
|
35
|
+
getTreeSelectRef: () => unknown;
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
input: (value: OutlinedTreeSelectValue) => void;
|
|
38
|
+
"update:value": (value: OutlinedTreeSelectValue) => void;
|
|
39
|
+
change: (value: OutlinedTreeSelectValue) => void;
|
|
40
|
+
focus: (value: FocusEvent) => void;
|
|
41
|
+
blur: (value: FocusEvent) => void;
|
|
42
|
+
"visible-change": (value: boolean) => void;
|
|
43
|
+
clear: () => void;
|
|
44
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OutlinedTreeSelectProps>, {
|
|
45
|
+
value: undefined;
|
|
46
|
+
data: () => never[];
|
|
47
|
+
propsValue: undefined;
|
|
48
|
+
placeholder: string;
|
|
49
|
+
label: string;
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
clearable: boolean;
|
|
52
|
+
filterable: boolean;
|
|
53
|
+
multiple: boolean;
|
|
54
|
+
showCheckbox: boolean;
|
|
55
|
+
checkStrictly: boolean;
|
|
56
|
+
checkOnClickNode: boolean;
|
|
57
|
+
defaultExpandAll: boolean;
|
|
58
|
+
expandOnClickNode: boolean;
|
|
59
|
+
renderAfterExpand: boolean;
|
|
60
|
+
collapseTags: boolean;
|
|
61
|
+
collapseTagsTooltip: boolean;
|
|
62
|
+
maxCollapseTags: number;
|
|
63
|
+
popperClass: string;
|
|
64
|
+
nodeKey: string;
|
|
65
|
+
keyValue: string;
|
|
66
|
+
labelValue: string;
|
|
67
|
+
childrenValue: string;
|
|
68
|
+
disabledValue: string;
|
|
69
|
+
inputHeight: number;
|
|
70
|
+
isBorder: boolean;
|
|
71
|
+
marginBottom: number;
|
|
72
|
+
paddingTop: number;
|
|
73
|
+
}>>> & Readonly<{
|
|
74
|
+
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
75
|
+
onChange?: ((value: OutlinedTreeSelectValue) => any) | undefined;
|
|
76
|
+
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
77
|
+
onInput?: ((value: OutlinedTreeSelectValue) => any) | undefined;
|
|
78
|
+
onClear?: (() => any) | undefined;
|
|
79
|
+
"onUpdate:value"?: ((value: OutlinedTreeSelectValue) => any) | undefined;
|
|
80
|
+
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
data: import("./OutlinedTreeSelect.types").OutlinedTreeSelectNode[];
|
|
83
|
+
label: string;
|
|
84
|
+
disabled: boolean;
|
|
85
|
+
value: OutlinedTreeSelectValue;
|
|
86
|
+
defaultExpandAll: boolean;
|
|
87
|
+
popperClass: string;
|
|
88
|
+
placeholder: string;
|
|
89
|
+
clearable: boolean;
|
|
90
|
+
propsValue: Record<string, unknown>;
|
|
91
|
+
inputHeight: number;
|
|
92
|
+
isBorder: boolean;
|
|
93
|
+
filterable: boolean;
|
|
94
|
+
marginBottom: OutlinedTreeSelectCssValue;
|
|
95
|
+
paddingTop: OutlinedTreeSelectCssValue;
|
|
96
|
+
multiple: boolean;
|
|
97
|
+
collapseTags: boolean;
|
|
98
|
+
collapseTagsTooltip: boolean;
|
|
99
|
+
keyValue: string;
|
|
100
|
+
labelValue: string;
|
|
101
|
+
maxCollapseTags: number;
|
|
102
|
+
showCheckbox: boolean;
|
|
103
|
+
checkStrictly: boolean;
|
|
104
|
+
checkOnClickNode: boolean;
|
|
105
|
+
expandOnClickNode: boolean;
|
|
106
|
+
renderAfterExpand: boolean;
|
|
107
|
+
nodeKey: string;
|
|
108
|
+
childrenValue: string;
|
|
109
|
+
disabledValue: string;
|
|
110
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
111
|
+
empty?(_: {}): any;
|
|
112
|
+
header?(_: {}): any;
|
|
113
|
+
footer?(_: {}): any;
|
|
114
|
+
}>;
|
|
115
|
+
export default _default;
|
|
116
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
117
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
118
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
119
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
120
|
+
} : {
|
|
121
|
+
type: import('vue').PropType<T[K]>;
|
|
122
|
+
required: true;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
type __VLS_WithDefaults<P, D> = {
|
|
126
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
127
|
+
default: D[K];
|
|
128
|
+
}> : P[K];
|
|
129
|
+
};
|
|
130
|
+
type __VLS_Prettify<T> = {
|
|
131
|
+
[K in keyof T]: T[K];
|
|
132
|
+
} & {};
|
|
133
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
134
|
+
new (): {
|
|
135
|
+
$slots: S;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import OutlinedTreeSelect from './OutlinedTreeSelect.vue';
|
|
2
|
+
export default OutlinedTreeSelect;
|
|
3
|
+
export type { OutlinedTreeSelectCssValue, OutlinedTreeSelectExpose, OutlinedTreeSelectNode, OutlinedTreeSelectOptionValue, OutlinedTreeSelectProps, OutlinedTreeSelectValue } from './OutlinedTreeSelect.types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as echarts from 'echarts';
|
|
2
|
+
import type { ECharts, EChartsInitOpts, EChartsOption, ResizeOpts, SetOptionOpts } from 'echarts';
|
|
3
|
+
export type EChartInstance = ECharts;
|
|
4
|
+
export type EChartOption = EChartsOption;
|
|
5
|
+
export type EChartInitOptions = EChartsInitOpts;
|
|
6
|
+
export type EChartLoadingOptions = Parameters<ECharts['showLoading']>[1];
|
|
7
|
+
export type EChartResizeOptions = ResizeOpts;
|
|
8
|
+
export type EChartSetOptionOptions = SetOptionOpts;
|
|
9
|
+
export { echarts };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type ExcelCellValue = string | number | boolean | null | undefined | Date;
|
|
2
|
+
export interface ExcelExportColumn<Row = Record<string, any>> {
|
|
3
|
+
label: string;
|
|
4
|
+
key?: string;
|
|
5
|
+
width?: number;
|
|
6
|
+
formatter?: (row: Row, rowIndex: number, column: ExcelExportColumn<Row>) => ExcelCellValue;
|
|
7
|
+
children?: Array<ExcelExportColumn<Row>>;
|
|
8
|
+
}
|
|
9
|
+
export interface ExcelExportOptions<Row = Record<string, any>> {
|
|
10
|
+
fileName: string;
|
|
11
|
+
sheetName?: string;
|
|
12
|
+
columns: Array<ExcelExportColumn<Row>>;
|
|
13
|
+
data: Array<Row>;
|
|
14
|
+
autoWidth?: boolean;
|
|
15
|
+
defaultColumnWidth?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function exportExcel<Row = Record<string, any>>(options: ExcelExportOptions<Row>): Promise<void>;
|
|
18
|
+
export default exportExcel;
|