bkui-vue 2.0.1-beta.12 → 2.0.1-beta.13
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/dist/index.cjs.js +165 -165
- package/dist/index.esm.js +31258 -31263
- package/dist/index.umd.js +165 -165
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/index.js +1 -1
- package/lib/button/button.d.ts +7 -7
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.js +31 -32
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/index.js +3 -3
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/index.js +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/color-picker/index.js +44 -44
- package/lib/components.d.ts +32 -32
- package/lib/components.js +31 -31
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/index.js +189 -188
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +18 -18
- package/lib/dialog/index.d.ts +40 -40
- package/lib/dialog/index.js +22 -22
- package/lib/dialog/props.d.ts +7 -7
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -166
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +3 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/index.js +14 -14
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/index.js +20 -20
- package/lib/index.d.ts +4 -3
- package/lib/index.js +4 -4
- package/lib/info-box/index.js +13 -13
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +16 -16
- package/lib/input/input.d.ts +15 -15
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +0 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/index.d.ts +3 -3
- package/lib/modal/index.js +7 -7
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/notify/index.js +4 -4
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +61 -11
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -16
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +18 -19
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +9 -9
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.d.ts +4 -4
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +18 -19
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.js +3 -3
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.js +10 -10
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +7 -8
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/scrollbar/index.js +0 -1
- package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
- package/lib/search-select/index.js +66 -66
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/selected.d.ts +1 -1
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/index.d.ts +61 -61
- package/lib/select/index.js +69 -73
- package/lib/select/option.d.ts +1 -1
- package/lib/select/select.d.ts +24 -24
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +2 -2
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +38 -46
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +46 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +3 -3
- package/lib/sideslider/index.js +11 -11
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.js +21 -23
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/swiper/index.js +5 -5
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/table/components/table-column.d.ts +27 -87
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +194 -244
- package/lib/table/index.js +124 -127
- package/lib/table/props.d.ts +33 -33
- package/lib/table/table.d.ts +47 -47
- package/lib/table/use-attributes.d.ts +3 -3
- package/lib/table/use-column.d.ts +9 -129
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +42 -172
- package/lib/table-column/index.js +18 -18
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/timeline/index.js +2 -2
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +3 -5
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +36 -36
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +6 -6
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/upload/index.js +25 -26
- package/lib/upload/props.d.ts +1 -1
- package/lib/upload/upload.type.d.ts +6 -6
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/package.json +17 -55
package/lib/table/props.d.ts
CHANGED
@@ -1,48 +1,48 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
import { IHeadColor, ROW_HOVER, SORT_OPTION } from './const';
|
3
3
|
export declare enum SortScope {
|
4
|
-
|
5
|
-
|
4
|
+
ALL = "all",
|
5
|
+
CURRENT = "current"
|
6
6
|
}
|
7
7
|
export type ColumnFilterListItem = {
|
8
8
|
text?: string;
|
9
9
|
value?: string;
|
10
10
|
};
|
11
11
|
export declare enum OverflowModeEnum {
|
12
|
-
|
13
|
-
|
12
|
+
AUTO = "auto",
|
13
|
+
STATIC = "static"
|
14
14
|
}
|
15
15
|
export declare const EnumOverflowModeType: import("vue-types").VueTypeDef<"auto" | "static">;
|
16
16
|
export declare enum ColumnTypeEnum {
|
17
|
-
SELECTION = "selection",
|
18
|
-
INDEX = "index",
|
19
17
|
EXPAND = "expand",
|
20
|
-
|
18
|
+
INDEX = "index",
|
19
|
+
NONE = "__COL_TYPE_NONE",
|
20
|
+
SELECTION = "selection"
|
21
21
|
}
|
22
22
|
export declare enum TableAlignEnum {
|
23
|
-
LEFT = "left",
|
24
|
-
RIGHT = "right",
|
25
23
|
CENTER = "center",
|
26
|
-
|
24
|
+
LEFT = "left",
|
25
|
+
NONE = "",
|
26
|
+
RIGHT = "right"
|
27
27
|
}
|
28
|
-
export declare const columnType: import("vue-types").VueTypeDef<"index" | "
|
29
|
-
export declare const TableAlign: import("vue-types").VueTypeDef<"" | "
|
28
|
+
export declare const columnType: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
|
29
|
+
export declare const TableAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
30
30
|
export declare enum FullEnum {
|
31
31
|
FULL = "full",
|
32
32
|
FUZZY = "fuzzy"
|
33
33
|
}
|
34
34
|
export declare const fullType: import("vue-types").VueTypeDef<"full" | "fuzzy">;
|
35
35
|
export declare enum SettingSizeEnum {
|
36
|
-
|
36
|
+
LARGE = "large",
|
37
37
|
MEDIUM = "medium",
|
38
|
-
|
38
|
+
SMALL = "small"
|
39
39
|
}
|
40
40
|
export declare const settingSizeType: import("vue-types").VueTypeDef<"small" | "medium" | "large">;
|
41
41
|
export declare enum FixedEnum {
|
42
42
|
LEFT = "left",
|
43
43
|
RIGHT = "right"
|
44
44
|
}
|
45
|
-
export declare const fixedType: import("vue-types").VueTypeValidableDef<"
|
45
|
+
export declare const fixedType: import("vue-types").VueTypeValidableDef<"left" | "right">;
|
46
46
|
export type IOverflowTooltipOption = {
|
47
47
|
content: ((col: Column, row: any) => string) | string;
|
48
48
|
disabled?: ((col: Column, row: any) => boolean) | boolean;
|
@@ -79,9 +79,9 @@ export type IFilterShape = {
|
|
79
79
|
export type IFilterPropShape = IFilterShape | boolean | string;
|
80
80
|
export declare const IFilterType: import("vue-types").VueTypeDef<IFilterPropShape>;
|
81
81
|
export declare enum ColumnPickEnum {
|
82
|
+
DISABLED = "disabled",
|
82
83
|
MULTI = "multi",
|
83
|
-
SINGLE = "single"
|
84
|
-
DISABLED = "disabled"
|
84
|
+
SINGLE = "single"
|
85
85
|
}
|
86
86
|
export declare enum ResizerWay {
|
87
87
|
DEBOUNCE = "debounce",
|
@@ -115,7 +115,7 @@ export type Field = {
|
|
115
115
|
id?: string;
|
116
116
|
name?: string;
|
117
117
|
};
|
118
|
-
export type LabelFunctionString = ((_column: any, _index: any) =>
|
118
|
+
export type LabelFunctionString = ((_column: any, _index: any) => JSX.Element | boolean | number | string) | boolean | number | string;
|
119
119
|
export declare const LabelFunctionStringType: import("vue-types").VueTypeDef<LabelFunctionString>;
|
120
120
|
export type RenderFunctionString = ({ cell, data, row, column, index, rows, }: {
|
121
121
|
cell: any;
|
@@ -124,14 +124,14 @@ export type RenderFunctionString = ({ cell, data, row, column, index, rows, }: {
|
|
124
124
|
column: any;
|
125
125
|
index: any;
|
126
126
|
rows: any;
|
127
|
-
}) =>
|
127
|
+
}) => JSX.Element | boolean | number | string;
|
128
128
|
export declare const RenderFunctionStringType: import("vue-types").VueTypeDef<RenderFunctionString>;
|
129
129
|
export type SpanFunctionString = (({ column, colIndex, row, rowIndex }: {
|
130
130
|
column: any;
|
131
131
|
colIndex: any;
|
132
132
|
row: any;
|
133
133
|
rowIndex: any;
|
134
|
-
}) => number) |
|
134
|
+
}) => number) | number;
|
135
135
|
export declare const SpanFunctionStringType: import("vue-types").VueTypeDef<SpanFunctionString>;
|
136
136
|
export type RowClassFunctionString = ((row: any) => string) | string;
|
137
137
|
export declare const RowClassFunctionStringType: import("vue-types").VueTypeDef<RowClassFunctionString>;
|
@@ -139,7 +139,7 @@ export type RowHeightFunctionNumber = ((_type: string, _row: any, _rowIndex: num
|
|
139
139
|
export declare const RowHeightFunctionNumberType: import("vue-types").VueTypeDef<RowHeightFunctionNumber>;
|
140
140
|
type FunctionNumber = Function | number;
|
141
141
|
export declare const FunctionNumberType: import("vue-types").VueTypeDef<FunctionNumber>;
|
142
|
-
type StringNumber =
|
142
|
+
type StringNumber = number | string;
|
143
143
|
export declare const StringNumberType: (val: number | string) => import("vue-types").VueTypeDef<StringNumber> & {
|
144
144
|
default: StringNumber;
|
145
145
|
};
|
@@ -167,7 +167,7 @@ export type Column = {
|
|
167
167
|
columnKey?: string;
|
168
168
|
showOverflowTooltip?: IOverflowTooltip;
|
169
169
|
type?: string;
|
170
|
-
fixed?:
|
170
|
+
fixed?: boolean | string;
|
171
171
|
resizable?: boolean;
|
172
172
|
sort?: ISortShape | boolean | string;
|
173
173
|
filter?: IFilterShape | boolean | string;
|
@@ -177,12 +177,12 @@ export type Column = {
|
|
177
177
|
className?: RowClassFunctionString;
|
178
178
|
align?: string;
|
179
179
|
prop?: LabelFunctionString;
|
180
|
-
index?:
|
180
|
+
index?: number;
|
181
181
|
explain?: IColumnExplain;
|
182
182
|
};
|
183
183
|
export declare const IColumnProp: import("vue-types").VueTypeDef<Column>;
|
184
184
|
export type Thead = {
|
185
|
-
height?:
|
185
|
+
height?: number;
|
186
186
|
isShow?: boolean;
|
187
187
|
cellFn?: Function;
|
188
188
|
color?: IHeadColor | string;
|
@@ -202,13 +202,13 @@ export type IColumnActive = {
|
|
202
202
|
export type IReactiveProp = {
|
203
203
|
activeColumns: IColumnActive[];
|
204
204
|
rowActions: Record<string, any>;
|
205
|
-
scrollTranslateY:
|
206
|
-
scrollTranslateX:
|
205
|
+
scrollTranslateY: number;
|
206
|
+
scrollTranslateX: number;
|
207
207
|
pos: Record<string, any>;
|
208
208
|
settings: Settings | boolean;
|
209
209
|
setting: {
|
210
210
|
size: string;
|
211
|
-
height:
|
211
|
+
height: number;
|
212
212
|
};
|
213
213
|
defaultSort: Record<string, any>;
|
214
214
|
};
|
@@ -219,13 +219,13 @@ export type Colgroups = Column & {
|
|
219
219
|
};
|
220
220
|
export declare enum IColSortBehavior {
|
221
221
|
/**
|
222
|
-
*
|
222
|
+
* 列与列之间的排序是独立的,互斥的
|
223
223
|
*/
|
224
|
-
|
224
|
+
independent = "independent",
|
225
225
|
/**
|
226
|
-
*
|
226
|
+
* 列排序是相互依赖的
|
227
227
|
*/
|
228
|
-
|
228
|
+
interdependent = "interdependent"
|
229
229
|
}
|
230
230
|
export declare const tableProps: {
|
231
231
|
/**
|
@@ -529,8 +529,8 @@ export declare const tableProps: {
|
|
529
529
|
} & {
|
530
530
|
default: boolean;
|
531
531
|
};
|
532
|
-
align: import("vue-types").VueTypeDef<"" | "
|
533
|
-
headerAlign: import("vue-types").VueTypeDef<"" | "
|
532
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
533
|
+
headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
534
534
|
/**
|
535
535
|
* 插入至表格第一行之前的内容容器样式
|
536
536
|
* 默认样式为固定在第一行
|
package/lib/table/table.d.ts
CHANGED
@@ -143,8 +143,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
143
143
|
} & {
|
144
144
|
default: boolean;
|
145
145
|
};
|
146
|
-
align: import("vue-types").VueTypeDef<"" | "
|
147
|
-
headerAlign: import("vue-types").VueTypeDef<"" | "
|
146
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
147
|
+
headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
148
148
|
prependStyle: import("vue-types").VueTypeDef<import("vue").CSSProperties> & {
|
149
149
|
default: () => import("vue").CSSProperties;
|
150
150
|
};
|
@@ -183,13 +183,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
183
183
|
rowExpand: (_args: {
|
184
184
|
row: any;
|
185
185
|
column: Column;
|
186
|
-
index:
|
186
|
+
index: number;
|
187
187
|
rows: any[];
|
188
188
|
e: MouseEvent;
|
189
189
|
}) => boolean;
|
190
190
|
select: (_args: {
|
191
191
|
row: any;
|
192
|
-
index:
|
192
|
+
index: number;
|
193
193
|
checked: string;
|
194
194
|
data: any[];
|
195
195
|
}) => boolean;
|
@@ -199,7 +199,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
199
199
|
}) => boolean;
|
200
200
|
selectionChange: (_args: {
|
201
201
|
row: any;
|
202
|
-
index:
|
202
|
+
index: number;
|
203
203
|
checked: string;
|
204
204
|
data: any[];
|
205
205
|
isAll: boolean;
|
@@ -389,8 +389,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
389
389
|
} & {
|
390
390
|
default: boolean;
|
391
391
|
};
|
392
|
-
align: import("vue-types").VueTypeDef<"" | "
|
393
|
-
headerAlign: import("vue-types").VueTypeDef<"" | "
|
392
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
393
|
+
headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
394
394
|
prependStyle: import("vue-types").VueTypeDef<import("vue").CSSProperties> & {
|
395
395
|
default: () => import("vue").CSSProperties;
|
396
396
|
};
|
@@ -415,15 +415,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
415
415
|
}) => any;
|
416
416
|
onSelect?: (_args: {
|
417
417
|
row: any;
|
418
|
-
index:
|
418
|
+
index: number;
|
419
419
|
checked: string;
|
420
420
|
data: any[];
|
421
421
|
}) => any;
|
422
|
-
|
423
|
-
|
422
|
+
onCellClick?: (_args: {
|
423
|
+
event: MouseEvent;
|
424
|
+
row: any;
|
424
425
|
column: Column;
|
425
|
-
|
426
|
-
|
426
|
+
cell: {
|
427
|
+
getValue: () => string;
|
428
|
+
};
|
429
|
+
rowIndex: number;
|
430
|
+
columnIndex: number;
|
431
|
+
}) => any;
|
432
|
+
onCellDblclick?: (_args: {
|
433
|
+
event: MouseEvent;
|
434
|
+
row: any;
|
435
|
+
column: Column;
|
436
|
+
cell: {
|
437
|
+
getValue: () => string;
|
438
|
+
};
|
439
|
+
rowIndex: number;
|
440
|
+
columnIndex: number;
|
427
441
|
}) => any;
|
428
442
|
onColumnFilter?: (_args: {
|
429
443
|
checked: string[];
|
@@ -434,62 +448,48 @@ declare const _default: import("vue").DefineComponent<{
|
|
434
448
|
column: Column;
|
435
449
|
values: any[];
|
436
450
|
}) => any;
|
451
|
+
onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
|
452
|
+
onColumnSort?: (_args: {
|
453
|
+
column: Column;
|
454
|
+
index: number;
|
455
|
+
type: import("./const").SORT_OPTION;
|
456
|
+
}) => any;
|
457
|
+
onPageLimitChange?: (_arg: number) => any;
|
458
|
+
onPageValueChange?: (_arg: number) => any;
|
437
459
|
onRowClick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
438
460
|
onRowDblclick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
439
461
|
onRowExpand?: (_args: {
|
440
462
|
row: any;
|
441
463
|
column: Column;
|
442
|
-
index:
|
464
|
+
index: number;
|
443
465
|
rows: any[];
|
444
466
|
e: MouseEvent;
|
445
467
|
}) => any;
|
446
468
|
onRowMouseEnter?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
447
469
|
onRowMouseLeave?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
448
|
-
onPageLimitChange?: (_arg: number) => any;
|
449
|
-
onPageValueChange?: (_arg: number) => any;
|
450
|
-
onSettingChange?: (_args: {
|
451
|
-
checked: string[];
|
452
|
-
size: string;
|
453
|
-
height: number;
|
454
|
-
fields: Record<string, any>[];
|
455
|
-
}) => any;
|
456
|
-
onScrollBottom?: (_args: {
|
457
|
-
translateX: number;
|
458
|
-
translateY: number;
|
459
|
-
scrollTop: number;
|
460
|
-
scrollLeft: number;
|
461
|
-
bottom: number;
|
462
|
-
}) => any;
|
463
470
|
onSelectAll?: (_args: {
|
464
471
|
checked: string;
|
465
472
|
data: any[];
|
466
473
|
}) => any;
|
467
474
|
onSelectionChange?: (_args: {
|
468
475
|
row: any;
|
469
|
-
index:
|
476
|
+
index: number;
|
470
477
|
checked: string;
|
471
478
|
data: any[];
|
472
479
|
isAll: boolean;
|
473
480
|
}) => any;
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
};
|
481
|
-
rowIndex: number;
|
482
|
-
columnIndex: number;
|
481
|
+
onScrollBottom?: (_args: {
|
482
|
+
translateX: number;
|
483
|
+
translateY: number;
|
484
|
+
scrollTop: number;
|
485
|
+
scrollLeft: number;
|
486
|
+
bottom: number;
|
483
487
|
}) => any;
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
getValue: () => string;
|
490
|
-
};
|
491
|
-
rowIndex: number;
|
492
|
-
columnIndex: number;
|
488
|
+
onSettingChange?: (_args: {
|
489
|
+
checked: string[];
|
490
|
+
size: string;
|
491
|
+
height: number;
|
492
|
+
fields: Record<string, any>[];
|
493
493
|
}) => any;
|
494
494
|
}, {
|
495
495
|
data: any[];
|
@@ -24,12 +24,12 @@ declare const tableSchemaResponse: (props: TablePropTypes) => {
|
|
24
24
|
setRowSelection: (row: any, isSelected: boolean, index?: number) => void;
|
25
25
|
setRowExpand: (row: any, isExpand: boolean) => void;
|
26
26
|
setRowIndex: (row: any, index: number) => void;
|
27
|
-
setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number |
|
27
|
+
setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
|
28
28
|
setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
|
29
29
|
setColumnSortActive: (column: Column, active: boolean) => void;
|
30
30
|
setRowSelectionAll: (val: boolean) => void;
|
31
31
|
setRowIndeterminate: () => void;
|
32
|
-
setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number |
|
32
|
+
setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
|
33
33
|
getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
|
34
34
|
getColumnId: (col: Column) => any;
|
35
35
|
getColumnOrderWidth: (col: Column, orders?: string[]) => number;
|
@@ -45,7 +45,7 @@ declare const tableSchemaResponse: (props: TablePropTypes) => {
|
|
45
45
|
clearSelection: () => void;
|
46
46
|
clearColumnSort: (reset?: boolean) => void;
|
47
47
|
toggleRowSelection: (row: any) => void;
|
48
|
-
getRowAttribute: (item:
|
48
|
+
getRowAttribute: (item: IEmptyObject | any, attrName: string) => any;
|
49
49
|
filter: () => void;
|
50
50
|
sortData: (column: Column) => void;
|
51
51
|
isCheckedAll: () => boolean;
|
@@ -43,53 +43,13 @@ declare const _default: (props: TablePropTypes) => {
|
|
43
43
|
height?: number;
|
44
44
|
maxHeight?: number;
|
45
45
|
};
|
46
|
-
colspan?: (
|
47
|
-
|
48
|
-
colIndex: any;
|
49
|
-
row: any;
|
50
|
-
rowIndex: any;
|
51
|
-
}) => number) | {
|
52
|
-
toString: (radix?: number) => string;
|
53
|
-
toFixed: (fractionDigits?: number) => string;
|
54
|
-
toExponential: (fractionDigits?: number) => string;
|
55
|
-
toPrecision: (precision?: number) => string;
|
56
|
-
valueOf: () => number;
|
57
|
-
toLocaleString: {
|
58
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
59
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
60
|
-
};
|
61
|
-
};
|
62
|
-
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
63
|
-
column: any;
|
64
|
-
colIndex: any;
|
65
|
-
row: any;
|
66
|
-
rowIndex: any;
|
67
|
-
}) => number) | {
|
68
|
-
toString: (radix?: number) => string;
|
69
|
-
toFixed: (fractionDigits?: number) => string;
|
70
|
-
toExponential: (fractionDigits?: number) => string;
|
71
|
-
toPrecision: (precision?: number) => string;
|
72
|
-
valueOf: () => number;
|
73
|
-
toLocaleString: {
|
74
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
75
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
76
|
-
};
|
77
|
-
};
|
46
|
+
colspan?: import("./props").SpanFunctionString;
|
47
|
+
rowspan?: import("./props").SpanFunctionString;
|
78
48
|
textAlign?: string;
|
79
49
|
className?: import("./props").RowClassFunctionString;
|
80
50
|
align?: string;
|
81
51
|
prop?: import("./props").LabelFunctionString;
|
82
|
-
index?:
|
83
|
-
toString: (radix?: number) => string;
|
84
|
-
toFixed: (fractionDigits?: number) => string;
|
85
|
-
toExponential: (fractionDigits?: number) => string;
|
86
|
-
toPrecision: (precision?: number) => string;
|
87
|
-
valueOf: () => number;
|
88
|
-
toLocaleString: {
|
89
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
90
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
91
|
-
};
|
92
|
-
};
|
52
|
+
index?: number;
|
93
53
|
explain?: boolean | {
|
94
54
|
content: import("./props").LabelFunctionString;
|
95
55
|
head: import("./props").LabelFunctionString;
|
@@ -131,53 +91,13 @@ declare const _default: (props: TablePropTypes) => {
|
|
131
91
|
height?: number;
|
132
92
|
maxHeight?: number;
|
133
93
|
};
|
134
|
-
colspan?: (
|
135
|
-
|
136
|
-
colIndex: any;
|
137
|
-
row: any;
|
138
|
-
rowIndex: any;
|
139
|
-
}) => number) | {
|
140
|
-
toString: (radix?: number) => string;
|
141
|
-
toFixed: (fractionDigits?: number) => string;
|
142
|
-
toExponential: (fractionDigits?: number) => string;
|
143
|
-
toPrecision: (precision?: number) => string;
|
144
|
-
valueOf: () => number;
|
145
|
-
toLocaleString: {
|
146
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
147
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
148
|
-
};
|
149
|
-
};
|
150
|
-
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
151
|
-
column: any;
|
152
|
-
colIndex: any;
|
153
|
-
row: any;
|
154
|
-
rowIndex: any;
|
155
|
-
}) => number) | {
|
156
|
-
toString: (radix?: number) => string;
|
157
|
-
toFixed: (fractionDigits?: number) => string;
|
158
|
-
toExponential: (fractionDigits?: number) => string;
|
159
|
-
toPrecision: (precision?: number) => string;
|
160
|
-
valueOf: () => number;
|
161
|
-
toLocaleString: {
|
162
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
163
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
164
|
-
};
|
165
|
-
};
|
94
|
+
colspan?: import("./props").SpanFunctionString;
|
95
|
+
rowspan?: import("./props").SpanFunctionString;
|
166
96
|
textAlign?: string;
|
167
97
|
className?: import("./props").RowClassFunctionString;
|
168
98
|
align?: string;
|
169
99
|
prop?: import("./props").LabelFunctionString;
|
170
|
-
index?:
|
171
|
-
toString: (radix?: number) => string;
|
172
|
-
toFixed: (fractionDigits?: number) => string;
|
173
|
-
toExponential: (fractionDigits?: number) => string;
|
174
|
-
toPrecision: (precision?: number) => string;
|
175
|
-
valueOf: () => number;
|
176
|
-
toLocaleString: {
|
177
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
178
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
179
|
-
};
|
180
|
-
};
|
100
|
+
index?: number;
|
181
101
|
explain?: boolean | {
|
182
102
|
content: import("./props").LabelFunctionString;
|
183
103
|
head: import("./props").LabelFunctionString;
|
@@ -219,53 +139,13 @@ declare const _default: (props: TablePropTypes) => {
|
|
219
139
|
height?: number;
|
220
140
|
maxHeight?: number;
|
221
141
|
};
|
222
|
-
colspan?: (
|
223
|
-
|
224
|
-
colIndex: any;
|
225
|
-
row: any;
|
226
|
-
rowIndex: any;
|
227
|
-
}) => number) | {
|
228
|
-
toString: (radix?: number) => string;
|
229
|
-
toFixed: (fractionDigits?: number) => string;
|
230
|
-
toExponential: (fractionDigits?: number) => string;
|
231
|
-
toPrecision: (precision?: number) => string;
|
232
|
-
valueOf: () => number;
|
233
|
-
toLocaleString: {
|
234
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
235
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
236
|
-
};
|
237
|
-
};
|
238
|
-
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
239
|
-
column: any;
|
240
|
-
colIndex: any;
|
241
|
-
row: any;
|
242
|
-
rowIndex: any;
|
243
|
-
}) => number) | {
|
244
|
-
toString: (radix?: number) => string;
|
245
|
-
toFixed: (fractionDigits?: number) => string;
|
246
|
-
toExponential: (fractionDigits?: number) => string;
|
247
|
-
toPrecision: (precision?: number) => string;
|
248
|
-
valueOf: () => number;
|
249
|
-
toLocaleString: {
|
250
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
251
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
252
|
-
};
|
253
|
-
};
|
142
|
+
colspan?: import("./props").SpanFunctionString;
|
143
|
+
rowspan?: import("./props").SpanFunctionString;
|
254
144
|
textAlign?: string;
|
255
145
|
className?: import("./props").RowClassFunctionString;
|
256
146
|
align?: string;
|
257
147
|
prop?: import("./props").LabelFunctionString;
|
258
|
-
index?:
|
259
|
-
toString: (radix?: number) => string;
|
260
|
-
toFixed: (fractionDigits?: number) => string;
|
261
|
-
toExponential: (fractionDigits?: number) => string;
|
262
|
-
toPrecision: (precision?: number) => string;
|
263
|
-
valueOf: () => number;
|
264
|
-
toLocaleString: {
|
265
|
-
(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
266
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
267
|
-
};
|
268
|
-
};
|
148
|
+
index?: number;
|
269
149
|
explain?: boolean | {
|
270
150
|
content: import("./props").LabelFunctionString;
|
271
151
|
head: import("./props").LabelFunctionString;
|
@@ -23,10 +23,10 @@ export declare const useClass: (props: TablePropTypes, _targetColumns: ITableCol
|
|
23
23
|
height: string;
|
24
24
|
}>;
|
25
25
|
contentStyle: {
|
26
|
-
display:
|
27
|
-
minHeight:
|
28
|
-
height:
|
29
|
-
maxHeight:
|
26
|
+
display: boolean | string;
|
27
|
+
minHeight: number | string;
|
28
|
+
height: number | string;
|
29
|
+
maxHeight: number | string;
|
30
30
|
};
|
31
31
|
headStyle: import("vue").ComputedRef<{
|
32
32
|
'--row-height': string;
|
package/lib/table/utils.d.ts
CHANGED
@@ -19,7 +19,7 @@ export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
|
|
19
19
|
* @returns
|
20
20
|
*/
|
21
21
|
export declare const resolveNumberToNumArray: (prop: number) => number[];
|
22
|
-
export declare const resolveWidth: (propWidth:
|
22
|
+
export declare const resolveWidth: (propWidth: number | string) => string | number;
|
23
23
|
/**
|
24
24
|
* 解析可为数字或者字符串设置的样式配置
|
25
25
|
* @param val 配置值
|
@@ -27,7 +27,7 @@ export declare const resolveWidth: (propWidth: string | number) => string | numb
|
|
27
27
|
* @param offset 偏移量
|
28
28
|
* @returns 标准化px string
|
29
29
|
*/
|
30
|
-
export declare const resolveNumberOrStringToPix: (val:
|
30
|
+
export declare const resolveNumberOrStringToPix: (val: number | string, defaultValue?: number | string, offset?: any) => string | number;
|
31
31
|
/**
|
32
32
|
* 格式化Border配置为标准Class
|
33
33
|
* @param val
|
@@ -62,7 +62,7 @@ export declare const observerResize: (root: HTMLElement, callbackFn: () => void,
|
|
62
62
|
* @param val
|
63
63
|
* @returns
|
64
64
|
*/
|
65
|
-
export declare const isPercentPixOrNumber: (val:
|
65
|
+
export declare const isPercentPixOrNumber: (val: number | string) => boolean;
|
66
66
|
/**
|
67
67
|
* Format Table Head Option
|
68
68
|
* @param props
|
@@ -80,7 +80,7 @@ export declare const resolveHeadConfig: (props: TablePropTypes) => {
|
|
80
80
|
* @param index 当前行Index
|
81
81
|
* @returns
|
82
82
|
*/
|
83
|
-
export declare const getRowText: (row: any, key: string, format?:
|
83
|
+
export declare const getRowText: (row: any, key: string, format?: (() => boolean | number | string)[] | string[]) => any;
|
84
84
|
/**
|
85
85
|
* 获取当前行指定列的值
|
86
86
|
* @param row 当前行
|
@@ -94,7 +94,7 @@ export declare const getRowValue: (row: any, key: string) => any;
|
|
94
94
|
* @param args 如果是function参数
|
95
95
|
* @returns
|
96
96
|
*/
|
97
|
-
export declare const formatPropAsArray: (prop:
|
97
|
+
export declare const formatPropAsArray: (prop: (() => any) | object | string, args: any[]) => any;
|
98
98
|
export declare const isRenderScrollBottomLoading: (props: TablePropTypes) => boolean;
|
99
99
|
export declare const getRowKey: (item: any, props: TablePropTypes, index: number) => any;
|
100
100
|
export declare const getRowKeyNull: (item: any, props: TablePropTypes, index: number) => unknown;
|