mirror of
https://gitee.com/xiaonuobase/snowy.git
synced 2025-12-25 23:56:20 +08:00
【更新】优化表格列的宽度改为自适应
This commit is contained in:
parent
42663fd094
commit
8243f015be
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user