@zgfe/modules-whole 1.0.10-zhongyuan.6 → 1.0.10-zhongyuan.8
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.
|
@@ -130,8 +130,9 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
130
130
|
includeToday: includeToday,
|
|
131
131
|
defaultValue: time,
|
|
132
132
|
onChange: onChangeTime,
|
|
133
|
-
selectRange: envs && envs.timeRangeOpen ? envs.timeRangeOpen :
|
|
134
|
-
timeRangeOpen: envs && envs.timeRangeOpen ? envs.timeRangeOpen :
|
|
133
|
+
selectRange: envs && envs.timeRangeOpen ? envs.timeRangeOpen : 365,
|
|
134
|
+
timeRangeOpen: envs && envs.timeRangeOpen ? envs.timeRangeOpen : 365,
|
|
135
|
+
selectRangeUnit: envs && envs.timeRangeOpen ? 'months' : 'days'
|
|
135
136
|
})), /*#__PURE__*/React.createElement("div", {
|
|
136
137
|
className: "".concat(classPrefix, "-search-right")
|
|
137
138
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -46,7 +46,8 @@ var WholeContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
46
46
|
first = _useContext.first,
|
|
47
47
|
setFirst = _useContext.setFirst;
|
|
48
48
|
var _useContext2 = useContext(BizTargetFromPanelContext),
|
|
49
|
-
handleSearch = _useContext2.handleSearch
|
|
49
|
+
handleSearch = _useContext2.handleSearch,
|
|
50
|
+
disabled = _useContext2.disabled;
|
|
50
51
|
var _useState = useState(),
|
|
51
52
|
_useState2 = _slicedToArray(_useState, 2),
|
|
52
53
|
wholeData = _useState2[0],
|
|
@@ -75,6 +76,7 @@ var WholeContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
75
76
|
};
|
|
76
77
|
}, [searchData]);
|
|
77
78
|
useEffect(function () {
|
|
79
|
+
if (disabled) return;
|
|
78
80
|
handleSearch && handleSearch(loading);
|
|
79
81
|
}, [loading]);
|
|
80
82
|
var fetchRequest = function fetchRequest(flag) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-whole",
|
|
3
|
-
"version": "1.0.10-zhongyuan.
|
|
3
|
+
"version": "1.0.10-zhongyuan.8",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"private": false,
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react": "^16.12.0 || ^17.0.0",
|
|
57
57
|
"yorkie": "^2.0.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "074014a9172eecd3afc8c6babc04d63df5874bbc",
|
|
60
60
|
"gitHooks": {
|
|
61
61
|
"pre-commit": "lint-staged"
|
|
62
62
|
}
|