@lemon-fe/kits 1.0.3-2 → 1.0.3-3

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.
@@ -1302,10 +1302,8 @@ var DataGrid = /*#__PURE__*/function (_Component) {
1302
1302
  }
1303
1303
 
1304
1304
  if (rowActions !== undefined) {
1305
- var _this$props$rowAction;
1306
-
1307
1305
  leafColIds.push('$$actions');
1308
- result.push({
1306
+ result.push(_objectSpread({
1309
1307
  colId: '$$actions',
1310
1308
  pinned: 'right',
1311
1309
  headerName: '操作',
@@ -1316,13 +1314,13 @@ var DataGrid = /*#__PURE__*/function (_Component) {
1316
1314
  suppressColumnsToolPanel: true,
1317
1315
  lockPinned: true,
1318
1316
  lockVisible: true,
1319
- initialWidth: (_this$props$rowAction = this.props.rowActionsColumnWidth) !== null && _this$props$rowAction !== void 0 ? _this$props$rowAction : 160,
1317
+ initialWidth: 160,
1320
1318
  cellClass: prefix('operator-cell'),
1321
1319
  cellRendererParams: {
1322
1320
  actions: this.props.rowActions
1323
1321
  },
1324
1322
  cellRenderer: ActionsRenderer
1325
- });
1323
+ }, this.props.rowActionsColDef));
1326
1324
  }
1327
1325
 
1328
1326
  return [result, leafColIds];
@@ -187,9 +187,9 @@ export interface DataGridProps<TData> extends Omit<AgGridReactProps<TData>, 'row
187
187
  rowActions?: RowActionsType<TData>;
188
188
  /**
189
189
  *
190
- * @description 行操作按钮组列宽
190
+ * @description 行操作列属性
191
191
  */
192
- rowActionsColumnWidth?: number;
192
+ rowActionsColDef?: ColDef<TData>;
193
193
  /**
194
194
  * @description 加载动画
195
195
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/kits",
3
- "version": "1.0.3-2",
3
+ "version": "1.0.3-3",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -66,9 +66,6 @@
66
66
  "peerDependencies": {
67
67
  "react": ">=16.8"
68
68
  },
69
- "overrides": {
70
- "rc-virtual-list": "3.4.13"
71
- },
72
69
  "devDependencies": {
73
70
  "@ag-grid-enterprise/clipboard": "29.2.0",
74
71
  "@ag-grid-enterprise/column-tool-panel": "29.2.0",