mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
perf(Dialog): inherit opened event
This commit is contained in:
parent
e045fb1596
commit
627e376cfb
@ -50,7 +50,7 @@ export default createComponent({
|
||||
},
|
||||
},
|
||||
|
||||
emits: ['opened', 'closed', 'confirm', 'cancel', 'update:show'],
|
||||
emits: ['confirm', 'cancel', 'update:show'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
@ -97,14 +97,6 @@ export default createComponent({
|
||||
}
|
||||
},
|
||||
|
||||
onOpened() {
|
||||
this.$emit('opened');
|
||||
},
|
||||
|
||||
onClosed() {
|
||||
this.$emit('closed');
|
||||
},
|
||||
|
||||
genRoundButtons() {
|
||||
return (
|
||||
<ActionBar class={bem('footer')}>
|
||||
@ -215,8 +207,6 @@ export default createComponent({
|
||||
transition={this.transition}
|
||||
lazyRender={this.lazyRender}
|
||||
aria-labelledby={this.title || message}
|
||||
onOpened={this.onOpened}
|
||||
onClosed={this.onClosed}
|
||||
>
|
||||
{Title}
|
||||
{this.genContent(title)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user