@hbdlzy/ui-core 0.1.3 → 0.1.4
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 +35 -1
- package/dist/components/BaseDialog/BaseDialog.types.d.ts +25 -0
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +100 -0
- package/dist/components/BaseDialog/index.d.ts +3 -0
- package/dist/components/BaseEChart/BaseEChart.vue.d.ts +1 -1
- package/dist/components/BaseExportButton/BaseExportButton.vue.d.ts +4 -4
- package/dist/components/BaseSearchForm/BaseSearchForm.types.d.ts +42 -0
- package/dist/components/BaseSearchForm/BaseSearchForm.utils.d.ts +5 -0
- package/dist/components/BaseSearchForm/BaseSearchForm.vue.d.ts +88 -0
- package/dist/components/BaseSearchForm/index.d.ts +4 -0
- package/dist/components/BaseTable/BaseTable.types.d.ts +1 -1
- package/dist/components/OutlinedCascader/OutlinedCascader.vue.d.ts +1 -1
- package/dist/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +2 -2
- package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +527 -140
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/src/components/BaseDialog/BaseDialog.types.ts +28 -0
- package/src/components/BaseDialog/BaseDialog.vue +158 -0
- package/src/components/BaseDialog/README.md +69 -0
- package/src/components/BaseDialog/index.ts +10 -0
- package/src/components/BaseExportButton/BaseExportButton.vue +3 -1
- package/src/components/BaseSearchForm/BaseSearchForm.types.ts +46 -0
- package/src/components/BaseSearchForm/BaseSearchForm.utils.ts +41 -0
- package/src/components/BaseSearchForm/BaseSearchForm.vue +267 -0
- package/src/components/BaseSearchForm/README.md +66 -0
- package/src/components/BaseSearchForm/index.ts +20 -0
- package/src/components/BaseTable/BaseTable.types.ts +1 -1
- package/src/index.ts +4 -0
- package/src/components/BaseCard/BaseCard.types.d.ts +0 -36
- package/src/components/BaseCard/BaseCard.vue.d.ts +0 -122
- package/src/components/BaseCard/index.d.ts +0 -3
- package/src/components/BaseEChart/BaseEChart.types.d.ts +0 -26
- package/src/components/BaseEChart/BaseEChart.vue.d.ts +0 -66
- package/src/components/BaseEChart/index.d.ts +0 -3
- package/src/components/BaseExportButton/BaseExportButton.types.d.ts +0 -21
- package/src/components/BaseExportButton/BaseExportButton.utils.d.ts +0 -4
- package/src/components/BaseExportButton/BaseExportButton.vue.d.ts +0 -128
- package/src/components/BaseExportButton/index.d.ts +0 -5
- package/src/components/BaseTable/BaseTable.types.d.ts +0 -163
- package/src/components/BaseTable/BaseTable.vue.d.ts +0 -157
- package/src/components/BaseTable/index.d.ts +0 -3
- package/src/components/OutlinedCascader/OutlinedCascader.types.d.ts +0 -25
- package/src/components/OutlinedCascader/OutlinedCascader.vue.d.ts +0 -85
- package/src/components/OutlinedCascader/index.d.ts +0 -3
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +0 -27
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +0 -88
- package/src/components/OutlinedDatePicker/index.d.ts +0 -3
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +0 -26
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +0 -97
- package/src/components/OutlinedDateTimePicker/index.d.ts +0 -3
- package/src/components/OutlinedInput/OutlinedInput.types.d.ts +0 -29
- package/src/components/OutlinedInput/OutlinedInput.vue.d.ts +0 -97
- package/src/components/OutlinedInput/index.d.ts +0 -3
- package/src/components/OutlinedSelect/OutlinedSelect.types.d.ts +0 -38
- package/src/components/OutlinedSelect/OutlinedSelect.vue.d.ts +0 -116
- package/src/components/OutlinedSelect/index.d.ts +0 -3
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +0 -28
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +0 -94
- package/src/components/OutlinedTimePicker/index.d.ts +0 -3
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +0 -46
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +0 -137
- package/src/components/OutlinedTreeSelect/index.d.ts +0 -3
- package/src/echarts/index.d.ts +0 -9
- package/src/excel/exportExcel.d.ts +0 -18
- package/src/index.d.ts +0 -26
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
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
|
-
defaultExpandAll: boolean;
|
|
86
|
-
popperClass: string;
|
|
87
|
-
value: OutlinedTreeSelectValue;
|
|
88
|
-
placeholder: string;
|
|
89
|
-
clearable: boolean;
|
|
90
|
-
inputHeight: number;
|
|
91
|
-
isBorder: boolean;
|
|
92
|
-
marginBottom: OutlinedTreeSelectCssValue;
|
|
93
|
-
paddingTop: OutlinedTreeSelectCssValue;
|
|
94
|
-
multiple: boolean;
|
|
95
|
-
collapseTags: boolean;
|
|
96
|
-
collapseTagsTooltip: boolean;
|
|
97
|
-
filterable: boolean;
|
|
98
|
-
keyValue: string;
|
|
99
|
-
labelValue: string;
|
|
100
|
-
maxCollapseTags: number;
|
|
101
|
-
propsValue: Record<string, unknown>;
|
|
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
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import OutlinedTreeSelect from './OutlinedTreeSelect.vue';
|
|
2
|
-
export default OutlinedTreeSelect;
|
|
3
|
-
export type { OutlinedTreeSelectCssValue, OutlinedTreeSelectExpose, OutlinedTreeSelectNode, OutlinedTreeSelectOptionValue, OutlinedTreeSelectProps, OutlinedTreeSelectValue } from './OutlinedTreeSelect.types';
|
package/src/echarts/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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 };
|
|
@@ -1,18 +0,0 @@
|
|
|
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;
|
package/src/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export { echarts } from './echarts';
|
|
2
|
-
export type { EChartInitOptions, EChartInstance, EChartLoadingOptions, EChartOption, EChartResizeOptions, EChartSetOptionOptions } from './echarts';
|
|
3
|
-
export { default as BaseCard } from './components/BaseCard';
|
|
4
|
-
export * from './components/BaseCard';
|
|
5
|
-
export { default as BaseTable } from './components/BaseTable';
|
|
6
|
-
export * from './components/BaseTable';
|
|
7
|
-
export { default as BaseEChart } from './components/BaseEChart';
|
|
8
|
-
export * from './components/BaseEChart';
|
|
9
|
-
export { default as BaseExportButton } from './components/BaseExportButton';
|
|
10
|
-
export * from './components/BaseExportButton';
|
|
11
|
-
export { default as OutlinedInput } from './components/OutlinedInput';
|
|
12
|
-
export * from './components/OutlinedInput';
|
|
13
|
-
export { default as OutlinedSelect } from './components/OutlinedSelect';
|
|
14
|
-
export * from './components/OutlinedSelect';
|
|
15
|
-
export { default as OutlinedDatePicker } from './components/OutlinedDatePicker';
|
|
16
|
-
export * from './components/OutlinedDatePicker';
|
|
17
|
-
export { default as OutlinedDateTimePicker } from './components/OutlinedDateTimePicker';
|
|
18
|
-
export * from './components/OutlinedDateTimePicker';
|
|
19
|
-
export { default as OutlinedTimePicker } from './components/OutlinedTimePicker';
|
|
20
|
-
export * from './components/OutlinedTimePicker';
|
|
21
|
-
export { default as OutlinedCascader } from './components/OutlinedCascader';
|
|
22
|
-
export * from './components/OutlinedCascader';
|
|
23
|
-
export { default as OutlinedTreeSelect } from './components/OutlinedTreeSelect';
|
|
24
|
-
export * from './components/OutlinedTreeSelect';
|
|
25
|
-
export { exportExcel } from './excel/exportExcel';
|
|
26
|
-
export type { ExcelCellValue, ExcelExportColumn, ExcelExportOptions } from './excel/exportExcel';
|