@hbdlzy/ui-core 0.1.8 → 0.1.10
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 +4 -2
- package/dist/components/BaseCard/BaseCard.types.d.ts +1 -0
- package/dist/components/BaseCard/BaseCard.vue.d.ts +3 -0
- package/dist/components/BaseTable/BaseTable.types.d.ts +8 -1
- package/dist/components/BaseTable/BaseTable.vue.d.ts +4 -1
- package/dist/components/BaseTable/index.d.ts +1 -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.js +337 -136
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/BaseCard/BaseCard.types.ts +1 -0
- package/src/components/BaseCard/BaseCard.vue +3 -1
- package/src/components/BaseCard/README.md +1 -0
- package/src/components/BaseTable/BaseTable.types.d.ts +6 -1
- package/src/components/BaseTable/BaseTable.types.ts +18 -1
- package/src/components/BaseTable/BaseTable.vue +358 -100
- package/src/components/BaseTable/README.md +77 -2
- package/src/components/BaseTable/index.ts +1 -0
- package/src/components/OutlinedCascader/OutlinedCascader.vue.d.ts +2 -2
- package/src/components/OutlinedDatePicker/OutlinedDatePicker.vue.d.ts +3 -3
- package/src/components/OutlinedDateTimePicker/OutlinedDateTimePicker.vue.d.ts +1 -1
- package/src/components/OutlinedInput/OutlinedInput.vue.d.ts +1 -1
- package/src/components/OutlinedSelect/OutlinedSelect.vue.d.ts +5 -5
- package/src/components/OutlinedTimePicker/OutlinedTimePicker.vue.d.ts +7 -7
- package/src/components/OutlinedTreeSelect/OutlinedTreeSelect.vue.d.ts +5 -5
- package/src/index.d.ts +48 -12
package/components.manifest.json
CHANGED
|
@@ -36,12 +36,13 @@
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "headerSearch",
|
|
39
|
-
"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 }",
|
|
40
40
|
"required": false
|
|
41
41
|
},
|
|
42
42
|
{ "name": "hasSelection", "type": "boolean", "default": false },
|
|
43
43
|
{ "name": "hasIndex", "type": "boolean", "default": false },
|
|
44
|
-
{ "name": "showPagination", "type": "boolean", "default": true }
|
|
44
|
+
{ "name": "showPagination", "type": "boolean", "default": true },
|
|
45
|
+
{ "name": "paginationPosition", "type": "'top-right' | 'bottom-right'", "default": "top-right" }
|
|
45
46
|
],
|
|
46
47
|
"emits": ["row-action", "selection-change", "sort-change", "page-change", "size-change", "loaded"]
|
|
47
48
|
},
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
{ "name": "metaText", "type": "string", "default": "" },
|
|
58
59
|
{ "name": "showHeader", "type": "boolean", "default": true },
|
|
59
60
|
{ "name": "showTitleMarker", "type": "boolean", "default": true },
|
|
61
|
+
{ "name": "hideTitleMarker", "type": "boolean", "default": false },
|
|
60
62
|
{ "name": "showExport", "type": "boolean", "default": false },
|
|
61
63
|
{ "name": "exportPayload", "type": "unknown", "required": false },
|
|
62
64
|
{ "name": "padding", "type": "string | number", "default": 20 },
|
|
@@ -5,6 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
5
5
|
showHeader: boolean;
|
|
6
6
|
showRight: boolean;
|
|
7
7
|
showTitleMarker: boolean;
|
|
8
|
+
hideTitleMarker: boolean;
|
|
8
9
|
showExport: boolean;
|
|
9
10
|
exportText: string;
|
|
10
11
|
exportDisabled: boolean;
|
|
@@ -36,6 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
36
37
|
showHeader: boolean;
|
|
37
38
|
showRight: boolean;
|
|
38
39
|
showTitleMarker: boolean;
|
|
40
|
+
hideTitleMarker: boolean;
|
|
39
41
|
showExport: boolean;
|
|
40
42
|
exportText: string;
|
|
41
43
|
exportDisabled: boolean;
|
|
@@ -67,6 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
67
69
|
showHeader: boolean;
|
|
68
70
|
showRight: boolean;
|
|
69
71
|
showTitleMarker: boolean;
|
|
72
|
+
hideTitleMarker: boolean;
|
|
70
73
|
showExport: boolean;
|
|
71
74
|
exportText: string;
|
|
72
75
|
exportDisabled: boolean;
|
|
@@ -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;
|
|
@@ -78,6 +83,7 @@ export interface BaseTablePagination {
|
|
|
78
83
|
total: number;
|
|
79
84
|
pageSizes: number[];
|
|
80
85
|
}
|
|
86
|
+
export type BaseTablePaginationPosition = 'top-right' | 'bottom-right';
|
|
81
87
|
export interface BaseTableRequestParams {
|
|
82
88
|
currentPage: number;
|
|
83
89
|
pageSize: number;
|
|
@@ -131,6 +137,7 @@ export interface BaseTableProps<Row = Record<string, any>> {
|
|
|
131
137
|
selectionWidth?: BaseTableCssValue;
|
|
132
138
|
rowSelectable?: (row: Row, index: number) => boolean;
|
|
133
139
|
pagination?: Partial<BaseTablePagination>;
|
|
140
|
+
paginationPosition?: BaseTablePaginationPosition;
|
|
134
141
|
currentPageKey?: string;
|
|
135
142
|
pageSizeKey?: string;
|
|
136
143
|
defaultSort?: BaseTableSortState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseTableCellPayload, BaseTableColumn, BaseTableCssValue, BaseTableHeaderSearchValue, BaseTableLoadedPayload, BaseTablePagination, BaseTableProps, BaseTableRowActionPayload, BaseTableSortPayload } from './BaseTable.types';
|
|
1
|
+
import type { BaseTableCellPayload, BaseTableColumn, BaseTableCssValue, BaseTableHeaderSearchValue, BaseTableLoadedPayload, BaseTablePagination, BaseTablePaginationPosition, BaseTableProps, BaseTableRowActionPayload, BaseTableSortPayload } from './BaseTable.types';
|
|
2
2
|
type BaseTableRow = Record<string, any>;
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BaseTableProps<Record<string, any>>>, {
|
|
4
4
|
data: () => never[];
|
|
@@ -18,6 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
18
18
|
indexWidth: number;
|
|
19
19
|
selectionWidth: number;
|
|
20
20
|
pagination: () => {};
|
|
21
|
+
paginationPosition: BaseTablePaginationPosition;
|
|
21
22
|
currentPageKey: string;
|
|
22
23
|
pageSizeKey: string;
|
|
23
24
|
defaultSort: () => {
|
|
@@ -73,6 +74,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
73
74
|
indexWidth: number;
|
|
74
75
|
selectionWidth: number;
|
|
75
76
|
pagination: () => {};
|
|
77
|
+
paginationPosition: BaseTablePaginationPosition;
|
|
76
78
|
currentPageKey: string;
|
|
77
79
|
pageSizeKey: string;
|
|
78
80
|
defaultSort: () => {
|
|
@@ -116,6 +118,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
116
118
|
indexWidth: BaseTableCssValue;
|
|
117
119
|
selectionWidth: BaseTableCssValue;
|
|
118
120
|
pagination: Partial<BaseTablePagination>;
|
|
121
|
+
paginationPosition: BaseTablePaginationPosition;
|
|
119
122
|
currentPageKey: string;
|
|
120
123
|
pageSizeKey: string;
|
|
121
124
|
defaultSort: import("./BaseTable.types").BaseTableSortState;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import BaseTable from './BaseTable.vue';
|
|
2
2
|
export default BaseTable;
|
|
3
|
-
export type { BaseTableAction, BaseTableAlign, BaseTableCellPayload, BaseTableColumn, BaseTableColumnKind, BaseTableCssValue, BaseTableExpose, BaseTableHeaderSearchConfig, BaseTableHeaderSearchPathValue, BaseTableHeaderSearchPrimitiveValue, BaseTableHeaderSearchType, BaseTableHeaderSearchValue, BaseTableLoadedPayload, BaseTableNormalizedResult, BaseTableOption, BaseTablePagination, BaseTableProps, BaseTableResultAdapter, BaseTableRequestHandler, BaseTableRequestParams, BaseTableRequestResult, BaseTableRowActionPayload, BaseTableSortOrder, BaseTableSortPayload } from './BaseTable.types';
|
|
3
|
+
export type { BaseTableAction, BaseTableAlign, BaseTableCellPayload, BaseTableColumn, BaseTableColumnKind, BaseTableCssValue, BaseTableExpose, BaseTableHeaderSearchConfig, BaseTableHeaderSearchPathValue, BaseTableHeaderSearchPrimitiveValue, BaseTableHeaderSearchType, BaseTableHeaderSearchValue, BaseTableLoadedPayload, BaseTableNormalizedResult, BaseTableOption, BaseTablePagination, BaseTablePaginationPosition, BaseTableProps, BaseTableResultAdapter, BaseTableRequestHandler, BaseTableRequestParams, BaseTableRequestResult, BaseTableRowActionPayload, BaseTableSortOrder, BaseTableSortPayload } from './BaseTable.types';
|
|
@@ -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;
|