bkui-vue 2.0.1-beta.6 → 2.0.1-beta.60.fix.1
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 +166 -166
- package/dist/index.esm.js +32099 -32092
- package/dist/index.umd.js +166 -166
- 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 -7
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +1 -1
- package/lib/cascader/index.js +32 -32
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +7 -7
- package/lib/checkbox/index.d.ts +11 -11
- package/lib/checkbox/index.js +12 -4
- 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 -7
- 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/date-picker.d.ts +0 -1
- package/lib/date-picker/index.d.ts +0 -3
- package/lib/date-picker/index.js +246 -220
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +5 -5
- 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 +25 -20
- package/lib/dialog/index.d.ts +55 -44
- package/lib/dialog/index.js +22 -22
- package/lib/dialog/props.d.ts +10 -8
- 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 -4
- 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 -15
- 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 -21
- package/lib/index.d.ts +9 -3
- package/lib/index.js +5 -29
- 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 -17
- 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 +21 -8
- package/lib/modal/index.js +14 -8
- package/lib/modal/modal.d.ts +8 -3
- package/lib/modal/props.mixin.d.ts +3 -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 -20
- 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 +18 -20
- 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 -11
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/index.js +28 -17
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +27 -0
- package/lib/resize-layout/index.d.ts +34 -11
- package/lib/resize-layout/index.js +29 -14
- package/lib/resize-layout/resize-layout.d.ts +16 -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/common.d.ts +4 -4
- package/lib/select/index.d.ts +88 -70
- package/lib/select/index.js +134 -125
- package/lib/select/option.d.ts +1 -1
- package/lib/select/select.d.ts +35 -27
- 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 +18 -7
- package/lib/sideslider/index.js +11 -11
- package/lib/sideslider/sideslider.d.ts +8 -3
- 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/styles/index.d.ts +0 -1
- 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 +126 -130
- package/lib/table/props.d.ts +33 -33
- package/lib/table/table.css +3 -4
- package/lib/table/table.d.ts +47 -47
- package/lib/table/table.less +4 -12
- package/lib/table/table.variable.css +3 -4
- 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 +48 -40
- 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 +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/lib/virtual-render/index.js +2 -3
- package/package.json +17 -55
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/rate/star.variable.css +0 -156
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.css
CHANGED
@@ -1256,6 +1256,7 @@
|
|
1256
1256
|
.bk-table .bk-table-head table .left .cell,
|
1257
1257
|
.bk-table .bk-table-body table .left .cell {
|
1258
1258
|
justify-content: start;
|
1259
|
+
text-align: left;
|
1259
1260
|
}
|
1260
1261
|
.bk-table .bk-table-head table .center,
|
1261
1262
|
.bk-table .bk-table-body table .center {
|
@@ -1264,6 +1265,7 @@
|
|
1264
1265
|
.bk-table .bk-table-head table .center .cell,
|
1265
1266
|
.bk-table .bk-table-body table .center .cell {
|
1266
1267
|
justify-content: center;
|
1268
|
+
text-align: center;
|
1267
1269
|
}
|
1268
1270
|
.bk-table .bk-table-head table .right,
|
1269
1271
|
.bk-table .bk-table-body table .right {
|
@@ -1272,6 +1274,7 @@
|
|
1272
1274
|
.bk-table .bk-table-head table .right .cell,
|
1273
1275
|
.bk-table .bk-table-body table .right .cell {
|
1274
1276
|
justify-content: end;
|
1277
|
+
text-align: right;
|
1275
1278
|
}
|
1276
1279
|
.bk-table .bk-table-head table thead,
|
1277
1280
|
.bk-table .bk-table-body table thead {
|
@@ -1332,7 +1335,6 @@
|
|
1332
1335
|
width: 100%;
|
1333
1336
|
line-height: calc(var(--row-height) - 2px);
|
1334
1337
|
box-sizing: border-box;
|
1335
|
-
align-items: center;
|
1336
1338
|
}
|
1337
1339
|
.bk-table .bk-table-head table tbody tr td .cell.drag,
|
1338
1340
|
.bk-table .bk-table-body table tbody tr td .cell.drag {
|
@@ -1403,9 +1405,6 @@
|
|
1403
1405
|
.bk-table.bordered-row .bk-table-body tbody tr td {
|
1404
1406
|
border-bottom-color: #dcdee5;
|
1405
1407
|
}
|
1406
|
-
.bk-table.bordered-row .bk-table-body tbody tr:last-child td {
|
1407
|
-
border-bottom: none;
|
1408
|
-
}
|
1409
1408
|
.bk-table.bordered-outer {
|
1410
1409
|
border-top: 1px solid #dcdee5;
|
1411
1410
|
border-right: 1px solid #dcdee5;
|
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[];
|
package/lib/table/table.less
CHANGED
@@ -191,6 +191,7 @@
|
|
191
191
|
|
192
192
|
.cell {
|
193
193
|
justify-content: start;
|
194
|
+
text-align: left;
|
194
195
|
}
|
195
196
|
}
|
196
197
|
|
@@ -199,6 +200,7 @@
|
|
199
200
|
|
200
201
|
.cell {
|
201
202
|
justify-content: center;
|
203
|
+
text-align: center;
|
202
204
|
}
|
203
205
|
}
|
204
206
|
|
@@ -207,6 +209,7 @@
|
|
207
209
|
|
208
210
|
.cell {
|
209
211
|
justify-content: end;
|
212
|
+
text-align: right;
|
210
213
|
}
|
211
214
|
}
|
212
215
|
|
@@ -266,17 +269,11 @@
|
|
266
269
|
padding-bottom: 30px;
|
267
270
|
}
|
268
271
|
|
269
|
-
&.is-last {
|
270
|
-
// border-bottom: none;
|
271
|
-
}
|
272
|
-
|
273
272
|
.cell {
|
274
273
|
display: block;
|
275
274
|
width: 100%;
|
276
|
-
// height: 100%;
|
277
275
|
line-height: calc(var(--row-height) - 2px);
|
278
276
|
box-sizing: border-box;
|
279
|
-
align-items: center;
|
280
277
|
|
281
278
|
&.drag {
|
282
279
|
text-align: center;
|
@@ -374,12 +371,6 @@
|
|
374
371
|
td {
|
375
372
|
border-bottom-color: @table-border-color;
|
376
373
|
}
|
377
|
-
|
378
|
-
&:last-child {
|
379
|
-
td {
|
380
|
-
border-bottom: none;
|
381
|
-
}
|
382
|
-
}
|
383
374
|
}
|
384
375
|
}
|
385
376
|
}
|
@@ -478,6 +469,7 @@
|
|
478
469
|
top: 0;
|
479
470
|
right: 0;
|
480
471
|
|
472
|
+
|
481
473
|
&.shadow {
|
482
474
|
box-shadow: 0 0 10px rgb(0 0 0 / 12%);
|
483
475
|
}
|
@@ -1385,6 +1385,7 @@
|
|
1385
1385
|
.bk-table .bk-table-head table .left .cell,
|
1386
1386
|
.bk-table .bk-table-body table .left .cell {
|
1387
1387
|
justify-content: start;
|
1388
|
+
text-align: left;
|
1388
1389
|
}
|
1389
1390
|
.bk-table .bk-table-head table .center,
|
1390
1391
|
.bk-table .bk-table-body table .center {
|
@@ -1393,6 +1394,7 @@
|
|
1393
1394
|
.bk-table .bk-table-head table .center .cell,
|
1394
1395
|
.bk-table .bk-table-body table .center .cell {
|
1395
1396
|
justify-content: center;
|
1397
|
+
text-align: center;
|
1396
1398
|
}
|
1397
1399
|
.bk-table .bk-table-head table .right,
|
1398
1400
|
.bk-table .bk-table-body table .right {
|
@@ -1401,6 +1403,7 @@
|
|
1401
1403
|
.bk-table .bk-table-head table .right .cell,
|
1402
1404
|
.bk-table .bk-table-body table .right .cell {
|
1403
1405
|
justify-content: end;
|
1406
|
+
text-align: right;
|
1404
1407
|
}
|
1405
1408
|
.bk-table .bk-table-head table thead,
|
1406
1409
|
.bk-table .bk-table-body table thead {
|
@@ -1461,7 +1464,6 @@
|
|
1461
1464
|
width: 100%;
|
1462
1465
|
line-height: calc(var(--row-height) - 2px);
|
1463
1466
|
box-sizing: border-box;
|
1464
|
-
align-items: center;
|
1465
1467
|
}
|
1466
1468
|
.bk-table .bk-table-head table tbody tr td .cell.drag,
|
1467
1469
|
.bk-table .bk-table-body table tbody tr td .cell.drag {
|
@@ -1532,9 +1534,6 @@
|
|
1532
1534
|
.bk-table.bordered-row .bk-table-body tbody tr td {
|
1533
1535
|
border-bottom-color: #dcdee5;
|
1534
1536
|
}
|
1535
|
-
.bk-table.bordered-row .bk-table-body tbody tr:last-child td {
|
1536
|
-
border-bottom: none;
|
1537
|
-
}
|
1538
1537
|
.bk-table.bordered-outer {
|
1539
1538
|
border-top: 1px solid #dcdee5;
|
1540
1539
|
border-right: 1px solid #dcdee5;
|
@@ -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;
|