@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.
@@ -567,7 +567,7 @@ var InternalBaseData = function InternalBaseData(props, ref) {
567
567
  return v.value === item.value;
568
568
  })
569
569
  }),
570
- onMouseDown: function onMouseDown(e) {
570
+ onClick: function onClick(e) {
571
571
  e.stopPropagation();
572
572
  e.preventDefault();
573
573
  handleSelect(item);
@@ -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
- onMouseDown: function onMouseDown(e) {
582
+ onClick: function onClick(e) {
583
583
  e.stopPropagation();
584
584
  e.preventDefault();
585
585
  handleSelect(item);
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.8.57",
3
+ "version": "1.8.59",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [