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

pull/285/head
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: '配置', title: '配置',
dataIndex: 'action', dataIndex: 'action',
key: 'action', key: 'action'
width: 150
} }
] ]
onMounted(() => { onMounted(() => {

View File

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

View File

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

View File

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

View File

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

View File

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