@zgfe/modules-event 0.0.2-event.48 → 0.0.2-event.49
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.
|
@@ -22,7 +22,8 @@ var TopBar = function TopBar(props) {
|
|
|
22
22
|
enableAddScene = _useContext.enableAddScene,
|
|
23
23
|
loading = _useContext.loading,
|
|
24
24
|
onLossWarning = _useContext.onLossWarning,
|
|
25
|
-
showWarning = _useContext.showWarning
|
|
25
|
+
showWarning = _useContext.showWarning,
|
|
26
|
+
enableGenerateReport = _useContext.enableGenerateReport;
|
|
26
27
|
var _useState = useState(false),
|
|
27
28
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28
29
|
showPanel = _useState2[0],
|
|
@@ -130,7 +131,7 @@ var TopBar = function TopBar(props) {
|
|
|
130
131
|
onCancel: function onCancel() {
|
|
131
132
|
return closeHandle('scene');
|
|
132
133
|
}
|
|
133
|
-
})), !panelId && /*#__PURE__*/React.createElement("div", {
|
|
134
|
+
})), !panelId && enableGenerateReport && /*#__PURE__*/React.createElement("div", {
|
|
134
135
|
className: "".concat(classPrefix, "-panel")
|
|
135
136
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
136
137
|
onClick: onClickGenerateReport
|
package/es/modules/home/index.js
CHANGED
|
@@ -135,7 +135,8 @@ var ModuleEvent = function ModuleEvent(props) {
|
|
|
135
135
|
enableAddScene: props.defaultValue && props.defaultValue.enableAddScene === false ? false : true,
|
|
136
136
|
afterEditTarget: props.afterEditTarget,
|
|
137
137
|
onUserDrill: props.onUserDrill,
|
|
138
|
-
onLossWarning: props.onLossWarning
|
|
138
|
+
onLossWarning: props.onLossWarning,
|
|
139
|
+
enableGenerateReport: props.enableGenerateReport
|
|
139
140
|
}
|
|
140
141
|
}, /*#__PURE__*/React.createElement(EventContent, {
|
|
141
142
|
defaultValue: props.defaultValue ? props.defaultValue.data : undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-event",
|
|
3
|
-
"version": "0.0.2-event.
|
|
3
|
+
"version": "0.0.2-event.49",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react": "^16.12.0 || ^17.0.0",
|
|
50
50
|
"yorkie": "^2.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "30ee2149148763a78f5945772c8bdb069f67f395",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"react-copy-to-clipboard": "^5.1.0",
|
|
55
55
|
"react-highlight": "^0.15.0"
|