fix: 修改table显示bug

This commit is contained in:
lilinyuan
2024-05-15 16:35:36 +08:00
parent a4cb59ff9a
commit f820c25892
2 changed files with 8 additions and 1 deletions

View File

@@ -291,4 +291,9 @@ onMounted(() => {
justify-content: space-between;
align-content: center;
}
.fv-table {
:deep(.el-tooltip) {
width: 100% !important;
}
}
</style>

View File

@@ -112,6 +112,7 @@ const tableConfig = reactive({
prop: 'template',
label: '是否为模版角色',
align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => (<Tag dictType={'yes_no'} value={row.template ? '1' : '0'} />)
},
{
@@ -122,6 +123,7 @@ const tableConfig = reactive({
{
prop: 'state',
label: '状态',
showOverflowTooltip: false,
align: 'center',
currentRender: ({row, index}) => (<Tag dictType={'normal_disable'} value={row.state} />)
},
@@ -147,7 +149,7 @@ const tableConfig = reactive({
btn.push({label: '删除', auth: auths.edit, func: ()=>handleDel(row) , type: 'danger'})
}
return (
<div style={{width: '100%'}}>
<div>
{
btn.map(item=>(
<el-button