@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.
- package/dist/kdesign.css +1 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +4 -3
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +1 -1
- package/dist/kdesign.min.js +2 -2
- package/dist/kdesign.min.js.map +1 -1
- package/es/base-data/base-data.js +2 -2
- package/lib/base-data/base-data.js +2 -2
- package/package.json +1 -1
|
@@ -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 >
|
|
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
|
-
|
|
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 >
|
|
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
|
-
|
|
582
|
+
onClick: function onClick(e) {
|
|
583
583
|
e.stopPropagation();
|
|
584
584
|
e.preventDefault();
|
|
585
585
|
handleSelect(item);
|