@fle-ui/plus-table 1.2.28-beta.1 → 1.2.28
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/FormSearch/index.js +0 -8
- package/es/index.d.ts +1 -0
- package/es/index.js +24 -32
- package/lib/FormSearch/index.js +0 -8
- package/lib/index.d.ts +1 -0
- package/lib/index.js +24 -32
- package/package.json +2 -2
package/es/FormSearch/index.js
CHANGED
|
@@ -168,14 +168,6 @@ var FormSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
168
168
|
search: search,
|
|
169
169
|
form: _objectSpread(_objectSpread({
|
|
170
170
|
onValuesChange: function onValuesChange(changeValue, allValue) {
|
|
171
|
-
for (var key in changeValue) {
|
|
172
|
-
if (Object.hasOwn(changeValue, key)) {
|
|
173
|
-
if (!changeValue[key]) {
|
|
174
|
-
changeValue[key] = undefined;
|
|
175
|
-
allValue[key] = undefined;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
171
|
_this.props.changeValue(changeValue, allValue);
|
|
180
172
|
},
|
|
181
173
|
autoFocusFirstInput: false
|
package/es/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ interface PlusTableProps<DataSource, U, ValueType> extends Omit<ProTableProps<Da
|
|
|
34
34
|
};
|
|
35
35
|
hasShowFull?: boolean;
|
|
36
36
|
getContainer?: string | HTMLElement | (() => HTMLElement) | false;
|
|
37
|
+
defaultShowFull?: boolean;
|
|
37
38
|
}
|
|
38
39
|
interface PlusTableRef {
|
|
39
40
|
getFieldsValue: () => Promise<any>;
|
package/es/index.js
CHANGED
|
@@ -50,7 +50,7 @@ function PlusTable(props, ref) {
|
|
|
50
50
|
_useState2 = _slicedToArray(_useState, 2),
|
|
51
51
|
searchDrawer = _useState2[0],
|
|
52
52
|
setSearchDrawer = _useState2[1];
|
|
53
|
-
var _useState3 = useState(false),
|
|
53
|
+
var _useState3 = useState(props.defaultShowFull || false),
|
|
54
54
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
55
55
|
showFull = _useState4[0],
|
|
56
56
|
setShowFull = _useState4[1];
|
|
@@ -219,9 +219,8 @@ function PlusTable(props, ref) {
|
|
|
219
219
|
};
|
|
220
220
|
}();
|
|
221
221
|
var onValuesChange = function onValuesChange(changeValue, allValue) {
|
|
222
|
-
var
|
|
223
|
-
|
|
224
|
-
searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current4 = searchRef.current) === null || _searchRef$current4 === void 0 ? void 0 : _searchRef$current4.setFieldsValue(allValue);
|
|
222
|
+
var _searchRef$current4;
|
|
223
|
+
searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current4 = searchRef.current) === null || _searchRef$current4 === void 0 ? void 0 : _searchRef$current4.setFieldsValue(drawFormRef.current.getFieldsValue());
|
|
225
224
|
};
|
|
226
225
|
var handleSearchAll = /*#__PURE__*/function () {
|
|
227
226
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(searchConfig) {
|
|
@@ -263,8 +262,8 @@ function PlusTable(props, ref) {
|
|
|
263
262
|
};
|
|
264
263
|
var propsRequest = /*#__PURE__*/function () {
|
|
265
264
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params, sort, filter) {
|
|
266
|
-
var _searchRef$current5, _drawFormRef$
|
|
267
|
-
var res1, res2,
|
|
265
|
+
var _searchRef$current5, _drawFormRef$current4;
|
|
266
|
+
var res1, res2, res;
|
|
268
267
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
269
268
|
while (1) switch (_context8.prev = _context8.next) {
|
|
270
269
|
case 0:
|
|
@@ -273,35 +272,27 @@ function PlusTable(props, ref) {
|
|
|
273
272
|
case 2:
|
|
274
273
|
res1 = _context8.sent;
|
|
275
274
|
_context8.next = 5;
|
|
276
|
-
return drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
275
|
+
return drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current4 = drawFormRef.current) === null || _drawFormRef$current4 === void 0 ? void 0 : _drawFormRef$current4.getFieldsValue();
|
|
277
276
|
case 5:
|
|
278
277
|
res2 = _context8.sent;
|
|
279
|
-
for (key in res2) {
|
|
280
|
-
if (Object.hasOwn(res2, key)) {
|
|
281
|
-
if (!res2[key]) {
|
|
282
|
-
res1[key] = undefined;
|
|
283
|
-
params[key] = undefined;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
278
|
if (!request) {
|
|
288
|
-
_context8.next =
|
|
279
|
+
_context8.next = 12;
|
|
289
280
|
break;
|
|
290
281
|
}
|
|
291
|
-
_context8.next =
|
|
282
|
+
_context8.next = 9;
|
|
292
283
|
return request(_objectSpread(_objectSpread(_objectSpread({}, params), dealFetchParams(_objectSpread(_objectSpread(_objectSpread({}, res1), res2), params))), {}, {
|
|
293
284
|
showFull: showFull
|
|
294
285
|
}), sort, filter);
|
|
295
|
-
case
|
|
286
|
+
case 9:
|
|
296
287
|
_context8.t0 = _context8.sent;
|
|
297
|
-
_context8.next =
|
|
288
|
+
_context8.next = 13;
|
|
298
289
|
break;
|
|
299
|
-
case
|
|
290
|
+
case 12:
|
|
300
291
|
_context8.t0 = {};
|
|
301
|
-
case
|
|
292
|
+
case 13:
|
|
302
293
|
res = _context8.t0;
|
|
303
294
|
return _context8.abrupt("return", res);
|
|
304
|
-
case
|
|
295
|
+
case 15:
|
|
305
296
|
case "end":
|
|
306
297
|
return _context8.stop();
|
|
307
298
|
}
|
|
@@ -373,8 +364,8 @@ function PlusTable(props, ref) {
|
|
|
373
364
|
key: "2",
|
|
374
365
|
type: "default",
|
|
375
366
|
onClick: function onClick() {
|
|
376
|
-
var _drawFormRef$
|
|
377
|
-
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
367
|
+
var _drawFormRef$current5, _actionRef$current, _actionRef$current$re, _actionRef$current2, _actionRef$current2$r;
|
|
368
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current5 = drawFormRef.current) === null || _drawFormRef$current5 === void 0 ? void 0 : _drawFormRef$current5.resetFields();
|
|
378
369
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$re = _actionRef$current.reset) === null || _actionRef$current$re === void 0 ? void 0 : _actionRef$current$re.call(_actionRef$current);
|
|
379
370
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$r = _actionRef$current2.reload) === null || _actionRef$current2$r === void 0 ? void 0 : _actionRef$current2$r.call(_actionRef$current2);
|
|
380
371
|
},
|
|
@@ -386,7 +377,7 @@ function PlusTable(props, ref) {
|
|
|
386
377
|
whiteSpace: 'nowrap'
|
|
387
378
|
},
|
|
388
379
|
onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
389
|
-
var _drawFormRef$
|
|
380
|
+
var _drawFormRef$current6, _searchRef$current6;
|
|
390
381
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
391
382
|
while (1) switch (_context9.prev = _context9.next) {
|
|
392
383
|
case 0:
|
|
@@ -394,7 +385,7 @@ function PlusTable(props, ref) {
|
|
|
394
385
|
return setSearchDrawer(!searchDrawer);
|
|
395
386
|
case 2:
|
|
396
387
|
// 没法实时监听数据所以这里要带过来
|
|
397
|
-
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
388
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current6 = drawFormRef.current) === null || _drawFormRef$current6 === void 0 ? void 0 : _drawFormRef$current6.setFieldsValue(searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current6 = searchRef.current) === null || _searchRef$current6 === void 0 ? void 0 : _searchRef$current6.getFieldsValue());
|
|
398
389
|
case 3:
|
|
399
390
|
case "end":
|
|
400
391
|
return _context9.stop();
|
|
@@ -418,11 +409,11 @@ function PlusTable(props, ref) {
|
|
|
418
409
|
fieldProps: _objectSpread({
|
|
419
410
|
onChange: function onChange(e) {
|
|
420
411
|
if (e) {
|
|
421
|
-
var _drawFormRef$
|
|
422
|
-
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
412
|
+
var _drawFormRef$current7;
|
|
413
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current7 = drawFormRef.current) === null || _drawFormRef$current7 === void 0 ? void 0 : _drawFormRef$current7.setFieldsValue(_defineProperty({}, item.dataIndex, e.target ? e.target.value : e));
|
|
423
414
|
} else {
|
|
424
|
-
var _drawFormRef$
|
|
425
|
-
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
415
|
+
var _drawFormRef$current9;
|
|
416
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current9 = drawFormRef.current) === null || _drawFormRef$current9 === void 0 ? void 0 : _drawFormRef$current9.resetFields([item.dataIndex]);
|
|
426
417
|
}
|
|
427
418
|
}
|
|
428
419
|
}, item.fieldProps)
|
|
@@ -434,6 +425,7 @@ function PlusTable(props, ref) {
|
|
|
434
425
|
}) : columns,
|
|
435
426
|
toolBarRender: function toolBarRender(searchConfig, rows) {
|
|
436
427
|
return [(action === null || action === void 0 ? void 0 : action.includes('viewInvisibleData')) ? /*#__PURE__*/React.createElement(_Checkbox, {
|
|
428
|
+
defaultChecked: showFull,
|
|
437
429
|
onChange: function onChange(e) {
|
|
438
430
|
setShowFull(e.target.checked);
|
|
439
431
|
setTimeout(function () {
|
|
@@ -499,8 +491,8 @@ function PlusTable(props, ref) {
|
|
|
499
491
|
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(_Button, {
|
|
500
492
|
type: "default",
|
|
501
493
|
onClick: function onClick() {
|
|
502
|
-
var _drawFormRef$
|
|
503
|
-
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
494
|
+
var _drawFormRef$current10, _actionRef$current3, _actionRef$current3$r, _actionRef$current4, _actionRef$current4$r;
|
|
495
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current10 = drawFormRef.current) === null || _drawFormRef$current10 === void 0 ? void 0 : _drawFormRef$current10.resetFields();
|
|
504
496
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$r = _actionRef$current3.reset) === null || _actionRef$current3$r === void 0 ? void 0 : _actionRef$current3$r.call(_actionRef$current3);
|
|
505
497
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$r = _actionRef$current4.reload) === null || _actionRef$current4$r === void 0 ? void 0 : _actionRef$current4$r.call(_actionRef$current4);
|
|
506
498
|
},
|
package/lib/FormSearch/index.js
CHANGED
|
@@ -175,14 +175,6 @@ var FormSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
175
175
|
search: search,
|
|
176
176
|
form: _objectSpread(_objectSpread({
|
|
177
177
|
onValuesChange: function onValuesChange(changeValue, allValue) {
|
|
178
|
-
for (var key in changeValue) {
|
|
179
|
-
if (Object.hasOwn(changeValue, key)) {
|
|
180
|
-
if (!changeValue[key]) {
|
|
181
|
-
changeValue[key] = undefined;
|
|
182
|
-
allValue[key] = undefined;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
178
|
_this.props.changeValue(changeValue, allValue);
|
|
187
179
|
},
|
|
188
180
|
autoFocusFirstInput: false
|
package/lib/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ interface PlusTableProps<DataSource, U, ValueType> extends Omit<ProTableProps<Da
|
|
|
34
34
|
};
|
|
35
35
|
hasShowFull?: boolean;
|
|
36
36
|
getContainer?: string | HTMLElement | (() => HTMLElement) | false;
|
|
37
|
+
defaultShowFull?: boolean;
|
|
37
38
|
}
|
|
38
39
|
interface PlusTableRef {
|
|
39
40
|
getFieldsValue: () => Promise<any>;
|
package/lib/index.js
CHANGED
|
@@ -54,7 +54,7 @@ function PlusTable(props, ref) {
|
|
|
54
54
|
_useState2 = _slicedToArray(_useState, 2),
|
|
55
55
|
searchDrawer = _useState2[0],
|
|
56
56
|
setSearchDrawer = _useState2[1];
|
|
57
|
-
var _useState3 = (0, _react.useState)(false),
|
|
57
|
+
var _useState3 = (0, _react.useState)(props.defaultShowFull || false),
|
|
58
58
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
59
59
|
showFull = _useState4[0],
|
|
60
60
|
setShowFull = _useState4[1];
|
|
@@ -223,9 +223,8 @@ function PlusTable(props, ref) {
|
|
|
223
223
|
};
|
|
224
224
|
}();
|
|
225
225
|
var onValuesChange = function onValuesChange(changeValue, allValue) {
|
|
226
|
-
var
|
|
227
|
-
|
|
228
|
-
searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current4 = searchRef.current) === null || _searchRef$current4 === void 0 ? void 0 : _searchRef$current4.setFieldsValue(allValue);
|
|
226
|
+
var _searchRef$current4;
|
|
227
|
+
searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current4 = searchRef.current) === null || _searchRef$current4 === void 0 ? void 0 : _searchRef$current4.setFieldsValue(drawFormRef.current.getFieldsValue());
|
|
229
228
|
};
|
|
230
229
|
var handleSearchAll = /*#__PURE__*/function () {
|
|
231
230
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(searchConfig) {
|
|
@@ -267,8 +266,8 @@ function PlusTable(props, ref) {
|
|
|
267
266
|
};
|
|
268
267
|
var propsRequest = /*#__PURE__*/function () {
|
|
269
268
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params, sort, filter) {
|
|
270
|
-
var _searchRef$current5, _drawFormRef$
|
|
271
|
-
var res1, res2,
|
|
269
|
+
var _searchRef$current5, _drawFormRef$current4;
|
|
270
|
+
var res1, res2, res;
|
|
272
271
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
273
272
|
while (1) switch (_context8.prev = _context8.next) {
|
|
274
273
|
case 0:
|
|
@@ -277,35 +276,27 @@ function PlusTable(props, ref) {
|
|
|
277
276
|
case 2:
|
|
278
277
|
res1 = _context8.sent;
|
|
279
278
|
_context8.next = 5;
|
|
280
|
-
return drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
279
|
+
return drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current4 = drawFormRef.current) === null || _drawFormRef$current4 === void 0 ? void 0 : _drawFormRef$current4.getFieldsValue();
|
|
281
280
|
case 5:
|
|
282
281
|
res2 = _context8.sent;
|
|
283
|
-
for (key in res2) {
|
|
284
|
-
if (Object.hasOwn(res2, key)) {
|
|
285
|
-
if (!res2[key]) {
|
|
286
|
-
res1[key] = undefined;
|
|
287
|
-
params[key] = undefined;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
282
|
if (!request) {
|
|
292
|
-
_context8.next =
|
|
283
|
+
_context8.next = 12;
|
|
293
284
|
break;
|
|
294
285
|
}
|
|
295
|
-
_context8.next =
|
|
286
|
+
_context8.next = 9;
|
|
296
287
|
return request(_objectSpread(_objectSpread(_objectSpread({}, params), dealFetchParams(_objectSpread(_objectSpread(_objectSpread({}, res1), res2), params))), {}, {
|
|
297
288
|
showFull: showFull
|
|
298
289
|
}), sort, filter);
|
|
299
|
-
case
|
|
290
|
+
case 9:
|
|
300
291
|
_context8.t0 = _context8.sent;
|
|
301
|
-
_context8.next =
|
|
292
|
+
_context8.next = 13;
|
|
302
293
|
break;
|
|
303
|
-
case
|
|
294
|
+
case 12:
|
|
304
295
|
_context8.t0 = {};
|
|
305
|
-
case
|
|
296
|
+
case 13:
|
|
306
297
|
res = _context8.t0;
|
|
307
298
|
return _context8.abrupt("return", res);
|
|
308
|
-
case
|
|
299
|
+
case 15:
|
|
309
300
|
case "end":
|
|
310
301
|
return _context8.stop();
|
|
311
302
|
}
|
|
@@ -377,8 +368,8 @@ function PlusTable(props, ref) {
|
|
|
377
368
|
key: "2",
|
|
378
369
|
type: "default",
|
|
379
370
|
onClick: function onClick() {
|
|
380
|
-
var _drawFormRef$
|
|
381
|
-
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
371
|
+
var _drawFormRef$current5, _actionRef$current, _actionRef$current$re, _actionRef$current2, _actionRef$current2$r;
|
|
372
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current5 = drawFormRef.current) === null || _drawFormRef$current5 === void 0 ? void 0 : _drawFormRef$current5.resetFields();
|
|
382
373
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$re = _actionRef$current.reset) === null || _actionRef$current$re === void 0 ? void 0 : _actionRef$current$re.call(_actionRef$current);
|
|
383
374
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$r = _actionRef$current2.reload) === null || _actionRef$current2$r === void 0 ? void 0 : _actionRef$current2$r.call(_actionRef$current2);
|
|
384
375
|
},
|
|
@@ -390,7 +381,7 @@ function PlusTable(props, ref) {
|
|
|
390
381
|
whiteSpace: 'nowrap'
|
|
391
382
|
},
|
|
392
383
|
onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
393
|
-
var _drawFormRef$
|
|
384
|
+
var _drawFormRef$current6, _searchRef$current6;
|
|
394
385
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
395
386
|
while (1) switch (_context9.prev = _context9.next) {
|
|
396
387
|
case 0:
|
|
@@ -398,7 +389,7 @@ function PlusTable(props, ref) {
|
|
|
398
389
|
return setSearchDrawer(!searchDrawer);
|
|
399
390
|
case 2:
|
|
400
391
|
// 没法实时监听数据所以这里要带过来
|
|
401
|
-
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
392
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current6 = drawFormRef.current) === null || _drawFormRef$current6 === void 0 ? void 0 : _drawFormRef$current6.setFieldsValue(searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current6 = searchRef.current) === null || _searchRef$current6 === void 0 ? void 0 : _searchRef$current6.getFieldsValue());
|
|
402
393
|
case 3:
|
|
403
394
|
case "end":
|
|
404
395
|
return _context9.stop();
|
|
@@ -422,11 +413,11 @@ function PlusTable(props, ref) {
|
|
|
422
413
|
fieldProps: _objectSpread({
|
|
423
414
|
onChange: function onChange(e) {
|
|
424
415
|
if (e) {
|
|
425
|
-
var _drawFormRef$
|
|
426
|
-
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
416
|
+
var _drawFormRef$current7;
|
|
417
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current7 = drawFormRef.current) === null || _drawFormRef$current7 === void 0 ? void 0 : _drawFormRef$current7.setFieldsValue(_defineProperty({}, item.dataIndex, e.target ? e.target.value : e));
|
|
427
418
|
} else {
|
|
428
|
-
var _drawFormRef$
|
|
429
|
-
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
419
|
+
var _drawFormRef$current9;
|
|
420
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current9 = drawFormRef.current) === null || _drawFormRef$current9 === void 0 ? void 0 : _drawFormRef$current9.resetFields([item.dataIndex]);
|
|
430
421
|
}
|
|
431
422
|
}
|
|
432
423
|
}, item.fieldProps)
|
|
@@ -438,6 +429,7 @@ function PlusTable(props, ref) {
|
|
|
438
429
|
}) : columns,
|
|
439
430
|
toolBarRender: function toolBarRender(searchConfig, rows) {
|
|
440
431
|
return [(action === null || action === void 0 ? void 0 : action.includes('viewInvisibleData')) ? /*#__PURE__*/_react.default.createElement(_antd.Checkbox, {
|
|
432
|
+
defaultChecked: showFull,
|
|
441
433
|
onChange: function onChange(e) {
|
|
442
434
|
setShowFull(e.target.checked);
|
|
443
435
|
setTimeout(function () {
|
|
@@ -503,8 +495,8 @@ function PlusTable(props, ref) {
|
|
|
503
495
|
}, "\u67E5\u8BE2"), /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
504
496
|
type: "default",
|
|
505
497
|
onClick: function onClick() {
|
|
506
|
-
var _drawFormRef$
|
|
507
|
-
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$
|
|
498
|
+
var _drawFormRef$current10, _actionRef$current3, _actionRef$current3$r, _actionRef$current4, _actionRef$current4$r;
|
|
499
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current10 = drawFormRef.current) === null || _drawFormRef$current10 === void 0 ? void 0 : _drawFormRef$current10.resetFields();
|
|
508
500
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : (_actionRef$current3$r = _actionRef$current3.reset) === null || _actionRef$current3$r === void 0 ? void 0 : _actionRef$current3$r.call(_actionRef$current3);
|
|
509
501
|
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : (_actionRef$current4$r = _actionRef$current4.reload) === null || _actionRef$current4$r === void 0 ? void 0 : _actionRef$current4$r.call(_actionRef$current4);
|
|
510
502
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fle-ui/plus-table",
|
|
3
|
-
"version": "1.2.28
|
|
3
|
+
"version": "1.2.28",
|
|
4
4
|
"description": "@fle-ui/plus-table",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fle-ui",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@ant-design/pro-components": "^2.7.0",
|
|
47
47
|
"dayjs": "^1.11.10"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "009fe2c46a634dc85deb25d46b39b611b09bafab"
|
|
50
50
|
}
|