🐛(popper): 修复自动位置计算逻辑, 导致小三角错误显示

This commit is contained in:
就眠儀式 2022-11-05 22:19:34 +08:00
parent ccdd791027
commit 2966f8d0d8
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
ref="popperRefEl"
:class="['layui-popper', { 'layui-dark': isDark }, props.popperClass]"
:style="[style, props.popperStyle ?? '']"
:position="position"
:position="innnerPosition"
@mouseenter="handlerPopperMouseEnter"
@mouseleave="handlerPopperMouseLeave"
>

View File

@ -44,7 +44,7 @@ setup() {
::: demo
<template>
<lay-tooltip content="假装这里有文字提示">
<lay-tooltip content="假装这里有文字提示" trigger="click">
<lay-button>tooltip</lay-button>
</lay-tooltip>
</template>