소스 검색

设置列宽

蔡青松 7 달 전
부모
커밋
b570d0158b
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/pages/listnew/index.jsx

+ 8 - 0
src/pages/listnew/index.jsx

@@ -554,6 +554,14 @@ const List = (editType) => {
         subtleSelection
         subtleSelection
         resizableColumns
         resizableColumns
         selectedItems={[selectRow]}
         selectedItems={[selectRow]}
+        columnSizingOptions={
+          {
+            姓名: {
+              minWidth: 100,
+              defaultWidth: 200,
+            }
+          }
+        }
         // defaultSelectedItems={defaultSelectedItems}
         // defaultSelectedItems={defaultSelectedItems}
         style={{ minWidth: "550px" }}
         style={{ minWidth: "550px" }}
       >
       >