mirror of
https://gitee.com/xiaonuobase/snowy.git
synced 2026-03-22 10:47:16 +08:00
【更新】优化表格列的宽度改为自适应
This commit is contained in:
@@ -50,8 +50,7 @@
|
||||
{
|
||||
title: '配置',
|
||||
dataIndex: 'action',
|
||||
key: 'action',
|
||||
width: 150
|
||||
key: 'action'
|
||||
}
|
||||
]
|
||||
onMounted(() => {
|
||||
|
||||
@@ -50,8 +50,7 @@
|
||||
{
|
||||
title: '配置',
|
||||
dataIndex: 'action',
|
||||
key: 'action',
|
||||
width: 150
|
||||
key: 'action'
|
||||
}
|
||||
]
|
||||
onMounted(() => {
|
||||
|
||||
@@ -78,14 +78,12 @@
|
||||
return { rowSpan: indexArr.length }
|
||||
}
|
||||
return { rowSpan: 0 }
|
||||
},
|
||||
width: 150
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'title',
|
||||
title: '菜单',
|
||||
dataIndex: 'title',
|
||||
width: 240
|
||||
dataIndex: 'title'
|
||||
},
|
||||
{
|
||||
key: 'button',
|
||||
|
||||
@@ -81,14 +81,12 @@
|
||||
return { rowSpan: indexArr.length }
|
||||
}
|
||||
return { rowSpan: 0 }
|
||||
},
|
||||
width: 150
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'title',
|
||||
title: '菜单',
|
||||
dataIndex: 'title',
|
||||
width: 240
|
||||
dataIndex: 'title'
|
||||
},
|
||||
{
|
||||
key: 'button',
|
||||
|
||||
@@ -159,8 +159,7 @@
|
||||
const columns = [
|
||||
{
|
||||
title: '角色名称',
|
||||
dataIndex: 'name',
|
||||
width: 150
|
||||
dataIndex: 'name'
|
||||
},
|
||||
{
|
||||
title: '分类',
|
||||
|
||||
@@ -82,14 +82,12 @@
|
||||
return { rowSpan: indexArr.length }
|
||||
}
|
||||
return { rowSpan: 0 }
|
||||
},
|
||||
width: 150
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'title',
|
||||
title: '菜单',
|
||||
dataIndex: 'title',
|
||||
width: 200
|
||||
dataIndex: 'title'
|
||||
},
|
||||
{
|
||||
key: 'button',
|
||||
|
||||
Reference in New Issue
Block a user