@hbdlzy/ui-core 0.1.7 → 0.1.9
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 +30 -2
- package/components.manifest.json +16 -2
- package/dist/components/BaseTable/BaseTable.types.d.ts +6 -1
- package/dist/components/OutlinedCascader/OutlinedCascader.vue.d.ts +1 -1
- package/dist/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +3 -3
- package/dist/components/OutlinedSelect/OutlinedSelect.vue.d.ts +4 -4
- package/dist/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +6 -6
- package/dist/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +50 -13
- package/dist/index.js +531 -147
- package/dist/ripple/index.cjs +42 -0
- package/dist/ripple/index.d.ts +8 -1
- package/dist/ripple/index.js +171 -0
- package/dist/style.css +1 -1
- package/package.json +17 -2
- package/src/components/BaseCard/BaseCard.types.d.ts +36 -0
- package/src/components/BaseCard/BaseCard.vue.d.ts +122 -0
- package/src/components/BaseCard/README.md +33 -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/README.md +33 -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/README.md +34 -0
- package/src/components/BaseExportButton/index.d.ts +5 -0
- package/src/components/BaseTable/BaseTable.types.d.ts +183 -0
- package/src/components/BaseTable/BaseTable.types.ts +15 -1
- package/src/components/BaseTable/BaseTable.vue +340 -111
- package/src/components/BaseTable/BaseTable.vue.d.ts +157 -0
- package/src/components/BaseTable/README.md +121 -2
- package/src/components/BaseTable/index.d.ts +3 -0
- package/src/components/OutlinedCascader/OutlinedCascader.types.d.ts +28 -0
- package/src/components/OutlinedCascader/OutlinedCascader.vue.d.ts +94 -0
- package/src/components/OutlinedCascader/README.md +34 -0
- package/src/components/OutlinedCascader/index.d.ts +3 -0
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.types.d.ts +30 -0
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +97 -0
- package/src/components/OutlinedDatePicker/README.md +34 -0
- package/src/components/OutlinedDatePicker/index.d.ts +3 -0
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.types.d.ts +29 -0
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +106 -0
- package/src/components/OutlinedDateTimePicker/README.md +33 -0
- package/src/components/OutlinedDateTimePicker/index.d.ts +3 -0
- package/src/components/OutlinedInput/OutlinedInput.types.d.ts +32 -0
- package/src/components/OutlinedInput/OutlinedInput.vue.d.ts +106 -0
- package/src/components/OutlinedInput/README.md +34 -0
- package/src/components/OutlinedInput/index.d.ts +3 -0
- package/src/components/OutlinedSelect/OutlinedSelect.types.d.ts +41 -0
- package/src/components/OutlinedSelect/OutlinedSelect.vue.d.ts +125 -0
- package/src/components/OutlinedSelect/README.md +34 -0
- package/src/components/OutlinedSelect/index.d.ts +3 -0
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.types.d.ts +31 -0
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +103 -0
- package/src/components/OutlinedTimePicker/README.md +33 -0
- package/src/components/OutlinedTimePicker/index.d.ts +3 -0
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.types.d.ts +49 -0
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +146 -0
- package/src/components/OutlinedTreeSelect/README.md +34 -0
- package/src/components/OutlinedTreeSelect/index.d.ts +3 -0
- package/src/components/SvgIcon/README.md +33 -0
- package/src/components/SvgIcon/SvgIcon.types.d.ts +6 -0
- package/src/components/SvgIcon/SvgIcon.vue.d.ts +32 -0
- package/src/components/SvgIcon/index.d.ts +3 -0
- package/src/echarts/index.d.ts +9 -0
- package/src/excel/exportExcel.d.ts +18 -0
- package/src/index.d.ts +66 -0
- package/src/index.ts +78 -13
- package/src/ripple/README.md +160 -0
- package/src/ripple/index.d.ts +9 -0
- package/src/ripple/index.ts +15 -1
package/README.md
CHANGED
|
@@ -18,10 +18,25 @@
|
|
|
18
18
|
- `OutlinedTreeSelect`
|
|
19
19
|
- `echarts`
|
|
20
20
|
- `exportExcel`
|
|
21
|
-
-
|
|
21
|
+
- `Ripple`
|
|
22
|
+
- 全局点击涟漪:导入包入口后自动启用,覆盖原生 `button`、Element Plus `el-button` 以及 radio/checkbox button 形态
|
|
22
23
|
|
|
23
24
|
## 使用方式
|
|
24
25
|
|
|
26
|
+
### 全局注册
|
|
27
|
+
|
|
28
|
+
只使用核心包时,可以按 Vue 插件注册所有 `ui-core` 组件:
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
import { createApp } from 'vue'
|
|
32
|
+
import HbdlUICore from '@hbdlzy/ui-core'
|
|
33
|
+
import App from './App.vue'
|
|
34
|
+
|
|
35
|
+
createApp(App).use(HbdlUICore).mount('#app')
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 按需导入
|
|
39
|
+
|
|
25
40
|
```ts
|
|
26
41
|
import {
|
|
27
42
|
BaseTable,
|
|
@@ -36,6 +51,7 @@ import {
|
|
|
36
51
|
OutlinedTimePicker,
|
|
37
52
|
OutlinedCascader,
|
|
38
53
|
OutlinedTreeSelect,
|
|
54
|
+
Ripple,
|
|
39
55
|
installRipple,
|
|
40
56
|
uninstallRipple,
|
|
41
57
|
echarts,
|
|
@@ -43,10 +59,21 @@ import {
|
|
|
43
59
|
} from '@hbdlzy/ui-core'
|
|
44
60
|
```
|
|
45
61
|
|
|
46
|
-
|
|
62
|
+
全局点击涟漪会在导入 `@hbdlzy/ui-core` 时自动安装;如某个按钮不需要水波纹,可在按钮或父级元素上添加 `data-hbdl-ripple="false"`。
|
|
63
|
+
|
|
64
|
+
如果业务项目希望显式控制安装时机,也可以使用插件或细粒度入口:
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
import { createApp } from 'vue'
|
|
68
|
+
import { Ripple } from '@hbdlzy/ui-core/ripple'
|
|
69
|
+
import App from './App.vue'
|
|
70
|
+
|
|
71
|
+
createApp(App).use(Ripple).mount('#app')
|
|
72
|
+
```
|
|
47
73
|
|
|
48
74
|
## 详细文档
|
|
49
75
|
|
|
76
|
+
- `Ripple`: [src/ripple/README.md](./src/ripple/README.md)
|
|
50
77
|
- `BaseTable`: [src/components/BaseTable/README.md](./src/components/BaseTable/README.md)
|
|
51
78
|
- `BaseCard`: [src/components/BaseCard/README.md](./src/components/BaseCard/README.md)
|
|
52
79
|
- `BaseEChart`: [src/components/BaseEChart/README.md](./src/components/BaseEChart/README.md)
|
|
@@ -79,6 +106,7 @@ import {
|
|
|
79
106
|
- 工具
|
|
80
107
|
- `echarts`
|
|
81
108
|
- `exportExcel`
|
|
109
|
+
- `Ripple`
|
|
82
110
|
- `installRipple`
|
|
83
111
|
- `uninstallRipple`
|
|
84
112
|
|
package/components.manifest.json
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
"package": "@hbdlzy/ui-core",
|
|
3
3
|
"version": 1,
|
|
4
4
|
"updatedAt": "2026-04-21",
|
|
5
|
+
"plugin": {
|
|
6
|
+
"name": "HbdlUICore",
|
|
7
|
+
"importName": "default",
|
|
8
|
+
"entry": "@hbdlzy/ui-core",
|
|
9
|
+
"description": "Vue 插件入口,调用 app.use(HbdlUICore) 可全局注册 ui-core 组件并启用全局点击涟漪。"
|
|
10
|
+
},
|
|
5
11
|
"components": [
|
|
6
12
|
{
|
|
7
13
|
"name": "BaseTable",
|
|
@@ -30,7 +36,7 @@
|
|
|
30
36
|
},
|
|
31
37
|
{
|
|
32
38
|
"name": "headerSearch",
|
|
33
|
-
"type": "boolean | { type?: 'input' | 'select' | 'cascader'; paramKey?: string; placeholder?: string; width?: string | number; searchText?: string; resetText?: string; options?: BaseTableOption[]; multiple?: boolean; clearable?: boolean; filterable?: boolean; optionChildrenKey?: string }",
|
|
39
|
+
"type": "boolean | { type?: 'input' | 'select' | 'cascader' | 'date' | 'daterange' | 'datetime' | 'datetimerange' | 'time' | 'timerange'; paramKey?: string; placeholder?: string; startPlaceholder?: string; endPlaceholder?: string; rangeSeparator?: string; format?: string; valueFormat?: string; width?: string | number; searchText?: string; resetText?: string; options?: BaseTableOption[]; multiple?: boolean; clearable?: boolean; filterable?: boolean; optionChildrenKey?: string }",
|
|
34
40
|
"required": false
|
|
35
41
|
},
|
|
36
42
|
{ "name": "hasSelection", "type": "boolean", "default": false },
|
|
@@ -305,11 +311,19 @@
|
|
|
305
311
|
{
|
|
306
312
|
"name": "installRipple",
|
|
307
313
|
"entry": "@hbdlzy/ui-core",
|
|
308
|
-
"
|
|
314
|
+
"docs": "packages/ui-core/src/ripple/README.md",
|
|
315
|
+
"description": "安装全局点击涟漪效果;包入口会自动调用,可用于手动恢复。"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "Ripple",
|
|
319
|
+
"entry": "@hbdlzy/ui-core",
|
|
320
|
+
"docs": "packages/ui-core/src/ripple/README.md",
|
|
321
|
+
"description": "Vue 插件形式的全局点击涟漪能力,可通过 app.use(Ripple) 显式安装。"
|
|
309
322
|
},
|
|
310
323
|
{
|
|
311
324
|
"name": "uninstallRipple",
|
|
312
325
|
"entry": "@hbdlzy/ui-core",
|
|
326
|
+
"docs": "packages/ui-core/src/ripple/README.md",
|
|
313
327
|
"description": "卸载全局按钮 ripple 事件监听。"
|
|
314
328
|
}
|
|
315
329
|
]
|
|
@@ -3,7 +3,7 @@ export type BaseTableAlign = 'left' | 'center' | 'right';
|
|
|
3
3
|
export type BaseTableColumnKind = 'text' | 'link' | 'actions' | 'image' | 'tag' | 'html' | 'input';
|
|
4
4
|
export type BaseTableSortOrder = 'ascending' | 'descending' | null;
|
|
5
5
|
export type BaseTableSortDirection = string | null;
|
|
6
|
-
export type BaseTableHeaderSearchType = 'input' | 'select' | 'cascader';
|
|
6
|
+
export type BaseTableHeaderSearchType = 'input' | 'select' | 'cascader' | 'date' | 'daterange' | 'datetime' | 'datetimerange' | 'time' | 'timerange';
|
|
7
7
|
export type BaseTableHeaderSearchPrimitiveValue = string | number | boolean;
|
|
8
8
|
export type BaseTableHeaderSearchPathValue = BaseTableHeaderSearchPrimitiveValue[];
|
|
9
9
|
export type BaseTableHeaderSearchValue = BaseTableHeaderSearchPrimitiveValue | BaseTableHeaderSearchPrimitiveValue[];
|
|
@@ -11,6 +11,11 @@ export interface BaseTableHeaderSearchConfig {
|
|
|
11
11
|
type?: BaseTableHeaderSearchType;
|
|
12
12
|
paramKey?: string;
|
|
13
13
|
placeholder?: string;
|
|
14
|
+
startPlaceholder?: string;
|
|
15
|
+
endPlaceholder?: string;
|
|
16
|
+
rangeSeparator?: string;
|
|
17
|
+
format?: string;
|
|
18
|
+
valueFormat?: string;
|
|
14
19
|
width?: BaseTableCssValue;
|
|
15
20
|
searchText?: string;
|
|
16
21
|
resetText?: string;
|
|
@@ -65,11 +65,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
65
65
|
required: boolean;
|
|
66
66
|
popperClass: string;
|
|
67
67
|
placeholder: string;
|
|
68
|
+
filterable: boolean;
|
|
68
69
|
clearable: boolean;
|
|
69
70
|
propsValue: Record<string, unknown>;
|
|
70
71
|
inputHeight: number;
|
|
71
72
|
isBorder: boolean;
|
|
72
|
-
filterable: boolean;
|
|
73
73
|
levels: boolean;
|
|
74
74
|
marginBottom: OutlinedCascaderCssValue;
|
|
75
75
|
paddingTop: OutlinedCascaderCssValue;
|
|
@@ -64,16 +64,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
64
64
|
value: OutlinedDatePickerValue;
|
|
65
65
|
errorMessage: string;
|
|
66
66
|
required: boolean;
|
|
67
|
+
format: string;
|
|
67
68
|
placeholder: string;
|
|
69
|
+
multiple: boolean;
|
|
70
|
+
valueFormat: string;
|
|
68
71
|
inputHeight: number;
|
|
69
72
|
isBorder: boolean;
|
|
70
73
|
marginBottom: OutlinedDatePickerCssValue;
|
|
71
74
|
paddingTop: OutlinedDatePickerCssValue;
|
|
72
|
-
multiple: boolean;
|
|
73
75
|
timeValue: boolean;
|
|
74
76
|
typeDate: string;
|
|
75
|
-
format: string;
|
|
76
|
-
valueFormat: string;
|
|
77
77
|
showPassword: boolean;
|
|
78
78
|
disabledDate: OutlinedDatePickerDisabledDate;
|
|
79
79
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -78,17 +78,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
78
78
|
errorMessage: string;
|
|
79
79
|
required: boolean;
|
|
80
80
|
placeholder: string;
|
|
81
|
+
multiple: boolean;
|
|
82
|
+
filterable: boolean;
|
|
81
83
|
clearable: boolean;
|
|
84
|
+
collapseTags: boolean;
|
|
85
|
+
collapseTagsTooltip: boolean;
|
|
82
86
|
inputHeight: number;
|
|
83
87
|
isBorder: boolean;
|
|
84
|
-
filterable: boolean;
|
|
85
88
|
marginBottom: OutlinedSelectCssValue;
|
|
86
89
|
paddingTop: OutlinedSelectCssValue;
|
|
87
|
-
multiple: boolean;
|
|
88
90
|
showPassword: boolean;
|
|
89
91
|
typeInput: string;
|
|
90
|
-
collapseTags: boolean;
|
|
91
|
-
collapseTagsTooltip: boolean;
|
|
92
92
|
keyValue: string;
|
|
93
93
|
labelValue: string;
|
|
94
94
|
noCheck: boolean;
|
|
@@ -69,18 +69,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
69
69
|
value: OutlinedTimePickerValue;
|
|
70
70
|
errorMessage: string;
|
|
71
71
|
required: boolean;
|
|
72
|
+
format: string;
|
|
72
73
|
placeholder: string;
|
|
73
74
|
clearable: boolean;
|
|
75
|
+
startPlaceholder: string;
|
|
76
|
+
endPlaceholder: string;
|
|
77
|
+
rangeSeparator: string;
|
|
78
|
+
valueFormat: string;
|
|
79
|
+
isRange: boolean;
|
|
74
80
|
inputHeight: number;
|
|
75
81
|
isBorder: boolean;
|
|
76
82
|
marginBottom: OutlinedTimePickerCssValue;
|
|
77
83
|
paddingTop: OutlinedTimePickerCssValue;
|
|
78
|
-
format: string;
|
|
79
|
-
valueFormat: string;
|
|
80
|
-
isRange: boolean;
|
|
81
|
-
startPlaceholder: string;
|
|
82
|
-
endPlaceholder: string;
|
|
83
|
-
rangeSeparator: string;
|
|
84
84
|
arrowControl: boolean;
|
|
85
85
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
86
86
|
export default _default;
|
|
@@ -95,16 +95,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
95
95
|
defaultExpandAll: boolean;
|
|
96
96
|
popperClass: string;
|
|
97
97
|
placeholder: string;
|
|
98
|
+
multiple: boolean;
|
|
99
|
+
filterable: boolean;
|
|
98
100
|
clearable: boolean;
|
|
101
|
+
collapseTags: boolean;
|
|
102
|
+
collapseTagsTooltip: boolean;
|
|
99
103
|
propsValue: Record<string, unknown>;
|
|
100
104
|
inputHeight: number;
|
|
101
105
|
isBorder: boolean;
|
|
102
|
-
filterable: boolean;
|
|
103
106
|
marginBottom: OutlinedTreeSelectCssValue;
|
|
104
107
|
paddingTop: OutlinedTreeSelectCssValue;
|
|
105
|
-
multiple: boolean;
|
|
106
|
-
collapseTags: boolean;
|
|
107
|
-
collapseTagsTooltip: boolean;
|
|
108
108
|
keyValue: string;
|
|
109
109
|
labelValue: string;
|
|
110
110
|
maxCollapseTags: number;
|