@kdcloudjs/kdesign 1.5.8 → 1.5.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/CHANGELOG.md +48 -0
- package/dist/default-theme.js +1 -1
- package/dist/kdesign-complete.less +156 -114
- package/dist/kdesign.css +122 -101
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +1083 -321
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/KeyCode.d.ts +436 -0
- package/es/_utils/KeyCode.js +623 -0
- package/es/_utils/hooks.d.ts +1 -0
- package/es/_utils/hooks.js +51 -1
- package/es/_utils/usePopper.js +2 -2
- package/es/alert/style/index.css +0 -1
- package/es/alert/style/index.less +0 -1
- package/es/button/style/index.css +3 -0
- package/es/button/style/mixin.less +3 -0
- package/es/carousel/slidebar.d.ts +1 -0
- package/es/checkbox/checkbox.d.ts +1 -0
- package/es/checkbox/checkbox.js +21 -3
- package/es/city-picker/no-data.d.ts +1 -0
- package/es/config-provider/compDefaultProps.d.ts +1 -0
- package/es/config-provider/compDefaultProps.js +2 -1
- package/es/date-picker/calendar.d.ts +1 -0
- package/es/date-picker/date-picker.js +15 -14
- package/es/date-picker/hooks/use-picker-input.js +44 -38
- package/es/date-picker/panel/month/month.d.ts +1 -0
- package/es/date-picker/panel/quarter/quarter.d.ts +1 -0
- package/es/date-picker/panel/time/time.d.ts +1 -0
- package/es/date-picker/panel/week/week.d.ts +1 -0
- package/es/date-picker/panel/year/year.d.ts +1 -0
- package/es/date-picker/range-picker.js +24 -13
- package/es/date-picker/utils/get-ranges.d.ts +1 -0
- package/es/drawer/drawer.d.ts +1 -0
- package/es/drawer/drawer.js +6 -3
- package/es/dropdown/dropdown.js +1 -1
- package/es/empty/defaultEmptyImg.d.ts +1 -0
- package/es/empty/illustrationEmptyImg.d.ts +1 -0
- package/es/modal/style/index.css +1 -7
- package/es/modal/style/index.less +1 -7
- package/es/modal/style/token.less +7 -4
- package/es/notification-base/notification.js +4 -4
- package/es/pagination/style/index.css +1 -3
- package/es/pagination/style/index.less +1 -3
- package/es/progress/progress.js +1 -1
- package/es/progress/style/index.css +18 -5
- package/es/progress/style/index.less +19 -5
- package/es/progress/style/token.less +5 -1
- package/es/slider/track.d.ts +1 -0
- package/es/style/themes/default.less +1 -1
- package/es/table/table.d.ts +1 -0
- package/es/tabs/style/index.css +79 -74
- package/es/tabs/style/index.less +76 -73
- package/es/tabs/style/mixin.less +0 -6
- package/es/tabs/style/token.less +8 -3
- package/es/transfer/style/index.css +0 -3
- package/es/transfer/style/index.less +0 -3
- package/es/tree/style/index.css +2 -1
- package/es/tree/style/index.less +5 -4
- package/es/tree/style/token.less +2 -1
- package/es/tree/treeNode.js +4 -1
- package/es/upload/style/index.css +17 -6
- package/es/upload/style/index.less +18 -5
- package/es/upload/style/token.less +11 -0
- package/es/upload/upload.js +6 -4
- package/lib/_utils/KeyCode.d.ts +436 -0
- package/lib/_utils/KeyCode.js +631 -0
- package/lib/_utils/hooks.d.ts +1 -0
- package/lib/_utils/hooks.js +54 -1
- package/lib/_utils/usePopper.js +2 -2
- package/lib/alert/style/index.css +0 -1
- package/lib/alert/style/index.less +0 -1
- package/lib/button/style/index.css +3 -0
- package/lib/button/style/mixin.less +3 -0
- package/lib/carousel/slidebar.d.ts +1 -0
- package/lib/checkbox/checkbox.d.ts +1 -0
- package/lib/checkbox/checkbox.js +23 -4
- package/lib/city-picker/no-data.d.ts +1 -0
- package/lib/config-provider/compDefaultProps.d.ts +1 -0
- package/lib/config-provider/compDefaultProps.js +2 -1
- package/lib/date-picker/calendar.d.ts +1 -0
- package/lib/date-picker/date-picker.js +15 -15
- package/lib/date-picker/hooks/use-picker-input.js +45 -37
- package/lib/date-picker/panel/month/month.d.ts +1 -0
- package/lib/date-picker/panel/quarter/quarter.d.ts +1 -0
- package/lib/date-picker/panel/time/time.d.ts +1 -0
- package/lib/date-picker/panel/week/week.d.ts +1 -0
- package/lib/date-picker/panel/year/year.d.ts +1 -0
- package/lib/date-picker/range-picker.js +24 -14
- package/lib/date-picker/utils/get-ranges.d.ts +1 -0
- package/lib/drawer/drawer.d.ts +1 -0
- package/lib/drawer/drawer.js +5 -2
- package/lib/dropdown/dropdown.js +1 -1
- package/lib/empty/defaultEmptyImg.d.ts +1 -0
- package/lib/empty/illustrationEmptyImg.d.ts +1 -0
- package/lib/modal/style/index.css +1 -7
- package/lib/modal/style/index.less +1 -7
- package/lib/modal/style/token.less +7 -4
- package/lib/notification-base/notification.js +4 -3
- package/lib/pagination/style/index.css +1 -3
- package/lib/pagination/style/index.less +1 -3
- package/lib/progress/progress.js +1 -1
- package/lib/progress/style/index.css +18 -5
- package/lib/progress/style/index.less +19 -5
- package/lib/progress/style/token.less +5 -1
- package/lib/slider/track.d.ts +1 -0
- package/lib/style/themes/default.less +1 -1
- package/lib/table/table.d.ts +1 -0
- package/lib/tabs/style/index.css +79 -74
- package/lib/tabs/style/index.less +76 -73
- package/lib/tabs/style/mixin.less +0 -6
- package/lib/tabs/style/token.less +8 -3
- package/lib/transfer/style/index.css +0 -3
- package/lib/transfer/style/index.less +0 -3
- package/lib/tree/style/index.css +2 -1
- package/lib/tree/style/index.less +5 -4
- package/lib/tree/style/token.less +2 -1
- package/lib/tree/treeNode.js +4 -1
- package/lib/upload/style/index.css +17 -6
- package/lib/upload/style/index.less +18 -5
- package/lib/upload/style/token.less +11 -0
- package/lib/upload/upload.js +6 -4
- package/package.json +2 -2
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
&-container {
|
|
43
43
|
z-index: @z-index-apex;
|
|
44
44
|
display: none;
|
|
45
|
-
width: 100%;
|
|
46
45
|
padding: @alert-padding-vertical @alert-padding-horizontal;
|
|
47
46
|
align-items: center;
|
|
48
47
|
transition: display 3s;
|
|
@@ -1281,6 +1280,9 @@
|
|
|
1281
1280
|
text-align: center;
|
|
1282
1281
|
background-color: transparent;
|
|
1283
1282
|
cursor: pointer;
|
|
1283
|
+
white-space: nowrap;
|
|
1284
|
+
overflow: hidden;
|
|
1285
|
+
text-overflow: ellipsis;
|
|
1284
1286
|
&,
|
|
1285
1287
|
&:active,
|
|
1286
1288
|
&:focus {
|
|
@@ -6460,14 +6462,8 @@ textarea {
|
|
|
6460
6462
|
// });
|
|
6461
6463
|
}
|
|
6462
6464
|
|
|
6463
|
-
&-ok-btn,
|
|
6464
|
-
&-cancel-btn {
|
|
6465
|
-
min-width: 88px;
|
|
6466
|
-
min-height: 32px;
|
|
6467
|
-
font-size: @modal-footer-font-size;
|
|
6468
|
-
}
|
|
6469
6465
|
&-margin-btn {
|
|
6470
|
-
margin-right:
|
|
6466
|
+
margin-right: @modal-footer-button-spacing;
|
|
6471
6467
|
}
|
|
6472
6468
|
}
|
|
6473
6469
|
|
|
@@ -6533,12 +6529,15 @@ textarea {
|
|
|
6533
6529
|
@icon-circle-radiu: var(~'@{modal-prefix}-icon-circle-sizing', 6px);
|
|
6534
6530
|
@modal-border-width: var(~'@{modal-prefix}-sizing-border', 1px);
|
|
6535
6531
|
@modal-close-icon-size: var(~'@{modal-prefix}-close-icon-font-size', 16px);
|
|
6536
|
-
@modal-header-sizing-padding-horizontal: var(~'@{modal-prefix}-header-sizing-padding-horizontal', 20px);
|
|
6537
|
-
@modal-header-sizing-padding-vertical: var(~'@{modal-prefix}-header-sizing-padding-vertical', 0px);
|
|
6538
6532
|
@modal-header-sizing-height: var(~'@{modal-prefix}-header-sizing-height', 50px);
|
|
6539
|
-
@modal-body-sizing-padding: var(~'@{modal-prefix}-body-sizing-padding', 20px);
|
|
6540
6533
|
@modal-footer-sizing-height: var(~'@{modal-prefix}-footer-sizing-height', 50px);
|
|
6534
|
+
|
|
6535
|
+
// spacing
|
|
6536
|
+
@modal-footer-button-spacing: var(~'@{modal-prefix}-footer-button-spacing', 12px);
|
|
6541
6537
|
@modal-title-icon-sizing-margin-right: var(~'@{modal-prefix}-title-icon-sizing-margin-right', 8px);
|
|
6538
|
+
@modal-header-sizing-padding-horizontal: var(~'@{modal-prefix}-header-sizing-padding-horizontal', 20px);
|
|
6539
|
+
@modal-header-sizing-padding-vertical: var(~'@{modal-prefix}-header-sizing-padding-vertical', 0px);
|
|
6540
|
+
@modal-body-sizing-padding: var(~'@{modal-prefix}-body-sizing-padding', 20px);
|
|
6542
6541
|
|
|
6543
6542
|
|
|
6544
6543
|
|
|
@@ -7034,9 +7033,7 @@ textarea {
|
|
|
7034
7033
|
|
|
7035
7034
|
&:hover,
|
|
7036
7035
|
&:active,
|
|
7037
|
-
&.active
|
|
7038
|
-
&:first-child,
|
|
7039
|
-
&:last-child {
|
|
7036
|
+
&.active {
|
|
7040
7037
|
button {
|
|
7041
7038
|
color: @color-theme;
|
|
7042
7039
|
}
|
|
@@ -7463,11 +7460,21 @@ textarea {
|
|
|
7463
7460
|
|
|
7464
7461
|
&-type-line {
|
|
7465
7462
|
width: 100%;
|
|
7463
|
+
color: @progress-line-font-color;
|
|
7464
|
+
|
|
7465
|
+
.@{progress-prefix-cls}-special-text {
|
|
7466
|
+
margin-top: @progress-line-text-margin-top;
|
|
7467
|
+
line-height: 24px;
|
|
7468
|
+
}
|
|
7466
7469
|
}
|
|
7467
7470
|
|
|
7468
7471
|
&-type-circle {
|
|
7472
|
+
color: @progress-circle-font-color;
|
|
7473
|
+
|
|
7469
7474
|
.@{progress-prefix-cls}-special-text {
|
|
7475
|
+
margin-top: @progress-circle-text-margin-top;
|
|
7470
7476
|
padding: 0;
|
|
7477
|
+
line-height: 24px;
|
|
7471
7478
|
}
|
|
7472
7479
|
}
|
|
7473
7480
|
|
|
@@ -7480,9 +7487,9 @@ textarea {
|
|
|
7480
7487
|
padding-right: 0;
|
|
7481
7488
|
font-size: 0;
|
|
7482
7489
|
|
|
7483
|
-
.@{progress-prefix-cls}-show-info & {
|
|
7484
|
-
margin-right: calc(-1 * @progress-line-text-font-size *
|
|
7485
|
-
padding-right: calc(@progress-line-text-font-size *
|
|
7490
|
+
.@{progress-prefix-cls}-show-info:not(.@{progress-prefix-cls}-position-bottom) & {
|
|
7491
|
+
margin-right: calc(-1 * @progress-line-text-font-size * 2 - 8px);
|
|
7492
|
+
padding-right: calc(@progress-line-text-font-size * 2 + 8px);
|
|
7486
7493
|
}
|
|
7487
7494
|
}
|
|
7488
7495
|
|
|
@@ -7520,7 +7527,7 @@ textarea {
|
|
|
7520
7527
|
&-text {
|
|
7521
7528
|
display: inline-block;
|
|
7522
7529
|
box-sizing: border-box;
|
|
7523
|
-
width: calc(@progress-line-text-font-size*
|
|
7530
|
+
width: calc(@progress-line-text-font-size*2);
|
|
7524
7531
|
margin-left: @progress-line-text-margin-left;
|
|
7525
7532
|
// font-size: @progress-line-text-font-size;
|
|
7526
7533
|
// line-height: 1;
|
|
@@ -7534,7 +7541,11 @@ textarea {
|
|
|
7534
7541
|
font-size: @progress-line-special-text-font-size;
|
|
7535
7542
|
text-align: center;
|
|
7536
7543
|
overflow: hidden;
|
|
7537
|
-
padding-right: calc(@progress-line-text-font-size*
|
|
7544
|
+
padding-right: calc(@progress-line-text-font-size*2 + 8px);
|
|
7545
|
+
|
|
7546
|
+
.@{progress-prefix-cls}-position-bottom & {
|
|
7547
|
+
padding-right: 0;
|
|
7548
|
+
}
|
|
7538
7549
|
}
|
|
7539
7550
|
|
|
7540
7551
|
&-status-success {
|
|
@@ -7653,6 +7664,8 @@ textarea {
|
|
|
7653
7664
|
|
|
7654
7665
|
// color
|
|
7655
7666
|
@progress-remaining-color: var(~'@{progress-prefix}-color-remaining', #e5e5e5);//背景色
|
|
7667
|
+
@progress-line-font-color: var(~'@{progress-prefix}-line-color-font', #212121);
|
|
7668
|
+
@progress-circle-font-color: var(~'@{progress-prefix}-circle-color-font', #666);
|
|
7656
7669
|
@progress-default-color: var(~'@{progress-prefix}-color-default', #5582f3);//进度条 默认色
|
|
7657
7670
|
@progress-success-color: var(~'@{progress-prefix}-color-success', @color-success);//进度条 成功
|
|
7658
7671
|
@progress-failure-color: var(~'@{progress-prefix}-color-failure', @color-error);//进度条 失败
|
|
@@ -7676,8 +7689,10 @@ textarea {
|
|
|
7676
7689
|
|
|
7677
7690
|
|
|
7678
7691
|
// spacing
|
|
7679
|
-
@progress-circle-unit-margin-top: var(~'@{progress-prefix}-circle-unit-spacing-margin-top', 18px);
|
|
7692
|
+
@progress-circle-unit-margin-top: var(~'@{progress-prefix}-circle-unit-spacing-margin-top', 18px); // 百分比符号距离顶部的距离
|
|
7680
7693
|
@progress-line-text-margin-left: var(~'@{progress-prefix}-line-text-spacing-margin-left', 8px); //进度与文字或者图标的间距
|
|
7694
|
+
@progress-line-text-margin-top: var(~'@{progress-prefix}-line-text-spacing-margin-top', 12px);
|
|
7695
|
+
@progress-circle-text-margin-top: var(~'@{progress-prefix}-circle-text-spacing-margin-top', 8px);
|
|
7681
7696
|
|
|
7682
7697
|
|
|
7683
7698
|
|
|
@@ -11328,7 +11343,7 @@ template {
|
|
|
11328
11343
|
@warning-border-color: #ffcb78; // 警示反馈浮层的容器边框色
|
|
11329
11344
|
@error-color: #fb2323; // 失败色(深)
|
|
11330
11345
|
@error-bg-color: #fff2f4; // 失败反馈浮层的底色
|
|
11331
|
-
@error-border-color: #
|
|
11346
|
+
@error-border-color: #fc808B; // 失败反馈浮层的容器边框色
|
|
11332
11347
|
@ongoing-color: #276ff5; // 进行中(深)
|
|
11333
11348
|
@ongoing-bg-color: #f2f9ff; // 进行中反馈浮层的底色
|
|
11334
11349
|
@ongoing-border-color: #85b8ff; // 进行中反馈浮层的容器边框色
|
|
@@ -12340,6 +12355,9 @@ template {
|
|
|
12340
12355
|
|
|
12341
12356
|
&-left-arrows {
|
|
12342
12357
|
box-shadow: 2px 0 2px rgba(0, 0, 0, 0.08);
|
|
12358
|
+
height: 100%;
|
|
12359
|
+
display: flex;
|
|
12360
|
+
align-items: center;
|
|
12343
12361
|
&-line {
|
|
12344
12362
|
background-color: #fff;
|
|
12345
12363
|
}
|
|
@@ -12349,6 +12367,9 @@ template {
|
|
|
12349
12367
|
}
|
|
12350
12368
|
&-right-arrows {
|
|
12351
12369
|
box-shadow: -2px 0 2px rgba(0, 0, 0, 0.08);
|
|
12370
|
+
height: 100%;
|
|
12371
|
+
display: flex;
|
|
12372
|
+
align-items: center;
|
|
12352
12373
|
&-line {
|
|
12353
12374
|
background-color: #fff;
|
|
12354
12375
|
.@{tabs-prefix-cls}-more-btn {
|
|
@@ -12372,18 +12393,7 @@ template {
|
|
|
12372
12393
|
}
|
|
12373
12394
|
&-left-operations {
|
|
12374
12395
|
position: relative;
|
|
12375
|
-
|
|
12376
|
-
margin-right: 8px;
|
|
12377
|
-
&::after {
|
|
12378
|
-
position: absolute;
|
|
12379
|
-
content: '';
|
|
12380
|
-
width: 1px;
|
|
12381
|
-
height: 28px;
|
|
12382
|
-
right: 0;
|
|
12383
|
-
top: 50%;
|
|
12384
|
-
transform: translateY(-50%);
|
|
12385
|
-
background-color: @tabs-border-color;
|
|
12386
|
-
}
|
|
12396
|
+
margin-right: 2px;
|
|
12387
12397
|
&-item {
|
|
12388
12398
|
padding: 0 12px;
|
|
12389
12399
|
cursor: pointer;
|
|
@@ -12391,19 +12401,9 @@ template {
|
|
|
12391
12401
|
}
|
|
12392
12402
|
&-right-operations {
|
|
12393
12403
|
position: relative;
|
|
12394
|
-
|
|
12395
|
-
&::before {
|
|
12396
|
-
position: absolute;
|
|
12397
|
-
content: '';
|
|
12398
|
-
width: 1px;
|
|
12399
|
-
height: 100%;
|
|
12400
|
-
left: 0;
|
|
12401
|
-
top: 50%;
|
|
12402
|
-
transform: translateY(-50%);
|
|
12403
|
-
background-color: @tabs-border-color;
|
|
12404
|
-
}
|
|
12404
|
+
padding-right: 18px;
|
|
12405
12405
|
&-item {
|
|
12406
|
-
padding:
|
|
12406
|
+
padding-left: 12px;
|
|
12407
12407
|
cursor: pointer;
|
|
12408
12408
|
}
|
|
12409
12409
|
}
|
|
@@ -12412,8 +12412,6 @@ template {
|
|
|
12412
12412
|
display: inline-block;
|
|
12413
12413
|
box-sizing: border-box;
|
|
12414
12414
|
width: 48px;
|
|
12415
|
-
height: 100%;
|
|
12416
|
-
line-height: 46px;
|
|
12417
12415
|
text-align: center;
|
|
12418
12416
|
cursor: pointer;
|
|
12419
12417
|
&:hover {
|
|
@@ -12432,6 +12430,20 @@ template {
|
|
|
12432
12430
|
.@{tabs-prefix-cls}-navs {
|
|
12433
12431
|
.tabNavs;
|
|
12434
12432
|
&-line {
|
|
12433
|
+
&.@{tabs-prefix-cls}-navs-middle {
|
|
12434
|
+
height: @tab-pane-type-line-height-middle;
|
|
12435
|
+
}
|
|
12436
|
+
&.@{tabs-prefix-cls}-navs-small {
|
|
12437
|
+
height: @tab-pane-type-line-height-small !important;
|
|
12438
|
+
}
|
|
12439
|
+
.@{tabPane-prefix-cls}-middle {
|
|
12440
|
+
line-height: @tab-pane-type-line-height-middle;
|
|
12441
|
+
height: @tab-pane-type-line-height-middle;
|
|
12442
|
+
}
|
|
12443
|
+
.@{tabPane-prefix-cls}-small {
|
|
12444
|
+
line-height: @tab-pane-type-line-height-small;
|
|
12445
|
+
height: @tab-pane-type-line-height-small;
|
|
12446
|
+
}
|
|
12435
12447
|
&.@{tabs-prefix-cls}-navs-bottom {
|
|
12436
12448
|
border-top: 1px solid @tabs-border-color;
|
|
12437
12449
|
border-bottom: unset;
|
|
@@ -12454,12 +12466,14 @@ template {
|
|
|
12454
12466
|
top: -1px;
|
|
12455
12467
|
height: ~'calc(100% + 2px)';
|
|
12456
12468
|
}
|
|
12457
|
-
&.@{tabs-prefix-cls}-navs-left,
|
|
12469
|
+
&.@{tabs-prefix-cls}-navs-left,
|
|
12470
|
+
&.@{tabs-prefix-cls}-navs-right {
|
|
12458
12471
|
min-width: 120px;
|
|
12459
12472
|
height: 100%;
|
|
12460
12473
|
font-size: 0;
|
|
12461
12474
|
border-top: 1px solid transparent;
|
|
12462
|
-
&::before,
|
|
12475
|
+
&::before,
|
|
12476
|
+
&::after {
|
|
12463
12477
|
position: absolute;
|
|
12464
12478
|
content: '';
|
|
12465
12479
|
display: inline-block;
|
|
@@ -12498,12 +12512,12 @@ template {
|
|
|
12498
12512
|
&-dynamic {
|
|
12499
12513
|
background-color: @tabs-card-bg;
|
|
12500
12514
|
border-bottom: unset;
|
|
12501
|
-
height:
|
|
12515
|
+
height: @tab-pane-type-dynamic-height;
|
|
12502
12516
|
.@{tabs-prefix-cls}-tab-wrap {
|
|
12503
|
-
height:
|
|
12517
|
+
height: @tab-pane-type-dynamic-height;
|
|
12504
12518
|
}
|
|
12505
12519
|
.@{tabs-prefix-cls}-more-btn {
|
|
12506
|
-
line-height:
|
|
12520
|
+
line-height: @tab-pane-type-dynamic-height;
|
|
12507
12521
|
}
|
|
12508
12522
|
}
|
|
12509
12523
|
&-small:not(.@{tabs-prefix-cls}-navs-left):not(.@{tabs-prefix-cls}-navs-right) {
|
|
@@ -12519,7 +12533,8 @@ template {
|
|
|
12519
12533
|
&-text {
|
|
12520
12534
|
display: inline-block;
|
|
12521
12535
|
transition: color @tab-g-motion-duration;
|
|
12522
|
-
&-active,
|
|
12536
|
+
&-active,
|
|
12537
|
+
&:hover {
|
|
12523
12538
|
color: @tabPane-font-color-active;
|
|
12524
12539
|
}
|
|
12525
12540
|
&-disabled {
|
|
@@ -12535,35 +12550,28 @@ template {
|
|
|
12535
12550
|
color: @tabPane-font-color-disabled;
|
|
12536
12551
|
}
|
|
12537
12552
|
}
|
|
12553
|
+
&-type-line {
|
|
12554
|
+
padding: 0 @tab-pane-line-paddinng-horizontal;
|
|
12555
|
+
}
|
|
12538
12556
|
&-type-card {
|
|
12539
12557
|
margin-right: 0;
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
}
|
|
12558
|
+
padding: 0 @tab-pane-card-paddinng-horizontal;
|
|
12559
|
+
border: 1px solid transparent;
|
|
12543
12560
|
&.@{tabPane-prefix-cls}-box-active {
|
|
12544
12561
|
background-color: #fff;
|
|
12545
12562
|
border: 1px solid @tabs-border-color;
|
|
12546
12563
|
border-top: 2px solid;
|
|
12547
12564
|
border-color: @tab-line-color-active @tabs-border-color transparent @tabs-border-color;
|
|
12548
|
-
transition: background-color .2s @tab-transition-fn;
|
|
12565
|
+
transition: background-color 0.2s @tab-transition-fn;
|
|
12549
12566
|
&:first-of-type {
|
|
12550
|
-
border-left:
|
|
12551
|
-
}
|
|
12552
|
-
}
|
|
12553
|
-
&.@{tabPane-prefix-cls}-left, &.@{tabPane-prefix-cls}-right {
|
|
12554
|
-
width: 100%;
|
|
12555
|
-
padding: 0;
|
|
12556
|
-
text-align: center;
|
|
12557
|
-
border-top: 1px solid @tabs-border-color;
|
|
12558
|
-
&:last-of-type {
|
|
12559
|
-
border-bottom: 1px solid @tabs-border-color;
|
|
12567
|
+
border-left-color: transparent;
|
|
12560
12568
|
}
|
|
12561
12569
|
}
|
|
12562
12570
|
&.@{tabPane-prefix-cls}-left {
|
|
12563
|
-
border-left:
|
|
12571
|
+
border-left: 2px solid transparent;
|
|
12564
12572
|
&.@{tabPane-prefix-cls}-box-active {
|
|
12565
|
-
border-left: 2px solid
|
|
12566
|
-
border-
|
|
12573
|
+
border-left: 2px solid;
|
|
12574
|
+
border-color: @tabs-border-color transparent transparent @tab-line-color-active;
|
|
12567
12575
|
}
|
|
12568
12576
|
}
|
|
12569
12577
|
&.@{tabPane-prefix-cls}-right {
|
|
@@ -12573,20 +12581,43 @@ template {
|
|
|
12573
12581
|
border-left: 1px solid transparent;
|
|
12574
12582
|
}
|
|
12575
12583
|
}
|
|
12584
|
+
&.@{tabPane-prefix-cls}-left,
|
|
12585
|
+
&.@{tabPane-prefix-cls}-right {
|
|
12586
|
+
width: 100%;
|
|
12587
|
+
border-top: 1px solid @tabs-border-color;
|
|
12588
|
+
&:last-of-type {
|
|
12589
|
+
border-bottom: 1px solid @tabs-border-color;
|
|
12590
|
+
}
|
|
12591
|
+
}
|
|
12576
12592
|
&.@{tabPane-prefix-cls}-bottom {
|
|
12593
|
+
border-top: 1px solid transparent;
|
|
12594
|
+
border-bottom: 2px solid transparent;
|
|
12577
12595
|
&.@{tabPane-prefix-cls}-box-active {
|
|
12578
12596
|
border-bottom: 2px solid;
|
|
12579
|
-
border-color:
|
|
12597
|
+
border-color: transparent @tabs-border-color @tab-line-color-active @tabs-border-color;
|
|
12598
|
+
&:first-of-type {
|
|
12599
|
+
border-left-color: transparent;
|
|
12600
|
+
}
|
|
12601
|
+
}
|
|
12602
|
+
}
|
|
12603
|
+
&.@{tabPane-prefix-cls}-top {
|
|
12604
|
+
border-top: 2px solid transparent;
|
|
12605
|
+
&.@{tabPane-prefix-cls}-box-active {
|
|
12606
|
+
border-top: 2px solid;
|
|
12607
|
+
border-color: @tab-line-color-active @tabs-border-color transparent @tabs-border-color;
|
|
12608
|
+
&:first-of-type {
|
|
12609
|
+
border-left-color: transparent;
|
|
12610
|
+
}
|
|
12580
12611
|
}
|
|
12581
12612
|
}
|
|
12582
12613
|
}
|
|
12583
12614
|
&-type-dynamic {
|
|
12584
|
-
height:
|
|
12585
|
-
line-height:
|
|
12586
|
-
margin: 0 0 0
|
|
12615
|
+
height: @tab-pane-type-dynamic-height;
|
|
12616
|
+
line-height: @tab-pane-type-dynamic-height;
|
|
12617
|
+
margin: 0 0 0 4px;
|
|
12587
12618
|
display: inline-flex;
|
|
12588
12619
|
align-items: center;
|
|
12589
|
-
&:hover {
|
|
12620
|
+
&:not(.@{tabPane-prefix-cls}-disabled):hover {
|
|
12590
12621
|
.@{tabPane-prefix-cls}-operations {
|
|
12591
12622
|
span:first-child {
|
|
12592
12623
|
opacity: 1;
|
|
@@ -12595,13 +12626,13 @@ template {
|
|
|
12595
12626
|
}
|
|
12596
12627
|
}
|
|
12597
12628
|
.@{tabPane-prefix-cls}-operations .@{icon-prefix-cls} {
|
|
12598
|
-
font-size:
|
|
12629
|
+
font-size: 16px;
|
|
12599
12630
|
}
|
|
12600
12631
|
}
|
|
12601
12632
|
&-type-grid {
|
|
12602
12633
|
height: 24px;
|
|
12603
12634
|
line-height: 22px;
|
|
12604
|
-
padding: 0
|
|
12635
|
+
padding: 0 @tab-pane-grid-paddinng-horizontal;
|
|
12605
12636
|
border: 1px solid @tabs-border-color;
|
|
12606
12637
|
margin-right: -1px;
|
|
12607
12638
|
&:first-of-type {
|
|
@@ -12615,7 +12646,7 @@ template {
|
|
|
12615
12646
|
z-index: 2;
|
|
12616
12647
|
background-color: @tab-line-color-active;
|
|
12617
12648
|
border: 1px solid @tab-line-color-active;
|
|
12618
|
-
transition: background-color .2s @tab-transition-fn;
|
|
12649
|
+
transition: background-color 0.2s @tab-transition-fn;
|
|
12619
12650
|
.@{tabPane-prefix-cls}-text-active {
|
|
12620
12651
|
color: #fff;
|
|
12621
12652
|
}
|
|
@@ -12631,24 +12662,13 @@ template {
|
|
|
12631
12662
|
position: relative;
|
|
12632
12663
|
display: inline-block;
|
|
12633
12664
|
line-height: 1;
|
|
12634
|
-
padding: 0
|
|
12665
|
+
padding: 0 4px;
|
|
12635
12666
|
span:first-child {
|
|
12636
12667
|
display: inline-block;
|
|
12637
12668
|
vertical-align: top;
|
|
12638
12669
|
font-size: 0;
|
|
12639
12670
|
opacity: 0;
|
|
12640
12671
|
}
|
|
12641
|
-
&::after {
|
|
12642
|
-
position: absolute;
|
|
12643
|
-
content: '';
|
|
12644
|
-
width: 1px;
|
|
12645
|
-
height: 14px;
|
|
12646
|
-
background-color: @tabs-border-color;
|
|
12647
|
-
right: 0;
|
|
12648
|
-
top: 50%;
|
|
12649
|
-
opacity: 1;
|
|
12650
|
-
transform: translateY(-50%);
|
|
12651
|
-
}
|
|
12652
12672
|
}
|
|
12653
12673
|
&-small {
|
|
12654
12674
|
height: 36px;
|
|
@@ -12672,8 +12692,6 @@ template {
|
|
|
12672
12692
|
display: inline-block;
|
|
12673
12693
|
box-sizing: border-box;
|
|
12674
12694
|
width: 48px;
|
|
12675
|
-
height: 100%;
|
|
12676
|
-
line-height: 46px;
|
|
12677
12695
|
text-align: center;
|
|
12678
12696
|
cursor: pointer;
|
|
12679
12697
|
&:hover {
|
|
@@ -12684,7 +12702,7 @@ template {
|
|
|
12684
12702
|
}
|
|
12685
12703
|
&-dynamic {
|
|
12686
12704
|
width: 24px;
|
|
12687
|
-
line-height:
|
|
12705
|
+
line-height: @tab-pane-type-dynamic-height;
|
|
12688
12706
|
}
|
|
12689
12707
|
&-disabled {
|
|
12690
12708
|
color: @tabPane-font-color-disabled;
|
|
@@ -12699,16 +12717,12 @@ template {
|
|
|
12699
12717
|
}
|
|
12700
12718
|
|
|
12701
12719
|
|
|
12720
|
+
|
|
12702
12721
|
.tabs() {
|
|
12703
12722
|
display: flex;
|
|
12704
12723
|
flex-direction: column;
|
|
12705
12724
|
flex-wrap: nowrap;
|
|
12706
12725
|
height: 100%;
|
|
12707
|
-
// box-sizing: border-box;
|
|
12708
|
-
// width: 100%;
|
|
12709
|
-
// height: @tabs-height;
|
|
12710
|
-
// color: @tabs-font-color;
|
|
12711
|
-
// border-bottom: @tabs-border-width solid @tabs-border-color;
|
|
12712
12726
|
}
|
|
12713
12727
|
.tabNavs() {
|
|
12714
12728
|
position: relative;
|
|
@@ -12728,7 +12742,6 @@ template {
|
|
|
12728
12742
|
color: @tabs-font-color;
|
|
12729
12743
|
height: @tab-pane-height;
|
|
12730
12744
|
line-height: @tab-pane-line-height;
|
|
12731
|
-
margin-right: @tab-pane-margin-right;
|
|
12732
12745
|
cursor: pointer;
|
|
12733
12746
|
}
|
|
12734
12747
|
|
|
@@ -12739,7 +12752,7 @@ template {
|
|
|
12739
12752
|
@tabs-border-color: var(~'@{tabs-custom-prefix}-color-border', @color-border-strong);
|
|
12740
12753
|
@tab-line-color-active: var(~'@{tabs-custom-prefix}-line-color-active', @color-theme);
|
|
12741
12754
|
@tabs-card-bg: var(~'@{tabs-custom-prefix}-card-color-background', @color-background-contain-disabled);
|
|
12742
|
-
@tab-disabled-bg: var(~'@{tabs-custom-prefix}-color-background-disabled',
|
|
12755
|
+
@tab-disabled-bg: var(~'@{tabs-custom-prefix}-color-background-disabled', transparent);
|
|
12743
12756
|
@tabs-font-color: var(~'@{tabs-custom-prefix}-color-text', @color-text-secondary);
|
|
12744
12757
|
@tabPane-font-color-active: var(~'@{tabs-custom-prefix}-color-text-active', @color-theme);
|
|
12745
12758
|
@tabPane-font-color-hover: var(~'@{tabs-custom-prefix}-color-text-hover', @color-theme);
|
|
@@ -12749,7 +12762,7 @@ template {
|
|
|
12749
12762
|
@tabPane-font-size: var(~'@{tabs-custom-prefix}-pane-font-size', @font-size-middle);
|
|
12750
12763
|
|
|
12751
12764
|
// line-height
|
|
12752
|
-
@tab-pane-line-height: var(~'@{tabs-custom-prefix}-pane-
|
|
12765
|
+
@tab-pane-line-height: var(~'@{tabs-custom-prefix}-pane-height', 48px);
|
|
12753
12766
|
|
|
12754
12767
|
// motion
|
|
12755
12768
|
@tab-transition-fn: var(~'@{tabs-custom-prefix}-motion-timing-function', cubic-bezier(0.42, 0, 1, 1));
|
|
@@ -12759,10 +12772,15 @@ template {
|
|
|
12759
12772
|
@tabs-height: var(~'@{tabs-custom-prefix}-sizing-height', 48px);
|
|
12760
12773
|
@tabs-border-width: var(~'@{tabs-custom-prefix}-sizing-border', 1px);
|
|
12761
12774
|
@tab-pane-height: var(~'@{tabs-custom-prefix}-pane-sizing-height', 48px);
|
|
12775
|
+
@tab-pane-type-line-height-small: var(~'@{tabs-custom-prefix}-pane-type-line-sizing-height-small', 32px);
|
|
12776
|
+
@tab-pane-type-line-height-middle: var(~'@{tabs-custom-prefix}-pane-type-line-sizing-height-middle', 32px);
|
|
12777
|
+
@tab-pane-type-dynamic-height: var(~'@{tabs-custom-prefix}-pane-type-dynamic-sizing-height', 32px);
|
|
12762
12778
|
|
|
12763
12779
|
|
|
12764
12780
|
// spacing
|
|
12765
|
-
@tab-pane-
|
|
12781
|
+
@tab-pane-line-paddinng-horizontal: var(~'@{tabs-custom-prefix}-pane-line-paddinng-horizontal', 20px);
|
|
12782
|
+
@tab-pane-card-paddinng-horizontal: var(~'@{tabs-custom-prefix}-pane-card-paddinng-horizontal', 18px);
|
|
12783
|
+
@tab-pane-grid-paddinng-horizontal: var(~'@{tabs-custom-prefix}-pane-grid-paddinng-horizontal', 20px);
|
|
12766
12784
|
|
|
12767
12785
|
|
|
12768
12786
|
|
|
@@ -13497,9 +13515,6 @@ template {
|
|
|
13497
13515
|
& + .@{kd-prefix}-btn {
|
|
13498
13516
|
margin-top: 20px;
|
|
13499
13517
|
}
|
|
13500
|
-
.@{kd-prefix}-btn-iconWrapper-left {
|
|
13501
|
-
float: none;
|
|
13502
|
-
}
|
|
13503
13518
|
}
|
|
13504
13519
|
}
|
|
13505
13520
|
}
|
|
@@ -13551,6 +13566,7 @@ template {
|
|
|
13551
13566
|
flex-grow: 1;
|
|
13552
13567
|
font-size: @tree-font-size;
|
|
13553
13568
|
color: @tree-color-text;
|
|
13569
|
+
margin-left: @tree-margin-left;
|
|
13554
13570
|
&-root {
|
|
13555
13571
|
min-width: 100%;
|
|
13556
13572
|
flex-shrink: 0;
|
|
@@ -13570,7 +13586,7 @@ template {
|
|
|
13570
13586
|
align-items: center;
|
|
13571
13587
|
|
|
13572
13588
|
.@{kd-prefix}-spin-dot-spin {
|
|
13573
|
-
border:
|
|
13589
|
+
border: 2px solid transparent;
|
|
13574
13590
|
width: @tree-expand-icon-loading-width;
|
|
13575
13591
|
height: @tree-expand-icon-loading-height;
|
|
13576
13592
|
|
|
@@ -13587,7 +13603,7 @@ template {
|
|
|
13587
13603
|
display: flex;
|
|
13588
13604
|
align-items: center;
|
|
13589
13605
|
|
|
13590
|
-
.node-hover()
|
|
13606
|
+
.node-hover();
|
|
13591
13607
|
}
|
|
13592
13608
|
|
|
13593
13609
|
&-indent {
|
|
@@ -13655,14 +13671,14 @@ template {
|
|
|
13655
13671
|
.node-hover();
|
|
13656
13672
|
|
|
13657
13673
|
&-selected {
|
|
13658
|
-
.node-selected()
|
|
13674
|
+
.node-selected();
|
|
13659
13675
|
}
|
|
13660
13676
|
}
|
|
13661
13677
|
&-title {
|
|
13662
13678
|
white-space: nowrap;
|
|
13663
13679
|
}
|
|
13664
13680
|
&-selected {
|
|
13665
|
-
.node-selected()
|
|
13681
|
+
.node-selected();
|
|
13666
13682
|
}
|
|
13667
13683
|
|
|
13668
13684
|
&-draggabled {
|
|
@@ -13756,6 +13772,7 @@ template {
|
|
|
13756
13772
|
@tree-expand-icon-loading-width: var(~'@{tree-prefix}-expand-icon-loading-sizing-width', 16px);
|
|
13757
13773
|
@tree-node-icon-height: var(~'@{tree-prefix}-node-icon-sizing-height', 16px);
|
|
13758
13774
|
@tree-node-icon-width: var(~'@{tree-prefix}-node-icon-sizing-width', 16px);
|
|
13775
|
+
@tree-margin-left: var(~'@{tree-prefix}-spacing-margin-left', 16px);
|
|
13759
13776
|
|
|
13760
13777
|
// font
|
|
13761
13778
|
@tree-font-size: var(~'@{tree-prefix}-font-size', @font-size-small);
|
|
@@ -13766,6 +13783,7 @@ template {
|
|
|
13766
13783
|
|
|
13767
13784
|
|
|
13768
13785
|
|
|
13786
|
+
|
|
13769
13787
|
@typography-prefix-cls: ~'@{kd-prefix}-typography';
|
|
13770
13788
|
.@{typography-prefix-cls} {
|
|
13771
13789
|
color: @typography-color-text-primary;
|
|
@@ -14085,13 +14103,14 @@ template {
|
|
|
14085
14103
|
|
|
14086
14104
|
.@{upload-prefix-text-list-cls} {
|
|
14087
14105
|
.reset-component;
|
|
14088
|
-
margin-top:
|
|
14106
|
+
margin-top: @upload-text-list-margin-top;
|
|
14089
14107
|
font-size: @upload-font-size;
|
|
14090
14108
|
border-top: 1px dashed @upload-border-color-strong;
|
|
14091
14109
|
|
|
14092
14110
|
&-item {
|
|
14093
14111
|
position: relative;
|
|
14094
|
-
padding:
|
|
14112
|
+
padding: 0 @upload-text-list-item-padding-horizontal;
|
|
14113
|
+
height: @upload-list-item-height;
|
|
14095
14114
|
overflow: hidden;
|
|
14096
14115
|
white-space: nowrap;
|
|
14097
14116
|
display: flex;
|
|
@@ -14116,9 +14135,13 @@ template {
|
|
|
14116
14135
|
}
|
|
14117
14136
|
}
|
|
14118
14137
|
|
|
14138
|
+
&-icon > i {
|
|
14139
|
+
font-size: @upload-font-size;
|
|
14140
|
+
}
|
|
14141
|
+
|
|
14119
14142
|
&-name {
|
|
14120
14143
|
display: inline-block;
|
|
14121
|
-
margin: 0
|
|
14144
|
+
margin: 0 @upload-text-list-item-name-padding-right 0 @upload-text-list-item-name-padding-left;
|
|
14122
14145
|
.ellipsis;
|
|
14123
14146
|
color: @upload-panel-color;
|
|
14124
14147
|
}
|
|
@@ -14131,7 +14154,9 @@ template {
|
|
|
14131
14154
|
position: absolute;
|
|
14132
14155
|
top: 0;
|
|
14133
14156
|
right: 0;
|
|
14134
|
-
padding:
|
|
14157
|
+
padding: 0 @upload-text-list-item-padding-horizontal;
|
|
14158
|
+
height: @upload-list-item-height;
|
|
14159
|
+
line-height: @upload-list-item-height;
|
|
14135
14160
|
background-color: transparent;
|
|
14136
14161
|
opacity: 0;
|
|
14137
14162
|
visibility: hidden;
|
|
@@ -14211,6 +14236,7 @@ template {
|
|
|
14211
14236
|
|
|
14212
14237
|
&.error {
|
|
14213
14238
|
border-color: @upload-border-error-color;
|
|
14239
|
+
background-color: @upload-background-error-color;
|
|
14214
14240
|
}
|
|
14215
14241
|
|
|
14216
14242
|
&-loading {
|
|
@@ -14235,7 +14261,7 @@ template {
|
|
|
14235
14261
|
justify-content: center;
|
|
14236
14262
|
|
|
14237
14263
|
&-text {
|
|
14238
|
-
margin-bottom:
|
|
14264
|
+
margin-bottom: 4px;
|
|
14239
14265
|
color: @upload-text-error-color;
|
|
14240
14266
|
}
|
|
14241
14267
|
|
|
@@ -14246,6 +14272,11 @@ template {
|
|
|
14246
14272
|
}
|
|
14247
14273
|
}
|
|
14248
14274
|
}
|
|
14275
|
+
|
|
14276
|
+
&-action > a {
|
|
14277
|
+
color: @upload-panel-button-color;
|
|
14278
|
+
font-size: @upload-picture-action-font-size;
|
|
14279
|
+
}
|
|
14249
14280
|
}
|
|
14250
14281
|
}
|
|
14251
14282
|
}
|
|
@@ -14258,6 +14289,7 @@ template {
|
|
|
14258
14289
|
@upload-text-color: var(~'@{upload-prefix}-color', @color-text-third);
|
|
14259
14290
|
|
|
14260
14291
|
@upload-text-error-color: var(~'@{upload-prefix}-error-color', @color-error);
|
|
14292
|
+
@upload-background-error-color: var(~'@{upload-prefix}-color-background-error', @color-background-error);
|
|
14261
14293
|
@upload-border-error-color: var(~'@{upload-prefix}-color-border-error', @color-border-error);
|
|
14262
14294
|
@upload-border-color: var(~'@{upload-prefix}-color-border', @color-border-weak);
|
|
14263
14295
|
@upload-border-color-strong: var(~'@{upload-prefix}-division-color', @color-border-strong);
|
|
@@ -14274,8 +14306,18 @@ template {
|
|
|
14274
14306
|
|
|
14275
14307
|
// font
|
|
14276
14308
|
@upload-font-size: var(~'@{upload-prefix}-font-size', @font-size-middle);
|
|
14309
|
+
@upload-picture-action-font-size: var(~'@{upload-prefix}-picture-action-font-size', @font-size-small);
|
|
14277
14310
|
|
|
14278
14311
|
// radius
|
|
14279
14312
|
@upload-border-radius: var(~'@{upload-prefix}-radius-border', @radius-border);
|
|
14280
14313
|
|
|
14314
|
+
// sizing
|
|
14315
|
+
@upload-list-item-height: var(~'@{upload-prefix}-list-item-height', 44px);
|
|
14316
|
+
|
|
14317
|
+
//spacing
|
|
14318
|
+
@upload-text-list-margin-top: var(~'@{upload-prefix}-text-list-margin-top', 16px);
|
|
14319
|
+
@upload-text-list-item-padding-horizontal: var(~'@{upload-prefix}-text-list-item-padding-horizontal', 20px);
|
|
14320
|
+
@upload-text-list-item-name-padding-left: var(~'@{upload-prefix}-text-list-item-name-padding-left', 4px);
|
|
14321
|
+
@upload-text-list-item-name-padding-right: var(~'@{upload-prefix}-text-list-item-name-padding-right', 8px);
|
|
14322
|
+
|
|
14281
14323
|
|