Skip to content

Commit a866b9c

Browse files
authored
Merge pull request #400 from kwiksilver3441/main
Issue #397 popover doesn't contain offset - resubmit
2 parents b6b7c82 + 657e7d8 commit a866b9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/BPopover.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default defineComponent({
6464
variant: {type: String as PropType<ColorVariant>, default: undefined},
6565
html: {type: Boolean, default: true},
6666
sanitize: {type: Boolean, default: false},
67+
offset: {type: String as PropType<Popover.Options['offset']>, default: '0'},
6768
},
6869
emits: ['show', 'shown', 'hide', 'hidden', 'inserted'],
6970
setup(props, {emit, slots}) {
@@ -110,6 +111,7 @@ export default defineComponent({
110111
html: props.html,
111112
delay: props.delay,
112113
sanitize: props.sanitize,
114+
offset: props.offset,
113115
})
114116
else console.warn('[B-Popover] Target is a mandatory props.')
115117
})

0 commit comments

Comments
 (0)