feat(popselect): update position & slot name change

This commit is contained in:
07akioni 2019-10-18 11:24:13 +08:00
parent 34135d6ed2
commit 04452fe659
2 changed files with 5 additions and 1 deletions

View File

@ -95,6 +95,9 @@ export default {
this.controller && this.controller.hide()
}
}
this.$nextTick().then(() => {
this.controller.updatePosition()
})
}
}
}

View File

@ -49,6 +49,7 @@ export default {
},
render (h, context) {
const slots = context.scopedSlots
const activator = slots.activator || slots.default
const controller = context.props.controller || {}
return h(
NPopover, {
@ -57,7 +58,7 @@ export default {
controller
},
scopedSlots: {
activator: () => slots.activator(),
activator: () => activator(),
default: () => h(NPopselectPanel, {
props: {
...context.props,