@hbdlzy/ui-core 0.1.4 → 0.1.5
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 +11 -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 +25 -25
- package/dist/components/OutlinedCascader/OutlinedCascader.vue.d.ts +85 -85
- package/dist/components/OutlinedCascader/index.d.ts +3 -3
- package/dist/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +27 -27
- package/dist/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +88 -88
- package/dist/components/OutlinedDatePicker/index.d.ts +3 -3
- package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +26 -26
- package/dist/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +97 -97
- package/dist/components/OutlinedDateTimePicker/index.d.ts +3 -3
- package/dist/components/OutlinedInput/OutlinedInput.types.d.ts +29 -29
- package/dist/components/OutlinedInput/OutlinedInput.vue.d.ts +97 -97
- package/dist/components/OutlinedInput/index.d.ts +3 -3
- package/dist/components/OutlinedSelect/OutlinedSelect.types.d.ts +38 -38
- package/dist/components/OutlinedSelect/OutlinedSelect.vue.d.ts +116 -116
- package/dist/components/OutlinedSelect/index.d.ts +3 -3
- package/dist/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +28 -28
- package/dist/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +94 -94
- package/dist/components/OutlinedTimePicker/index.d.ts +3 -3
- package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +46 -46
- package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +137 -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 +308 -527
- 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/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
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
- `OutlinedTreeSelect`
|
|
18
18
|
- `echarts`
|
|
19
19
|
- `exportExcel`
|
|
20
|
+
- 全局按钮 ripple:导入包入口后自动启用,覆盖原生 `button`、Element Plus `el-button` 以及 radio/checkbox button 形态
|
|
20
21
|
|
|
21
22
|
## 使用方式
|
|
22
23
|
|
|
@@ -33,11 +34,15 @@ import {
|
|
|
33
34
|
OutlinedTimePicker,
|
|
34
35
|
OutlinedCascader,
|
|
35
36
|
OutlinedTreeSelect,
|
|
37
|
+
installRipple,
|
|
38
|
+
uninstallRipple,
|
|
36
39
|
echarts,
|
|
37
40
|
exportExcel
|
|
38
41
|
} from '@hbdlzy/ui-core'
|
|
39
42
|
```
|
|
40
43
|
|
|
44
|
+
全局 ripple 会在导入 `@hbdlzy/ui-core` 时自动安装;如某个按钮不需要水波纹,可在按钮或父级元素上添加 `data-hbdl-ripple="false"`。
|
|
45
|
+
|
|
41
46
|
## 详细文档
|
|
42
47
|
|
|
43
48
|
- `BaseTable`: [src/components/BaseTable/README.md](./src/components/BaseTable/README.md)
|
|
@@ -70,6 +75,8 @@ import {
|
|
|
70
75
|
- 工具
|
|
71
76
|
- `echarts`
|
|
72
77
|
- `exportExcel`
|
|
78
|
+
- `installRipple`
|
|
79
|
+
- `uninstallRipple`
|
|
73
80
|
|
|
74
81
|
## 设计原则
|
|
75
82
|
|
package/components.manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@hbdlzy/ui-core",
|
|
3
3
|
"version": 1,
|
|
4
|
-
"updatedAt": "2026-04-
|
|
4
|
+
"updatedAt": "2026-04-21",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"name": "BaseTable",
|
|
@@ -60,40 +60,6 @@
|
|
|
60
60
|
],
|
|
61
61
|
"emits": ["export"]
|
|
62
62
|
},
|
|
63
|
-
{
|
|
64
|
-
"name": "BaseSearchForm",
|
|
65
|
-
"category": "ui-core",
|
|
66
|
-
"entry": "@hbdlzy/ui-core",
|
|
67
|
-
"importName": "BaseSearchForm",
|
|
68
|
-
"docs": "packages/ui-core/src/components/BaseSearchForm/README.md",
|
|
69
|
-
"description": "统一封装列表页查询表单,支持输入框、下拉框、日期、日期范围、插槽字段、查询重置和展开收起。",
|
|
70
|
-
"props": [
|
|
71
|
-
{ "name": "modelValue", "type": "Record<string, unknown>", "required": false },
|
|
72
|
-
{ "name": "fields", "type": "BaseSearchFormField[]", "required": true },
|
|
73
|
-
{ "name": "collapsed", "type": "boolean", "default": true },
|
|
74
|
-
{ "name": "showCollapse", "type": "boolean", "default": true },
|
|
75
|
-
{ "name": "columns", "type": "number", "default": 4 },
|
|
76
|
-
{ "name": "labelWidth", "type": "string | number", "default": 80 }
|
|
77
|
-
],
|
|
78
|
-
"emits": ["update:modelValue", "search", "reset", "field-change"]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"name": "BaseDialog",
|
|
82
|
-
"category": "ui-core",
|
|
83
|
-
"entry": "@hbdlzy/ui-core",
|
|
84
|
-
"importName": "BaseDialog",
|
|
85
|
-
"docs": "packages/ui-core/src/components/BaseDialog/README.md",
|
|
86
|
-
"description": "统一封装新增、编辑、确认类弹窗,支持默认页脚、异步确认、确认 loading 和自定义头尾插槽。",
|
|
87
|
-
"props": [
|
|
88
|
-
{ "name": "modelValue", "type": "boolean", "default": false },
|
|
89
|
-
{ "name": "title", "type": "string", "default": "" },
|
|
90
|
-
{ "name": "width", "type": "string | number", "default": "560px" },
|
|
91
|
-
{ "name": "showFooter", "type": "boolean", "default": true },
|
|
92
|
-
{ "name": "confirmLoading", "type": "boolean", "default": false },
|
|
93
|
-
{ "name": "beforeConfirm", "type": "() => boolean | void | Promise<boolean | void>", "required": false }
|
|
94
|
-
],
|
|
95
|
-
"emits": ["update:modelValue", "open", "opened", "close", "closed", "cancel", "confirm"]
|
|
96
|
-
},
|
|
97
63
|
{
|
|
98
64
|
"name": "BaseEChart",
|
|
99
65
|
"category": "ui-core",
|
|
@@ -299,6 +265,16 @@
|
|
|
299
265
|
"name": "exportExcel",
|
|
300
266
|
"entry": "@hbdlzy/ui-core",
|
|
301
267
|
"description": "支持多级表头和自动列宽的纯前端 Excel 导出工具。"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "installRipple",
|
|
271
|
+
"entry": "@hbdlzy/ui-core",
|
|
272
|
+
"description": "安装全局按钮 ripple 效果;包入口会自动调用,可用于手动恢复。"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "uninstallRipple",
|
|
276
|
+
"entry": "@hbdlzy/ui-core",
|
|
277
|
+
"description": "卸载全局按钮 ripple 事件监听。"
|
|
302
278
|
}
|
|
303
279
|
]
|
|
304
280
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
export type BaseCardCssValue = string | number;
|
|
2
|
-
export interface BaseCardDefaultExportPayload {
|
|
3
|
-
title?: string;
|
|
4
|
-
metaText?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface BaseCardProps {
|
|
7
|
-
title?: string;
|
|
8
|
-
metaText?: string;
|
|
9
|
-
showHeader?: boolean;
|
|
10
|
-
showRight?: boolean;
|
|
11
|
-
showTitleMarker?: boolean;
|
|
12
|
-
showExport?: boolean;
|
|
13
|
-
exportText?: string;
|
|
14
|
-
exportDisabled?: boolean;
|
|
15
|
-
exportPayload?: unknown;
|
|
16
|
-
padding?: BaseCardCssValue;
|
|
17
|
-
radius?: BaseCardCssValue;
|
|
18
|
-
borderColor?: string;
|
|
19
|
-
backgroundColor?: string;
|
|
20
|
-
shadowColor?: string;
|
|
21
|
-
headerGap?: BaseCardCssValue;
|
|
22
|
-
headerMarginBottom?: BaseCardCssValue;
|
|
23
|
-
leftGap?: BaseCardCssValue;
|
|
24
|
-
rightGap?: BaseCardCssValue;
|
|
25
|
-
titleColor?: string;
|
|
26
|
-
titleSize?: BaseCardCssValue;
|
|
27
|
-
titleWeight?: string | number;
|
|
28
|
-
markerColor?: string;
|
|
29
|
-
markerWidth?: BaseCardCssValue;
|
|
30
|
-
markerHeight?: BaseCardCssValue;
|
|
31
|
-
markerRadius?: BaseCardCssValue;
|
|
32
|
-
markerGap?: BaseCardCssValue;
|
|
33
|
-
metaColor?: string;
|
|
34
|
-
metaSize?: BaseCardCssValue;
|
|
35
|
-
exportColor?: string;
|
|
36
|
-
}
|
|
1
|
+
export type BaseCardCssValue = string | number;
|
|
2
|
+
export interface BaseCardDefaultExportPayload {
|
|
3
|
+
title?: string;
|
|
4
|
+
metaText?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BaseCardProps {
|
|
7
|
+
title?: string;
|
|
8
|
+
metaText?: string;
|
|
9
|
+
showHeader?: boolean;
|
|
10
|
+
showRight?: boolean;
|
|
11
|
+
showTitleMarker?: boolean;
|
|
12
|
+
showExport?: boolean;
|
|
13
|
+
exportText?: string;
|
|
14
|
+
exportDisabled?: boolean;
|
|
15
|
+
exportPayload?: unknown;
|
|
16
|
+
padding?: BaseCardCssValue;
|
|
17
|
+
radius?: BaseCardCssValue;
|
|
18
|
+
borderColor?: string;
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
shadowColor?: string;
|
|
21
|
+
headerGap?: BaseCardCssValue;
|
|
22
|
+
headerMarginBottom?: BaseCardCssValue;
|
|
23
|
+
leftGap?: BaseCardCssValue;
|
|
24
|
+
rightGap?: BaseCardCssValue;
|
|
25
|
+
titleColor?: string;
|
|
26
|
+
titleSize?: BaseCardCssValue;
|
|
27
|
+
titleWeight?: string | number;
|
|
28
|
+
markerColor?: string;
|
|
29
|
+
markerWidth?: BaseCardCssValue;
|
|
30
|
+
markerHeight?: BaseCardCssValue;
|
|
31
|
+
markerRadius?: BaseCardCssValue;
|
|
32
|
+
markerGap?: BaseCardCssValue;
|
|
33
|
+
metaColor?: string;
|
|
34
|
+
metaSize?: BaseCardCssValue;
|
|
35
|
+
exportColor?: string;
|
|
36
|
+
}
|
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
import type { BaseCardCssValue, BaseCardProps } from './BaseCard.types';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseCardProps>, {
|
|
3
|
-
title: string;
|
|
4
|
-
metaText: string;
|
|
5
|
-
showHeader: boolean;
|
|
6
|
-
showRight: boolean;
|
|
7
|
-
showTitleMarker: boolean;
|
|
8
|
-
showExport: boolean;
|
|
9
|
-
exportText: string;
|
|
10
|
-
exportDisabled: boolean;
|
|
11
|
-
padding: number;
|
|
12
|
-
radius: number;
|
|
13
|
-
borderColor: string;
|
|
14
|
-
backgroundColor: string;
|
|
15
|
-
shadowColor: string;
|
|
16
|
-
headerGap: number;
|
|
17
|
-
headerMarginBottom: number;
|
|
18
|
-
leftGap: number;
|
|
19
|
-
rightGap: number;
|
|
20
|
-
titleColor: string;
|
|
21
|
-
titleSize: number;
|
|
22
|
-
titleWeight: number;
|
|
23
|
-
markerColor: string;
|
|
24
|
-
markerWidth: number;
|
|
25
|
-
markerHeight: number;
|
|
26
|
-
markerRadius: string;
|
|
27
|
-
markerGap: number;
|
|
28
|
-
metaColor: string;
|
|
29
|
-
metaSize: number;
|
|
30
|
-
exportColor: string;
|
|
31
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
-
export: (payload?: unknown) => void;
|
|
33
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseCardProps>, {
|
|
34
|
-
title: string;
|
|
35
|
-
metaText: string;
|
|
36
|
-
showHeader: boolean;
|
|
37
|
-
showRight: boolean;
|
|
38
|
-
showTitleMarker: boolean;
|
|
39
|
-
showExport: boolean;
|
|
40
|
-
exportText: string;
|
|
41
|
-
exportDisabled: boolean;
|
|
42
|
-
padding: number;
|
|
43
|
-
radius: number;
|
|
44
|
-
borderColor: string;
|
|
45
|
-
backgroundColor: string;
|
|
46
|
-
shadowColor: string;
|
|
47
|
-
headerGap: number;
|
|
48
|
-
headerMarginBottom: number;
|
|
49
|
-
leftGap: number;
|
|
50
|
-
rightGap: number;
|
|
51
|
-
titleColor: string;
|
|
52
|
-
titleSize: number;
|
|
53
|
-
titleWeight: number;
|
|
54
|
-
markerColor: string;
|
|
55
|
-
markerWidth: number;
|
|
56
|
-
markerHeight: number;
|
|
57
|
-
markerRadius: string;
|
|
58
|
-
markerGap: number;
|
|
59
|
-
metaColor: string;
|
|
60
|
-
metaSize: number;
|
|
61
|
-
exportColor: string;
|
|
62
|
-
}>>> & Readonly<{
|
|
63
|
-
onExport?: ((payload?: unknown) => any) | undefined;
|
|
64
|
-
}>, {
|
|
65
|
-
title: string;
|
|
66
|
-
metaText: string;
|
|
67
|
-
showHeader: boolean;
|
|
68
|
-
showRight: boolean;
|
|
69
|
-
showTitleMarker: boolean;
|
|
70
|
-
showExport: boolean;
|
|
71
|
-
exportText: string;
|
|
72
|
-
exportDisabled: boolean;
|
|
73
|
-
padding: BaseCardCssValue;
|
|
74
|
-
radius: BaseCardCssValue;
|
|
75
|
-
borderColor: string;
|
|
76
|
-
backgroundColor: string;
|
|
77
|
-
shadowColor: string;
|
|
78
|
-
headerGap: BaseCardCssValue;
|
|
79
|
-
headerMarginBottom: BaseCardCssValue;
|
|
80
|
-
leftGap: BaseCardCssValue;
|
|
81
|
-
rightGap: BaseCardCssValue;
|
|
82
|
-
titleColor: string;
|
|
83
|
-
titleSize: BaseCardCssValue;
|
|
84
|
-
titleWeight: string | number;
|
|
85
|
-
markerColor: string;
|
|
86
|
-
markerWidth: BaseCardCssValue;
|
|
87
|
-
markerHeight: BaseCardCssValue;
|
|
88
|
-
markerRadius: BaseCardCssValue;
|
|
89
|
-
markerGap: BaseCardCssValue;
|
|
90
|
-
metaColor: string;
|
|
91
|
-
metaSize: BaseCardCssValue;
|
|
92
|
-
exportColor: string;
|
|
93
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
94
|
-
"title-label"?(_: {}): any;
|
|
95
|
-
title?(_: {}): any;
|
|
96
|
-
"header-right"?(_: {}): any;
|
|
97
|
-
tip?(_: {}): any;
|
|
98
|
-
default?(_: {}): any;
|
|
99
|
-
}>;
|
|
100
|
-
export default _default;
|
|
101
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
102
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
103
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
104
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
105
|
-
} : {
|
|
106
|
-
type: import('vue').PropType<T[K]>;
|
|
107
|
-
required: true;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
type __VLS_WithDefaults<P, D> = {
|
|
111
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
112
|
-
default: D[K];
|
|
113
|
-
}> : P[K];
|
|
114
|
-
};
|
|
115
|
-
type __VLS_Prettify<T> = {
|
|
116
|
-
[K in keyof T]: T[K];
|
|
117
|
-
} & {};
|
|
118
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
119
|
-
new (): {
|
|
120
|
-
$slots: S;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
1
|
+
import type { BaseCardCssValue, BaseCardProps } from './BaseCard.types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseCardProps>, {
|
|
3
|
+
title: string;
|
|
4
|
+
metaText: string;
|
|
5
|
+
showHeader: boolean;
|
|
6
|
+
showRight: boolean;
|
|
7
|
+
showTitleMarker: boolean;
|
|
8
|
+
showExport: boolean;
|
|
9
|
+
exportText: string;
|
|
10
|
+
exportDisabled: boolean;
|
|
11
|
+
padding: number;
|
|
12
|
+
radius: number;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
shadowColor: string;
|
|
16
|
+
headerGap: number;
|
|
17
|
+
headerMarginBottom: number;
|
|
18
|
+
leftGap: number;
|
|
19
|
+
rightGap: number;
|
|
20
|
+
titleColor: string;
|
|
21
|
+
titleSize: number;
|
|
22
|
+
titleWeight: number;
|
|
23
|
+
markerColor: string;
|
|
24
|
+
markerWidth: number;
|
|
25
|
+
markerHeight: number;
|
|
26
|
+
markerRadius: string;
|
|
27
|
+
markerGap: number;
|
|
28
|
+
metaColor: string;
|
|
29
|
+
metaSize: number;
|
|
30
|
+
exportColor: string;
|
|
31
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
export: (payload?: unknown) => void;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseCardProps>, {
|
|
34
|
+
title: string;
|
|
35
|
+
metaText: string;
|
|
36
|
+
showHeader: boolean;
|
|
37
|
+
showRight: boolean;
|
|
38
|
+
showTitleMarker: boolean;
|
|
39
|
+
showExport: boolean;
|
|
40
|
+
exportText: string;
|
|
41
|
+
exportDisabled: boolean;
|
|
42
|
+
padding: number;
|
|
43
|
+
radius: number;
|
|
44
|
+
borderColor: string;
|
|
45
|
+
backgroundColor: string;
|
|
46
|
+
shadowColor: string;
|
|
47
|
+
headerGap: number;
|
|
48
|
+
headerMarginBottom: number;
|
|
49
|
+
leftGap: number;
|
|
50
|
+
rightGap: number;
|
|
51
|
+
titleColor: string;
|
|
52
|
+
titleSize: number;
|
|
53
|
+
titleWeight: number;
|
|
54
|
+
markerColor: string;
|
|
55
|
+
markerWidth: number;
|
|
56
|
+
markerHeight: number;
|
|
57
|
+
markerRadius: string;
|
|
58
|
+
markerGap: number;
|
|
59
|
+
metaColor: string;
|
|
60
|
+
metaSize: number;
|
|
61
|
+
exportColor: string;
|
|
62
|
+
}>>> & Readonly<{
|
|
63
|
+
onExport?: ((payload?: unknown) => any) | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
title: string;
|
|
66
|
+
metaText: string;
|
|
67
|
+
showHeader: boolean;
|
|
68
|
+
showRight: boolean;
|
|
69
|
+
showTitleMarker: boolean;
|
|
70
|
+
showExport: boolean;
|
|
71
|
+
exportText: string;
|
|
72
|
+
exportDisabled: boolean;
|
|
73
|
+
padding: BaseCardCssValue;
|
|
74
|
+
radius: BaseCardCssValue;
|
|
75
|
+
borderColor: string;
|
|
76
|
+
backgroundColor: string;
|
|
77
|
+
shadowColor: string;
|
|
78
|
+
headerGap: BaseCardCssValue;
|
|
79
|
+
headerMarginBottom: BaseCardCssValue;
|
|
80
|
+
leftGap: BaseCardCssValue;
|
|
81
|
+
rightGap: BaseCardCssValue;
|
|
82
|
+
titleColor: string;
|
|
83
|
+
titleSize: BaseCardCssValue;
|
|
84
|
+
titleWeight: string | number;
|
|
85
|
+
markerColor: string;
|
|
86
|
+
markerWidth: BaseCardCssValue;
|
|
87
|
+
markerHeight: BaseCardCssValue;
|
|
88
|
+
markerRadius: BaseCardCssValue;
|
|
89
|
+
markerGap: BaseCardCssValue;
|
|
90
|
+
metaColor: string;
|
|
91
|
+
metaSize: BaseCardCssValue;
|
|
92
|
+
exportColor: string;
|
|
93
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
94
|
+
"title-label"?(_: {}): any;
|
|
95
|
+
title?(_: {}): any;
|
|
96
|
+
"header-right"?(_: {}): any;
|
|
97
|
+
tip?(_: {}): any;
|
|
98
|
+
default?(_: {}): any;
|
|
99
|
+
}>;
|
|
100
|
+
export default _default;
|
|
101
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
102
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
103
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
104
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
105
|
+
} : {
|
|
106
|
+
type: import('vue').PropType<T[K]>;
|
|
107
|
+
required: true;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
type __VLS_WithDefaults<P, D> = {
|
|
111
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
112
|
+
default: D[K];
|
|
113
|
+
}> : P[K];
|
|
114
|
+
};
|
|
115
|
+
type __VLS_Prettify<T> = {
|
|
116
|
+
[K in keyof T]: T[K];
|
|
117
|
+
} & {};
|
|
118
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
119
|
+
new (): {
|
|
120
|
+
$slots: S;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import BaseCard from './BaseCard.vue';
|
|
2
|
-
export default BaseCard;
|
|
3
|
-
export type { BaseCardCssValue, BaseCardDefaultExportPayload, BaseCardProps } from './BaseCard.types';
|
|
1
|
+
import BaseCard from './BaseCard.vue';
|
|
2
|
+
export default BaseCard;
|
|
3
|
+
export type { BaseCardCssValue, BaseCardDefaultExportPayload, BaseCardProps } from './BaseCard.types';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type { EChartInitOptions, EChartInstance, EChartLoadingOptions, EChartOption, EChartResizeOptions, EChartSetOptionOptions } from '../../echarts';
|
|
2
|
-
export interface BaseEChartProps {
|
|
3
|
-
option?: EChartOption;
|
|
4
|
-
theme?: string | Record<string, unknown>;
|
|
5
|
-
initOptions?: EChartInitOptions;
|
|
6
|
-
setOptionOptions?: boolean | EChartSetOptionOptions;
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
loadingOptions?: EChartLoadingOptions;
|
|
9
|
-
autoResize?: boolean;
|
|
10
|
-
useDefaultColors?: boolean;
|
|
11
|
-
colorStorageKey?: string;
|
|
12
|
-
defaultColors?: string[];
|
|
13
|
-
group?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface BaseEChartExpose {
|
|
16
|
-
getInstance: () => EChartInstance | null;
|
|
17
|
-
setOption: (option: EChartOption, setOptionOptions?: boolean | EChartSetOptionOptions) => EChartInstance | null;
|
|
18
|
-
resize: (resizeOptions?: EChartResizeOptions) => void;
|
|
19
|
-
dispatchAction: (payload: Record<string, unknown>) => void;
|
|
20
|
-
showLoading: (type?: string, loadingOptions?: EChartLoadingOptions) => void;
|
|
21
|
-
hideLoading: () => void;
|
|
22
|
-
clear: () => void;
|
|
23
|
-
dispose: () => void;
|
|
24
|
-
on: (eventName: string, handler: (...args: any[]) => void, context?: unknown) => void;
|
|
25
|
-
off: (eventName?: string, handler?: (...args: any[]) => void) => void;
|
|
26
|
-
}
|
|
1
|
+
import type { EChartInitOptions, EChartInstance, EChartLoadingOptions, EChartOption, EChartResizeOptions, EChartSetOptionOptions } from '../../echarts';
|
|
2
|
+
export interface BaseEChartProps {
|
|
3
|
+
option?: EChartOption;
|
|
4
|
+
theme?: string | Record<string, unknown>;
|
|
5
|
+
initOptions?: EChartInitOptions;
|
|
6
|
+
setOptionOptions?: boolean | EChartSetOptionOptions;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
loadingOptions?: EChartLoadingOptions;
|
|
9
|
+
autoResize?: boolean;
|
|
10
|
+
useDefaultColors?: boolean;
|
|
11
|
+
colorStorageKey?: string;
|
|
12
|
+
defaultColors?: string[];
|
|
13
|
+
group?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface BaseEChartExpose {
|
|
16
|
+
getInstance: () => EChartInstance | null;
|
|
17
|
+
setOption: (option: EChartOption, setOptionOptions?: boolean | EChartSetOptionOptions) => EChartInstance | null;
|
|
18
|
+
resize: (resizeOptions?: EChartResizeOptions) => void;
|
|
19
|
+
dispatchAction: (payload: Record<string, unknown>) => void;
|
|
20
|
+
showLoading: (type?: string, loadingOptions?: EChartLoadingOptions) => void;
|
|
21
|
+
hideLoading: () => void;
|
|
22
|
+
clear: () => void;
|
|
23
|
+
dispose: () => void;
|
|
24
|
+
on: (eventName: string, handler: (...args: any[]) => void, context?: unknown) => void;
|
|
25
|
+
off: (eventName?: string, handler?: (...args: any[]) => void) => void;
|
|
26
|
+
}
|
|
@@ -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
|
+
}
|