@zgfe/modules-event 0.1.7-heyh.1 → 0.1.7-heyh.3
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.
|
@@ -108,9 +108,10 @@ var TopBar = function TopBar(props) {
|
|
|
108
108
|
onOk: function onOk(data) {
|
|
109
109
|
return _onOk('panel', data);
|
|
110
110
|
}
|
|
111
|
-
})),
|
|
111
|
+
})), !panelId && /*#__PURE__*/React.createElement("div", {
|
|
112
112
|
className: "".concat(classPrefix, "-scene")
|
|
113
113
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
114
|
+
disabled: !authority[100048],
|
|
114
115
|
onClick: function onClick() {
|
|
115
116
|
setShowScene(true);
|
|
116
117
|
}
|
|
@@ -133,11 +134,11 @@ var TopBar = function TopBar(props) {
|
|
|
133
134
|
}, "\u6DFB\u52A0\u5230\u6570\u636E\u62A5\u544A")), showWarning && /*#__PURE__*/React.createElement(Button, {
|
|
134
135
|
className: "".concat(classPrefix, "-earlywarning"),
|
|
135
136
|
type: "primary",
|
|
136
|
-
disabled: loading,
|
|
137
|
+
disabled: loading || !authority[100141],
|
|
137
138
|
onClick: function onClick() {
|
|
138
139
|
return onLossWarning(warningId);
|
|
139
140
|
}
|
|
140
|
-
}, "\u8BBE\u7F6E\u9884\u8B66
|
|
141
|
+
}, "\u8BBE\u7F6E\u6D41\u5931\u9884\u8B66"), /*#__PURE__*/React.createElement("div", {
|
|
141
142
|
className: "".concat(classPrefix, "-platform")
|
|
142
143
|
}, platformOption.map(function (item) {
|
|
143
144
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -39,7 +39,7 @@ export default (function () {
|
|
|
39
39
|
console.log('查询参数改变了:', data);
|
|
40
40
|
};
|
|
41
41
|
var onLossWarning = function onLossWarning(warningId) {
|
|
42
|
-
console.log('
|
|
42
|
+
console.log('设置流失预警', warningId);
|
|
43
43
|
};
|
|
44
44
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
45
45
|
needMeta: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-event",
|
|
3
|
-
"version": "0.1.7-heyh.
|
|
3
|
+
"version": "0.1.7-heyh.3",
|
|
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": "19a381129050e920c2f4996d1365e803617bdc35",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"react-copy-to-clipboard": "^5.1.0",
|
|
55
55
|
"react-highlight": "^0.15.0"
|