@kdcloudjs/kdesign 1.8.57 → 1.8.59
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/kdesign-complete.less +9 -4
- package/dist/kdesign.css +4 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +3 -3
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +3 -3
- package/dist/kdesign.min.js.map +1 -1
- package/es/base-data/base-data.js +1 -1
- package/es/select/select.js +1 -1
- package/es/select/style/index.css +3 -0
- package/es/select/style/index.less +9 -4
- package/lib/base-data/base-data.js +1 -1
- package/lib/select/select.js +1 -1
- package/lib/select/style/index.css +3 -0
- package/lib/select/style/index.less +9 -4
- package/package.json +1 -1
|
@@ -567,7 +567,7 @@ var InternalBaseData = function InternalBaseData(props, ref) {
|
|
|
567
567
|
return v.value === item.value;
|
|
568
568
|
})
|
|
569
569
|
}),
|
|
570
|
-
|
|
570
|
+
onClick: function onClick(e) {
|
|
571
571
|
e.stopPropagation();
|
|
572
572
|
e.preventDefault();
|
|
573
573
|
handleSelect(item);
|
package/es/select/select.js
CHANGED
|
@@ -754,7 +754,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
754
754
|
className: "".concat(selectPrefixCls, "-suffix")
|
|
755
755
|
}, renderSuffix()));
|
|
756
756
|
};
|
|
757
|
-
var singleCls = classNames(commCls, (_classNames12 = {}, _defineProperty(_classNames12, "".concat(selectPrefixCls, "-single"), true), _defineProperty(_classNames12, "".concat(selectPrefixCls, "-single-isnotMobile"), !isMobile), _defineProperty(_classNames12, "".concat(selectPrefixCls, "-single-disabled"), disabled), _defineProperty(_classNames12, "".concat(selectPrefixCls, "-single-focused"), focusd && !disabled || optionShow), _classNames12));
|
|
757
|
+
var singleCls = classNames(commCls, (_classNames12 = {}, _defineProperty(_classNames12, "".concat(selectPrefixCls, "-single"), true), _defineProperty(_classNames12, "".concat(selectPrefixCls, "-single-isnotMobile"), !isMobile), _defineProperty(_classNames12, "".concat(selectPrefixCls, "-single-isMobile"), isMobile && optionShow && allowClear), _defineProperty(_classNames12, "".concat(selectPrefixCls, "-single-disabled"), disabled), _defineProperty(_classNames12, "".concat(selectPrefixCls, "-single-focused"), focusd && !disabled || optionShow), _classNames12));
|
|
758
758
|
var getActiveIndex = function getActiveIndex(index) {
|
|
759
759
|
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
760
760
|
var len = filledOptions.length;
|
|
@@ -557,6 +557,9 @@
|
|
|
557
557
|
.kd-select .kd-select-single-isnotMobile:hover .kd-select-icon-clear {
|
|
558
558
|
opacity: 1;
|
|
559
559
|
}
|
|
560
|
+
.kd-select .kd-select-single-isMobile .kd-select-icon-clear {
|
|
561
|
+
opacity: 1;
|
|
562
|
+
}
|
|
560
563
|
.kd-select .kd-select-selection-item {
|
|
561
564
|
display: -webkit-inline-box;
|
|
562
565
|
display: -ms-inline-flexbox;
|
|
@@ -286,7 +286,6 @@
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
|
|
290
289
|
.@{select-prefix-cls}-icon-clear {
|
|
291
290
|
color: @select-clear-color;
|
|
292
291
|
&:hover {
|
|
@@ -301,10 +300,16 @@
|
|
|
301
300
|
color: @select-color-text-disabled;
|
|
302
301
|
}
|
|
303
302
|
}
|
|
304
|
-
.@{select-prefix-cls}-single-isnotMobile:hover .@{select-prefix-cls}-icon-clear {
|
|
305
|
-
opacity: 1;
|
|
306
|
-
}
|
|
307
303
|
|
|
304
|
+
.@{select-prefix-cls}-single-isnotMobile:hover .@{select-prefix-cls}-icon-clear {
|
|
305
|
+
opacity: 1;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.@{select-prefix-cls}-single-isMobile {
|
|
309
|
+
.@{select-prefix-cls}-icon-clear {
|
|
310
|
+
opacity: 1;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
308
313
|
.@{select-prefix-cls}-selection-item {
|
|
309
314
|
display: inline-flex;
|
|
310
315
|
box-sizing: border-box;
|
|
@@ -579,7 +579,7 @@ var InternalBaseData = function InternalBaseData(props, ref) {
|
|
|
579
579
|
return v.value === item.value;
|
|
580
580
|
})
|
|
581
581
|
}),
|
|
582
|
-
|
|
582
|
+
onClick: function onClick(e) {
|
|
583
583
|
e.stopPropagation();
|
|
584
584
|
e.preventDefault();
|
|
585
585
|
handleSelect(item);
|
package/lib/select/select.js
CHANGED
|
@@ -766,7 +766,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
766
766
|
className: "".concat(selectPrefixCls, "-suffix")
|
|
767
767
|
}, renderSuffix()));
|
|
768
768
|
};
|
|
769
|
-
var singleCls = (0, _classnames.default)(commCls, (_classNames12 = {}, (0, _defineProperty2.default)(_classNames12, "".concat(selectPrefixCls, "-single"), true), (0, _defineProperty2.default)(_classNames12, "".concat(selectPrefixCls, "-single-isnotMobile"), !isMobile), (0, _defineProperty2.default)(_classNames12, "".concat(selectPrefixCls, "-single-disabled"), disabled), (0, _defineProperty2.default)(_classNames12, "".concat(selectPrefixCls, "-single-focused"), focusd && !disabled || optionShow), _classNames12));
|
|
769
|
+
var singleCls = (0, _classnames.default)(commCls, (_classNames12 = {}, (0, _defineProperty2.default)(_classNames12, "".concat(selectPrefixCls, "-single"), true), (0, _defineProperty2.default)(_classNames12, "".concat(selectPrefixCls, "-single-isnotMobile"), !isMobile), (0, _defineProperty2.default)(_classNames12, "".concat(selectPrefixCls, "-single-isMobile"), isMobile && optionShow && allowClear), (0, _defineProperty2.default)(_classNames12, "".concat(selectPrefixCls, "-single-disabled"), disabled), (0, _defineProperty2.default)(_classNames12, "".concat(selectPrefixCls, "-single-focused"), focusd && !disabled || optionShow), _classNames12));
|
|
770
770
|
var getActiveIndex = function getActiveIndex(index) {
|
|
771
771
|
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
772
772
|
var len = filledOptions.length;
|
|
@@ -557,6 +557,9 @@
|
|
|
557
557
|
.kd-select .kd-select-single-isnotMobile:hover .kd-select-icon-clear {
|
|
558
558
|
opacity: 1;
|
|
559
559
|
}
|
|
560
|
+
.kd-select .kd-select-single-isMobile .kd-select-icon-clear {
|
|
561
|
+
opacity: 1;
|
|
562
|
+
}
|
|
560
563
|
.kd-select .kd-select-selection-item {
|
|
561
564
|
display: -webkit-inline-box;
|
|
562
565
|
display: -ms-inline-flexbox;
|
|
@@ -286,7 +286,6 @@
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
|
|
290
289
|
.@{select-prefix-cls}-icon-clear {
|
|
291
290
|
color: @select-clear-color;
|
|
292
291
|
&:hover {
|
|
@@ -301,10 +300,16 @@
|
|
|
301
300
|
color: @select-color-text-disabled;
|
|
302
301
|
}
|
|
303
302
|
}
|
|
304
|
-
.@{select-prefix-cls}-single-isnotMobile:hover .@{select-prefix-cls}-icon-clear {
|
|
305
|
-
opacity: 1;
|
|
306
|
-
}
|
|
307
303
|
|
|
304
|
+
.@{select-prefix-cls}-single-isnotMobile:hover .@{select-prefix-cls}-icon-clear {
|
|
305
|
+
opacity: 1;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.@{select-prefix-cls}-single-isMobile {
|
|
309
|
+
.@{select-prefix-cls}-icon-clear {
|
|
310
|
+
opacity: 1;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
308
313
|
.@{select-prefix-cls}-selection-item {
|
|
309
314
|
display: inline-flex;
|
|
310
315
|
box-sizing: border-box;
|