bkui-vue 2.0.1-beta.15.table.11 → 2.0.1-beta.15.table.12
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 +28 -28
- package/dist/index.esm.js +2520 -2507
- package/dist/index.umd.js +23 -23
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/index.js +1 -0
- package/lib/dialog/dialog.d.ts +5 -5
- package/lib/dialog/index.d.ts +11 -11
- package/lib/dialog/props.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/modal/index.d.ts +13 -13
- package/lib/modal/modal.d.ts +5 -5
- package/lib/modal/props.mixin.d.ts +2 -2
- package/lib/radio/index.d.ts +21 -21
- 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/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +3 -3
- package/lib/select/index.js +41 -34
- package/lib/select/select.css +3 -4
- package/lib/select/select.d.ts +1 -1
- package/lib/select/select.less +3 -4
- package/lib/select/select.variable.css +3 -4
- package/lib/sideslider/index.d.ts +11 -11
- package/lib/sideslider/sideslider.d.ts +5 -5
- package/lib/table/hooks/use-settings.d.ts +1 -0
- package/lib/table/index.d.ts +4 -15
- package/lib/table/index.js +19 -10
- package/lib/table/props.d.ts +1 -3
- package/lib/table/table.css +5 -6
- package/lib/table/table.d.ts +2 -7
- package/lib/table/table.less +6 -9
- package/lib/table/table.variable.css +5 -6
- package/lib/table-column/index.js +2 -2
- package/package.json +1 -1
package/lib/table/table.d.ts
CHANGED
@@ -23,9 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
23
|
maxHeight: import("vue-types").VueTypeDef<string | number> & {
|
24
24
|
default: string | number;
|
25
25
|
};
|
26
|
-
rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber
|
27
|
-
default: import("./props").RowHeightFunctionNumber;
|
28
|
-
};
|
26
|
+
rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber>;
|
29
27
|
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
30
28
|
default: number;
|
31
29
|
} & {
|
@@ -194,9 +192,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
194
192
|
maxHeight: import("vue-types").VueTypeDef<string | number> & {
|
195
193
|
default: string | number;
|
196
194
|
};
|
197
|
-
rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber
|
198
|
-
default: import("./props").RowHeightFunctionNumber;
|
199
|
-
};
|
195
|
+
rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber>;
|
200
196
|
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
201
197
|
default: number;
|
202
198
|
} & {
|
@@ -362,7 +358,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
362
358
|
columnPick: "disabled" | "single" | "multi";
|
363
359
|
columns: import("./props").Column[];
|
364
360
|
stripe: boolean;
|
365
|
-
rowHeight: import("./props").RowHeightFunctionNumber;
|
366
361
|
showHead: boolean;
|
367
362
|
sortValFormat: any[];
|
368
363
|
virtualEnabled: boolean;
|
package/lib/table/table.less
CHANGED
@@ -137,6 +137,9 @@
|
|
137
137
|
&.selection {
|
138
138
|
padding: 0;
|
139
139
|
text-align: center;
|
140
|
+
display: flex;
|
141
|
+
align-items: center;
|
142
|
+
justify-content: center;
|
140
143
|
}
|
141
144
|
|
142
145
|
&.expand-cell {
|
@@ -253,7 +256,7 @@
|
|
253
256
|
.cell {
|
254
257
|
display: block;
|
255
258
|
width: 100%;
|
256
|
-
line-height: calc(var(--row-height) -
|
259
|
+
line-height: calc(var(--row-height) - 4px);
|
257
260
|
box-sizing: border-box;
|
258
261
|
|
259
262
|
&.drag {
|
@@ -289,6 +292,7 @@
|
|
289
292
|
z-index: 2;
|
290
293
|
overflow: hidden;
|
291
294
|
background-color: var(--background-color);
|
295
|
+
height: var(--row-height);
|
292
296
|
|
293
297
|
.col-resize-drag {
|
294
298
|
position: absolute;
|
@@ -369,18 +373,11 @@
|
|
369
373
|
border-top: 1px solid @table-border-color;
|
370
374
|
border-right: 1px solid @table-border-color;
|
371
375
|
border-left: 1px solid @table-border-color;
|
372
|
-
|
373
|
-
.@{bk-prefix}-table-footer {
|
374
|
-
border-bottom: 1px solid @table-border-color;
|
375
|
-
}
|
376
376
|
}
|
377
377
|
|
378
378
|
&.bordered-horizontal {
|
379
379
|
border-top: 1px solid @table-border-color;
|
380
|
-
|
381
|
-
.@{bk-prefix}-table-footer {
|
382
|
-
border-bottom: 1px solid @table-border-color;
|
383
|
-
}
|
380
|
+
border-bottom: 1px solid @table-border-color;
|
384
381
|
}
|
385
382
|
|
386
383
|
&.bordered-outer,
|
@@ -1715,6 +1715,9 @@
|
|
1715
1715
|
.bk-table .bk-table-body table td .cell.selection {
|
1716
1716
|
padding: 0;
|
1717
1717
|
text-align: center;
|
1718
|
+
display: flex;
|
1719
|
+
align-items: center;
|
1720
|
+
justify-content: center;
|
1718
1721
|
}
|
1719
1722
|
.bk-table .bk-table-head table th .cell.expand-cell,
|
1720
1723
|
.bk-table .bk-table-body table th .cell.expand-cell,
|
@@ -1832,7 +1835,7 @@
|
|
1832
1835
|
.bk-table .bk-table-body table tbody tr td .cell {
|
1833
1836
|
display: block;
|
1834
1837
|
width: 100%;
|
1835
|
-
line-height: calc(var(--row-height) -
|
1838
|
+
line-height: calc(var(--row-height) - 4px);
|
1836
1839
|
box-sizing: border-box;
|
1837
1840
|
}
|
1838
1841
|
.bk-table .bk-table-head table tbody tr td .cell.drag,
|
@@ -1854,6 +1857,7 @@
|
|
1854
1857
|
z-index: 2;
|
1855
1858
|
overflow: hidden;
|
1856
1859
|
background-color: var(--background-color);
|
1860
|
+
height: var(--row-height);
|
1857
1861
|
}
|
1858
1862
|
.bk-table .bk-table-head .col-resize-drag {
|
1859
1863
|
position: absolute;
|
@@ -1916,13 +1920,8 @@
|
|
1916
1920
|
border-right: 1px solid var(--table-border-color);
|
1917
1921
|
border-left: 1px solid var(--table-border-color);
|
1918
1922
|
}
|
1919
|
-
.bk-table.bordered-outer .bk-table-footer {
|
1920
|
-
border-bottom: 1px solid var(--table-border-color);
|
1921
|
-
}
|
1922
1923
|
.bk-table.bordered-horizontal {
|
1923
1924
|
border-top: 1px solid var(--table-border-color);
|
1924
|
-
}
|
1925
|
-
.bk-table.bordered-horizontal .bk-table-footer {
|
1926
1925
|
border-bottom: 1px solid var(--table-border-color);
|
1927
1926
|
}
|
1928
1927
|
.bk-table.bordered-outer .__is-empty .bk-table-body-content,
|
@@ -17668,7 +17668,7 @@ var tableProps = {
|
|
17668
17668
|
* 设置表格最小高度
|
17669
17669
|
* 默认:LINE_HEIGHT * 4
|
17670
17670
|
*/
|
17671
|
-
minHeight: StringNumberType(LINE_HEIGHT *
|
17671
|
+
minHeight: StringNumberType(LINE_HEIGHT * 3),
|
17672
17672
|
/**
|
17673
17673
|
* 设置表格最d大高度
|
17674
17674
|
* 默认:auto,依赖外层高度
|
@@ -17678,7 +17678,7 @@ var tableProps = {
|
|
17678
17678
|
* 行高,可以为固定数值类型
|
17679
17679
|
* 可以是函数,返回当前行的高度,返回值为数值类型
|
17680
17680
|
*/
|
17681
|
-
rowHeight: RowHeightFunctionNumberType
|
17681
|
+
rowHeight: RowHeightFunctionNumberType,
|
17682
17682
|
/**
|
17683
17683
|
* Thead行高,可以为固定数值类型
|
17684
17684
|
*/
|