@zgfe/business-lib 1.1.6 → 1.1.7-alpha.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.
- package/es/addToPanel/index.js +5 -14
- package/package.json +2 -2
package/es/addToPanel/index.js
CHANGED
|
@@ -44,15 +44,10 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
44
44
|
groupList = _useState4[0],
|
|
45
45
|
setGroupList = _useState4[1];
|
|
46
46
|
|
|
47
|
-
var _useState5 = useState(),
|
|
47
|
+
var _useState5 = useState(false),
|
|
48
48
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var _useState7 = useState(false),
|
|
53
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
54
|
-
loading = _useState8[0],
|
|
55
|
-
setLoading = _useState8[1];
|
|
49
|
+
loading = _useState6[0],
|
|
50
|
+
setLoading = _useState6[1];
|
|
56
51
|
|
|
57
52
|
var _useContext = useContext(BizGlobalDataContext),
|
|
58
53
|
currentApp = _useContext.currentApp,
|
|
@@ -61,10 +56,6 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
61
56
|
isDemo = _useContext.isDemo;
|
|
62
57
|
|
|
63
58
|
useEffect(function () {
|
|
64
|
-
if (props.defaultValue) {
|
|
65
|
-
setFormData(props.defaultValue);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
59
|
queryGroups();
|
|
69
60
|
}, []);
|
|
70
61
|
|
|
@@ -84,7 +75,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
84
75
|
return;
|
|
85
76
|
}
|
|
86
77
|
|
|
87
|
-
setGroupList(res.panels);
|
|
78
|
+
setGroupList(res.panels || []);
|
|
88
79
|
}).catch(function () {
|
|
89
80
|
notification.error({
|
|
90
81
|
message: '获取看板列表失败'
|
|
@@ -223,7 +214,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
223
214
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
224
215
|
ref: refForm,
|
|
225
216
|
onFinish: onSubmit,
|
|
226
|
-
initialValues:
|
|
217
|
+
initialValues: props.defaultValue,
|
|
227
218
|
requiredMark: false
|
|
228
219
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
229
220
|
label: "\u770B\u677F",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7-alpha.0",
|
|
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": "c433f9f4a15755d8fe3c21eea9428cc425522b7a"
|
|
64
64
|
}
|