@kdcloudjs/kdesign 1.6.17 → 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 CHANGED
@@ -1,3 +1,14 @@
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
+
1
12
  ## [1.6.16](https://github.com/kdcloudone/kdesign/compare/v1.6.15...v1.6.16) (2022-11-24)
2
13
 
3
14
 
@@ -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
- &-single {
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: 18px;
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: 18px;
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%;
@@ -12900,6 +12919,12 @@ template {
12900
12919
  @colors: @tag-process-color, @tag-success-color, @tag-warning-color, @tag-error-color, @tag-end-color, @tag-expired-color;
12901
12920
 
12902
12921
  .@{tag-prefix-cls} {
12922
+ &-ellipsis {
12923
+ white-space: nowrap;
12924
+ overflow: hidden;
12925
+ text-overflow: ellipsis;
12926
+ }
12927
+
12903
12928
  &-size-small {
12904
12929
  .tag-size(@tag-small-font-size, @tag-small-height, @tag-small-padding-horizontal);
12905
12930
  }
@@ -12982,6 +13007,9 @@ template {
12982
13007
  // 图标设置外边距
12983
13008
  &-text {
12984
13009
  margin-left: 6px;
13010
+ white-space: nowrap;
13011
+ overflow: hidden;
13012
+ text-overflow: ellipsis;
12985
13013
  }
12986
13014
 
12987
13015
  &-closable-disabled {
package/dist/kdesign.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.6.16
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-focused {
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: 18px;
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: 18px;
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%;
@@ -17146,6 +17158,11 @@ textarea {
17146
17158
  -webkit-transition: all var(--kd-c-tag-motion-duration, var(--kd-g-duration, 0.3s));
17147
17159
  transition: all var(--kd-c-tag-motion-duration, var(--kd-g-duration, 0.3s));
17148
17160
  }
17161
+ .kd-tag-ellipsis {
17162
+ white-space: nowrap;
17163
+ overflow: hidden;
17164
+ text-overflow: ellipsis;
17165
+ }
17149
17166
  .kd-tag-size-small {
17150
17167
  font-size: var(--kd-c-tag-font-size-small, var(--kd-g-font-size-small, 12px));
17151
17168
  height: var(--kd-c-tag-sizing-height-small, 20px);
@@ -17509,6 +17526,9 @@ textarea {
17509
17526
  }
17510
17527
  .kd-tag-text {
17511
17528
  margin-left: 6px;
17529
+ white-space: nowrap;
17530
+ overflow: hidden;
17531
+ text-overflow: ellipsis;
17512
17532
  }
17513
17533
  .kd-tag-closable-disabled {
17514
17534
  background-color: var(--kd-c-tag-edit-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));