@kdcloudjs/kdesign 1.8.58 → 1.8.60

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.
@@ -202,7 +202,7 @@ var InternalBaseData = function InternalBaseData(props, ref) {
202
202
  if (!isMultiple) return;
203
203
  var inputDom = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input;
204
204
  if (!inputDom) return;
205
- if (inputDom.scrollWidth - inputDom.offsetWidth > 0 && inputValue) {
205
+ if (inputDom.scrollWidth - inputDom.offsetWidth > 2 && inputValue) {
206
206
  setShowTotal(true);
207
207
  } else {
208
208
  setShowTotal(false);
@@ -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);
@@ -214,7 +214,7 @@ var InternalBaseData = function InternalBaseData(props, ref) {
214
214
  if (!isMultiple) return;
215
215
  var inputDom = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input;
216
216
  if (!inputDom) return;
217
- if (inputDom.scrollWidth - inputDom.offsetWidth > 0 && inputValue) {
217
+ if (inputDom.scrollWidth - inputDom.offsetWidth > 2 && inputValue) {
218
218
  setShowTotal(true);
219
219
  } else {
220
220
  setShowTotal(false);
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.8.58",
3
+ "version": "1.8.60",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [