@zgfe/modules-interval 1.0.3 → 1.0.5
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.
|
@@ -21,8 +21,7 @@ var classPrefix = 'modules-interval-topbar';
|
|
|
21
21
|
var TopBar = function TopBar(props) {
|
|
22
22
|
var _useContext = useContext(EventContext),
|
|
23
23
|
panelId = _useContext.panelId,
|
|
24
|
-
afterEditTarget = _useContext.afterEditTarget
|
|
25
|
-
enableAddScene = _useContext.enableAddScene;
|
|
24
|
+
afterEditTarget = _useContext.afterEditTarget;
|
|
26
25
|
var _useState = useState(false),
|
|
27
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28
27
|
showPanel = _useState2[0],
|
|
@@ -94,7 +93,7 @@ var TopBar = function TopBar(props) {
|
|
|
94
93
|
onOk: function onOk(data) {
|
|
95
94
|
return _onOk('panel', data);
|
|
96
95
|
}
|
|
97
|
-
})),
|
|
96
|
+
})), !panelId && /*#__PURE__*/React.createElement("div", {
|
|
98
97
|
className: "".concat(classPrefix, "-scene")
|
|
99
98
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
100
99
|
disabled: showLoading || !authority[100057],
|
|
@@ -123,7 +123,6 @@ var ModuleInterval = function ModuleInterval(props) {
|
|
|
123
123
|
setSearchData: setSearchData,
|
|
124
124
|
panelName: title,
|
|
125
125
|
includeToday: props.includeToday,
|
|
126
|
-
enableAddScene: props.defaultValue && props.defaultValue.enableAddScene === false ? false : true,
|
|
127
126
|
changeLoading: changeLoading,
|
|
128
127
|
afterEditTarget: props.afterEditTarget,
|
|
129
128
|
onUserDrill: props.onUserDrill
|