@nokecy/qc-ui 0.3.4 → 0.3.5
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.
|
@@ -281,7 +281,7 @@ function AgGridPlus(props) {
|
|
|
281
281
|
return child.props;
|
|
282
282
|
});
|
|
283
283
|
|
|
284
|
-
return !columnProps ? [] : columnProps === null || columnProps === void 0 ? void 0 : columnProps.filter(function (x) {
|
|
284
|
+
return !columnProps ? props.columnDefs ? props.columnDefs : [] : columnProps === null || columnProps === void 0 ? void 0 : columnProps.filter(function (x) {
|
|
285
285
|
return !x.hideInTable;
|
|
286
286
|
});
|
|
287
287
|
}, []);
|
|
@@ -376,7 +376,7 @@ function AgGridPlus(props) {
|
|
|
376
376
|
animateRows: true //停用默认分页组件
|
|
377
377
|
,
|
|
378
378
|
suppressPaginationPanel: true,
|
|
379
|
-
columnDefs: colDefs
|
|
379
|
+
columnDefs: colDefs
|
|
380
380
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
381
381
|
style: {
|
|
382
382
|
marginTop: 12,
|
|
@@ -167,7 +167,7 @@ var FormRender = function FormRender(props) {
|
|
|
167
167
|
},
|
|
168
168
|
properties: {}
|
|
169
169
|
};
|
|
170
|
-
var columns = colDefs.map(function (colDef) {
|
|
170
|
+
var columns = colDefs === null || colDefs === void 0 ? void 0 : colDefs.map(function (colDef) {
|
|
171
171
|
var state = columnStates.find(function (x) {
|
|
172
172
|
return x.colId == colDef.field;
|
|
173
173
|
});
|
|
@@ -253,7 +253,7 @@ function AgGridPlus(props) {
|
|
|
253
253
|
var columnProps = React.Children.map(children, function (child, index) {
|
|
254
254
|
return child.props;
|
|
255
255
|
});
|
|
256
|
-
return !columnProps ? [] : columnProps === null || columnProps === void 0 ? void 0 : columnProps.filter(function (x) {
|
|
256
|
+
return !columnProps ? props.columnDefs ? props.columnDefs : [] : columnProps === null || columnProps === void 0 ? void 0 : columnProps.filter(function (x) {
|
|
257
257
|
return !x.hideInTable;
|
|
258
258
|
});
|
|
259
259
|
}, []);
|
|
@@ -348,7 +348,7 @@ function AgGridPlus(props) {
|
|
|
348
348
|
animateRows: true //停用默认分页组件
|
|
349
349
|
,
|
|
350
350
|
suppressPaginationPanel: true,
|
|
351
|
-
columnDefs: colDefs
|
|
351
|
+
columnDefs: colDefs
|
|
352
352
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
353
353
|
style: {
|
|
354
354
|
marginTop: 12,
|
|
@@ -146,7 +146,7 @@ var FormRender = function FormRender(props) {
|
|
|
146
146
|
},
|
|
147
147
|
properties: {}
|
|
148
148
|
};
|
|
149
|
-
var columns = colDefs.map(function (colDef) {
|
|
149
|
+
var columns = colDefs === null || colDefs === void 0 ? void 0 : colDefs.map(function (colDef) {
|
|
150
150
|
var state = columnStates.find(function (x) {
|
|
151
151
|
return x.colId == colDef.field;
|
|
152
152
|
});
|