@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.
@@ -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({
@@ -190,7 +190,7 @@ LCGroupTree.propTypes = {
190
190
  * @name 允许取消选中
191
191
  * @type switch
192
192
  */
193
- cancelSelect: cancelSelect,
193
+ cancelSelect: PropTypes.bool,
194
194
  /**
195
195
  * @name 允许取消选中
196
196
  * @type _JSEditor
@@ -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({
@@ -198,7 +198,7 @@ LCGroupTree.propTypes = {
198
198
  * @name 允许取消选中
199
199
  * @type switch
200
200
  */
201
- cancelSelect: cancelSelect,
201
+ cancelSelect: _propTypes.default.bool,
202
202
  /**
203
203
  * @name 允许取消选中
204
204
  * @type _JSEditor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "1.0.1-10",
3
+ "version": "1.0.1-11",
4
4
  "description": "前端配置管理中心业务组件库",
5
5
  "scripts": {
6
6
  "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",