@kdcloudjs/kdesign 1.8.59 → 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 +3 -2
- 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 +1 -1
- package/lib/base-data/base-data.js +1 -1
- 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);
|
|
@@ -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);
|