@teamix/pro 1.2.17 → 1.2.21
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/dist/212.js +49 -49
- package/dist/pro.css +1 -1
- package/dist/pro.js +2173 -744
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/actions/base.d.ts +2 -1
- package/es/actions/base.js +1 -1
- package/es/actions/danger-pop-confirm.d.ts +5 -0
- package/es/actions/danger-pop-confirm.js +10 -0
- package/es/actions/dialog.d.ts +1 -1
- package/es/actions/dialog.js +34 -36
- package/es/actions/index.d.ts +3 -0
- package/es/actions/index.js +10 -0
- package/es/actions/pop-confirm.d.ts +9 -0
- package/es/actions/pop-confirm.js +9 -0
- package/es/form/Components/LightFilter/componentMap.d.ts +2 -1
- package/es/form/Components/LightFilter/componentMap.js +4 -2
- package/es/form/Components/LightFilter/index.d.ts +1 -0
- package/es/form/Components/LightFilter/index.js +34 -16
- package/es/form/Components/LightFilter/index.scss +14 -4
- package/es/form/Filter/AdvancedFilter.d.ts +7 -0
- package/es/form/Filter/AdvancedFilter.js +113 -0
- package/es/form/Filter/LightFilter.d.ts +7 -0
- package/es/form/Filter/LightFilter.js +79 -0
- package/es/form/Filter/SimpleFilter.d.ts +7 -0
- package/es/form/Filter/SimpleFilter.js +74 -0
- package/es/form/Filter/index2.js +288 -235
- package/es/form/Filter/index2.scss +3 -0
- package/es/form/ProForm/index.js +11 -7
- package/es/form/ProForm/index.scss +3 -0
- package/es/form/ProForm/useFieldRequest.js +1 -8
- package/es/form/ProForm/useFormDisplayValues.js +4 -2
- package/es/form/SchemaForm/index.js +19 -11
- package/es/form/SchemaForm/initializeDataSource.d.ts +2 -2
- package/es/form/SchemaForm/initializeDataSource.js +4 -9
- package/es/form/SchemaForm/initializeRequest.d.ts +2 -2
- package/es/form/SchemaForm/initializeRequest.js +4 -10
- package/es/form/SchemaForm/initializeRules.d.ts +7 -1
- package/es/form/SchemaForm/initializeRules.js +9 -13
- package/es/form/SchemaForm/reactions.d.ts +5 -5
- package/es/form/SchemaForm/reactions.js +27 -29
- package/es/form/typing.d.ts +11 -2
- package/es/form/utils.d.ts +8 -7
- package/es/form/utils.js +5 -4
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/table/components/Filter/index.js +1 -0
- package/es/table/components/Pagination/index.d.ts +3 -0
- package/es/table/components/Pagination/index.js +82 -0
- package/es/table/components/ToolBar/FilterColumnIcon.js +18 -5
- package/es/table/components/ToolBar/index.scss +8 -2
- package/es/table/index.js +71 -18
- package/es/table/index.scss +7 -1
- package/es/table/typing.d.ts +5 -0
- package/lib/actions/base.d.ts +2 -1
- package/lib/actions/base.js +1 -1
- package/lib/actions/danger-pop-confirm.d.ts +5 -0
- package/lib/actions/danger-pop-confirm.js +22 -0
- package/lib/actions/dialog.d.ts +1 -1
- package/lib/actions/dialog.js +35 -36
- package/lib/actions/index.d.ts +3 -0
- package/lib/actions/index.js +12 -0
- package/lib/actions/pop-confirm.d.ts +9 -0
- package/lib/actions/pop-confirm.js +23 -0
- package/lib/form/Components/LightFilter/componentMap.d.ts +2 -1
- package/lib/form/Components/LightFilter/componentMap.js +6 -4
- package/lib/form/Components/LightFilter/index.d.ts +1 -0
- package/lib/form/Components/LightFilter/index.js +31 -14
- package/lib/form/Components/LightFilter/index.scss +14 -4
- package/lib/form/Filter/AdvancedFilter.d.ts +7 -0
- package/lib/form/Filter/AdvancedFilter.js +133 -0
- package/lib/form/Filter/LightFilter.d.ts +7 -0
- package/lib/form/Filter/LightFilter.js +99 -0
- package/lib/form/Filter/SimpleFilter.d.ts +7 -0
- package/lib/form/Filter/SimpleFilter.js +93 -0
- package/lib/form/Filter/index2.js +291 -234
- package/lib/form/Filter/index2.scss +3 -0
- package/lib/form/ProForm/index.js +10 -6
- package/lib/form/ProForm/index.scss +3 -0
- package/lib/form/ProForm/useFieldRequest.js +1 -9
- package/lib/form/ProForm/useFormDisplayValues.js +3 -1
- package/lib/form/SchemaForm/index.js +19 -10
- package/lib/form/SchemaForm/initializeDataSource.d.ts +2 -2
- package/lib/form/SchemaForm/initializeDataSource.js +4 -11
- package/lib/form/SchemaForm/initializeRequest.d.ts +2 -2
- package/lib/form/SchemaForm/initializeRequest.js +4 -11
- package/lib/form/SchemaForm/initializeRules.d.ts +7 -1
- package/lib/form/SchemaForm/initializeRules.js +9 -16
- package/lib/form/SchemaForm/reactions.d.ts +5 -5
- package/lib/form/SchemaForm/reactions.js +29 -31
- package/lib/form/typing.d.ts +11 -2
- package/lib/form/utils.d.ts +8 -7
- package/lib/form/utils.js +6 -5
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/table/components/Pagination/index.d.ts +3 -0
- package/lib/table/components/Pagination/index.js +95 -0
- package/lib/table/components/ToolBar/FilterColumnIcon.js +18 -5
- package/lib/table/components/ToolBar/index.scss +8 -2
- package/lib/table/index.js +69 -17
- package/lib/table/index.scss +7 -1
- package/lib/table/typing.d.ts +5 -0
- package/package.json +3 -3
@@ -71,7 +71,8 @@ var processColumns = function processColumns(columns) {
|
|
71
71
|
var FilterColumnIcon = function FilterColumnIcon(props) {
|
72
72
|
var _props$columns = props.columns,
|
73
73
|
columns = _props$columns === void 0 ? [] : _props$columns,
|
74
|
-
actionRef = props.actionRef
|
74
|
+
actionRef = props.actionRef,
|
75
|
+
filterColumnType = props.filterColumnType;
|
75
76
|
|
76
77
|
var _useState = (0, _react.useState)(true),
|
77
78
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -258,7 +259,9 @@ var FilterColumnIcon = function FilterColumnIcon(props) {
|
|
258
259
|
align: "tr br"
|
259
260
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
260
261
|
className: cls()
|
261
|
-
}, /*#__PURE__*/_react.default.createElement(_components.Menu,
|
262
|
+
}, /*#__PURE__*/_react.default.createElement(_components.Menu, {
|
263
|
+
className: cls('all-select')
|
264
|
+
}, /*#__PURE__*/_react.default.createElement(CheckboxItem, {
|
262
265
|
indeterminate: indeterminate,
|
263
266
|
checked: allVisible,
|
264
267
|
onChange: onChangeAllColumns
|
@@ -271,7 +274,9 @@ var FilterColumnIcon = function FilterColumnIcon(props) {
|
|
271
274
|
type: "primary"
|
272
275
|
}, (0, _utils.getMessage)('reset'))), /*#__PURE__*/_react.default.createElement(_components.Menu.Divider, {
|
273
276
|
key: "divider"
|
274
|
-
}),
|
277
|
+
})), /*#__PURE__*/_react.default.createElement(_components.Menu, {
|
278
|
+
className: cls('checkbox-group')
|
279
|
+
}, newColumns.map(function (_ref9, index) {
|
275
280
|
var _newColumns$find;
|
276
281
|
|
277
282
|
var dataIndex = _ref9.dataIndex,
|
@@ -361,12 +366,20 @@ var FilterColumnIcon = function FilterColumnIcon(props) {
|
|
361
366
|
},
|
362
367
|
disabled: columnFiltersDisabled
|
363
368
|
}, /*#__PURE__*/_react.default.createElement(_utils.Ellipsis, {
|
364
|
-
tooltip:
|
369
|
+
tooltip: title
|
365
370
|
}, title)));
|
366
371
|
}))));
|
367
372
|
};
|
368
373
|
|
369
|
-
if (
|
374
|
+
if (filterColumnType === 'dialog') {
|
375
|
+
return renderDialog();
|
376
|
+
}
|
377
|
+
|
378
|
+
if (filterColumnType === 'dropdown') {
|
379
|
+
return renderDropdown();
|
380
|
+
}
|
381
|
+
|
382
|
+
if (newColumns.length >= 20) {
|
370
383
|
return renderDialog();
|
371
384
|
}
|
372
385
|
|
@@ -18,8 +18,6 @@
|
|
18
18
|
// FilterColumn
|
19
19
|
.teamix-pro-table-toolbar-filter-column {
|
20
20
|
min-width: 180px;
|
21
|
-
max-height: 350px;
|
22
|
-
overflow: auto;
|
23
21
|
box-shadow: var(--popup-local-shadow, 0px 6px 24px 0px rgba(0, 0, 0, 0.1));
|
24
22
|
background: var(--menu-background);
|
25
23
|
&-reset {
|
@@ -76,6 +74,14 @@
|
|
76
74
|
align-items: center;
|
77
75
|
}
|
78
76
|
}
|
77
|
+
.teamix-pro-table-toolbar-filter-column-all-select.teamix-pro-table-toolbar-filter-column-all-select {
|
78
|
+
padding-bottom: 0;
|
79
|
+
}
|
80
|
+
.teamix-pro-table-toolbar-filter-column-checkbox-group.teamix-pro-table-toolbar-filter-column-checkbox-group {
|
81
|
+
padding-top: 0;
|
82
|
+
max-height: 310px;
|
83
|
+
overflow: auto;
|
84
|
+
}
|
79
85
|
|
80
86
|
// fullscreen
|
81
87
|
.teamix-pro-table-full-screen {
|
package/lib/table/index.js
CHANGED
@@ -55,7 +55,7 @@ Object.keys(_typing).forEach(function (key) {
|
|
55
55
|
}
|
56
56
|
});
|
57
57
|
});
|
58
|
-
var _excluded = ["header", "className", "tableClassName", "mainAction", "extra", "dataFilter", "toolBar", "columns", "useRowSelection", "rowSelection", "onChangeRowSelection", "getRowSelection", "primaryKey", "footerAction", "footer", "url", "pageKey", "pageSizeKey", "method", "params", "formatSort", "formatParams", "formatResult", "requestWhenMount", "showPagination", "pageSizeList", "showSkeleton", "skeletonSize", "actionRef", "dataSource", "filterDebounce", "footerSuction", "autoRefresh", "customRequest"];
|
58
|
+
var _excluded = ["header", "className", "tableClassName", "mainAction", "extra", "dataFilter", "toolBar", "columns", "useRowSelection", "rowSelection", "onChangeRowSelection", "getRowSelection", "primaryKey", "footerAction", "footer", "url", "pageKey", "pageSizeKey", "method", "params", "formatSort", "formatParams", "formatResult", "requestWhenMount", "showPagination", "pageSizeList", "showSkeleton", "skeletonSize", "actionRef", "dataSource", "filterDebounce", "footerSuction", "autoRefresh", "customRequest", "filterColumnType"];
|
59
59
|
|
60
60
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
61
61
|
|
@@ -103,10 +103,36 @@ var toJS = _form.formilyReactive.toJS;
|
|
103
103
|
* @returns
|
104
104
|
*/
|
105
105
|
|
106
|
-
var processColumns = function processColumns(columns) {
|
107
|
-
|
106
|
+
var processColumns = function processColumns(columns, initialColumns) {
|
107
|
+
var filterColumns = columns.filter(function (item) {
|
108
108
|
return item.columnFilters !== false;
|
109
|
-
});
|
109
|
+
}); // 处理只剩一列批量选择的情况下宽度错乱问题
|
110
|
+
|
111
|
+
if (filterColumns === null || filterColumns === void 0 ? void 0 : filterColumns.length) {
|
112
|
+
if ((filterColumns === null || filterColumns === void 0 ? void 0 : filterColumns.length) === 1) {
|
113
|
+
var _filterColumns$, _filterColumns$2;
|
114
|
+
|
115
|
+
if ((_filterColumns$ = filterColumns[0]) === null || _filterColumns$ === void 0 ? void 0 : _filterColumns$.width) {
|
116
|
+
delete filterColumns[0].width;
|
117
|
+
}
|
118
|
+
|
119
|
+
if ((_filterColumns$2 = filterColumns[0]) === null || _filterColumns$2 === void 0 ? void 0 : _filterColumns$2.lock) {
|
120
|
+
filterColumns[0].lock = false;
|
121
|
+
}
|
122
|
+
} else {
|
123
|
+
var _initialColumns$, _initialColumns$2;
|
124
|
+
|
125
|
+
if ((_initialColumns$ = initialColumns[0]) === null || _initialColumns$ === void 0 ? void 0 : _initialColumns$.width) {
|
126
|
+
filterColumns[0].width = initialColumns[0].width;
|
127
|
+
}
|
128
|
+
|
129
|
+
if ((_initialColumns$2 = initialColumns[0]) === null || _initialColumns$2 === void 0 ? void 0 : _initialColumns$2.lock) {
|
130
|
+
filterColumns[0].lock = initialColumns[0].lock;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
return filterColumns;
|
110
136
|
};
|
111
137
|
/** 默认请求翻页参数 */
|
112
138
|
|
@@ -176,6 +202,8 @@ var ProTable = function ProTable(props) {
|
|
176
202
|
return false;
|
177
203
|
} : _props$autoRefresh,
|
178
204
|
customRequest = props.customRequest,
|
205
|
+
_props$filterColumnTy = props.filterColumnType,
|
206
|
+
filterColumnType = _props$filterColumnTy === void 0 ? 'auto' : _props$filterColumnTy,
|
179
207
|
otherProps = _objectWithoutProperties(props, _excluded);
|
180
208
|
|
181
209
|
var targetPageKey = pageKey || globalPageKey;
|
@@ -207,7 +235,7 @@ var ProTable = function ProTable(props) {
|
|
207
235
|
sort = _useState10[0],
|
208
236
|
setSort = _useState10[1];
|
209
237
|
|
210
|
-
var _useState11 = (0, _react.useState)(requestWhenMount && propsShowSkeleton),
|
238
|
+
var _useState11 = (0, _react.useState)(!propsDataSource && requestWhenMount && propsShowSkeleton),
|
211
239
|
_useState12 = _slicedToArray(_useState11, 2),
|
212
240
|
showSkeleton = _useState12[0],
|
213
241
|
setShowSkeleton = _useState12[1]; // 首次加载,渲染骨架屏
|
@@ -224,7 +252,7 @@ var ProTable = function ProTable(props) {
|
|
224
252
|
var tableRef = (0, _react.useRef)(null);
|
225
253
|
var actionRef = (0, _react.useRef)(); // 传给 table 的过滤后的 columns
|
226
254
|
|
227
|
-
var _useState15 = (0, _react.useState)(processColumns(propsColumns !== null && propsColumns !== void 0 ? propsColumns : [])),
|
255
|
+
var _useState15 = (0, _react.useState)(processColumns(propsColumns !== null && propsColumns !== void 0 ? propsColumns : [], propsColumns)),
|
228
256
|
_useState16 = _slicedToArray(_useState15, 2),
|
229
257
|
filteredColumns = _useState16[0],
|
230
258
|
setFilteredColumns = _useState16[1];
|
@@ -395,10 +423,16 @@ var ProTable = function ProTable(props) {
|
|
395
423
|
(0, _react.useEffect)(function () {
|
396
424
|
var _actionRef$current, _actionRef$current$se;
|
397
425
|
|
398
|
-
var columns = processColumns(propsColumns !== null && propsColumns !== void 0 ? propsColumns : []);
|
426
|
+
var columns = processColumns(propsColumns !== null && propsColumns !== void 0 ? propsColumns : [], propsColumns);
|
399
427
|
setFilteredColumns(columns);
|
400
428
|
(_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : (_actionRef$current$se = _actionRef$current.setState) === null || _actionRef$current$se === void 0 ? void 0 : _actionRef$current$se.call(_actionRef$current, 'filterColumns', columns);
|
401
|
-
}, [propsColumns]); //
|
429
|
+
}, [propsColumns]); // dataSource 受控
|
430
|
+
|
431
|
+
(0, _react.useEffect)(function () {
|
432
|
+
if (propsDataSource) {
|
433
|
+
setData(propsDataSource);
|
434
|
+
}
|
435
|
+
}, [propsDataSource]); // 绑定 Actions
|
402
436
|
|
403
437
|
(0, _utils2.useActionType)(actionRef, {
|
404
438
|
fullScreen: function fullScreen() {
|
@@ -413,7 +447,7 @@ var ProTable = function ProTable(props) {
|
|
413
447
|
setColumn: function setColumn(newColumns) {
|
414
448
|
var _actionRef$current2, _actionRef$current2$s;
|
415
449
|
|
416
|
-
var columns = processColumns(newColumns);
|
450
|
+
var columns = processColumns(newColumns, propsColumns);
|
417
451
|
setFilteredColumns(columns);
|
418
452
|
(_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : (_actionRef$current2$s = _actionRef$current2.setState) === null || _actionRef$current2$s === void 0 ? void 0 : _actionRef$current2$s.call(_actionRef$current2, 'filterColumns', columns);
|
419
453
|
},
|
@@ -425,6 +459,15 @@ var ProTable = function ProTable(props) {
|
|
425
459
|
},
|
426
460
|
request: function request(params) {
|
427
461
|
if (dataFilterForm.validate()) {
|
462
|
+
// 如果请求中还有翻页相关信息,需要自动设置到指定页
|
463
|
+
if (params === null || params === void 0 ? void 0 : params[targetPageKey]) {
|
464
|
+
setCurrentPage(params[targetPageKey]);
|
465
|
+
}
|
466
|
+
|
467
|
+
if (params === null || params === void 0 ? void 0 : params[targetPageSizeKey]) {
|
468
|
+
setPageSize(params[targetPageSizeKey]);
|
469
|
+
}
|
470
|
+
|
428
471
|
_request(params);
|
429
472
|
}
|
430
473
|
},
|
@@ -455,6 +498,7 @@ var ProTable = function ProTable(props) {
|
|
455
498
|
targetPageSizeKey: targetPageSizeKey,
|
456
499
|
pageSize: pageSize
|
457
500
|
},
|
501
|
+
data: data,
|
458
502
|
dataFilterForm: dataFilterForm,
|
459
503
|
resetTableMaxBodyHeight: function resetTableMaxBodyHeight() {
|
460
504
|
getHeaderHeight().then(function (height) {
|
@@ -653,10 +697,11 @@ var ProTable = function ProTable(props) {
|
|
653
697
|
(propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onFilter) && (propsDataFilter === null || propsDataFilter === void 0 ? void 0 : propsDataFilter.onFilter(_objectSpread({}, toJS(dataFilterForm.values))));
|
654
698
|
|
655
699
|
if (dataFilterForm.validate()) {
|
656
|
-
|
657
|
-
|
658
|
-
//
|
659
|
-
|
700
|
+
var _actionRef$current6, _actionRef$current6$c;
|
701
|
+
|
702
|
+
// 搜索变化时,暂时先清空选择
|
703
|
+
(_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : (_actionRef$current6$c = _actionRef$current6.clearRowSelection) === null || _actionRef$current6$c === void 0 ? void 0 : _actionRef$current6$c.call(_actionRef$current6);
|
704
|
+
setCurrentPage(1);
|
660
705
|
|
661
706
|
_request(_defineProperty({}, targetPageKey, 1));
|
662
707
|
}
|
@@ -691,7 +736,8 @@ var ProTable = function ProTable(props) {
|
|
691
736
|
columns: propsColumns,
|
692
737
|
dataFilter: dataFilter,
|
693
738
|
dataFilterForm: dataFilterForm,
|
694
|
-
rowSelection: rowSelection
|
739
|
+
rowSelection: rowSelection,
|
740
|
+
filterColumnType: filterColumnType
|
695
741
|
}), /*#__PURE__*/_react.default.createElement(_components.Table.StickyLock, _objectSpread({
|
696
742
|
hasBorder: false,
|
697
743
|
dataSource: showSkeleton ? skeletonDataSource : data || props.dataSource,
|
@@ -749,15 +795,21 @@ var ProTable = function ProTable(props) {
|
|
749
795
|
|
750
796
|
var renderFooter = function renderFooter() {
|
751
797
|
function onChangePagination(currentPage) {
|
798
|
+
var _actionRef$current7, _actionRef$current7$c;
|
799
|
+
|
752
800
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
801
|
+
// 翻页暂时先清空选择
|
802
|
+
(_actionRef$current7 = actionRef.current) === null || _actionRef$current7 === void 0 ? void 0 : (_actionRef$current7$c = _actionRef$current7.clearRowSelection) === null || _actionRef$current7$c === void 0 ? void 0 : _actionRef$current7$c.call(_actionRef$current7);
|
753
803
|
setCurrentPage(currentPage);
|
754
804
|
|
755
805
|
_request(_objectSpread(_defineProperty({}, targetPageKey, currentPage), params));
|
756
806
|
}
|
757
807
|
|
758
808
|
function onChangePaginationSize(currentPageSize) {
|
759
|
-
var _request5;
|
809
|
+
var _actionRef$current8, _actionRef$current8$c, _request5;
|
760
810
|
|
811
|
+
// 翻页暂时先清空选择
|
812
|
+
(_actionRef$current8 = actionRef.current) === null || _actionRef$current8 === void 0 ? void 0 : (_actionRef$current8$c = _actionRef$current8.clearRowSelection) === null || _actionRef$current8$c === void 0 ? void 0 : _actionRef$current8$c.call(_actionRef$current8);
|
761
813
|
setPageSize(currentPageSize);
|
762
814
|
setCurrentPage(1);
|
763
815
|
|
@@ -797,6 +849,8 @@ var ProTable = function ProTable(props) {
|
|
797
849
|
return onChangePagination(number);
|
798
850
|
},
|
799
851
|
total: total,
|
852
|
+
shape: "arrow-only",
|
853
|
+
pageSizePosition: "end",
|
800
854
|
totalRender: function totalRender(total) {
|
801
855
|
return (0, _utils.getMessage)('total', {
|
802
856
|
total: total
|
@@ -804,10 +858,8 @@ var ProTable = function ProTable(props) {
|
|
804
858
|
},
|
805
859
|
pageSize: pageSize,
|
806
860
|
current: currentPage,
|
807
|
-
shape: "arrow-only",
|
808
861
|
pageSizeList: pageSizeList,
|
809
862
|
pageSizeSelector: total > (props.pageSize || 10) * 2 ? 'dropdown' : false,
|
810
|
-
pageSizePosition: "end",
|
811
863
|
type: total / pageSize <= 2 ? 'simple' : 'normal',
|
812
864
|
onPageSizeChange: function onPageSizeChange(number) {
|
813
865
|
return onChangePaginationSize(number);
|
package/lib/table/index.scss
CHANGED
@@ -32,12 +32,18 @@ $fullscreenPadding: 24px;
|
|
32
32
|
}
|
33
33
|
&-footer-left-wrapper {
|
34
34
|
display: flex;
|
35
|
-
flex:
|
35
|
+
flex-shrink: 0;
|
36
36
|
align-items: center;
|
37
37
|
}
|
38
38
|
&-footer-right-wrapper {
|
39
39
|
display: flex;
|
40
40
|
justify-content: flex-end;
|
41
|
+
width: 100%;
|
42
|
+
}
|
43
|
+
.pagination-wrapper {
|
44
|
+
display: flex;
|
45
|
+
justify-content: flex-end;
|
46
|
+
width: 100%;
|
41
47
|
}
|
42
48
|
&-footer-action {
|
43
49
|
margin-left: 16px;
|
package/lib/table/typing.d.ts
CHANGED
@@ -129,6 +129,7 @@ export declare type rowSelectionType = {
|
|
129
129
|
onSelect?: (selected: boolean, record: any, records: Array<any>) => void;
|
130
130
|
onSelectAll?: (selected: boolean, records: Array<any>) => void;
|
131
131
|
selectedRowKeys?: Array<any>;
|
132
|
+
selectedRecords?: any[];
|
132
133
|
mode?: 'single' | 'multiple';
|
133
134
|
titleProps?: () => any;
|
134
135
|
columnProps?: () => any;
|
@@ -177,6 +178,8 @@ export declare type ProTableActionType = {
|
|
177
178
|
resetPage?: () => void;
|
178
179
|
/** 获取数据过滤区表单实例 */
|
179
180
|
dataFilterForm?: FormType;
|
181
|
+
/** 表格当前的数据 */
|
182
|
+
data?: any[];
|
180
183
|
} & ProTableActionTypeMutations;
|
181
184
|
/** action State 定义 */
|
182
185
|
export declare type ProTableActionTypeMutations = {
|
@@ -232,6 +235,8 @@ export declare type ProTableTopAreaProps = {
|
|
232
235
|
dataFilter?: ProTableDataFilterProps;
|
233
236
|
/** 数据过滤区 form 表单模型 */
|
234
237
|
dataFilterForm?: FormType;
|
238
|
+
/** 排序、筛选列展示状态 */
|
239
|
+
filterColumnType?: 'dialog' | 'dropdown' | 'auto';
|
235
240
|
};
|
236
241
|
/** 单个工具栏 */
|
237
242
|
export declare type ProTableToolBarItem = React.ReactNode | 'refresh' | 'density' | 'filterColumn' | 'fullscreen';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teamix/pro",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.21",
|
4
4
|
"description": "TeamixPro大包",
|
5
5
|
"repository": "http://gitlab.alibaba-inc.com/teamix/pro",
|
6
6
|
"author": "Velociraptor(迅猛龙)",
|
@@ -24,9 +24,9 @@
|
|
24
24
|
"dependencies": {
|
25
25
|
"@formily/core": "2.0.5",
|
26
26
|
"@formily/react": "2.0.5",
|
27
|
-
"@teamix/formily": "2.0.5-
|
27
|
+
"@teamix/formily": "2.0.5-2",
|
28
28
|
"@teamix/hooks": "^0.1.0",
|
29
|
-
"@teamix/pop-confirm": "^1.2.
|
29
|
+
"@teamix/pop-confirm": "^1.2.4",
|
30
30
|
"@teamix/pro-field": "^1.0.0",
|
31
31
|
"@teamix/pro-page-container": "^1.0.0",
|
32
32
|
"@teamix/pro-skeleton": "^1.0.0",
|