el-popover 自定义偏移量

<el-popover width="124px"
	effect="light"
	:popper-options="{
	modifiers: [{
		name: 'offset',
		options: {
			offset: [200, 200]
		}
	}]
	}"
	:show-arrow="false"
	popper-class="table-field-operation-popover"
	>
		<template #reference>
			<i class="iconfont icon-tripledot"></i>
	</template>
	<template #default>
		<div>
		<ul>
		<li @click="handleEdit">编辑</li>
	<li @click="handleDelete">删除</li>
	</ul>
	</div>
	</template>
	</el-popover>

simdot 脉望

posted @ 2022-08-15 10:46  脉望  阅读(3195)  评论(0编辑  收藏  举报