@zgfe/business-lib 1.0.27 → 1.0.28-scene.0

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.
@@ -97,7 +97,7 @@ var BizAddToScene = function BizAddToScene(props) {
97
97
  notification.success({
98
98
  message: '添加成功'
99
99
  });
100
- if (props.onOk) props.onOk();
100
+ if (props.onOk) props.onOk(res);
101
101
  } else if (result.code === -10010) {
102
102
  notification.error({
103
103
  message: '添加失败',
@@ -1,7 +1,7 @@
1
1
  declare namespace AddToScene {
2
2
  interface Props {
3
3
  params: Record<string, any>;
4
- onOk?: () => void;
4
+ onOk?: (data: any) => void;
5
5
  onCancel?: () => void;
6
6
  }
7
7
  interface Scene {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.0.27",
3
+ "version": "1.0.28-scene.0",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -58,5 +58,5 @@
58
58
  "react": "^16.12.0 || ^17.0.0",
59
59
  "yorkie": "^2.0.0"
60
60
  },
61
- "gitHead": "ffc20956bea440bcdf76fa67d8c891c341d3923f"
61
+ "gitHead": "12dc43c8c92d12da783b4c7a64997c443fffa168"
62
62
  }