@nokecy/qc-ui 1.0.43 → 1.0.44
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.
|
@@ -530,7 +530,11 @@ function AgGridPlus(props) {
|
|
|
530
530
|
var rowDataMemo = (0, _react.useMemo)(function () {
|
|
531
531
|
return props.treeData ? (0, _utils.flatten)((0, _utils.toTree)(rowData, treeKeyName !== null && treeKeyName !== void 0 ? treeKeyName : "id", treeParentName !== null && treeParentName !== void 0 ? treeParentName : "parentId"), treeKeyName !== null && treeKeyName !== void 0 ? treeKeyName : "id") : rowData;
|
|
532
532
|
}, [rowData, props.treeData]);
|
|
533
|
-
var actionDom = toolBarRender && toolBarRender(apiRef.current, (0, _utils.convertFilterModel)(queryFilter, allColDefs), queryFilter
|
|
533
|
+
var actionDom = toolBarRender && toolBarRender(apiRef.current, (0, _utils.convertFilterModel)(queryFilter, allColDefs), queryFilter, {
|
|
534
|
+
current: pagination.current,
|
|
535
|
+
skipCount: pagination.current == 1 ? 0 : (pagination.current - 1) * pagination.pageSize,
|
|
536
|
+
maxResultCount: pagination.pageSize
|
|
537
|
+
});
|
|
534
538
|
var autoGroupColumnDef = (0, _react.useMemo)(function () {
|
|
535
539
|
return _objectSpread(_objectSpread({}, props.autoGroupColumnDef), {}, {
|
|
536
540
|
cellRenderer: _customGroupCellRenderer.default
|
|
@@ -585,6 +589,7 @@ function AgGridPlus(props) {
|
|
|
585
589
|
height: "100%"
|
|
586
590
|
}
|
|
587
591
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
592
|
+
className: "qc-table-container",
|
|
588
593
|
style: _objectSpread({
|
|
589
594
|
display: "flex",
|
|
590
595
|
flexDirection: "column",
|
|
@@ -17,7 +17,11 @@ interface GridProps extends AgGridReactProps {
|
|
|
17
17
|
search?: boolean;
|
|
18
18
|
headerTitle?: React.ReactNode;
|
|
19
19
|
columnDefs?: (AgGridColumnPropsClone | ColGroupDef<any>)[] | null;
|
|
20
|
-
toolBarRender?: (gridApi?: GridApi, filter?: string, queryFilter?: any
|
|
20
|
+
toolBarRender?: (gridApi?: GridApi, filter?: string, queryFilter?: any, paginationInfo?: {
|
|
21
|
+
current: number;
|
|
22
|
+
skipCount: number;
|
|
23
|
+
maxResultCount: number;
|
|
24
|
+
}) => React.ReactNode[];
|
|
21
25
|
defaultSearchExpand?: Boolean;
|
|
22
26
|
/**
|
|
23
27
|
* 用于标识grid唯一标识,用于保存列方案
|
|
@@ -521,7 +521,11 @@ function AgGridPlus(props) {
|
|
|
521
521
|
var rowDataMemo = useMemo(function () {
|
|
522
522
|
return props.treeData ? flatten(toTree(rowData, treeKeyName !== null && treeKeyName !== void 0 ? treeKeyName : "id", treeParentName !== null && treeParentName !== void 0 ? treeParentName : "parentId"), treeKeyName !== null && treeKeyName !== void 0 ? treeKeyName : "id") : rowData;
|
|
523
523
|
}, [rowData, props.treeData]);
|
|
524
|
-
var actionDom = toolBarRender && toolBarRender(apiRef.current, convertFilterModel(queryFilter, allColDefs), queryFilter
|
|
524
|
+
var actionDom = toolBarRender && toolBarRender(apiRef.current, convertFilterModel(queryFilter, allColDefs), queryFilter, {
|
|
525
|
+
current: pagination.current,
|
|
526
|
+
skipCount: pagination.current == 1 ? 0 : (pagination.current - 1) * pagination.pageSize,
|
|
527
|
+
maxResultCount: pagination.pageSize
|
|
528
|
+
});
|
|
525
529
|
var autoGroupColumnDef = useMemo(function () {
|
|
526
530
|
return _objectSpread(_objectSpread({}, props.autoGroupColumnDef), {}, {
|
|
527
531
|
cellRenderer: CustomGroupCellRenderer
|
|
@@ -576,6 +580,7 @@ function AgGridPlus(props) {
|
|
|
576
580
|
height: "100%"
|
|
577
581
|
}
|
|
578
582
|
}, /*#__PURE__*/React.createElement("div", {
|
|
583
|
+
className: "qc-table-container",
|
|
579
584
|
style: _objectSpread({
|
|
580
585
|
display: "flex",
|
|
581
586
|
flexDirection: "column",
|
|
@@ -17,7 +17,11 @@ interface GridProps extends AgGridReactProps {
|
|
|
17
17
|
search?: boolean;
|
|
18
18
|
headerTitle?: React.ReactNode;
|
|
19
19
|
columnDefs?: (AgGridColumnPropsClone | ColGroupDef<any>)[] | null;
|
|
20
|
-
toolBarRender?: (gridApi?: GridApi, filter?: string, queryFilter?: any
|
|
20
|
+
toolBarRender?: (gridApi?: GridApi, filter?: string, queryFilter?: any, paginationInfo?: {
|
|
21
|
+
current: number;
|
|
22
|
+
skipCount: number;
|
|
23
|
+
maxResultCount: number;
|
|
24
|
+
}) => React.ReactNode[];
|
|
21
25
|
defaultSearchExpand?: Boolean;
|
|
22
26
|
/**
|
|
23
27
|
* 用于标识grid唯一标识,用于保存列方案
|