[Bug] 开启isShowOverflowTextTooltip后无法复制单元格内容
Open
@fangsmile is already working on this.
Since Dec 11, 2024.
bug
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
Version
any
Link to Minimal Reproduction
none
Steps to Reproduce
let tableInstance
const { COPY_DATA } = VTable.ListTable.EVENT_TYPE
const data = [
{
f1: '复制我失败一二三四五六七',
f2: '复制我成功'
}
]
const columns = [
{
field: 'f1',
title: '不能显示全',
width: 150,
},
{
field: 'f2',
title: '可以显示全',
width: 200,
}
]
const option = {
records: data,
columns,
keyboardOptions: {
copySelected: true
},
tooltip: {
isShowOverflowTextTooltip: true, // 开启超出气泡后复制失败
}
}
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option)
window['tableInstance'] = tableInstance
tableInstance.on(COPY_DATA, args => console.log(args.copyData))
Current Behavior
开启isShowOverflowTextTooltip, cell内的内容超出cell宽度后, 无法复制单元格内容
不开启则可以正常复制
Expected Behavior
正常复制单元格内容
Environment
- OS: macOS Sequoia 15.0
- Browser: Chrome 130.0.6723.70
- Framework: Vue@3
Any additional comments?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.