We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<script setup> import { reactive } from 'vue'; const columns = [ { title: 'Name', dataIndex: 'name', }, { title: 'Salary', dataIndex: 'salary', }, { title: 'Address', dataIndex: 'address', }, { title: 'Email', dataIndex: 'email', }, ]; const data = reactive([{ key: '1', name: 'Jane Doe', salary: 23000, address: '32 Park Road, London', email: '[email protected]' }, { key: '2', name: 'Alisa Ross', salary: 25000, address: '35 Park Road, London', email: '[email protected]' }, { key: '3', name: 'Kevin Sandra', salary: 22000, address: '31 Park Road, London', email: '[email protected]' }, { key: '4', name: 'Ed Hellen', salary: 17000, address: '42 Park Road, London', email: '[email protected]' }, { key: '5', name: 'William Smith', salary: 27000, address: '62 Park Road, London', email: '[email protected]' }]); </script> <template> <a-table :columns="columns" :data="data"> <template #columns> <a-table-column title="Name"> <template #cell="{ record }"> {{ record.name }} <a-tooltip content="This is tooltip content"> <span>[hover]</span> </a-tooltip> </template> </a-table-column> </template> </a-table> </template>
升级到Vue3.5的版本后,table 里面使用 tooltip。会导致每次hover时,tooltip展示的内容都跑到最后一个去。
<template> <a-table :columns="columns" :data="data"> <template #columns> <a-table-column title="Name"> <template #cell="{ record }"> {{ record.name }} <a-tooltip content="This is tooltip content"> <!-- 这里是一个 button 组件 --> <a-button>[hover]</a-button> </a-tooltip> </template> </a-table-column> </template> </a-table> </template>
<template> <a-table :columns="columns" :data="data"> <template #columns> <a-table-column title="Name"> <template #cell="{ record }"> {{ record.name }} <a-tooltip> <span>[hover]</span> <!-- content 通过 slot 方式传入 --> <template #content> <div>This is tooltip content</div> </template> </a-tooltip> </template> </a-table-column> </template> </a-table> </template>
<ul> <li v-for="(item, i) in 10" :key="i"> 张三 <a-tooltip content="This is tooltip content"> <span>[hover]</span> </a-tooltip> </li> </ul>
npm create vue@latest
The text was updated successfully, but these errors were encountered:
vue 3.5 以下就没有这个问题。这个是 arco 的问题,还是 vue 的问题呢?
Sorry, something went wrong.
No branches or pull requests
Basic Info
升级到Vue3.5的版本后,table 里面使用 tooltip。会导致每次hover时,tooltip展示的内容都跑到最后一个去。
Vue 工程是通过官网方式提供的
npm create vue@latest
新建的工程Vite-App.mp4
The text was updated successfully, but these errors were encountered: