Przeglądaj źródła

组件版本迭代

洪海涛 4 lat temu
rodzic
commit
56d0f7bfd7
1 zmienionych plików z 11 dodań i 9 usunięć
  1. 11 9
      src/components/detialTable/index.js

+ 11 - 9
src/components/detialTable/index.js

@@ -3,18 +3,19 @@ import { Table } from 'antd';
 
 export default function DetialTable(props) {
   const {
-    columns, 
-    data = [], 
-    rowKey= 'id', 
-    size = 'default', 
-    scroll, 
-    onChange, 
-    total = 0, 
-    curIndex, 
+    columns,
+    data = [],
+    rowKey= 'id',
+    size = 'default',
+    scroll,
+    onChange,
+    total = 0,
+    curIndex,
     pageSize = 15,
     pagination = true,
     expandedRowRender = false,
     onExpand = false,
+    ellipsis = false,
     rowClassName,
     onHeaderRow
   } = props
@@ -37,6 +38,7 @@ export default function DetialTable(props) {
           total,
           showTotal: total => `共 ${total} 条`
         }}
+        ellipsis={ellipsis}
         scroll={scroll}
         onExpand={onExpand}
         expandedRowRender={expandedRowRender}
@@ -44,4 +46,4 @@ export default function DetialTable(props) {
       />
     </div>
   );
-}
+}