bkui-vue 2.0.1-beta.61 → 2.0.1-beta.63
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 +20 -20
- package/dist/index.esm.js +1977 -1955
- package/dist/index.umd.js +20 -20
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/index.js +7 -5
- package/lib/index.js +1 -1
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +19 -0
- package/lib/input/input.less +26 -0
- package/lib/input/input.variable.css +19 -0
- package/lib/select/common.d.ts +1 -1
- package/lib/select/index.js +9 -7
- package/lib/select/type.d.ts +2 -2
- package/lib/tab/index.d.ts +22 -0
- package/lib/tab/index.js +32 -10
- package/lib/tab/props.d.ts +10 -0
- package/lib/tab/tab-nav.d.ts +12 -2
- package/lib/tab/tab-panel.d.ts +22 -0
- package/lib/tab/tab.css +64 -0
- package/lib/tab/tab.less +91 -4
- package/lib/tab/tab.variable.css +64 -0
- package/lib/table/index.js +7 -1
- package/lib/table/props.d.ts +4 -4
- package/lib/table/table.css +6 -0
- package/lib/table/table.less +14 -0
- package/lib/table/table.variable.css +6 -0
- package/package.json +1 -1
package/lib/tab/tab.variable.css
CHANGED
@@ -416,6 +416,21 @@
|
|
416
416
|
.bk-tab--right .bk-tab-header {
|
417
417
|
flex-direction: column;
|
418
418
|
}
|
419
|
+
.bk-tab--left .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num,
|
420
|
+
.bk-tab--right .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num {
|
421
|
+
width: 100%;
|
422
|
+
}
|
423
|
+
.bk-tab--left .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
|
424
|
+
.bk-tab--right .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
|
425
|
+
border-radius: 2px;
|
426
|
+
}
|
427
|
+
.bk-tab--left .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
|
428
|
+
.bk-tab--right .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
|
429
|
+
.bk-tab--left .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic,
|
430
|
+
.bk-tab--right .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
|
431
|
+
background-color: #A3C5FD;
|
432
|
+
color: var(--white-color);
|
433
|
+
}
|
419
434
|
.bk-tab--left .bk-tab-header > div,
|
420
435
|
.bk-tab--right .bk-tab-header > div {
|
421
436
|
flex-direction: column;
|
@@ -427,6 +442,18 @@
|
|
427
442
|
.bk-tab--card-tab .bk-tab-header {
|
428
443
|
border-radius: 4px 4px 0;
|
429
444
|
}
|
445
|
+
.bk-tab--card-tab .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
|
446
|
+
background-color: var(--white-color);
|
447
|
+
}
|
448
|
+
.bk-tab--card-tab .bk-tab-header .bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
|
449
|
+
background-color: var(--white-color);
|
450
|
+
color: var(--default-color);
|
451
|
+
}
|
452
|
+
.bk-tab--card-tab .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
|
453
|
+
.bk-tab--card-tab .bk-tab-header .bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
|
454
|
+
background-color: #A3C5FD;
|
455
|
+
color: var(--white-color);
|
456
|
+
}
|
430
457
|
.bk-tab--card .bk-tab-header,
|
431
458
|
.bk-tab--vertical-card .bk-tab-header {
|
432
459
|
border-bottom: 1px solid var(--disable-color);
|
@@ -551,6 +578,35 @@
|
|
551
578
|
padding-right: 12px;
|
552
579
|
padding-left: 12px;
|
553
580
|
}
|
581
|
+
.bk-tab-header-item .bk-tab-header--has-num {
|
582
|
+
display: flex;
|
583
|
+
align-items: center;
|
584
|
+
justify-content: space-between;
|
585
|
+
}
|
586
|
+
.bk-tab-header-item .bk-tab-header--has-num-right {
|
587
|
+
margin-left: 4px;
|
588
|
+
display: flex;
|
589
|
+
align-items: center;
|
590
|
+
color: var(--default-color);
|
591
|
+
}
|
592
|
+
.bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-default,
|
593
|
+
.bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-bracket {
|
594
|
+
color: var(--default-color);
|
595
|
+
}
|
596
|
+
.bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
|
597
|
+
.bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
|
598
|
+
background-color: #F0F1F5;
|
599
|
+
color: var(--gray-color);
|
600
|
+
padding: 0 8px;
|
601
|
+
line-height: 18px;
|
602
|
+
text-align: center;
|
603
|
+
}
|
604
|
+
.bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
|
605
|
+
border-radius: 2px;
|
606
|
+
}
|
607
|
+
.bk-tab-header-item .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
|
608
|
+
border-radius: 18px;
|
609
|
+
}
|
554
610
|
.bk-tab-header-item:hover {
|
555
611
|
color: var(--primary-color);
|
556
612
|
}
|
@@ -596,6 +652,14 @@
|
|
596
652
|
.bk-tab--card-grid .bk-tab-header--active {
|
597
653
|
background: #fff;
|
598
654
|
}
|
655
|
+
.bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-bracket,
|
656
|
+
.bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square,
|
657
|
+
.bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-elliptic {
|
658
|
+
color: var(--primary-color);
|
659
|
+
}
|
660
|
+
.bk-tab-header--active .bk-tab-header--has-num-right .bk-tab-header--has-num-square {
|
661
|
+
background-color: #E1ECFF;
|
662
|
+
}
|
599
663
|
.bk-tab-header--close {
|
600
664
|
display: none;
|
601
665
|
font-size: 16px;
|
package/lib/table/index.js
CHANGED
@@ -23465,6 +23465,12 @@ function use_render_isSlot(s) {
|
|
23465
23465
|
* @param rows
|
23466
23466
|
*/
|
23467
23467
|
var handleRowClick = function handleRowClick(e, row, index, rows) {
|
23468
|
+
var _e$target;
|
23469
|
+
var tagName = (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.tagName;
|
23470
|
+
// span标签中嵌套了input标签产生冒泡,会先后都触发一次click事件, 所以会调用两遍
|
23471
|
+
if (tagName === 'INPUT') {
|
23472
|
+
return;
|
23473
|
+
}
|
23468
23474
|
ctx.emit(EMIT_EVENTS.ROW_CLICK, e, row, index, rows);
|
23469
23475
|
};
|
23470
23476
|
/**
|
@@ -24630,7 +24636,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
24630
24636
|
});
|
24631
24637
|
});
|
24632
24638
|
var setRowsBodyHeight = function setRowsBodyHeight() {
|
24633
|
-
if (props.height === '100%' || props.height === 'auto') {
|
24639
|
+
if (props.virtualEnabled && (props.height === '100%' || props.height === 'auto')) {
|
24634
24640
|
var rowsHeight = rows.getCurrentPageRowsHeight();
|
24635
24641
|
var bodyHeight = rowsHeight;
|
24636
24642
|
if (/^\d+\.?\d*(px)?$/.test("".concat(props.maxHeight))) {
|
package/lib/table/props.d.ts
CHANGED
@@ -123,12 +123,12 @@ export type Field = {
|
|
123
123
|
export type LabelFunctionString = ((_column: any, _index: any) => JSX.Element | boolean | number | string) | boolean | number | string;
|
124
124
|
export declare const LabelFunctionStringType: import("vue-types").VueTypeDef<LabelFunctionString>;
|
125
125
|
export type HeadRenderArgs = {
|
126
|
-
cell?:
|
127
|
-
data?:
|
128
|
-
row?: Record<string,
|
126
|
+
cell?: unknown;
|
127
|
+
data?: unknown;
|
128
|
+
row?: Record<string, unknown>;
|
129
129
|
column?: Column;
|
130
130
|
index?: number;
|
131
|
-
rows?: Record<string,
|
131
|
+
rows?: Record<string, unknown>[];
|
132
132
|
};
|
133
133
|
export type RenderFunctionString = (args: HeadRenderArgs) => JSX.Element | boolean | number | string;
|
134
134
|
export declare const RenderFunctionStringType: import("vue-types").VueTypeDef<RenderFunctionString>;
|
package/lib/table/table.css
CHANGED
@@ -1688,6 +1688,12 @@
|
|
1688
1688
|
border-bottom: none;
|
1689
1689
|
border-left: none;
|
1690
1690
|
}
|
1691
|
+
.bk-table.bordered-none .bk-table-body table tbody tr td {
|
1692
|
+
border-top: none;
|
1693
|
+
border-right: 1px solid var(--table-bg-color);
|
1694
|
+
border-bottom: none;
|
1695
|
+
border-left: none;
|
1696
|
+
}
|
1691
1697
|
.bk-table .bk-table-fixed {
|
1692
1698
|
position: absolute;
|
1693
1699
|
top: 0;
|
package/lib/table/table.less
CHANGED
@@ -540,6 +540,20 @@
|
|
540
540
|
border-bottom: none;
|
541
541
|
border-left: none;
|
542
542
|
}
|
543
|
+
.@{bk-prefix}-table-body {
|
544
|
+
table {
|
545
|
+
tbody {
|
546
|
+
tr {
|
547
|
+
td {
|
548
|
+
border-top: none;
|
549
|
+
border-right: 1px solid @table-bg-color;
|
550
|
+
border-bottom: none;
|
551
|
+
border-left: none;
|
552
|
+
}
|
553
|
+
}
|
554
|
+
}
|
555
|
+
}
|
556
|
+
}
|
543
557
|
}
|
544
558
|
|
545
559
|
.@{bk-prefix}-table-fixed {
|
@@ -2078,6 +2078,12 @@
|
|
2078
2078
|
border-bottom: none;
|
2079
2079
|
border-left: none;
|
2080
2080
|
}
|
2081
|
+
.bk-table.bordered-none .bk-table-body table tbody tr td {
|
2082
|
+
border-top: none;
|
2083
|
+
border-right: 1px solid var(--table-bg-color);
|
2084
|
+
border-bottom: none;
|
2085
|
+
border-left: none;
|
2086
|
+
}
|
2081
2087
|
.bk-table .bk-table-fixed {
|
2082
2088
|
position: absolute;
|
2083
2089
|
top: 0;
|