@kdcloudjs/kdesign 1.6.16 → 1.6.18
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 +24 -0
- package/dist/kdesign-complete.less +38 -7
- package/dist/kdesign.css +46 -24
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +134 -177
- 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/usePopper.js +2 -0
- package/es/checkbox/checkbox.d.ts +1 -4
- package/es/checkbox/checkbox.js +26 -19
- package/es/checkbox/group.d.ts +11 -1
- package/es/checkbox/group.js +43 -71
- package/es/checkbox/index.d.ts +2 -1
- package/es/checkbox/index.js +1 -1
- package/es/checkbox/style/index.css +3 -0
- package/es/checkbox/style/index.less +3 -0
- package/es/config-provider/compDefaultProps.d.ts +4 -1
- package/es/config-provider/compDefaultProps.js +4 -1
- package/es/message/index.js +1 -1
- package/es/select/select.js +4 -7
- package/es/select/style/index.css +32 -23
- package/es/select/style/index.less +23 -7
- package/es/stepper/style/index.css +2 -0
- package/es/stepper/style/index.less +3 -0
- package/es/tag/style/index.css +8 -0
- package/es/tag/style/index.less +9 -0
- package/es/tag/tag.js +5 -1
- package/lib/_utils/usePopper.js +2 -0
- package/lib/checkbox/checkbox.d.ts +1 -4
- package/lib/checkbox/checkbox.js +32 -25
- package/lib/checkbox/group.d.ts +11 -1
- package/lib/checkbox/group.js +49 -75
- package/lib/checkbox/index.d.ts +2 -1
- package/lib/checkbox/index.js +4 -4
- package/lib/checkbox/style/index.css +3 -0
- package/lib/checkbox/style/index.less +3 -0
- package/lib/config-provider/compDefaultProps.d.ts +4 -1
- package/lib/config-provider/compDefaultProps.js +4 -1
- package/lib/message/index.js +1 -1
- package/lib/select/select.js +4 -7
- package/lib/select/style/index.css +32 -23
- package/lib/select/style/index.less +23 -7
- package/lib/stepper/style/index.css +2 -0
- package/lib/stepper/style/index.less +3 -0
- package/lib/tag/style/index.css +8 -0
- package/lib/tag/style/index.less +9 -0
- package/lib/tag/tag.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## [1.6.17](https://github.com/kdcloudone/kdesign/compare/v1.6.16...v1.6.17) (2022-11-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [checkbox 配置穿透和受控修复] ([ca7434a](https://github.com/kdcloudone/kdesign/commit/ca7434adf80856177e430a648a8c4d61c4653f9f))
|
|
7
|
+
* [stepper padding-left改为9px] ([80dc099](https://github.com/kdcloudone/kdesign/commit/80dc099a27aead676525dafbafee3627eaa3626a))
|
|
8
|
+
* [usePoper] popperRef所在的区域mouseleave被禁止了后无法消失 ([e77acaf](https://github.com/kdcloudone/kdesign/commit/e77acafca9b514947194f6280e74c779e819a599))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## [1.6.16](https://github.com/kdcloudone/kdesign/compare/v1.6.15...v1.6.16) (2022-11-24)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* [cli] 更新国际化文档 ([10d5058](https://github.com/kdcloudone/kdesign/commit/10d50589ac5722bdc8720a84bfeb07ecf3f7106b))
|
|
18
|
+
* [date-picker]修复allowClear显示错误 ([0134537](https://github.com/kdcloudone/kdesign/commit/013453791fc7e451dfe24550fac1fc3588b67e6e))
|
|
19
|
+
* [modal] 修复弹窗内容过高时导致头部跟尾部高度被压缩问题 ([5fb169a](https://github.com/kdcloudone/kdesign/commit/5fb169a431521bdbf5906ab8b53256a8c72daed3))
|
|
20
|
+
* [select] 修复Option的value设置为number类型,删除tag异常的问题 ([c85f81c](https://github.com/kdcloudone/kdesign/commit/c85f81cb2741079cca4401895ed200c75530e085))
|
|
21
|
+
* [select] demo调整 ([98043d2](https://github.com/kdcloudone/kdesign/commit/98043d2b922e1d44841236801363d0299737d4f7))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
1
25
|
## [1.6.15](https://github.com/kdcloudone/kdesign/compare/v1.6.14...v1.6.15) (2022-11-17)
|
|
2
26
|
|
|
3
27
|
|
|
@@ -2043,6 +2043,9 @@
|
|
|
2043
2043
|
align-items: center;
|
|
2044
2044
|
z-index: 999;
|
|
2045
2045
|
user-select: none;
|
|
2046
|
+
overflow: hidden;
|
|
2047
|
+
white-space: nowrap;
|
|
2048
|
+
text-overflow: ellipsis;
|
|
2046
2049
|
|
|
2047
2050
|
.kd-input-underline {
|
|
2048
2051
|
background-color: transparent;
|
|
@@ -8894,7 +8897,6 @@ textarea {
|
|
|
8894
8897
|
box-sizing: border-box;
|
|
8895
8898
|
background-color: transparent;
|
|
8896
8899
|
cursor: pointer;
|
|
8897
|
-
margin: 0 8px 2px 0;
|
|
8898
8900
|
vertical-align: middle;
|
|
8899
8901
|
|
|
8900
8902
|
&-selector:hover {
|
|
@@ -9042,10 +9044,15 @@ textarea {
|
|
|
9042
9044
|
min-width: 75px;
|
|
9043
9045
|
|
|
9044
9046
|
&-content {
|
|
9045
|
-
display: flex;
|
|
9046
|
-
align-items: center;
|
|
9047
|
-
flex: auto;
|
|
9048
9047
|
.over();
|
|
9048
|
+
|
|
9049
|
+
.@{kd-prefix}-checkbox {
|
|
9050
|
+
width: 100%;
|
|
9051
|
+
|
|
9052
|
+
.@{kd-prefix}-checkbox-children {
|
|
9053
|
+
display: inline-block;
|
|
9054
|
+
}
|
|
9055
|
+
}
|
|
9049
9056
|
}
|
|
9050
9057
|
|
|
9051
9058
|
&:hover:not(&-selected):not(&-disabled) {
|
|
@@ -9092,7 +9099,7 @@ textarea {
|
|
|
9092
9099
|
justify-content: center;
|
|
9093
9100
|
margin-left: 8px;
|
|
9094
9101
|
}
|
|
9095
|
-
|
|
9102
|
+
.@{select-prefix-cls}-single {
|
|
9096
9103
|
.@{select-prefix-cls}-selection {
|
|
9097
9104
|
&-search {
|
|
9098
9105
|
position: absolute;
|
|
@@ -9108,6 +9115,10 @@ textarea {
|
|
|
9108
9115
|
width: 100%;
|
|
9109
9116
|
}
|
|
9110
9117
|
}
|
|
9118
|
+
&-item {
|
|
9119
|
+
display: inline-block;
|
|
9120
|
+
.over();
|
|
9121
|
+
}
|
|
9111
9122
|
}
|
|
9112
9123
|
&-focused {
|
|
9113
9124
|
.focusColor();
|
|
@@ -9154,14 +9165,14 @@ textarea {
|
|
|
9154
9165
|
cursor: default;
|
|
9155
9166
|
user-select: none;
|
|
9156
9167
|
&-small {
|
|
9157
|
-
height:
|
|
9168
|
+
height: 20px;
|
|
9158
9169
|
line-height: 18px;
|
|
9159
9170
|
font-size: 12px;
|
|
9160
9171
|
}
|
|
9161
9172
|
|
|
9162
9173
|
&-middle {
|
|
9163
9174
|
font-size: 12px;
|
|
9164
|
-
height:
|
|
9175
|
+
height: 20px;
|
|
9165
9176
|
line-height: 18px;
|
|
9166
9177
|
}
|
|
9167
9178
|
|
|
@@ -9204,6 +9215,14 @@ textarea {
|
|
|
9204
9215
|
// 多选
|
|
9205
9216
|
&-multiple {
|
|
9206
9217
|
.@{select-prefix-cls}-selection {
|
|
9218
|
+
&-tag {
|
|
9219
|
+
max-width: calc(100% - 5px);
|
|
9220
|
+
|
|
9221
|
+
.@{kd-prefix}-tag {
|
|
9222
|
+
margin: 2px 8px 2px 0;
|
|
9223
|
+
max-width: 100%;
|
|
9224
|
+
}
|
|
9225
|
+
}
|
|
9207
9226
|
&-search {
|
|
9208
9227
|
position: relative;
|
|
9209
9228
|
max-width: 100%;
|
|
@@ -10089,10 +10108,13 @@ textarea {
|
|
|
10089
10108
|
|
|
10090
10109
|
|
|
10091
10110
|
@inputNumber-prefix-cls: ~'@{kd-prefix}-inputNumber';
|
|
10111
|
+
@inputWrapper-prefix-cls: ~'@{kd-prefix}-wrapper';
|
|
10092
10112
|
.@{inputNumber-prefix-cls} {
|
|
10093
10113
|
width: 100px;
|
|
10094
10114
|
height: @stepper-input-middle-sizing-height;
|
|
10095
10115
|
|
|
10116
|
+
--kd-c-input-wrapper-padding-left: 9px;
|
|
10117
|
+
--kd-c-input-padding-left: 0;
|
|
10096
10118
|
input {
|
|
10097
10119
|
text-align: center;
|
|
10098
10120
|
color: @stepper-input-color;
|
|
@@ -12897,6 +12919,12 @@ template {
|
|
|
12897
12919
|
@colors: @tag-process-color, @tag-success-color, @tag-warning-color, @tag-error-color, @tag-end-color, @tag-expired-color;
|
|
12898
12920
|
|
|
12899
12921
|
.@{tag-prefix-cls} {
|
|
12922
|
+
&-ellipsis {
|
|
12923
|
+
white-space: nowrap;
|
|
12924
|
+
overflow: hidden;
|
|
12925
|
+
text-overflow: ellipsis;
|
|
12926
|
+
}
|
|
12927
|
+
|
|
12900
12928
|
&-size-small {
|
|
12901
12929
|
.tag-size(@tag-small-font-size, @tag-small-height, @tag-small-padding-horizontal);
|
|
12902
12930
|
}
|
|
@@ -12979,6 +13007,9 @@ template {
|
|
|
12979
13007
|
// 图标设置外边距
|
|
12980
13008
|
&-text {
|
|
12981
13009
|
margin-left: 6px;
|
|
13010
|
+
white-space: nowrap;
|
|
13011
|
+
overflow: hidden;
|
|
13012
|
+
text-overflow: ellipsis;
|
|
12982
13013
|
}
|
|
12983
13014
|
|
|
12984
13015
|
&-closable-disabled {
|
package/dist/kdesign.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.6.
|
|
3
|
+
* @kdcloudjs/kdesign v1.6.17
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -4807,6 +4807,9 @@ template {
|
|
|
4807
4807
|
-moz-user-select: none;
|
|
4808
4808
|
-ms-user-select: none;
|
|
4809
4809
|
user-select: none;
|
|
4810
|
+
overflow: hidden;
|
|
4811
|
+
white-space: nowrap;
|
|
4812
|
+
text-overflow: ellipsis;
|
|
4810
4813
|
}
|
|
4811
4814
|
.kd-checkbox-children .kd-input-underline {
|
|
4812
4815
|
background-color: transparent;
|
|
@@ -14120,7 +14123,6 @@ textarea {
|
|
|
14120
14123
|
box-sizing: border-box;
|
|
14121
14124
|
background-color: transparent;
|
|
14122
14125
|
cursor: pointer;
|
|
14123
|
-
margin: 0 8px 2px 0;
|
|
14124
14126
|
vertical-align: middle;
|
|
14125
14127
|
}
|
|
14126
14128
|
.kd-select-selector:hover .kd-select-icon-active {
|
|
@@ -14274,19 +14276,16 @@ textarea {
|
|
|
14274
14276
|
min-width: 75px;
|
|
14275
14277
|
}
|
|
14276
14278
|
.kd-select-item-option-content {
|
|
14277
|
-
display: -webkit-box;
|
|
14278
|
-
display: -ms-flexbox;
|
|
14279
|
-
display: flex;
|
|
14280
|
-
-webkit-box-align: center;
|
|
14281
|
-
-ms-flex-align: center;
|
|
14282
|
-
align-items: center;
|
|
14283
|
-
-webkit-box-flex: 1;
|
|
14284
|
-
-ms-flex: auto;
|
|
14285
|
-
flex: auto;
|
|
14286
14279
|
overflow: hidden;
|
|
14287
14280
|
white-space: nowrap;
|
|
14288
14281
|
text-overflow: ellipsis;
|
|
14289
14282
|
}
|
|
14283
|
+
.kd-select-item-option-content .kd-checkbox {
|
|
14284
|
+
width: 100%;
|
|
14285
|
+
}
|
|
14286
|
+
.kd-select-item-option-content .kd-checkbox .kd-checkbox-children {
|
|
14287
|
+
display: inline-block;
|
|
14288
|
+
}
|
|
14290
14289
|
.kd-select-item-option:hover:not(.kd-select-item-option-selected):not(.kd-select-item-option-disabled) {
|
|
14291
14290
|
background-color: var(--kd-c-select-color-background, #f5f5f5);
|
|
14292
14291
|
}
|
|
@@ -14336,13 +14335,13 @@ textarea {
|
|
|
14336
14335
|
justify-content: center;
|
|
14337
14336
|
margin-left: 8px;
|
|
14338
14337
|
}
|
|
14339
|
-
.kd-select-single .kd-select-selection-search {
|
|
14338
|
+
.kd-select .kd-select-single .kd-select-selection-search {
|
|
14340
14339
|
position: absolute;
|
|
14341
14340
|
right: 28px;
|
|
14342
14341
|
left: 0;
|
|
14343
14342
|
height: 100%;
|
|
14344
14343
|
}
|
|
14345
|
-
.kd-select-single .kd-select-selection-search-input {
|
|
14344
|
+
.kd-select .kd-select-single .kd-select-selection-search-input {
|
|
14346
14345
|
outline: 0;
|
|
14347
14346
|
border-radius: 0;
|
|
14348
14347
|
border: none;
|
|
@@ -14350,35 +14349,41 @@ textarea {
|
|
|
14350
14349
|
height: 100%;
|
|
14351
14350
|
width: 100%;
|
|
14352
14351
|
}
|
|
14353
|
-
.kd-select-single-
|
|
14352
|
+
.kd-select .kd-select-single .kd-select-selection-item {
|
|
14353
|
+
display: inline-block;
|
|
14354
|
+
overflow: hidden;
|
|
14355
|
+
white-space: nowrap;
|
|
14356
|
+
text-overflow: ellipsis;
|
|
14357
|
+
}
|
|
14358
|
+
.kd-select .kd-select-single-focused {
|
|
14354
14359
|
border-color: var(--kd-c-select-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
|
|
14355
14360
|
}
|
|
14356
|
-
.kd-select-single-disabled {
|
|
14361
|
+
.kd-select .kd-select-single-disabled {
|
|
14357
14362
|
background-color: var(--kd-c-select-color-background-disabled, #f5f5f5);
|
|
14358
14363
|
color: var(--kd-c-select-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
14359
14364
|
}
|
|
14360
|
-
.kd-select-single-disabled:hover {
|
|
14365
|
+
.kd-select .kd-select-single-disabled:hover {
|
|
14361
14366
|
cursor: not-allowed;
|
|
14362
14367
|
}
|
|
14363
|
-
.kd-select-single-disabled .kd-select-suffix {
|
|
14368
|
+
.kd-select .kd-select-single-disabled .kd-select-suffix {
|
|
14364
14369
|
color: var(--kd-c-select-arrow-icon-color-text-disabled, #b2b2b2);
|
|
14365
14370
|
}
|
|
14366
|
-
.kd-select-single:hover .kd-select-icon-clear {
|
|
14371
|
+
.kd-select .kd-select-single:hover .kd-select-icon-clear {
|
|
14367
14372
|
opacity: 1;
|
|
14368
14373
|
}
|
|
14369
|
-
.kd-select-single .kd-select-icon-clear {
|
|
14374
|
+
.kd-select .kd-select-single .kd-select-icon-clear {
|
|
14370
14375
|
color: var(--kd-c-select-icon-clear-color-text, #d9d9d9);
|
|
14371
14376
|
}
|
|
14372
|
-
.kd-select-single .kd-select-icon-clear:hover {
|
|
14377
|
+
.kd-select .kd-select-single .kd-select-icon-clear:hover {
|
|
14373
14378
|
color: var(--kd-c-select-icon-clear-color-text-hover, #999);
|
|
14374
14379
|
}
|
|
14375
|
-
.kd-select-single-text {
|
|
14380
|
+
.kd-select .kd-select-single-text {
|
|
14376
14381
|
color: var(--kd-c-select-single-color-text, var(--kd-g-color-text-primary, #212121));
|
|
14377
14382
|
overflow: hidden;
|
|
14378
14383
|
white-space: nowrap;
|
|
14379
14384
|
text-overflow: ellipsis;
|
|
14380
14385
|
}
|
|
14381
|
-
.kd-select-single-disabled-text {
|
|
14386
|
+
.kd-select .kd-select-single-disabled-text {
|
|
14382
14387
|
color: var(--kd-c-select-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
14383
14388
|
}
|
|
14384
14389
|
.kd-select .kd-select-selection-item {
|
|
@@ -14402,13 +14407,13 @@ textarea {
|
|
|
14402
14407
|
user-select: none;
|
|
14403
14408
|
}
|
|
14404
14409
|
.kd-select .kd-select-selection-item-small {
|
|
14405
|
-
height:
|
|
14410
|
+
height: 20px;
|
|
14406
14411
|
line-height: 18px;
|
|
14407
14412
|
font-size: 12px;
|
|
14408
14413
|
}
|
|
14409
14414
|
.kd-select .kd-select-selection-item-middle {
|
|
14410
14415
|
font-size: 12px;
|
|
14411
|
-
height:
|
|
14416
|
+
height: 20px;
|
|
14412
14417
|
line-height: 18px;
|
|
14413
14418
|
}
|
|
14414
14419
|
.kd-select .kd-select-selection-item-large {
|
|
@@ -14450,6 +14455,13 @@ textarea {
|
|
|
14450
14455
|
width: 100%;
|
|
14451
14456
|
min-width: 20px;
|
|
14452
14457
|
}
|
|
14458
|
+
.kd-select-multiple .kd-select-selection-tag {
|
|
14459
|
+
max-width: calc(100% - 5px);
|
|
14460
|
+
}
|
|
14461
|
+
.kd-select-multiple .kd-select-selection-tag .kd-tag {
|
|
14462
|
+
margin: 2px 8px 2px 0;
|
|
14463
|
+
max-width: 100%;
|
|
14464
|
+
}
|
|
14453
14465
|
.kd-select-multiple .kd-select-selection-search {
|
|
14454
14466
|
position: relative;
|
|
14455
14467
|
max-width: 100%;
|
|
@@ -15670,6 +15682,8 @@ textarea {
|
|
|
15670
15682
|
.kd-inputNumber {
|
|
15671
15683
|
width: 100px;
|
|
15672
15684
|
height: var(--kd-c-stepper-input-middle-sizing-height, 28px);
|
|
15685
|
+
--kd-c-input-wrapper-padding-left: 9px;
|
|
15686
|
+
--kd-c-input-padding-left: 0;
|
|
15673
15687
|
}
|
|
15674
15688
|
.kd-inputNumber input {
|
|
15675
15689
|
text-align: center;
|
|
@@ -17144,6 +17158,11 @@ textarea {
|
|
|
17144
17158
|
-webkit-transition: all var(--kd-c-tag-motion-duration, var(--kd-g-duration, 0.3s));
|
|
17145
17159
|
transition: all var(--kd-c-tag-motion-duration, var(--kd-g-duration, 0.3s));
|
|
17146
17160
|
}
|
|
17161
|
+
.kd-tag-ellipsis {
|
|
17162
|
+
white-space: nowrap;
|
|
17163
|
+
overflow: hidden;
|
|
17164
|
+
text-overflow: ellipsis;
|
|
17165
|
+
}
|
|
17147
17166
|
.kd-tag-size-small {
|
|
17148
17167
|
font-size: var(--kd-c-tag-font-size-small, var(--kd-g-font-size-small, 12px));
|
|
17149
17168
|
height: var(--kd-c-tag-sizing-height-small, 20px);
|
|
@@ -17507,6 +17526,9 @@ textarea {
|
|
|
17507
17526
|
}
|
|
17508
17527
|
.kd-tag-text {
|
|
17509
17528
|
margin-left: 6px;
|
|
17529
|
+
white-space: nowrap;
|
|
17530
|
+
overflow: hidden;
|
|
17531
|
+
text-overflow: ellipsis;
|
|
17510
17532
|
}
|
|
17511
17533
|
.kd-tag-closable-disabled {
|
|
17512
17534
|
background-color: var(--kd-c-tag-edit-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|