vue dom不会重新呈现

时间:2018-07-21 03:54:55

标签: vue.js v-for rerender

我使用v-for渲染表行

<table>
  <tr v-for="(item, i) in data">
    <td>
      <button v-if="...">....</button>
      <el-tooltipplacement="right">
        <button v-if="..." >...</button>
        <div slot="content">
          <button @click="...">...</button>
          <button @click="...">...</button>
        </div>
      </el-tooltip>
    </td>
  </tr>
</table>

工具提示是ui元素的组成部分, 悬停按钮后,将显示工具提示。 表数据是通过ajax调用获得的, 有几页, 它会在翻页时通过ajax调用获取数据, 翻页后出现问题。 悬停后将不会显示某些工具提示, 我以为问题是不要重新渲染Dom, 我在ajax调用后使用了$ forceUpdate(), 但是没有效果。 如果可以的话,请帮帮我。

element ui工具提示组件和示例:https://element.eleme.io/#/en-US/component/tooltip

0 个答案:

没有答案
相关问题