bkui-vue 2.0.1-beta.10 → 2.0.1-beta.11
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 +28601 -28591
- 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 +32 -31
- 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 +188 -189
- 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 +2 -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 +3 -3
- package/lib/index.js +3 -3
- 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 +1 -0
- 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 +11 -61
- 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 +19 -18
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +11 -10
- 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 +19 -18
- 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/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 +8 -7
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/scrollbar/index.js +1 -0
- 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 +73 -69
- 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 +46 -38
- 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 +23 -21
- 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 +87 -27
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +244 -194
- package/lib/table/index.js +127 -124
- 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 +129 -9
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +172 -42
- 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 +5 -3
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +41 -37
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +8 -14
- 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 +26 -25
- 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 +49 -13
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
|
+
CURRENT = "current",
|
5
|
+
ALL = "all"
|
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
|
+
STATIC = "static",
|
13
|
+
AUTO = "auto"
|
14
14
|
}
|
15
15
|
export declare const EnumOverflowModeType: import("vue-types").VueTypeDef<"auto" | "static">;
|
16
16
|
export declare enum ColumnTypeEnum {
|
17
|
-
|
17
|
+
SELECTION = "selection",
|
18
18
|
INDEX = "index",
|
19
|
-
|
20
|
-
|
19
|
+
EXPAND = "expand",
|
20
|
+
NONE = "__COL_TYPE_NONE"
|
21
21
|
}
|
22
22
|
export declare enum TableAlignEnum {
|
23
|
-
CENTER = "center",
|
24
23
|
LEFT = "left",
|
25
|
-
|
26
|
-
|
24
|
+
RIGHT = "right",
|
25
|
+
CENTER = "center",
|
26
|
+
NONE = ""
|
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" | "selection" | "expand" | "__COL_TYPE_NONE">;
|
29
|
+
export declare const TableAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "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
|
+
SMALL = "small",
|
37
37
|
MEDIUM = "medium",
|
38
|
-
|
38
|
+
LARGE = "large"
|
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<"right" | "left">;
|
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",
|
83
82
|
MULTI = "multi",
|
84
|
-
SINGLE = "single"
|
83
|
+
SINGLE = "single",
|
84
|
+
DISABLED = "disabled"
|
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) => string | number | boolean | JSX.Element) | string | number | boolean;
|
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
|
+
}) => string | number | boolean | JSX.Element;
|
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 = string | number;
|
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?: string | boolean;
|
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
|
+
interdependent = "interdependent",
|
225
225
|
/**
|
226
|
-
*
|
226
|
+
* 列与列之间的排序是独立的,互斥的
|
227
227
|
*/
|
228
|
-
|
228
|
+
independent = "independent"
|
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<"" | "right" | "left" | "center">;
|
533
|
+
headerAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "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<"" | "right" | "left" | "center">;
|
147
|
+
headerAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "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<"" | "right" | "left" | "center">;
|
393
|
+
headerAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
|
394
394
|
prependStyle: import("vue-types").VueTypeDef<import("vue").CSSProperties> & {
|
395
395
|
default: () => import("vue").CSSProperties;
|
396
396
|
};
|
@@ -415,29 +415,15 @@ 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
|
-
|
424
|
-
row: any;
|
425
|
-
column: Column;
|
426
|
-
cell: {
|
427
|
-
getValue: () => string;
|
428
|
-
};
|
429
|
-
rowIndex: number;
|
430
|
-
columnIndex: number;
|
431
|
-
}) => any;
|
432
|
-
onCellDblclick?: (_args: {
|
433
|
-
event: MouseEvent;
|
434
|
-
row: any;
|
422
|
+
onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
|
423
|
+
onColumnSort?: (_args: {
|
435
424
|
column: Column;
|
436
|
-
|
437
|
-
|
438
|
-
};
|
439
|
-
rowIndex: number;
|
440
|
-
columnIndex: number;
|
425
|
+
index: number;
|
426
|
+
type: import("./const").SORT_OPTION;
|
441
427
|
}) => any;
|
442
428
|
onColumnFilter?: (_args: {
|
443
429
|
checked: string[];
|
@@ -448,48 +434,62 @@ declare const _default: import("vue").DefineComponent<{
|
|
448
434
|
column: Column;
|
449
435
|
values: any[];
|
450
436
|
}) => 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;
|
459
437
|
onRowClick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
460
438
|
onRowDblclick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
461
439
|
onRowExpand?: (_args: {
|
462
440
|
row: any;
|
463
441
|
column: Column;
|
464
|
-
index:
|
442
|
+
index: Number;
|
465
443
|
rows: any[];
|
466
444
|
e: MouseEvent;
|
467
445
|
}) => any;
|
468
446
|
onRowMouseEnter?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
469
447
|
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;
|
470
463
|
onSelectAll?: (_args: {
|
471
464
|
checked: string;
|
472
465
|
data: any[];
|
473
466
|
}) => any;
|
474
467
|
onSelectionChange?: (_args: {
|
475
468
|
row: any;
|
476
|
-
index:
|
469
|
+
index: Number;
|
477
470
|
checked: string;
|
478
471
|
data: any[];
|
479
472
|
isAll: boolean;
|
480
473
|
}) => any;
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
474
|
+
onCellClick?: (_args: {
|
475
|
+
event: MouseEvent;
|
476
|
+
row: any;
|
477
|
+
column: Column;
|
478
|
+
cell: {
|
479
|
+
getValue: () => string;
|
480
|
+
};
|
481
|
+
rowIndex: number;
|
482
|
+
columnIndex: number;
|
487
483
|
}) => any;
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
484
|
+
onCellDblclick?: (_args: {
|
485
|
+
event: MouseEvent;
|
486
|
+
row: any;
|
487
|
+
column: Column;
|
488
|
+
cell: {
|
489
|
+
getValue: () => string;
|
490
|
+
};
|
491
|
+
rowIndex: number;
|
492
|
+
columnIndex: number;
|
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 | void | string)) => 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 | void | string)) => 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: any | IEmptyObject, attrName: string) => any;
|
49
49
|
filter: () => void;
|
50
50
|
sortData: (column: Column) => void;
|
51
51
|
isCheckedAll: () => boolean;
|
@@ -43,13 +43,53 @@ declare const _default: (props: TablePropTypes) => {
|
|
43
43
|
height?: number;
|
44
44
|
maxHeight?: number;
|
45
45
|
};
|
46
|
-
colspan?:
|
47
|
-
|
46
|
+
colspan?: (({ column, colIndex, row, rowIndex }: {
|
47
|
+
column: any;
|
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
|
+
};
|
48
78
|
textAlign?: string;
|
49
79
|
className?: import("./props").RowClassFunctionString;
|
50
80
|
align?: string;
|
51
81
|
prop?: import("./props").LabelFunctionString;
|
52
|
-
index?:
|
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
|
+
};
|
53
93
|
explain?: boolean | {
|
54
94
|
content: import("./props").LabelFunctionString;
|
55
95
|
head: import("./props").LabelFunctionString;
|
@@ -91,13 +131,53 @@ declare const _default: (props: TablePropTypes) => {
|
|
91
131
|
height?: number;
|
92
132
|
maxHeight?: number;
|
93
133
|
};
|
94
|
-
colspan?:
|
95
|
-
|
134
|
+
colspan?: (({ column, colIndex, row, rowIndex }: {
|
135
|
+
column: any;
|
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
|
+
};
|
96
166
|
textAlign?: string;
|
97
167
|
className?: import("./props").RowClassFunctionString;
|
98
168
|
align?: string;
|
99
169
|
prop?: import("./props").LabelFunctionString;
|
100
|
-
index?:
|
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
|
+
};
|
101
181
|
explain?: boolean | {
|
102
182
|
content: import("./props").LabelFunctionString;
|
103
183
|
head: import("./props").LabelFunctionString;
|
@@ -139,13 +219,53 @@ declare const _default: (props: TablePropTypes) => {
|
|
139
219
|
height?: number;
|
140
220
|
maxHeight?: number;
|
141
221
|
};
|
142
|
-
colspan?:
|
143
|
-
|
222
|
+
colspan?: (({ column, colIndex, row, rowIndex }: {
|
223
|
+
column: any;
|
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
|
+
};
|
144
254
|
textAlign?: string;
|
145
255
|
className?: import("./props").RowClassFunctionString;
|
146
256
|
align?: string;
|
147
257
|
prop?: import("./props").LabelFunctionString;
|
148
|
-
index?:
|
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
|
+
};
|
149
269
|
explain?: boolean | {
|
150
270
|
content: import("./props").LabelFunctionString;
|
151
271
|
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: string | boolean;
|
27
|
+
minHeight: string | number;
|
28
|
+
height: string | number;
|
29
|
+
maxHeight: string | number;
|
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: string | number) => string | number;
|
23
23
|
/**
|
24
24
|
* 解析可为数字或者字符串设置的样式配置
|
25
25
|
* @param val 配置值
|
@@ -27,7 +27,7 @@ export declare const resolveWidth: (propWidth: number | string) => 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: string | number, defaultValue?: string | number, 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: string | number) => 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?: string[] | (() => string | number | boolean)[]) => 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: (() => any)
|
97
|
+
export declare const formatPropAsArray: (prop: string | object | (() => any), 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;
|