@fle-ui/plus-table 1.2.2 → 1.2.4
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.less +9 -7
- package/es/index.js +41 -14
- package/lib/FormSearch/index.less +9 -7
- package/lib/index.js +41 -14
- package/package.json +2 -2
package/es/FormSearch/index.less
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
::-webkit-scrollbar {
|
|
4
4
|
width: 2px;
|
|
5
5
|
}
|
|
6
|
+
// .ant-tree-checkbox-checked
|
|
7
|
+
// .ant-tree-checkbox-disabled
|
|
8
|
+
// pointer-events: none;
|
|
6
9
|
.ant-pro-query-filter-row {
|
|
7
10
|
row-gap: 12px;
|
|
8
11
|
}
|
|
@@ -21,22 +24,21 @@
|
|
|
21
24
|
display: flex;
|
|
22
25
|
flex-direction: row;
|
|
23
26
|
.ant-form-item-label {
|
|
24
|
-
width:
|
|
27
|
+
width: 86px;
|
|
25
28
|
line-height: 34px;
|
|
26
|
-
margin-right: 8px;
|
|
27
29
|
text-align: right;
|
|
28
30
|
label {
|
|
29
|
-
font-size:
|
|
31
|
+
font-size: 12px;
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
.ant-form-item-control {
|
|
33
|
-
width:
|
|
35
|
+
width: 240px;
|
|
34
36
|
.ant-form-item-control-input {
|
|
35
|
-
width:
|
|
37
|
+
width: 240px;
|
|
36
38
|
}
|
|
37
39
|
.ant-picker {
|
|
38
|
-
min-width:
|
|
39
|
-
width:
|
|
40
|
+
min-width: 240px !important;
|
|
41
|
+
width: 240px;
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
}
|
package/es/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import FormRender from './FormSearch/index';
|
|
|
33
33
|
import { BarsOutlined } from '@ant-design/icons';
|
|
34
34
|
import './FormSearch/index.less';
|
|
35
35
|
var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
36
|
-
var _otherProps$scroll
|
|
36
|
+
var _otherProps$scroll;
|
|
37
37
|
var mode = props.mode,
|
|
38
38
|
columns = props.columns,
|
|
39
39
|
_props$hasShowFull = props.hasShowFull,
|
|
@@ -111,7 +111,6 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
111
111
|
});
|
|
112
112
|
var handleOnChangeColumn = function handleOnChangeColumn(map) {
|
|
113
113
|
// 列设置更新
|
|
114
|
-
debugger;
|
|
115
114
|
setColumnsStateMap(map);
|
|
116
115
|
};
|
|
117
116
|
var handleSave = /*#__PURE__*/function () {
|
|
@@ -179,13 +178,13 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
179
178
|
return (_props$fetchSetting2 = props.fetchSetting) === null || _props$fetchSetting2 === void 0 ? void 0 : _props$fetchSetting2.call(props);
|
|
180
179
|
case 3:
|
|
181
180
|
res = _context4.sent;
|
|
182
|
-
// debugger;
|
|
183
181
|
// show?: boolean;
|
|
184
182
|
// fixed?: 'right' | 'left' | undefined;
|
|
185
183
|
// order?: number;
|
|
186
184
|
// disable?: boolean | {
|
|
187
185
|
// checkbox: boolean;
|
|
188
186
|
// };
|
|
187
|
+
// console.log(res);
|
|
189
188
|
setColumnsStateContainId(res);
|
|
190
189
|
setColumnsStateMap(res);
|
|
191
190
|
case 6:
|
|
@@ -200,7 +199,7 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
200
199
|
}();
|
|
201
200
|
var onValuesChange = function onValuesChange(changeValue, allValue) {
|
|
202
201
|
var _searchRef$current2;
|
|
203
|
-
searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current2 = searchRef.current) === null || _searchRef$current2 === void 0 ? void 0 : _searchRef$current2.
|
|
202
|
+
searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current2 = searchRef.current) === null || _searchRef$current2 === void 0 ? void 0 : _searchRef$current2.setFieldsValue(drawFormRef.current.getFieldsValue());
|
|
204
203
|
};
|
|
205
204
|
var onTableChange = function onTableChange(pagination) {
|
|
206
205
|
// 劫持分页改动
|
|
@@ -280,15 +279,14 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
280
279
|
};
|
|
281
280
|
}();
|
|
282
281
|
return /*#__PURE__*/React.createElement("div", {
|
|
283
|
-
className:
|
|
282
|
+
className: "page_plustable__body"
|
|
284
283
|
}, /*#__PURE__*/React.createElement(ProTable, _extends({}, otherProps, {
|
|
285
284
|
// 公共配置 大家都有的
|
|
286
285
|
pagination: pagination,
|
|
287
286
|
actionRef: actionRef,
|
|
288
287
|
formRef: searchRef,
|
|
289
288
|
scroll: {
|
|
290
|
-
|
|
291
|
-
x: (otherProps === null || otherProps === void 0 ? void 0 : (_otherProps$scroll2 = otherProps.scroll) === null || _otherProps$scroll2 === void 0 ? void 0 : _otherProps$scroll2.x) || 1300
|
|
289
|
+
x: (otherProps === null || otherProps === void 0 ? void 0 : (_otherProps$scroll = otherProps.scroll) === null || _otherProps$scroll === void 0 ? void 0 : _otherProps$scroll.x) || 1300
|
|
292
290
|
}
|
|
293
291
|
// 根据用户自定义的配置 如果配置了高级筛选就有这个配置
|
|
294
292
|
,
|
|
@@ -310,13 +308,14 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
310
308
|
},
|
|
311
309
|
optionRender: function optionRender(searchConfig) {
|
|
312
310
|
return [/*#__PURE__*/React.createElement(_Button, {
|
|
311
|
+
key: "1",
|
|
313
312
|
size: "middle",
|
|
314
313
|
type: "primary",
|
|
315
|
-
ghost: true,
|
|
316
314
|
onClick: function onClick() {
|
|
317
315
|
handleSearchAll(searchConfig);
|
|
318
316
|
}
|
|
319
317
|
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(_Button, {
|
|
318
|
+
key: "2",
|
|
320
319
|
type: "default",
|
|
321
320
|
onClick: function onClick() {
|
|
322
321
|
var _drawFormRef$current3;
|
|
@@ -325,9 +324,10 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
325
324
|
actionRef.current.reload();
|
|
326
325
|
},
|
|
327
326
|
size: "middle"
|
|
328
|
-
}, "\u91CD\u7F6E")
|
|
327
|
+
}, "\u91CD\u7F6E"), columns.filter(function (item) {
|
|
329
328
|
return item.search !== false;
|
|
330
329
|
}).length > 3 ? /*#__PURE__*/React.createElement("a", {
|
|
330
|
+
key: "3",
|
|
331
331
|
onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
332
332
|
var _drawFormRef$current4, _searchRef$current4;
|
|
333
333
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
@@ -358,7 +358,7 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
358
358
|
if (item.baseSearch) {
|
|
359
359
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
360
360
|
search: item.search,
|
|
361
|
-
fieldProps: {
|
|
361
|
+
fieldProps: _objectSpread({
|
|
362
362
|
onChange: function onChange(e) {
|
|
363
363
|
if (e) {
|
|
364
364
|
var _drawFormRef$current5;
|
|
@@ -368,7 +368,7 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
368
368
|
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current7 = drawFormRef.current) === null || _drawFormRef$current7 === void 0 ? void 0 : _drawFormRef$current7.resetFields([item.dataIndex]);
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
}
|
|
371
|
+
}, item.fieldProps)
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
@@ -390,6 +390,7 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
390
390
|
options: (action === null || action === void 0 ? void 0 : action.includes('columnSetting')) ? _objectSpread({
|
|
391
391
|
setting: {
|
|
392
392
|
checkedReset: false,
|
|
393
|
+
// children: <div></div>,
|
|
393
394
|
extra: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("a", {
|
|
394
395
|
onClick: function onClick() {
|
|
395
396
|
return handleSave();
|
|
@@ -410,7 +411,7 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
410
411
|
width: 380,
|
|
411
412
|
rootStyle: {
|
|
412
413
|
position: 'fixed',
|
|
413
|
-
top: props.top ||
|
|
414
|
+
top: props.top || 92
|
|
414
415
|
},
|
|
415
416
|
getContainer: (otherProps === null || otherProps === void 0 ? void 0 : otherProps.getContainer) || document.getElementsByTagName('body')[0],
|
|
416
417
|
className: "search-drawer",
|
|
@@ -435,8 +436,34 @@ var PlusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
435
436
|
},
|
|
436
437
|
form: {},
|
|
437
438
|
search: {
|
|
438
|
-
optionRender: function optionRender() {
|
|
439
|
-
return [
|
|
439
|
+
optionRender: function optionRender(searchConfig) {
|
|
440
|
+
return [/*#__PURE__*/React.createElement("div", {
|
|
441
|
+
style: {
|
|
442
|
+
position: 'fixed',
|
|
443
|
+
bottom: 0,
|
|
444
|
+
display: 'flex',
|
|
445
|
+
width: '380px',
|
|
446
|
+
right: '0',
|
|
447
|
+
justifyContent: 'space-around',
|
|
448
|
+
padding: '16px',
|
|
449
|
+
boxSizing: 'border-box'
|
|
450
|
+
}
|
|
451
|
+
}, /*#__PURE__*/React.createElement(_Button, {
|
|
452
|
+
size: "middle",
|
|
453
|
+
type: "primary",
|
|
454
|
+
onClick: function onClick() {
|
|
455
|
+
handleSearchAll(searchConfig);
|
|
456
|
+
}
|
|
457
|
+
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(_Button, {
|
|
458
|
+
type: "default",
|
|
459
|
+
onClick: function onClick() {
|
|
460
|
+
var _drawFormRef$current8;
|
|
461
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current8 = drawFormRef.current) === null || _drawFormRef$current8 === void 0 ? void 0 : _drawFormRef$current8.resetFields();
|
|
462
|
+
actionRef.current.reset();
|
|
463
|
+
actionRef.current.reload();
|
|
464
|
+
},
|
|
465
|
+
size: "middle"
|
|
466
|
+
}, "\u91CD\u7F6E"))];
|
|
440
467
|
},
|
|
441
468
|
collapsed: false,
|
|
442
469
|
collapseRender: function collapseRender() {
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
::-webkit-scrollbar {
|
|
4
4
|
width: 2px;
|
|
5
5
|
}
|
|
6
|
+
// .ant-tree-checkbox-checked
|
|
7
|
+
// .ant-tree-checkbox-disabled
|
|
8
|
+
// pointer-events: none;
|
|
6
9
|
.ant-pro-query-filter-row {
|
|
7
10
|
row-gap: 12px;
|
|
8
11
|
}
|
|
@@ -21,22 +24,21 @@
|
|
|
21
24
|
display: flex;
|
|
22
25
|
flex-direction: row;
|
|
23
26
|
.ant-form-item-label {
|
|
24
|
-
width:
|
|
27
|
+
width: 86px;
|
|
25
28
|
line-height: 34px;
|
|
26
|
-
margin-right: 8px;
|
|
27
29
|
text-align: right;
|
|
28
30
|
label {
|
|
29
|
-
font-size:
|
|
31
|
+
font-size: 12px;
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
.ant-form-item-control {
|
|
33
|
-
width:
|
|
35
|
+
width: 240px;
|
|
34
36
|
.ant-form-item-control-input {
|
|
35
|
-
width:
|
|
37
|
+
width: 240px;
|
|
36
38
|
}
|
|
37
39
|
.ant-picker {
|
|
38
|
-
min-width:
|
|
39
|
-
width:
|
|
40
|
+
min-width: 240px !important;
|
|
41
|
+
width: 240px;
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
}
|
package/lib/index.js
CHANGED
|
@@ -33,7 +33,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33
33
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
34
34
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
35
35
|
var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
36
|
-
var _otherProps$scroll
|
|
36
|
+
var _otherProps$scroll;
|
|
37
37
|
var mode = props.mode,
|
|
38
38
|
columns = props.columns,
|
|
39
39
|
_props$hasShowFull = props.hasShowFull,
|
|
@@ -111,7 +111,6 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
111
111
|
});
|
|
112
112
|
var handleOnChangeColumn = function handleOnChangeColumn(map) {
|
|
113
113
|
// 列设置更新
|
|
114
|
-
debugger;
|
|
115
114
|
setColumnsStateMap(map);
|
|
116
115
|
};
|
|
117
116
|
var handleSave = /*#__PURE__*/function () {
|
|
@@ -179,13 +178,13 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
179
178
|
return (_props$fetchSetting2 = props.fetchSetting) === null || _props$fetchSetting2 === void 0 ? void 0 : _props$fetchSetting2.call(props);
|
|
180
179
|
case 3:
|
|
181
180
|
res = _context4.sent;
|
|
182
|
-
// debugger;
|
|
183
181
|
// show?: boolean;
|
|
184
182
|
// fixed?: 'right' | 'left' | undefined;
|
|
185
183
|
// order?: number;
|
|
186
184
|
// disable?: boolean | {
|
|
187
185
|
// checkbox: boolean;
|
|
188
186
|
// };
|
|
187
|
+
// console.log(res);
|
|
189
188
|
setColumnsStateContainId(res);
|
|
190
189
|
setColumnsStateMap(res);
|
|
191
190
|
case 6:
|
|
@@ -200,7 +199,7 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
200
199
|
}();
|
|
201
200
|
var onValuesChange = function onValuesChange(changeValue, allValue) {
|
|
202
201
|
var _searchRef$current2;
|
|
203
|
-
searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current2 = searchRef.current) === null || _searchRef$current2 === void 0 ? void 0 : _searchRef$current2.
|
|
202
|
+
searchRef === null || searchRef === void 0 ? void 0 : (_searchRef$current2 = searchRef.current) === null || _searchRef$current2 === void 0 ? void 0 : _searchRef$current2.setFieldsValue(drawFormRef.current.getFieldsValue());
|
|
204
203
|
};
|
|
205
204
|
var onTableChange = function onTableChange(pagination) {
|
|
206
205
|
// 劫持分页改动
|
|
@@ -280,15 +279,14 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
280
279
|
};
|
|
281
280
|
}();
|
|
282
281
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
283
|
-
className:
|
|
282
|
+
className: "page_plustable__body"
|
|
284
283
|
}, /*#__PURE__*/_react.default.createElement(_proComponents.ProTable, _extends({}, otherProps, {
|
|
285
284
|
// 公共配置 大家都有的
|
|
286
285
|
pagination: pagination,
|
|
287
286
|
actionRef: actionRef,
|
|
288
287
|
formRef: searchRef,
|
|
289
288
|
scroll: {
|
|
290
|
-
|
|
291
|
-
x: (otherProps === null || otherProps === void 0 ? void 0 : (_otherProps$scroll2 = otherProps.scroll) === null || _otherProps$scroll2 === void 0 ? void 0 : _otherProps$scroll2.x) || 1300
|
|
289
|
+
x: (otherProps === null || otherProps === void 0 ? void 0 : (_otherProps$scroll = otherProps.scroll) === null || _otherProps$scroll === void 0 ? void 0 : _otherProps$scroll.x) || 1300
|
|
292
290
|
}
|
|
293
291
|
// 根据用户自定义的配置 如果配置了高级筛选就有这个配置
|
|
294
292
|
,
|
|
@@ -310,13 +308,14 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
310
308
|
},
|
|
311
309
|
optionRender: function optionRender(searchConfig) {
|
|
312
310
|
return [/*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
311
|
+
key: "1",
|
|
313
312
|
size: "middle",
|
|
314
313
|
type: "primary",
|
|
315
|
-
ghost: true,
|
|
316
314
|
onClick: function onClick() {
|
|
317
315
|
handleSearchAll(searchConfig);
|
|
318
316
|
}
|
|
319
317
|
}, "\u67E5\u8BE2"), /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
318
|
+
key: "2",
|
|
320
319
|
type: "default",
|
|
321
320
|
onClick: function onClick() {
|
|
322
321
|
var _drawFormRef$current3;
|
|
@@ -325,9 +324,10 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
325
324
|
actionRef.current.reload();
|
|
326
325
|
},
|
|
327
326
|
size: "middle"
|
|
328
|
-
}, "\u91CD\u7F6E")
|
|
327
|
+
}, "\u91CD\u7F6E"), columns.filter(function (item) {
|
|
329
328
|
return item.search !== false;
|
|
330
329
|
}).length > 3 ? /*#__PURE__*/_react.default.createElement("a", {
|
|
330
|
+
key: "3",
|
|
331
331
|
onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
332
332
|
var _drawFormRef$current4, _searchRef$current4;
|
|
333
333
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
@@ -358,7 +358,7 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
358
358
|
if (item.baseSearch) {
|
|
359
359
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
360
360
|
search: item.search,
|
|
361
|
-
fieldProps: {
|
|
361
|
+
fieldProps: _objectSpread({
|
|
362
362
|
onChange: function onChange(e) {
|
|
363
363
|
if (e) {
|
|
364
364
|
var _drawFormRef$current5;
|
|
@@ -368,7 +368,7 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
368
368
|
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current7 = drawFormRef.current) === null || _drawFormRef$current7 === void 0 ? void 0 : _drawFormRef$current7.resetFields([item.dataIndex]);
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
}
|
|
371
|
+
}, item.fieldProps)
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
@@ -390,6 +390,7 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
390
390
|
options: (action === null || action === void 0 ? void 0 : action.includes('columnSetting')) ? _objectSpread({
|
|
391
391
|
setting: {
|
|
392
392
|
checkedReset: false,
|
|
393
|
+
// children: <div></div>,
|
|
393
394
|
extra: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
394
395
|
onClick: function onClick() {
|
|
395
396
|
return handleSave();
|
|
@@ -410,7 +411,7 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
410
411
|
width: 380,
|
|
411
412
|
rootStyle: {
|
|
412
413
|
position: 'fixed',
|
|
413
|
-
top: props.top ||
|
|
414
|
+
top: props.top || 92
|
|
414
415
|
},
|
|
415
416
|
getContainer: (otherProps === null || otherProps === void 0 ? void 0 : otherProps.getContainer) || document.getElementsByTagName('body')[0],
|
|
416
417
|
className: "search-drawer",
|
|
@@ -435,8 +436,34 @@ var PlusTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
435
436
|
},
|
|
436
437
|
form: {},
|
|
437
438
|
search: {
|
|
438
|
-
optionRender: function optionRender() {
|
|
439
|
-
return [
|
|
439
|
+
optionRender: function optionRender(searchConfig) {
|
|
440
|
+
return [/*#__PURE__*/_react.default.createElement("div", {
|
|
441
|
+
style: {
|
|
442
|
+
position: 'fixed',
|
|
443
|
+
bottom: 0,
|
|
444
|
+
display: 'flex',
|
|
445
|
+
width: '380px',
|
|
446
|
+
right: '0',
|
|
447
|
+
justifyContent: 'space-around',
|
|
448
|
+
padding: '16px',
|
|
449
|
+
boxSizing: 'border-box'
|
|
450
|
+
}
|
|
451
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
452
|
+
size: "middle",
|
|
453
|
+
type: "primary",
|
|
454
|
+
onClick: function onClick() {
|
|
455
|
+
handleSearchAll(searchConfig);
|
|
456
|
+
}
|
|
457
|
+
}, "\u67E5\u8BE2"), /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
458
|
+
type: "default",
|
|
459
|
+
onClick: function onClick() {
|
|
460
|
+
var _drawFormRef$current8;
|
|
461
|
+
drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current8 = drawFormRef.current) === null || _drawFormRef$current8 === void 0 ? void 0 : _drawFormRef$current8.resetFields();
|
|
462
|
+
actionRef.current.reset();
|
|
463
|
+
actionRef.current.reload();
|
|
464
|
+
},
|
|
465
|
+
size: "middle"
|
|
466
|
+
}, "\u91CD\u7F6E"))];
|
|
440
467
|
},
|
|
441
468
|
collapsed: false,
|
|
442
469
|
collapseRender: function collapseRender() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fle-ui/plus-table",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
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": "25f0a020b59e41af207bb1059c0141577f04b6eb"
|
|
50
50
|
}
|