ztxkui 4.2.23-549 → 4.2.23-550
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.
|
@@ -60,6 +60,7 @@ var SearchContainer = function (_a) {
|
|
|
60
60
|
var ParentForm = useContext(FormContext).form;
|
|
61
61
|
var currentForm = form || ParentForm;
|
|
62
62
|
var _c = useRecordCommonInit(), storageRef = _c.storageRef, recordCommonSearchStorageKey = _c.recordCommonSearchStorageKey, setRecordCommonSearchStorageKey = _c.setRecordCommonSearchStorageKey, recordCommonList = _c.recordCommonList, setRecordCommonList = _c.setRecordCommonList, currentRecordCommonSearchKey = _c.currentRecordCommonSearchKey, setCurrentRecordCommonSearchKey = _c.setCurrentRecordCommonSearchKey, setData = _c.setData, deleteData = _c.deleteData, setReplaceData = _c.setReplaceData, reTransformData = _c.reTransformData, updateServerData = _c.updateServerData, hasSearchButton = _c.hasSearchButton, setHasSearchButton = _c.setHasSearchButton;
|
|
63
|
+
console.log(showDynamicRef.current);
|
|
63
64
|
return (React.createElement(SearchContainerContext.Provider, { value: {
|
|
64
65
|
onItemEnterHandle: onItemEnterHandleMemo,
|
|
65
66
|
rightSearchHandleRef: rightSearchHandleRef,
|
|
@@ -94,6 +95,7 @@ var SearchContainer = function (_a) {
|
|
|
94
95
|
isCommonSearchEnabled &&
|
|
95
96
|
currentForm &&
|
|
96
97
|
recordCommonSearchStorageKey &&
|
|
97
|
-
hasSearchButton
|
|
98
|
+
hasSearchButton &&
|
|
99
|
+
showDynamicRef.current ? (React.createElement(RecordCommonList, null)) : null))));
|
|
98
100
|
};
|
|
99
101
|
export default SearchContainer;
|
|
@@ -78,7 +78,7 @@ var SearchRight = function (_a) {
|
|
|
78
78
|
(showDynamicRef === null || showDynamicRef === void 0 ? void 0 : showDynamicRef.current) && (React.createElement(Button, { onClick: function () { var _a; return (_a = setDynamicVisibleRef === null || setDynamicVisibleRef === void 0 ? void 0 : setDynamicVisibleRef.current) === null || _a === void 0 ? void 0 : _a.call(setDynamicVisibleRef, true); }, type: "default", compact: true }, i18next.t('自定义')))),
|
|
79
79
|
React.createElement("div", { className: classNames('zt-search__right-search-buttons') },
|
|
80
80
|
React.createElement(Button, { type: "primary", onClick: onSearchHandle, htmlType: "submit" }, i18next.t('查询')),
|
|
81
|
-
recordCommonSearch ? (React.createElement(Button, { type: "default", onClick: function () {
|
|
81
|
+
recordCommonSearch && (showDynamicRef === null || showDynamicRef === void 0 ? void 0 : showDynamicRef.current) ? (React.createElement(Button, { type: "default", onClick: function () {
|
|
82
82
|
onRecordSearchHandle();
|
|
83
83
|
} }, i18next.t('常用搜索'))) : null)));
|
|
84
84
|
};
|