@zgfe/business-lib 1.1.1 → 1.1.2
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.
- package/es/addToPanel/index.js +6 -2
- package/es/addToScene/index.js +6 -2
- package/package.json +2 -2
package/es/addToPanel/index.js
CHANGED
|
@@ -57,7 +57,8 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
57
57
|
var _useContext = useContext(BizGlobalDataContext),
|
|
58
58
|
currentApp = _useContext.currentApp,
|
|
59
59
|
router = _useContext.router,
|
|
60
|
-
routes = _useContext.routes
|
|
60
|
+
routes = _useContext.routes,
|
|
61
|
+
isDemo = _useContext.isDemo;
|
|
61
62
|
|
|
62
63
|
useEffect(function () {
|
|
63
64
|
if (props.defaultValue) {
|
|
@@ -215,7 +216,10 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
215
216
|
onCancel: props.onCancel,
|
|
216
217
|
onOk: onAdd,
|
|
217
218
|
confirmLoading: loading,
|
|
218
|
-
className: classPrefix
|
|
219
|
+
className: classPrefix,
|
|
220
|
+
okButtonProps: {
|
|
221
|
+
disabled: isDemo
|
|
222
|
+
}
|
|
219
223
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
220
224
|
ref: refForm,
|
|
221
225
|
onFinish: onSubmit,
|
package/es/addToScene/index.js
CHANGED
|
@@ -41,7 +41,8 @@ var BizAddToScene = function BizAddToScene(props) {
|
|
|
41
41
|
setLoading = _useState6[1];
|
|
42
42
|
|
|
43
43
|
var _useContext = useContext(BizGlobalDataContext),
|
|
44
|
-
currentApp = _useContext.currentApp
|
|
44
|
+
currentApp = _useContext.currentApp,
|
|
45
|
+
isDemo = _useContext.isDemo;
|
|
45
46
|
|
|
46
47
|
var refForm = useRef();
|
|
47
48
|
|
|
@@ -142,7 +143,10 @@ var BizAddToScene = function BizAddToScene(props) {
|
|
|
142
143
|
onOk: onSave,
|
|
143
144
|
onCancel: onCancel,
|
|
144
145
|
confirmLoading: loading,
|
|
145
|
-
className: classPrefix
|
|
146
|
+
className: classPrefix,
|
|
147
|
+
okButtonProps: {
|
|
148
|
+
disabled: isDemo
|
|
149
|
+
}
|
|
146
150
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
147
151
|
autoComplete: "off",
|
|
148
152
|
ref: refForm,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": "^16.12.0 || ^17.0.0",
|
|
61
61
|
"yorkie": "^2.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "fa5fc24808250250524d3341076cf9d46f48ad86"
|
|
64
64
|
}
|