mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
fix(components): [el-popover] update popperInstance when props change (#5835)
Co-authored-by: xiaoming <xiaoming@mgtv.com>
This commit is contained in:
parent
8c0ce81317
commit
1add6d2c70
@ -113,6 +113,15 @@ export default defineComponent({
|
||||
immediate: true,
|
||||
}
|
||||
)
|
||||
|
||||
watch(
|
||||
() =>
|
||||
buildPopperOptions(props, {
|
||||
arrowEl: unref(arrowRef),
|
||||
arrowOffset: unref(arrowOffset),
|
||||
}),
|
||||
(option) => popperInstanceRef.value?.setOptions(option)
|
||||
)
|
||||
})
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user