소스 검색

chore: 设定权限列columns宽度,消除演示表格错位问题 (#3087)

invalid w 1 년 전
부모
커밋
690d887680
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      src/views/demo/table/AuthColumn.vue

+ 7 - 1
src/views/demo/table/AuthColumn.vue

@@ -71,32 +71,38 @@
     {
       title: '姓名',
       dataIndex: 'name',
-      width: 200,
+      minWidth: 200,
       auth: 'test', // 根据权限控制是否显示: 无权限,不显示
     },
     {
       title: '状态',
       dataIndex: 'status',
+      width: 100,
     },
     {
       title: '状态1',
       dataIndex: 'status1',
+      width: 100,
     },
     {
       title: '状态2',
       dataIndex: 'status2',
+      width: 100,
     },
     {
       title: '状态3',
       dataIndex: 'status3',
+      width: 100,
     },
     {
       title: '状态4',
       dataIndex: 'status4',
+      width: 100,
     },
     {
       title: '状态5',
       dataIndex: 'status5',
+      width: 100,
     },
     {
       title: '地址',