view-design/ViewUIPlus

[Bug Report]table为tree时,设置tooltip: true, 内容会换行,

Opened this issue · 0 comments

Environment

win10,vue3.0,node16.15.0

Reproduction link

https://run.iviewui.com/

Steps to reproduce

columns: [
{
title: 'Name',
key: 'name',
tooltip: true,
tree: true
},
{
title: 'Age',
key: 'age'
},
{
title: 'Address',
key: 'address'
}
],
data: [
{
id: '100',
name: 'John Brown',
age: 18,
address: 'New York No. 1 Lake Park'
},
{
id: '101',
name: 'Jim Green',
age: 24,
address: 'London No. 1 Lake Park',
children: [
{
id: '10100',
name: 'John Brown',
age: 18,
address: 'New York No. 1 Lake Park'
},
{
id: '10101',
name: 'Joe Blackn',
age: 30,
address: 'Sydney No. 1 Lake Park'
},
{
id: '10102',
name: 'Jon Snow',
age: 26,
address: 'Ottawa No. 2 Lake Park',
children: [
{
id: '1010200',
name: 'Jim Green',
age: 24,
address: 'New York No. 1 Lake Park'
}
]
}
]
},
{
id: '102',
name: 'Joe Black',
age: 30,
address: 'Sydney No. 1 Lake Park'
},
{
id: '103',
name: 'Jon Snow',
age: 26,
address: 'Ottawa No. 2 Lake Park'
}
]

当tooltip: true时,单元格内容换行。

What is expected?

期望单元格内容不换行

What is actually happening?

单元格内容换行

Uploading 微信截图_20240506141231.png…