【更新】优化表格列的宽度改为自适应

dev
xuyuxiang 2025-09-19 22:23:48 +08:00
parent 42663fd094
commit 8243f015be
6 changed files with 9 additions and 18 deletions

View File

@ -50,8 +50,7 @@
{
title: '配置',
dataIndex: 'action',
key: 'action',
width: 150
key: 'action'
}
]
onMounted(() => {

View File

@ -50,8 +50,7 @@
{
title: '配置',
dataIndex: 'action',
key: 'action',
width: 150
key: 'action'
}
]
onMounted(() => {

View File

@ -78,14 +78,12 @@
return { rowSpan: indexArr.length }
}
return { rowSpan: 0 }
},
width: 150
}
},
{
key: 'title',
title: '菜单',
dataIndex: 'title',
width: 240
dataIndex: 'title'
},
{
key: 'button',

View File

@ -81,14 +81,12 @@
return { rowSpan: indexArr.length }
}
return { rowSpan: 0 }
},
width: 150
}
},
{
key: 'title',
title: '菜单',
dataIndex: 'title',
width: 240
dataIndex: 'title'
},
{
key: 'button',

View File

@ -159,8 +159,7 @@
const columns = [
{
title: '角色名称',
dataIndex: 'name',
width: 150
dataIndex: 'name'
},
{
title: '分类',

View File

@ -82,14 +82,12 @@
return { rowSpan: indexArr.length }
}
return { rowSpan: 0 }
},
width: 150
}
},
{
key: 'title',
title: '菜单',
dataIndex: 'title',
width: 200
dataIndex: 'title'
},
{
key: 'button',