@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 +11 -0
- package/dist/kdesign-complete.less +35 -7
- package/dist/kdesign.css +44 -24
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +15 -11
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +2 -2
- package/dist/kdesign.min.js.map +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/tag/style/index.css +8 -0
- package/es/tag/style/index.less +9 -0
- package/es/tag/tag.js +5 -1
- 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/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/es/message/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import NotificationApi from '../notification-base';
|
|
|
4
4
|
import Content from './content';
|
|
5
5
|
var defaultStyle = {};
|
|
6
6
|
var defaultDuration = 3000;
|
|
7
|
-
var defaultClosable =
|
|
7
|
+
var defaultClosable = false;
|
|
8
8
|
var defaultOffset = '40px';
|
|
9
9
|
var defaultSuffixCls = 'message';
|
|
10
10
|
var defaultPlacement = 'message';
|
package/es/select/select.js
CHANGED
|
@@ -596,21 +596,16 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
596
596
|
|
|
597
597
|
var handleMaxTagHolder = useCallback(function () {
|
|
598
598
|
var maxTagPlaceholder = selectProps.maxTagPlaceholder;
|
|
599
|
-
var TagStyle = {
|
|
600
|
-
margin: '2px 8px 2px 0'
|
|
601
|
-
};
|
|
602
599
|
|
|
603
600
|
if (typeof maxTagPlaceholder === 'function') {
|
|
604
601
|
return /*#__PURE__*/React.createElement(Tag, {
|
|
605
602
|
type: "edit",
|
|
606
|
-
style: TagStyle,
|
|
607
603
|
size: size,
|
|
608
604
|
disabled: disabled
|
|
609
605
|
}, maxTagPlaceholder(mulOptions));
|
|
610
606
|
} else {
|
|
611
607
|
return /*#__PURE__*/React.createElement(Tag, {
|
|
612
608
|
type: "edit",
|
|
613
|
-
style: TagStyle,
|
|
614
609
|
size: size,
|
|
615
610
|
disabled: disabled
|
|
616
611
|
}, maxTagPlaceholder);
|
|
@@ -653,7 +648,8 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
653
648
|
var multipleCls = classNames(commCls, (_classNames10 = {}, _defineProperty(_classNames10, "".concat(selectPrefixCls, "-multiple-disabled"), disabled), _defineProperty(_classNames10, _concatInstanceProperty(_context3 = "".concat(selectPrefixCls, "-")).call(_context3, mode), mode), _defineProperty(_classNames10, "".concat(selectPrefixCls, "-focused"), autoFocus || optionShow), _defineProperty(_classNames10, "".concat(selectPrefixCls, "-placeholder"), placeholder && !mulOptions.length), _classNames10));
|
|
654
649
|
var itemCls = classNames((_classNames11 = {}, _defineProperty(_classNames11, "".concat(selectPrefixCls, "-selection-item"), true), _defineProperty(_classNames11, _concatInstanceProperty(_context4 = "".concat(selectPrefixCls, "-selection-item-")).call(_context4, size), size), _classNames11));
|
|
655
650
|
var TagStyle = {
|
|
656
|
-
margin: '2px 8px 2px 0'
|
|
651
|
+
margin: '2px 8px 2px 0',
|
|
652
|
+
maxWidth: '100%'
|
|
657
653
|
};
|
|
658
654
|
return /*#__PURE__*/React.createElement("div", {
|
|
659
655
|
className: multipleCls,
|
|
@@ -662,7 +658,8 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
662
658
|
var label = item.label,
|
|
663
659
|
value = item.value;
|
|
664
660
|
return (!maxTagCount || index <= maxTagCount - 1) && /*#__PURE__*/React.createElement("span", {
|
|
665
|
-
key: value
|
|
661
|
+
key: value,
|
|
662
|
+
className: classNames("".concat(selectPrefixCls, "-selection-tag"))
|
|
666
663
|
}, /*#__PURE__*/React.createElement(Tag, {
|
|
667
664
|
type: "edit",
|
|
668
665
|
style: TagStyle,
|
|
@@ -239,7 +239,6 @@
|
|
|
239
239
|
box-sizing: border-box;
|
|
240
240
|
background-color: transparent;
|
|
241
241
|
cursor: pointer;
|
|
242
|
-
margin: 0 8px 2px 0;
|
|
243
242
|
vertical-align: middle;
|
|
244
243
|
}
|
|
245
244
|
.kd-select-selector:hover .kd-select-icon-active {
|
|
@@ -393,19 +392,16 @@
|
|
|
393
392
|
min-width: 75px;
|
|
394
393
|
}
|
|
395
394
|
.kd-select-item-option-content {
|
|
396
|
-
display: -webkit-box;
|
|
397
|
-
display: -ms-flexbox;
|
|
398
|
-
display: flex;
|
|
399
|
-
-webkit-box-align: center;
|
|
400
|
-
-ms-flex-align: center;
|
|
401
|
-
align-items: center;
|
|
402
|
-
-webkit-box-flex: 1;
|
|
403
|
-
-ms-flex: auto;
|
|
404
|
-
flex: auto;
|
|
405
395
|
overflow: hidden;
|
|
406
396
|
white-space: nowrap;
|
|
407
397
|
text-overflow: ellipsis;
|
|
408
398
|
}
|
|
399
|
+
.kd-select-item-option-content .kd-checkbox {
|
|
400
|
+
width: 100%;
|
|
401
|
+
}
|
|
402
|
+
.kd-select-item-option-content .kd-checkbox .kd-checkbox-children {
|
|
403
|
+
display: inline-block;
|
|
404
|
+
}
|
|
409
405
|
.kd-select-item-option:hover:not(.kd-select-item-option-selected):not(.kd-select-item-option-disabled) {
|
|
410
406
|
background-color: var(--kd-c-select-color-background, #f5f5f5);
|
|
411
407
|
}
|
|
@@ -455,13 +451,13 @@
|
|
|
455
451
|
justify-content: center;
|
|
456
452
|
margin-left: 8px;
|
|
457
453
|
}
|
|
458
|
-
.kd-select-single .kd-select-selection-search {
|
|
454
|
+
.kd-select .kd-select-single .kd-select-selection-search {
|
|
459
455
|
position: absolute;
|
|
460
456
|
right: 28px;
|
|
461
457
|
left: 0;
|
|
462
458
|
height: 100%;
|
|
463
459
|
}
|
|
464
|
-
.kd-select-single .kd-select-selection-search-input {
|
|
460
|
+
.kd-select .kd-select-single .kd-select-selection-search-input {
|
|
465
461
|
outline: 0;
|
|
466
462
|
border-radius: 0;
|
|
467
463
|
border: none;
|
|
@@ -469,35 +465,41 @@
|
|
|
469
465
|
height: 100%;
|
|
470
466
|
width: 100%;
|
|
471
467
|
}
|
|
472
|
-
.kd-select-single-
|
|
468
|
+
.kd-select .kd-select-single .kd-select-selection-item {
|
|
469
|
+
display: inline-block;
|
|
470
|
+
overflow: hidden;
|
|
471
|
+
white-space: nowrap;
|
|
472
|
+
text-overflow: ellipsis;
|
|
473
|
+
}
|
|
474
|
+
.kd-select .kd-select-single-focused {
|
|
473
475
|
border-color: var(--kd-c-select-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
|
|
474
476
|
}
|
|
475
|
-
.kd-select-single-disabled {
|
|
477
|
+
.kd-select .kd-select-single-disabled {
|
|
476
478
|
background-color: var(--kd-c-select-color-background-disabled, #f5f5f5);
|
|
477
479
|
color: var(--kd-c-select-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
478
480
|
}
|
|
479
|
-
.kd-select-single-disabled:hover {
|
|
481
|
+
.kd-select .kd-select-single-disabled:hover {
|
|
480
482
|
cursor: not-allowed;
|
|
481
483
|
}
|
|
482
|
-
.kd-select-single-disabled .kd-select-suffix {
|
|
484
|
+
.kd-select .kd-select-single-disabled .kd-select-suffix {
|
|
483
485
|
color: var(--kd-c-select-arrow-icon-color-text-disabled, #b2b2b2);
|
|
484
486
|
}
|
|
485
|
-
.kd-select-single:hover .kd-select-icon-clear {
|
|
487
|
+
.kd-select .kd-select-single:hover .kd-select-icon-clear {
|
|
486
488
|
opacity: 1;
|
|
487
489
|
}
|
|
488
|
-
.kd-select-single .kd-select-icon-clear {
|
|
490
|
+
.kd-select .kd-select-single .kd-select-icon-clear {
|
|
489
491
|
color: var(--kd-c-select-icon-clear-color-text, #d9d9d9);
|
|
490
492
|
}
|
|
491
|
-
.kd-select-single .kd-select-icon-clear:hover {
|
|
493
|
+
.kd-select .kd-select-single .kd-select-icon-clear:hover {
|
|
492
494
|
color: var(--kd-c-select-icon-clear-color-text-hover, #999);
|
|
493
495
|
}
|
|
494
|
-
.kd-select-single-text {
|
|
496
|
+
.kd-select .kd-select-single-text {
|
|
495
497
|
color: var(--kd-c-select-single-color-text, var(--kd-g-color-text-primary, #212121));
|
|
496
498
|
overflow: hidden;
|
|
497
499
|
white-space: nowrap;
|
|
498
500
|
text-overflow: ellipsis;
|
|
499
501
|
}
|
|
500
|
-
.kd-select-single-disabled-text {
|
|
502
|
+
.kd-select .kd-select-single-disabled-text {
|
|
501
503
|
color: var(--kd-c-select-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
502
504
|
}
|
|
503
505
|
.kd-select .kd-select-selection-item {
|
|
@@ -521,13 +523,13 @@
|
|
|
521
523
|
user-select: none;
|
|
522
524
|
}
|
|
523
525
|
.kd-select .kd-select-selection-item-small {
|
|
524
|
-
height:
|
|
526
|
+
height: 20px;
|
|
525
527
|
line-height: 18px;
|
|
526
528
|
font-size: 12px;
|
|
527
529
|
}
|
|
528
530
|
.kd-select .kd-select-selection-item-middle {
|
|
529
531
|
font-size: 12px;
|
|
530
|
-
height:
|
|
532
|
+
height: 20px;
|
|
531
533
|
line-height: 18px;
|
|
532
534
|
}
|
|
533
535
|
.kd-select .kd-select-selection-item-large {
|
|
@@ -569,6 +571,13 @@
|
|
|
569
571
|
width: 100%;
|
|
570
572
|
min-width: 20px;
|
|
571
573
|
}
|
|
574
|
+
.kd-select-multiple .kd-select-selection-tag {
|
|
575
|
+
max-width: calc(100% - 5px);
|
|
576
|
+
}
|
|
577
|
+
.kd-select-multiple .kd-select-selection-tag .kd-tag {
|
|
578
|
+
margin: 2px 8px 2px 0;
|
|
579
|
+
max-width: 100%;
|
|
580
|
+
}
|
|
572
581
|
.kd-select-multiple .kd-select-selection-search {
|
|
573
582
|
position: relative;
|
|
574
583
|
max-width: 100%;
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
background-color: transparent;
|
|
12
12
|
cursor: pointer;
|
|
13
|
-
margin: 0 8px 2px 0;
|
|
14
13
|
vertical-align: middle;
|
|
15
14
|
|
|
16
15
|
&-selector:hover {
|
|
@@ -158,10 +157,15 @@
|
|
|
158
157
|
min-width: 75px;
|
|
159
158
|
|
|
160
159
|
&-content {
|
|
161
|
-
display: flex;
|
|
162
|
-
align-items: center;
|
|
163
|
-
flex: auto;
|
|
164
160
|
.over();
|
|
161
|
+
|
|
162
|
+
.@{kd-prefix}-checkbox {
|
|
163
|
+
width: 100%;
|
|
164
|
+
|
|
165
|
+
.@{kd-prefix}-checkbox-children {
|
|
166
|
+
display: inline-block;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
165
169
|
}
|
|
166
170
|
|
|
167
171
|
&:hover:not(&-selected):not(&-disabled) {
|
|
@@ -208,7 +212,7 @@
|
|
|
208
212
|
justify-content: center;
|
|
209
213
|
margin-left: 8px;
|
|
210
214
|
}
|
|
211
|
-
|
|
215
|
+
.@{select-prefix-cls}-single {
|
|
212
216
|
.@{select-prefix-cls}-selection {
|
|
213
217
|
&-search {
|
|
214
218
|
position: absolute;
|
|
@@ -224,6 +228,10 @@
|
|
|
224
228
|
width: 100%;
|
|
225
229
|
}
|
|
226
230
|
}
|
|
231
|
+
&-item {
|
|
232
|
+
display: inline-block;
|
|
233
|
+
.over();
|
|
234
|
+
}
|
|
227
235
|
}
|
|
228
236
|
&-focused {
|
|
229
237
|
.focusColor();
|
|
@@ -270,14 +278,14 @@
|
|
|
270
278
|
cursor: default;
|
|
271
279
|
user-select: none;
|
|
272
280
|
&-small {
|
|
273
|
-
height:
|
|
281
|
+
height: 20px;
|
|
274
282
|
line-height: 18px;
|
|
275
283
|
font-size: 12px;
|
|
276
284
|
}
|
|
277
285
|
|
|
278
286
|
&-middle {
|
|
279
287
|
font-size: 12px;
|
|
280
|
-
height:
|
|
288
|
+
height: 20px;
|
|
281
289
|
line-height: 18px;
|
|
282
290
|
}
|
|
283
291
|
|
|
@@ -320,6 +328,14 @@
|
|
|
320
328
|
// 多选
|
|
321
329
|
&-multiple {
|
|
322
330
|
.@{select-prefix-cls}-selection {
|
|
331
|
+
&-tag {
|
|
332
|
+
max-width: calc(100% - 5px);
|
|
333
|
+
|
|
334
|
+
.@{kd-prefix}-tag {
|
|
335
|
+
margin: 2px 8px 2px 0;
|
|
336
|
+
max-width: 100%;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
323
339
|
&-search {
|
|
324
340
|
position: relative;
|
|
325
341
|
max-width: 100%;
|
package/es/tag/style/index.css
CHANGED
|
@@ -105,6 +105,11 @@
|
|
|
105
105
|
-webkit-transition: all var(--kd-c-tag-motion-duration, var(--kd-g-duration, 0.3s));
|
|
106
106
|
transition: all var(--kd-c-tag-motion-duration, var(--kd-g-duration, 0.3s));
|
|
107
107
|
}
|
|
108
|
+
.kd-tag-ellipsis {
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
text-overflow: ellipsis;
|
|
112
|
+
}
|
|
108
113
|
.kd-tag-size-small {
|
|
109
114
|
font-size: var(--kd-c-tag-font-size-small, var(--kd-g-font-size-small, 12px));
|
|
110
115
|
height: var(--kd-c-tag-sizing-height-small, 20px);
|
|
@@ -468,6 +473,9 @@
|
|
|
468
473
|
}
|
|
469
474
|
.kd-tag-text {
|
|
470
475
|
margin-left: 6px;
|
|
476
|
+
white-space: nowrap;
|
|
477
|
+
overflow: hidden;
|
|
478
|
+
text-overflow: ellipsis;
|
|
471
479
|
}
|
|
472
480
|
.kd-tag-closable-disabled {
|
|
473
481
|
background-color: var(--kd-c-tag-edit-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
package/es/tag/style/index.less
CHANGED
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
@colors: @tag-process-color, @tag-success-color, @tag-warning-color, @tag-error-color, @tag-end-color, @tag-expired-color;
|
|
8
8
|
|
|
9
9
|
.@{tag-prefix-cls} {
|
|
10
|
+
&-ellipsis {
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
text-overflow: ellipsis;
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
&-size-small {
|
|
11
17
|
.tag-size(@tag-small-font-size, @tag-small-height, @tag-small-padding-horizontal);
|
|
12
18
|
}
|
|
@@ -89,6 +95,9 @@
|
|
|
89
95
|
// 图标设置外边距
|
|
90
96
|
&-text {
|
|
91
97
|
margin-left: 6px;
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
text-overflow: ellipsis;
|
|
92
101
|
}
|
|
93
102
|
|
|
94
103
|
&-closable-disabled {
|
package/es/tag/tag.js
CHANGED
|
@@ -81,13 +81,17 @@ var InteranalTag = function InteranalTag(props, ref) {
|
|
|
81
81
|
var tagRef = ref || thisTagRef; // 对children进行进一步处理 当标签包含图标时 文本内容需要用标签包裹设置外边距
|
|
82
82
|
|
|
83
83
|
var handleChild = function handleChild(child) {
|
|
84
|
+
if (!child) return null;
|
|
85
|
+
|
|
84
86
|
if (typeof child === 'string' && icon) {
|
|
85
87
|
return /*#__PURE__*/React.createElement("span", {
|
|
86
88
|
className: "".concat(tagPrefixCls, "-text")
|
|
87
89
|
}, child);
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
return
|
|
92
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
93
|
+
className: "".concat(tagPrefixCls, "-ellipsis")
|
|
94
|
+
}, child);
|
|
91
95
|
}; // 预设的颜色值
|
|
92
96
|
|
|
93
97
|
|
package/lib/message/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var _content = _interopRequireDefault(require("./content"));
|
|
|
17
17
|
|
|
18
18
|
var defaultStyle = {};
|
|
19
19
|
var defaultDuration = 3000;
|
|
20
|
-
var defaultClosable =
|
|
20
|
+
var defaultClosable = false;
|
|
21
21
|
var defaultOffset = '40px';
|
|
22
22
|
var defaultSuffixCls = 'message';
|
|
23
23
|
var defaultPlacement = 'message';
|
package/lib/select/select.js
CHANGED
|
@@ -621,21 +621,16 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
621
621
|
|
|
622
622
|
var handleMaxTagHolder = (0, _react.useCallback)(function () {
|
|
623
623
|
var maxTagPlaceholder = selectProps.maxTagPlaceholder;
|
|
624
|
-
var TagStyle = {
|
|
625
|
-
margin: '2px 8px 2px 0'
|
|
626
|
-
};
|
|
627
624
|
|
|
628
625
|
if (typeof maxTagPlaceholder === 'function') {
|
|
629
626
|
return /*#__PURE__*/_react.default.createElement(_index.Tag, {
|
|
630
627
|
type: "edit",
|
|
631
|
-
style: TagStyle,
|
|
632
628
|
size: size,
|
|
633
629
|
disabled: disabled
|
|
634
630
|
}, maxTagPlaceholder(mulOptions));
|
|
635
631
|
} else {
|
|
636
632
|
return /*#__PURE__*/_react.default.createElement(_index.Tag, {
|
|
637
633
|
type: "edit",
|
|
638
|
-
style: TagStyle,
|
|
639
634
|
size: size,
|
|
640
635
|
disabled: disabled
|
|
641
636
|
}, maxTagPlaceholder);
|
|
@@ -678,7 +673,8 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
678
673
|
var multipleCls = (0, _classnames.default)(commCls, (_classNames10 = {}, (0, _defineProperty2.default)(_classNames10, "".concat(selectPrefixCls, "-multiple-disabled"), disabled), (0, _defineProperty2.default)(_classNames10, (0, _concat.default)(_context3 = "".concat(selectPrefixCls, "-")).call(_context3, mode), mode), (0, _defineProperty2.default)(_classNames10, "".concat(selectPrefixCls, "-focused"), autoFocus || optionShow), (0, _defineProperty2.default)(_classNames10, "".concat(selectPrefixCls, "-placeholder"), placeholder && !mulOptions.length), _classNames10));
|
|
679
674
|
var itemCls = (0, _classnames.default)((_classNames11 = {}, (0, _defineProperty2.default)(_classNames11, "".concat(selectPrefixCls, "-selection-item"), true), (0, _defineProperty2.default)(_classNames11, (0, _concat.default)(_context4 = "".concat(selectPrefixCls, "-selection-item-")).call(_context4, size), size), _classNames11));
|
|
680
675
|
var TagStyle = {
|
|
681
|
-
margin: '2px 8px 2px 0'
|
|
676
|
+
margin: '2px 8px 2px 0',
|
|
677
|
+
maxWidth: '100%'
|
|
682
678
|
};
|
|
683
679
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
684
680
|
className: multipleCls,
|
|
@@ -687,7 +683,8 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
687
683
|
var label = item.label,
|
|
688
684
|
value = item.value;
|
|
689
685
|
return (!maxTagCount || index <= maxTagCount - 1) && /*#__PURE__*/_react.default.createElement("span", {
|
|
690
|
-
key: value
|
|
686
|
+
key: value,
|
|
687
|
+
className: (0, _classnames.default)("".concat(selectPrefixCls, "-selection-tag"))
|
|
691
688
|
}, /*#__PURE__*/_react.default.createElement(_index.Tag, {
|
|
692
689
|
type: "edit",
|
|
693
690
|
style: TagStyle,
|
|
@@ -239,7 +239,6 @@
|
|
|
239
239
|
box-sizing: border-box;
|
|
240
240
|
background-color: transparent;
|
|
241
241
|
cursor: pointer;
|
|
242
|
-
margin: 0 8px 2px 0;
|
|
243
242
|
vertical-align: middle;
|
|
244
243
|
}
|
|
245
244
|
.kd-select-selector:hover .kd-select-icon-active {
|
|
@@ -393,19 +392,16 @@
|
|
|
393
392
|
min-width: 75px;
|
|
394
393
|
}
|
|
395
394
|
.kd-select-item-option-content {
|
|
396
|
-
display: -webkit-box;
|
|
397
|
-
display: -ms-flexbox;
|
|
398
|
-
display: flex;
|
|
399
|
-
-webkit-box-align: center;
|
|
400
|
-
-ms-flex-align: center;
|
|
401
|
-
align-items: center;
|
|
402
|
-
-webkit-box-flex: 1;
|
|
403
|
-
-ms-flex: auto;
|
|
404
|
-
flex: auto;
|
|
405
395
|
overflow: hidden;
|
|
406
396
|
white-space: nowrap;
|
|
407
397
|
text-overflow: ellipsis;
|
|
408
398
|
}
|
|
399
|
+
.kd-select-item-option-content .kd-checkbox {
|
|
400
|
+
width: 100%;
|
|
401
|
+
}
|
|
402
|
+
.kd-select-item-option-content .kd-checkbox .kd-checkbox-children {
|
|
403
|
+
display: inline-block;
|
|
404
|
+
}
|
|
409
405
|
.kd-select-item-option:hover:not(.kd-select-item-option-selected):not(.kd-select-item-option-disabled) {
|
|
410
406
|
background-color: var(--kd-c-select-color-background, #f5f5f5);
|
|
411
407
|
}
|
|
@@ -455,13 +451,13 @@
|
|
|
455
451
|
justify-content: center;
|
|
456
452
|
margin-left: 8px;
|
|
457
453
|
}
|
|
458
|
-
.kd-select-single .kd-select-selection-search {
|
|
454
|
+
.kd-select .kd-select-single .kd-select-selection-search {
|
|
459
455
|
position: absolute;
|
|
460
456
|
right: 28px;
|
|
461
457
|
left: 0;
|
|
462
458
|
height: 100%;
|
|
463
459
|
}
|
|
464
|
-
.kd-select-single .kd-select-selection-search-input {
|
|
460
|
+
.kd-select .kd-select-single .kd-select-selection-search-input {
|
|
465
461
|
outline: 0;
|
|
466
462
|
border-radius: 0;
|
|
467
463
|
border: none;
|
|
@@ -469,35 +465,41 @@
|
|
|
469
465
|
height: 100%;
|
|
470
466
|
width: 100%;
|
|
471
467
|
}
|
|
472
|
-
.kd-select-single-
|
|
468
|
+
.kd-select .kd-select-single .kd-select-selection-item {
|
|
469
|
+
display: inline-block;
|
|
470
|
+
overflow: hidden;
|
|
471
|
+
white-space: nowrap;
|
|
472
|
+
text-overflow: ellipsis;
|
|
473
|
+
}
|
|
474
|
+
.kd-select .kd-select-single-focused {
|
|
473
475
|
border-color: var(--kd-c-select-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
|
|
474
476
|
}
|
|
475
|
-
.kd-select-single-disabled {
|
|
477
|
+
.kd-select .kd-select-single-disabled {
|
|
476
478
|
background-color: var(--kd-c-select-color-background-disabled, #f5f5f5);
|
|
477
479
|
color: var(--kd-c-select-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
478
480
|
}
|
|
479
|
-
.kd-select-single-disabled:hover {
|
|
481
|
+
.kd-select .kd-select-single-disabled:hover {
|
|
480
482
|
cursor: not-allowed;
|
|
481
483
|
}
|
|
482
|
-
.kd-select-single-disabled .kd-select-suffix {
|
|
484
|
+
.kd-select .kd-select-single-disabled .kd-select-suffix {
|
|
483
485
|
color: var(--kd-c-select-arrow-icon-color-text-disabled, #b2b2b2);
|
|
484
486
|
}
|
|
485
|
-
.kd-select-single:hover .kd-select-icon-clear {
|
|
487
|
+
.kd-select .kd-select-single:hover .kd-select-icon-clear {
|
|
486
488
|
opacity: 1;
|
|
487
489
|
}
|
|
488
|
-
.kd-select-single .kd-select-icon-clear {
|
|
490
|
+
.kd-select .kd-select-single .kd-select-icon-clear {
|
|
489
491
|
color: var(--kd-c-select-icon-clear-color-text, #d9d9d9);
|
|
490
492
|
}
|
|
491
|
-
.kd-select-single .kd-select-icon-clear:hover {
|
|
493
|
+
.kd-select .kd-select-single .kd-select-icon-clear:hover {
|
|
492
494
|
color: var(--kd-c-select-icon-clear-color-text-hover, #999);
|
|
493
495
|
}
|
|
494
|
-
.kd-select-single-text {
|
|
496
|
+
.kd-select .kd-select-single-text {
|
|
495
497
|
color: var(--kd-c-select-single-color-text, var(--kd-g-color-text-primary, #212121));
|
|
496
498
|
overflow: hidden;
|
|
497
499
|
white-space: nowrap;
|
|
498
500
|
text-overflow: ellipsis;
|
|
499
501
|
}
|
|
500
|
-
.kd-select-single-disabled-text {
|
|
502
|
+
.kd-select .kd-select-single-disabled-text {
|
|
501
503
|
color: var(--kd-c-select-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
502
504
|
}
|
|
503
505
|
.kd-select .kd-select-selection-item {
|
|
@@ -521,13 +523,13 @@
|
|
|
521
523
|
user-select: none;
|
|
522
524
|
}
|
|
523
525
|
.kd-select .kd-select-selection-item-small {
|
|
524
|
-
height:
|
|
526
|
+
height: 20px;
|
|
525
527
|
line-height: 18px;
|
|
526
528
|
font-size: 12px;
|
|
527
529
|
}
|
|
528
530
|
.kd-select .kd-select-selection-item-middle {
|
|
529
531
|
font-size: 12px;
|
|
530
|
-
height:
|
|
532
|
+
height: 20px;
|
|
531
533
|
line-height: 18px;
|
|
532
534
|
}
|
|
533
535
|
.kd-select .kd-select-selection-item-large {
|
|
@@ -569,6 +571,13 @@
|
|
|
569
571
|
width: 100%;
|
|
570
572
|
min-width: 20px;
|
|
571
573
|
}
|
|
574
|
+
.kd-select-multiple .kd-select-selection-tag {
|
|
575
|
+
max-width: calc(100% - 5px);
|
|
576
|
+
}
|
|
577
|
+
.kd-select-multiple .kd-select-selection-tag .kd-tag {
|
|
578
|
+
margin: 2px 8px 2px 0;
|
|
579
|
+
max-width: 100%;
|
|
580
|
+
}
|
|
572
581
|
.kd-select-multiple .kd-select-selection-search {
|
|
573
582
|
position: relative;
|
|
574
583
|
max-width: 100%;
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
background-color: transparent;
|
|
12
12
|
cursor: pointer;
|
|
13
|
-
margin: 0 8px 2px 0;
|
|
14
13
|
vertical-align: middle;
|
|
15
14
|
|
|
16
15
|
&-selector:hover {
|
|
@@ -158,10 +157,15 @@
|
|
|
158
157
|
min-width: 75px;
|
|
159
158
|
|
|
160
159
|
&-content {
|
|
161
|
-
display: flex;
|
|
162
|
-
align-items: center;
|
|
163
|
-
flex: auto;
|
|
164
160
|
.over();
|
|
161
|
+
|
|
162
|
+
.@{kd-prefix}-checkbox {
|
|
163
|
+
width: 100%;
|
|
164
|
+
|
|
165
|
+
.@{kd-prefix}-checkbox-children {
|
|
166
|
+
display: inline-block;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
165
169
|
}
|
|
166
170
|
|
|
167
171
|
&:hover:not(&-selected):not(&-disabled) {
|
|
@@ -208,7 +212,7 @@
|
|
|
208
212
|
justify-content: center;
|
|
209
213
|
margin-left: 8px;
|
|
210
214
|
}
|
|
211
|
-
|
|
215
|
+
.@{select-prefix-cls}-single {
|
|
212
216
|
.@{select-prefix-cls}-selection {
|
|
213
217
|
&-search {
|
|
214
218
|
position: absolute;
|
|
@@ -224,6 +228,10 @@
|
|
|
224
228
|
width: 100%;
|
|
225
229
|
}
|
|
226
230
|
}
|
|
231
|
+
&-item {
|
|
232
|
+
display: inline-block;
|
|
233
|
+
.over();
|
|
234
|
+
}
|
|
227
235
|
}
|
|
228
236
|
&-focused {
|
|
229
237
|
.focusColor();
|
|
@@ -270,14 +278,14 @@
|
|
|
270
278
|
cursor: default;
|
|
271
279
|
user-select: none;
|
|
272
280
|
&-small {
|
|
273
|
-
height:
|
|
281
|
+
height: 20px;
|
|
274
282
|
line-height: 18px;
|
|
275
283
|
font-size: 12px;
|
|
276
284
|
}
|
|
277
285
|
|
|
278
286
|
&-middle {
|
|
279
287
|
font-size: 12px;
|
|
280
|
-
height:
|
|
288
|
+
height: 20px;
|
|
281
289
|
line-height: 18px;
|
|
282
290
|
}
|
|
283
291
|
|
|
@@ -320,6 +328,14 @@
|
|
|
320
328
|
// 多选
|
|
321
329
|
&-multiple {
|
|
322
330
|
.@{select-prefix-cls}-selection {
|
|
331
|
+
&-tag {
|
|
332
|
+
max-width: calc(100% - 5px);
|
|
333
|
+
|
|
334
|
+
.@{kd-prefix}-tag {
|
|
335
|
+
margin: 2px 8px 2px 0;
|
|
336
|
+
max-width: 100%;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
323
339
|
&-search {
|
|
324
340
|
position: relative;
|
|
325
341
|
max-width: 100%;
|