ds-web-all 1.0.1-beta.92 → 1.0.1-beta.93
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.
|
@@ -356,6 +356,7 @@ var ComposeManage = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
356
356
|
// 执行查询的逻辑;
|
|
357
357
|
var handleSearch = function handleSearch() {
|
|
358
358
|
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
359
|
+
var isSetField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
359
360
|
filterProps === null || filterProps === void 0 ? void 0 : filterProps.map(function (item) {
|
|
360
361
|
if (item.type === 'datepicker') {
|
|
361
362
|
values[item.name] = values[item.name] ? (0, _dayjs.default)(values[item.name]).format(item.props._format) : undefined;
|
|
@@ -386,6 +387,9 @@ var ComposeManage = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
386
387
|
}
|
|
387
388
|
setPageNo(1);
|
|
388
389
|
setSearch(newSearch);
|
|
390
|
+
if (isSetField && formRef.current) {
|
|
391
|
+
formRef.current.setFieldsValue(newSearch);
|
|
392
|
+
}
|
|
389
393
|
if (isCacheListFilter) {
|
|
390
394
|
var _window$history$state22;
|
|
391
395
|
window.history.replaceState(_objectSpread(_objectSpread({}, (_window$history$state22 = window.history.state) !== null && _window$history$state22 !== void 0 ? _window$history$state22 : {}), {}, {
|