@luck-design-biz/luckda 1.0.1-10 → 1.0.1-11
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/components/LdFormList/index.js +11 -1
- package/es/lowcode/painter/panel-section/PageVars.js +1 -1
- package/es/lowcode/view/lc-components/GroupTree/index.js +1 -1
- package/lib/components/LdFormList/index.js +11 -1
- package/lib/lowcode/painter/panel-section/PageVars.js +1 -1
- package/lib/lowcode/view/lc-components/GroupTree/index.js +1 -1
- package/package.json +1 -1
|
@@ -134,7 +134,17 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
134
134
|
bizData: bizData,
|
|
135
135
|
suppressDept: false,
|
|
136
136
|
showHistory: luckTheme === 'base' ? 'sider' : 'drawer',
|
|
137
|
-
placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight'
|
|
137
|
+
placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight',
|
|
138
|
+
onStartProcess: function onStartProcess(res) {
|
|
139
|
+
if ((res === null || res === void 0 ? void 0 : res.code) === 1) {
|
|
140
|
+
formListRef.current.doQuery();
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
onOperateComplete: function onOperateComplete(code, type, res) {
|
|
144
|
+
if (code === 1) {
|
|
145
|
+
formListRef.current.doQuery();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
138
148
|
}, bpmButtonProps)));
|
|
139
149
|
};
|
|
140
150
|
useAsyncEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -136,7 +136,7 @@ var PageVars = function PageVars(_ref) {
|
|
|
136
136
|
label: "\u786E\u8BA4\u5220\u9664\u5417\uFF1F"
|
|
137
137
|
}),
|
|
138
138
|
onOk: function onOk() {
|
|
139
|
-
if (currentItem.id === item.id) {
|
|
139
|
+
if ((currentItem === null || currentItem === void 0 ? void 0 : currentItem.id) === item.id) {
|
|
140
140
|
setCurrentItem(null);
|
|
141
141
|
}
|
|
142
142
|
dispatch({
|
|
@@ -141,7 +141,17 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
141
141
|
bizData: bizData,
|
|
142
142
|
suppressDept: false,
|
|
143
143
|
showHistory: luckTheme === 'base' ? 'sider' : 'drawer',
|
|
144
|
-
placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight'
|
|
144
|
+
placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight',
|
|
145
|
+
onStartProcess: function onStartProcess(res) {
|
|
146
|
+
if ((res === null || res === void 0 ? void 0 : res.code) === 1) {
|
|
147
|
+
formListRef.current.doQuery();
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
onOperateComplete: function onOperateComplete(code, type, res) {
|
|
151
|
+
if (code === 1) {
|
|
152
|
+
formListRef.current.doQuery();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
145
155
|
}, bpmButtonProps)));
|
|
146
156
|
};
|
|
147
157
|
(0, _ahooks.useAsyncEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
@@ -144,7 +144,7 @@ var PageVars = function PageVars(_ref) {
|
|
|
144
144
|
label: "\u786E\u8BA4\u5220\u9664\u5417\uFF1F"
|
|
145
145
|
}),
|
|
146
146
|
onOk: function onOk() {
|
|
147
|
-
if (currentItem.id === item.id) {
|
|
147
|
+
if ((currentItem === null || currentItem === void 0 ? void 0 : currentItem.id) === item.id) {
|
|
148
148
|
setCurrentItem(null);
|
|
149
149
|
}
|
|
150
150
|
dispatch({
|
package/package.json
CHANGED