el-popover碰到的坑
时间:2022-05-11 08:49
1.v-popover:popover1 后边的名称不能输入,不能循环,只能一个使用
循环中使用触发html,用 slot="reference"
2. :popper-options="{
boundariesElement: ‘body‘, removeOnDestroy: true }" 改变popover的位置。默认为viewport。有边界判断。但是使用body会有出界问题。 3.通过设置ref值,可以将popover关闭。