@zgfe/modules-page 1.0.1-alpha.14 → 1.0.1-alpha.15
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.
|
@@ -53,7 +53,6 @@ var SearchPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
53
53
|
*/
|
|
54
54
|
var onChange = function onChange(_changedValues, allValues) {
|
|
55
55
|
setFormData(allValues);
|
|
56
|
-
console.log(formatValue(allValues), 'onChange allValues');
|
|
57
56
|
props.onChange && props.onChange(formatValue(allValues));
|
|
58
57
|
};
|
|
59
58
|
var onAdd = function onAdd() {
|
|
@@ -43,8 +43,8 @@ export var formatValue = function formatValue(source) {
|
|
|
43
43
|
childGroup.push(name);
|
|
44
44
|
});
|
|
45
45
|
group.push(childGroup);
|
|
46
|
-
} else
|
|
47
|
-
group.push(item.id);
|
|
46
|
+
} else {
|
|
47
|
+
group.push((item === null || item === void 0 ? void 0 : item.id) || 0);
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
return {
|
|
@@ -2,6 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { ModulesPage } from '@zgfe/modules-page';
|
|
3
3
|
import { DemoWrapper } from '@zgfe/business-lib';
|
|
4
4
|
export default (function () {
|
|
5
|
+
var onClickWarn = function onClickWarn() {
|
|
6
|
+
console.log('onClickWarn');
|
|
7
|
+
};
|
|
5
8
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
6
9
|
needMeta: true,
|
|
7
10
|
defaultApp: 266
|
|
@@ -10,5 +13,7 @@ export default (function () {
|
|
|
10
13
|
height: 750,
|
|
11
14
|
overflow: 'auto'
|
|
12
15
|
}
|
|
13
|
-
}, /*#__PURE__*/React.createElement(ModulesPage,
|
|
16
|
+
}, /*#__PURE__*/React.createElement(ModulesPage, {
|
|
17
|
+
onClickWarn: onClickWarn
|
|
18
|
+
})));
|
|
14
19
|
});
|
|
@@ -191,6 +191,7 @@ var ModulesPage = function ModulesPage(props) {
|
|
|
191
191
|
className: "".concat(classPrefix, "-top-render")
|
|
192
192
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
193
193
|
type: "primary",
|
|
194
|
+
disabled: loading || !result || !result.length,
|
|
194
195
|
onClick: props.onClickWarn
|
|
195
196
|
}, "\u8BBE\u7F6E\u6D41\u5931\u9884\u8B66"));
|
|
196
197
|
if (isEmpty) return /*#__PURE__*/React.createElement(EmptyPanel, null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-page",
|
|
3
|
-
"version": "1.0.1-alpha.
|
|
3
|
+
"version": "1.0.1-alpha.15",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"prettier": "^2.2.1",
|
|
51
51
|
"yorkie": "^2.0.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "ef09fb9da4dd17243d667d1a5bc0950bcc55619a"
|
|
54
54
|
}
|