如何以编程方式更新弹出窗口?

时间:2020-06-18 10:22:12

标签: vue.js element-ui

如何通过编程方式更新element-ui popover? 我尝试过:

 <el-popover
   placement="bottom"
   ref="popover"
   title="Title"
   width="200"
   trigger="click"
   content="this is content, this is content, this is content">
   <el-button slot="reference">Click to activate</el-button>
</el-popover>

this.$refs.popover.update();

但是它不起作用。 我在官方文档中读到,它可以通过使用popper.js实例(使用element-ui组件)来完成。

但是我不能得到那个实例。 请帮我解决问题))

0 个答案:

没有答案