mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 06:31:45 +08:00
feat(Popover): add more event
This commit is contained in:
parent
64e17bcd08
commit
1302f13e72
@ -147,6 +147,22 @@ export default createComponent({
|
|||||||
onClickOutside() {
|
onClickOutside() {
|
||||||
this.$emit('input', false);
|
this.$emit('input', false);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onOpen() {
|
||||||
|
this.$emit('open');
|
||||||
|
},
|
||||||
|
|
||||||
|
onOpened() {
|
||||||
|
this.$emit('opened');
|
||||||
|
},
|
||||||
|
|
||||||
|
onClose() {
|
||||||
|
this.$emit('close');
|
||||||
|
},
|
||||||
|
|
||||||
|
onClosed() {
|
||||||
|
this.$emit('closed');
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
@ -162,8 +178,12 @@ export default createComponent({
|
|||||||
transition="van-popover-zoom"
|
transition="van-popover-zoom"
|
||||||
lockScroll={false}
|
lockScroll={false}
|
||||||
getContainer={this.getContainer}
|
getContainer={this.getContainer}
|
||||||
onInput={this.onToggle}
|
onOpen={this.onOpen}
|
||||||
onClick={this.onClick}
|
onClick={this.onClick}
|
||||||
|
onClose={this.onClose}
|
||||||
|
onInput={this.onToggle}
|
||||||
|
onOpened={this.onOpened}
|
||||||
|
onClosed={this.onClosed}
|
||||||
>
|
>
|
||||||
<div class={bem('arrow')} />
|
<div class={bem('arrow')} />
|
||||||
{this.actions.map(this.renderAction)}
|
{this.actions.map(this.renderAction)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user