mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
feat(popselect): update position & slot name change
This commit is contained in:
parent
34135d6ed2
commit
04452fe659
@ -95,6 +95,9 @@ export default {
|
||||
this.controller && this.controller.hide()
|
||||
}
|
||||
}
|
||||
this.$nextTick().then(() => {
|
||||
this.controller.updatePosition()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user