ls-pro-common 1.0.69 → 1.0.70
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.
|
@@ -293,6 +293,14 @@ var InputTable = /*#__PURE__*/React.forwardRef(function (prop, ref) {
|
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
295
|
|
|
296
|
+
useEffect(function () {
|
|
297
|
+
if (!text) {
|
|
298
|
+
var _tableRef$current2, _tableRef$current2$cl;
|
|
299
|
+
|
|
300
|
+
setSelectedRows([]);
|
|
301
|
+
(_tableRef$current2 = tableRef.current) === null || _tableRef$current2 === void 0 ? void 0 : (_tableRef$current2$cl = _tableRef$current2.clearSelected) === null || _tableRef$current2$cl === void 0 ? void 0 : _tableRef$current2$cl.call(_tableRef$current2);
|
|
302
|
+
}
|
|
303
|
+
}, [text]);
|
|
296
304
|
var tableDom = /*#__PURE__*/React.createElement(ProTable, _extends({
|
|
297
305
|
columns: columns,
|
|
298
306
|
request: loadData,
|
package/es/hooks/useDtl/index.js
CHANGED
|
@@ -820,7 +820,7 @@ function useDtl(dtlParam) {
|
|
|
820
820
|
sortArr = [];
|
|
821
821
|
|
|
822
822
|
for (_key in sort) {
|
|
823
|
-
sortArr.push(_key + ' ' + sort[_key] === 'ascend' ? 'asc' : 'desc');
|
|
823
|
+
sortArr.push(_key + ' ' + (sort[_key] === 'ascend' ? 'asc' : 'desc'));
|
|
824
824
|
}
|
|
825
825
|
|
|
826
826
|
param.sort = sortArr.join(',');
|
|
@@ -321,6 +321,15 @@ var InputTable = /*#__PURE__*/_react.default.forwardRef(function (prop, ref) {
|
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
|
|
324
|
+
(0, _react.useEffect)(function () {
|
|
325
|
+
if (!text) {
|
|
326
|
+
var _tableRef$current2, _tableRef$current2$cl;
|
|
327
|
+
|
|
328
|
+
setSelectedRows([]);
|
|
329
|
+
(_tableRef$current2 = tableRef.current) === null || _tableRef$current2 === void 0 ? void 0 : (_tableRef$current2$cl = _tableRef$current2.clearSelected) === null || _tableRef$current2$cl === void 0 ? void 0 : _tableRef$current2$cl.call(_tableRef$current2);
|
|
330
|
+
}
|
|
331
|
+
}, [text]);
|
|
332
|
+
|
|
324
333
|
var tableDom = /*#__PURE__*/_react.default.createElement(_lsProTable.default, (0, _extends2.default)({
|
|
325
334
|
columns: columns,
|
|
326
335
|
request: loadData,
|
|
@@ -842,7 +842,7 @@ function useDtl(dtlParam) {
|
|
|
842
842
|
sortArr = [];
|
|
843
843
|
|
|
844
844
|
for (_key in sort) {
|
|
845
|
-
sortArr.push(_key + ' ' + sort[_key] === 'ascend' ? 'asc' : 'desc');
|
|
845
|
+
sortArr.push(_key + ' ' + (sort[_key] === 'ascend' ? 'asc' : 'desc'));
|
|
846
846
|
}
|
|
847
847
|
|
|
848
848
|
param.sort = sortArr.join(',');
|