bkui-vue 2.0.1-beta.61 → 2.0.1-beta.62
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 +1976 -1954
- 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 +6 -0
- package/lib/table/props.d.ts +4 -4
- 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
|
/**
|
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>;
|