@nokecy/qc-ui 1.1.4 → 1.1.6

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.
@@ -1247,6 +1247,12 @@ function AgGridPlus(props) {
1247
1247
  onSelectionChanged: onRowChanged,
1248
1248
  onRowSelected: onRowSelected,
1249
1249
  rowSelection: rowSelectionConfig,
1250
+ selectionColumnDef: {
1251
+ pinned: 'left',
1252
+ lockPosition: true,
1253
+ width: 50,
1254
+ suppressHeaderMenuButton: true
1255
+ },
1250
1256
  onDragStopped: function onDragStopped(e) {
1251
1257
  if (apiRef.current) {
1252
1258
  var _apiRef$current5;
@@ -1,22 +1,14 @@
1
1
  /**
2
- * 列配置表格组件
3
- * 使用简单的 Ant Design Table 替代 Formily ArrayTable
4
- * 通过 React useState 直接管理数据状态,确保 type 字段不会丢失
2
+ * 列配置表格组件 - AG-Grid 版本
3
+ * 使用 AG-Grid 替代 Ant Design Table,性能更优
5
4
  */
6
5
  import React from 'react';
7
6
  import type { FlatColumnItem } from './columnGroupTypes';
8
- interface ColumnConfigTableProps {
9
- /** 扁平化的列配置数据 */
7
+ interface ColumnConfigTableAGProps {
10
8
  items: FlatColumnItem[];
11
- /** 数据变更回调 */
12
9
  onChange: (items: FlatColumnItem[]) => void;
13
- /** 简化模式 - 隐藏分组相关功能 (用于 formArrayTable) */
14
10
  simple?: boolean;
15
- /** 表格滚动高度 */
16
11
  scrollY?: number;
17
12
  }
18
- /**
19
- * 列配置表格组件
20
- */
21
- declare const ColumnConfigTable: React.FC<ColumnConfigTableProps>;
13
+ declare const ColumnConfigTable: React.FC<ColumnConfigTableAGProps>;
22
14
  export default ColumnConfigTable;