@nokecy/qc-ui 1.0.32 → 1.0.34
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/cjs/ag-grid-plus/ag-gridPlus.js +6 -3
- package/dist/cjs/ag-grid-plus/index.less +6 -12
- package/dist/cjs/dialogSelect/index.js +3 -3
- package/dist/esm/ag-grid-plus/ag-gridPlus.js +6 -3
- package/dist/esm/ag-grid-plus/index.less +6 -12
- package/dist/esm/dialogSelect/index.js +3 -3
- package/dist/umd/qc-ui.min.css +1 -1
- package/dist/umd/qc-ui.min.js +1 -1
- package/package.json +1 -1
|
@@ -240,7 +240,6 @@ function AgGridPlus(props) {
|
|
|
240
240
|
}
|
|
241
241
|
return cellMap;
|
|
242
242
|
};
|
|
243
|
-
var groupRowRenderer = (0, _react.useCallback)(_customGroupCellRenderer.default, []);
|
|
244
243
|
var sortChanged = function sortChanged(columnApi) {
|
|
245
244
|
var sortedColumn = columnApi.getColumnState().find(function (col) {
|
|
246
245
|
return Boolean(col.sort);
|
|
@@ -471,6 +470,11 @@ function AgGridPlus(props) {
|
|
|
471
470
|
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;
|
|
472
471
|
}, [rowData, props.treeData]);
|
|
473
472
|
var actionDom = toolBarRender && toolBarRender(apiRef.current, (0, _utils.convertFilterModel)(queryFilter, allColDefs), queryFilter);
|
|
473
|
+
var autoGroupColumnDef = (0, _react.useMemo)(function () {
|
|
474
|
+
return _objectSpread(_objectSpread({}, props.autoGroupColumnDef), {}, {
|
|
475
|
+
cellRenderer: _customGroupCellRenderer.default
|
|
476
|
+
});
|
|
477
|
+
}, []);
|
|
474
478
|
return /*#__PURE__*/_react.default.createElement(_antd.Spin, {
|
|
475
479
|
spinning: loading,
|
|
476
480
|
wrapperClassName: "grid-spin"
|
|
@@ -542,8 +546,7 @@ function AgGridPlus(props) {
|
|
|
542
546
|
overlayNoRowsTemplate: "<span style=\"\n display: flex; \n justify-content: center; \n align-items: center; \n height: 100%; \n font-size: 14px; \n color: #aaa; \n line-height: 1.5;\n text-align: center;\">\n ".concat(overlayNoRowsTemplateText || '没有找到数据,试试调整筛选条件吧!', "\n </span>"),
|
|
543
547
|
enableRangeSelection: true,
|
|
544
548
|
suppressCopyRowsToClipboard: true,
|
|
545
|
-
|
|
546
|
-
groupDisplayType: props.treeData ? "groupRows" : "custom"
|
|
549
|
+
autoGroupColumnDef: autoGroupColumnDef
|
|
547
550
|
//指定客户端模式
|
|
548
551
|
,
|
|
549
552
|
rowModelType: "clientSide",
|
|
@@ -27,17 +27,11 @@
|
|
|
27
27
|
margin-right: 16rpx;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.ag-checkbox {
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
.ag-root-wrapper-body .ag-center-cols-viewport .ag-center-cols-container .ag-checkbox .ag-checkbox-input-wrapper {
|
|
31
|
+
width: 18px !important;
|
|
32
|
+
height: 18px !important;
|
|
33
33
|
}
|
|
34
|
-
.ag-checkbox .ag-checkbox-input-wrapper {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.ag-checkbox-input-wrapper .ag-checkbox-input {
|
|
40
|
-
width: 18px !important;
|
|
41
|
-
height: 18px !important;
|
|
42
|
-
transform: scale(1.5); /* 放大 */
|
|
34
|
+
.ag-root-wrapper-body .ag-header-viewport .ag-checkbox .ag-checkbox-input-wrapper {
|
|
35
|
+
width: 18px !important;
|
|
36
|
+
height: 18px !important;
|
|
43
37
|
}
|
|
@@ -156,7 +156,7 @@ var DialogSelect = function DialogSelect(props) {
|
|
|
156
156
|
});
|
|
157
157
|
},
|
|
158
158
|
request: ( /*#__PURE__*/function () {
|
|
159
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
159
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params, _, record) {
|
|
160
160
|
var data, requestData;
|
|
161
161
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
162
162
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -167,7 +167,7 @@ var DialogSelect = function DialogSelect(props) {
|
|
|
167
167
|
Sorting: params.sorter,
|
|
168
168
|
SkipCount: params.skipCount,
|
|
169
169
|
MaxResultCount: params.maxResultCount
|
|
170
|
-
});
|
|
170
|
+
}, record);
|
|
171
171
|
case 2:
|
|
172
172
|
data = _context.sent;
|
|
173
173
|
requestData = {
|
|
@@ -183,7 +183,7 @@ var DialogSelect = function DialogSelect(props) {
|
|
|
183
183
|
}
|
|
184
184
|
}, _callee);
|
|
185
185
|
}));
|
|
186
|
-
return function (_x) {
|
|
186
|
+
return function (_x, _x2, _x3) {
|
|
187
187
|
return _ref2.apply(this, arguments);
|
|
188
188
|
};
|
|
189
189
|
}()),
|
|
@@ -231,7 +231,6 @@ function AgGridPlus(props) {
|
|
|
231
231
|
}
|
|
232
232
|
return cellMap;
|
|
233
233
|
};
|
|
234
|
-
var groupRowRenderer = useCallback(CustomGroupCellRenderer, []);
|
|
235
234
|
var sortChanged = function sortChanged(columnApi) {
|
|
236
235
|
var sortedColumn = columnApi.getColumnState().find(function (col) {
|
|
237
236
|
return Boolean(col.sort);
|
|
@@ -462,6 +461,11 @@ function AgGridPlus(props) {
|
|
|
462
461
|
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;
|
|
463
462
|
}, [rowData, props.treeData]);
|
|
464
463
|
var actionDom = toolBarRender && toolBarRender(apiRef.current, convertFilterModel(queryFilter, allColDefs), queryFilter);
|
|
464
|
+
var autoGroupColumnDef = useMemo(function () {
|
|
465
|
+
return _objectSpread(_objectSpread({}, props.autoGroupColumnDef), {}, {
|
|
466
|
+
cellRenderer: CustomGroupCellRenderer
|
|
467
|
+
});
|
|
468
|
+
}, []);
|
|
465
469
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
466
470
|
spinning: loading,
|
|
467
471
|
wrapperClassName: "grid-spin"
|
|
@@ -533,8 +537,7 @@ function AgGridPlus(props) {
|
|
|
533
537
|
overlayNoRowsTemplate: "<span style=\"\n display: flex; \n justify-content: center; \n align-items: center; \n height: 100%; \n font-size: 14px; \n color: #aaa; \n line-height: 1.5;\n text-align: center;\">\n ".concat(overlayNoRowsTemplateText || '没有找到数据,试试调整筛选条件吧!', "\n </span>"),
|
|
534
538
|
enableRangeSelection: true,
|
|
535
539
|
suppressCopyRowsToClipboard: true,
|
|
536
|
-
|
|
537
|
-
groupDisplayType: props.treeData ? "groupRows" : "custom"
|
|
540
|
+
autoGroupColumnDef: autoGroupColumnDef
|
|
538
541
|
//指定客户端模式
|
|
539
542
|
,
|
|
540
543
|
rowModelType: "clientSide",
|
|
@@ -27,17 +27,11 @@
|
|
|
27
27
|
margin-right: 16rpx;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.ag-checkbox {
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
.ag-root-wrapper-body .ag-center-cols-viewport .ag-center-cols-container .ag-checkbox .ag-checkbox-input-wrapper {
|
|
31
|
+
width: 18px !important;
|
|
32
|
+
height: 18px !important;
|
|
33
33
|
}
|
|
34
|
-
.ag-checkbox .ag-checkbox-input-wrapper {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.ag-checkbox-input-wrapper .ag-checkbox-input {
|
|
40
|
-
width: 18px !important;
|
|
41
|
-
height: 18px !important;
|
|
42
|
-
transform: scale(1.5); /* 放大 */
|
|
34
|
+
.ag-root-wrapper-body .ag-header-viewport .ag-checkbox .ag-checkbox-input-wrapper {
|
|
35
|
+
width: 18px !important;
|
|
36
|
+
height: 18px !important;
|
|
43
37
|
}
|
|
@@ -147,7 +147,7 @@ var DialogSelect = function DialogSelect(props) {
|
|
|
147
147
|
});
|
|
148
148
|
},
|
|
149
149
|
request: ( /*#__PURE__*/function () {
|
|
150
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
150
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params, _, record) {
|
|
151
151
|
var data, requestData;
|
|
152
152
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
153
153
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -158,7 +158,7 @@ var DialogSelect = function DialogSelect(props) {
|
|
|
158
158
|
Sorting: params.sorter,
|
|
159
159
|
SkipCount: params.skipCount,
|
|
160
160
|
MaxResultCount: params.maxResultCount
|
|
161
|
-
});
|
|
161
|
+
}, record);
|
|
162
162
|
case 2:
|
|
163
163
|
data = _context.sent;
|
|
164
164
|
requestData = {
|
|
@@ -174,7 +174,7 @@ var DialogSelect = function DialogSelect(props) {
|
|
|
174
174
|
}
|
|
175
175
|
}, _callee);
|
|
176
176
|
}));
|
|
177
|
-
return function (_x) {
|
|
177
|
+
return function (_x, _x2, _x3) {
|
|
178
178
|
return _ref2.apply(this, arguments);
|
|
179
179
|
};
|
|
180
180
|
}()),
|