@kdcloudjs/kdesign 1.8.53-stable.11 → 1.8.53-stable.12
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 +7 -4
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +1 -1
- package/dist/kdesign.min.js +5 -5
- package/dist/kdesign.min.js.map +1 -1
- package/es/city-picker/city-picker.js +1 -0
- package/es/popper/index.js +3 -1
- package/es/table/api.js +1 -1
- package/es/table/table.js +1 -1
- package/lib/city-picker/city-picker.js +1 -0
- package/lib/popper/index.js +3 -1
- package/lib/table/api.js +1 -1
- package/lib/table/table.js +1 -1
- package/package.json +1 -1
|
@@ -235,6 +235,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
235
235
|
city.type = tabsValue === 'domestic' ? 'domestic' : 'foreign';
|
|
236
236
|
}
|
|
237
237
|
(city === null || city === void 0 ? void 0 : city.id) !== initValue && (onChange === null || onChange === void 0 ? void 0 : onChange(city === null || city === void 0 ? void 0 : city.id, city));
|
|
238
|
+
handleClear();
|
|
238
239
|
if (isMobile) {
|
|
239
240
|
(_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
240
241
|
} else {
|
package/es/popper/index.js
CHANGED
|
@@ -326,7 +326,9 @@ export var Popper = forwardRef(function (props, ref) {
|
|
|
326
326
|
};
|
|
327
327
|
var onClick = debounce(function (e) {
|
|
328
328
|
var targetEl = e.target;
|
|
329
|
-
if (targetEl
|
|
329
|
+
if (!targetEl) return;
|
|
330
|
+
var ignoreEl = closestPolyfill(targetEl, '[data-popper-ignore]');
|
|
331
|
+
if (ignoreEl) return;
|
|
330
332
|
if (!visibleInner) {
|
|
331
333
|
onTriggerInner(true, 'click');
|
|
332
334
|
} else if (clickToClose) {
|
package/es/table/api.js
CHANGED
|
@@ -104,7 +104,7 @@ export default function getApi(pipelineRef) {
|
|
|
104
104
|
var pxRight = colRightPixel - viewportWidth + lockColumnRight;
|
|
105
105
|
var colBeforeViewport = vScrollLeft > colLeftPixel;
|
|
106
106
|
var colPastViewport = vScrollRight < colRightPixel;
|
|
107
|
-
var colToSmallForViewport = viewportWidth < column.width;
|
|
107
|
+
var colToSmallForViewport = viewportWidth - lockColumnLeft - lockColumnRight < column.width;
|
|
108
108
|
var alignColToLeft = colBeforeViewport || colToSmallForViewport;
|
|
109
109
|
var alignColToRight = colPastViewport;
|
|
110
110
|
if (alignColToLeft || alignColToRight) {
|
package/es/table/table.js
CHANGED
|
@@ -99,9 +99,9 @@ var Table = forwardRef(function (props, ref) {
|
|
|
99
99
|
api: getApi(pipelineRef)
|
|
100
100
|
};
|
|
101
101
|
});
|
|
102
|
+
useRowSelection(pipeline, rowSelection);
|
|
102
103
|
useFilter(pipeline, filter);
|
|
103
104
|
useSort(pipeline, sort);
|
|
104
|
-
useRowSelection(pipeline, rowSelection);
|
|
105
105
|
useRowDetail(pipeline, rowDetail);
|
|
106
106
|
useAutoRowSpan(pipeline, autoRowSpan);
|
|
107
107
|
useTreeMode(pipeline, treeMode);
|
|
@@ -247,6 +247,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
247
247
|
city.type = tabsValue === 'domestic' ? 'domestic' : 'foreign';
|
|
248
248
|
}
|
|
249
249
|
(city === null || city === void 0 ? void 0 : city.id) !== initValue && (onChange === null || onChange === void 0 ? void 0 : onChange(city === null || city === void 0 ? void 0 : city.id, city));
|
|
250
|
+
handleClear();
|
|
250
251
|
if (isMobile) {
|
|
251
252
|
(_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
252
253
|
} else {
|
package/lib/popper/index.js
CHANGED
|
@@ -343,7 +343,9 @@ var Popper = (0, _react.forwardRef)(function (props, ref) {
|
|
|
343
343
|
};
|
|
344
344
|
var onClick = (0, _debounce.default)(function (e) {
|
|
345
345
|
var targetEl = e.target;
|
|
346
|
-
if (targetEl
|
|
346
|
+
if (!targetEl) return;
|
|
347
|
+
var ignoreEl = closestPolyfill(targetEl, '[data-popper-ignore]');
|
|
348
|
+
if (ignoreEl) return;
|
|
347
349
|
if (!visibleInner) {
|
|
348
350
|
onTriggerInner(true, 'click');
|
|
349
351
|
} else if (clickToClose) {
|
package/lib/table/api.js
CHANGED
|
@@ -111,7 +111,7 @@ function getApi(pipelineRef) {
|
|
|
111
111
|
var pxRight = colRightPixel - viewportWidth + lockColumnRight;
|
|
112
112
|
var colBeforeViewport = vScrollLeft > colLeftPixel;
|
|
113
113
|
var colPastViewport = vScrollRight < colRightPixel;
|
|
114
|
-
var colToSmallForViewport = viewportWidth < column.width;
|
|
114
|
+
var colToSmallForViewport = viewportWidth - lockColumnLeft - lockColumnRight < column.width;
|
|
115
115
|
var alignColToLeft = colBeforeViewport || colToSmallForViewport;
|
|
116
116
|
var alignColToRight = colPastViewport;
|
|
117
117
|
if (alignColToLeft || alignColToRight) {
|
package/lib/table/table.js
CHANGED
|
@@ -111,9 +111,9 @@ var Table = (0, _react.forwardRef)(function (props, ref) {
|
|
|
111
111
|
api: (0, _api.default)(pipelineRef)
|
|
112
112
|
};
|
|
113
113
|
});
|
|
114
|
+
(0, _rowSelection.default)(pipeline, rowSelection);
|
|
114
115
|
(0, _filter2.default)(pipeline, filter);
|
|
115
116
|
(0, _sort2.default)(pipeline, sort);
|
|
116
|
-
(0, _rowSelection.default)(pipeline, rowSelection);
|
|
117
117
|
(0, _rowDetail.default)(pipeline, rowDetail);
|
|
118
118
|
(0, _autoRowSpan.default)(pipeline, autoRowSpan);
|
|
119
119
|
(0, _treeMode.default)(pipeline, treeMode);
|