Skip to content

Commit

Permalink
Merge pull request #908 from WeBankFinTech/fix-popper-popperStyle-pri…
Browse files Browse the repository at this point in the history
…ority

fix(Popper): 修复 popperStyle 配置项比默认设置优先级低的问题
  • Loading branch information
zym19960704 authored Nov 22, 2024
2 parents fed1dfc + 3800d10 commit c987055
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/popper/popper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default defineComponent({
<div
ref={popperRef}
class={`${prefixCls}-wrapper`}
style={{ ...props.popperStyle, ...popperStyle }}
style={{ ...popperStyle, ...props.popperStyle }}
role={'tooltip'}
onMouseenter={onPopperMouseEnter}
onMouseleave={onPopperMouseLeave}
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/components/popper/visible.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<FDivider />

<FPopper v-model="visible" placement="bottom" trigger="click" :arrow="true">
<FPopper v-model="visible" placement="bottom" trigger="click" :arrow="true" :popperStyle="{ zIndex: 1500 }">
<template #trigger>
<FButton>Click to activate</FButton>
</template>
Expand Down

0 comments on commit c987055

Please sign in to comment.