@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
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",
|
|
@@ -139,6 +105,9 @@
|
|
|
139
105
|
{ "name": "value", "type": "string | number", "required": false },
|
|
140
106
|
{ "name": "placeholder", "type": "string", "default": "" },
|
|
141
107
|
{ "name": "label", "type": "string", "default": "" },
|
|
108
|
+
{ "name": "required", "type": "boolean", "default": false },
|
|
109
|
+
{ "name": "error", "type": "boolean", "default": false },
|
|
110
|
+
{ "name": "errorMessage", "type": "string", "default": "" },
|
|
142
111
|
{ "name": "typeInput", "type": "string", "default": "text" },
|
|
143
112
|
{ "name": "isNumber", "type": "boolean", "default": false },
|
|
144
113
|
{ "name": "regex", "type": "RegExp", "required": false },
|
|
@@ -162,6 +131,9 @@
|
|
|
162
131
|
{ "name": "options", "type": "OutlinedSelectOption[]", "required": false },
|
|
163
132
|
{ "name": "placeholder", "type": "string", "default": "" },
|
|
164
133
|
{ "name": "label", "type": "string", "default": "" },
|
|
134
|
+
{ "name": "required", "type": "boolean", "default": false },
|
|
135
|
+
{ "name": "error", "type": "boolean", "default": false },
|
|
136
|
+
{ "name": "errorMessage", "type": "string", "default": "" },
|
|
165
137
|
{ "name": "multiple", "type": "boolean", "default": false },
|
|
166
138
|
{ "name": "filterable", "type": "boolean", "default": true },
|
|
167
139
|
{ "name": "clearable", "type": "boolean", "default": true },
|
|
@@ -184,6 +156,9 @@
|
|
|
184
156
|
{ "name": "value", "type": "string | number | Date | Array<string | number | Date>", "required": false },
|
|
185
157
|
{ "name": "placeholder", "type": "string", "default": "" },
|
|
186
158
|
{ "name": "label", "type": "string", "default": "" },
|
|
159
|
+
{ "name": "required", "type": "boolean", "default": false },
|
|
160
|
+
{ "name": "error", "type": "boolean", "default": false },
|
|
161
|
+
{ "name": "errorMessage", "type": "string", "default": "" },
|
|
187
162
|
{ "name": "typeDate", "type": "string", "default": "date" },
|
|
188
163
|
{ "name": "format", "type": "string", "default": "YYYY-MM-DD" },
|
|
189
164
|
{ "name": "valueFormat", "type": "string", "required": false },
|
|
@@ -205,6 +180,9 @@
|
|
|
205
180
|
{ "name": "value", "type": "string", "required": false },
|
|
206
181
|
{ "name": "placeholder", "type": "string", "default": "" },
|
|
207
182
|
{ "name": "label", "type": "string", "default": "" },
|
|
183
|
+
{ "name": "required", "type": "boolean", "default": false },
|
|
184
|
+
{ "name": "error", "type": "boolean", "default": false },
|
|
185
|
+
{ "name": "errorMessage", "type": "string", "default": "" },
|
|
208
186
|
{ "name": "inputHeight", "type": "number", "default": 40 },
|
|
209
187
|
{ "name": "isBorder", "type": "boolean", "default": false },
|
|
210
188
|
{ "name": "disabledDate", "type": "string | number | Date | ((date: Date) => boolean)", "required": false },
|
|
@@ -225,6 +203,9 @@
|
|
|
225
203
|
{ "name": "value", "type": "string | number | Date | Array<string | number | Date> | null", "required": false },
|
|
226
204
|
{ "name": "placeholder", "type": "string", "default": "" },
|
|
227
205
|
{ "name": "label", "type": "string", "default": "" },
|
|
206
|
+
{ "name": "required", "type": "boolean", "default": false },
|
|
207
|
+
{ "name": "error", "type": "boolean", "default": false },
|
|
208
|
+
{ "name": "errorMessage", "type": "string", "default": "" },
|
|
228
209
|
{ "name": "disabled", "type": "boolean", "default": false },
|
|
229
210
|
{ "name": "clearable", "type": "boolean", "default": true },
|
|
230
211
|
{ "name": "isRange", "type": "boolean", "default": false },
|
|
@@ -253,6 +234,9 @@
|
|
|
253
234
|
{ "name": "propsValue", "type": "Record<string, unknown>", "required": false },
|
|
254
235
|
{ "name": "placeholder", "type": "string", "default": "" },
|
|
255
236
|
{ "name": "label", "type": "string", "default": "" },
|
|
237
|
+
{ "name": "required", "type": "boolean", "default": false },
|
|
238
|
+
{ "name": "error", "type": "boolean", "default": false },
|
|
239
|
+
{ "name": "errorMessage", "type": "string", "default": "" },
|
|
256
240
|
{ "name": "popperClass", "type": "string", "default": "" },
|
|
257
241
|
{ "name": "disabled", "type": "boolean", "default": false },
|
|
258
242
|
{ "name": "inputHeight", "type": "number", "default": 40 },
|
|
@@ -275,6 +259,9 @@
|
|
|
275
259
|
{ "name": "propsValue", "type": "Record<string, unknown>", "required": false },
|
|
276
260
|
{ "name": "placeholder", "type": "string", "default": "" },
|
|
277
261
|
{ "name": "label", "type": "string", "default": "" },
|
|
262
|
+
{ "name": "required", "type": "boolean", "default": false },
|
|
263
|
+
{ "name": "error", "type": "boolean", "default": false },
|
|
264
|
+
{ "name": "errorMessage", "type": "string", "default": "" },
|
|
278
265
|
{ "name": "disabled", "type": "boolean", "default": false },
|
|
279
266
|
{ "name": "clearable", "type": "boolean", "default": true },
|
|
280
267
|
{ "name": "filterable", "type": "boolean", "default": true },
|
|
@@ -299,6 +286,16 @@
|
|
|
299
286
|
"name": "exportExcel",
|
|
300
287
|
"entry": "@hbdlzy/ui-core",
|
|
301
288
|
"description": "支持多级表头和自动列宽的纯前端 Excel 导出工具。"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "installRipple",
|
|
292
|
+
"entry": "@hbdlzy/ui-core",
|
|
293
|
+
"description": "安装全局按钮 ripple 效果;包入口会自动调用,可用于手动恢复。"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "uninstallRipple",
|
|
297
|
+
"entry": "@hbdlzy/ui-core",
|
|
298
|
+
"description": "卸载全局按钮 ripple 事件监听。"
|
|
302
299
|
}
|
|
303
300
|
]
|
|
304
301
|
}
|
|
@@ -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
|
+
}
|