mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
feat(Dialog): add transition prop (#4636)
This commit is contained in:
@@ -21,6 +21,10 @@ export default createComponent({
|
||||
confirmButtonText: String,
|
||||
confirmButtonColor: String,
|
||||
showCancelButton: Boolean,
|
||||
transition: {
|
||||
type: String,
|
||||
default: 'van-dialog-bounce'
|
||||
},
|
||||
showConfirmButton: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
@@ -140,7 +144,7 @@ export default createComponent({
|
||||
|
||||
return (
|
||||
<transition
|
||||
name="van-dialog-bounce"
|
||||
name={this.transition}
|
||||
onAfterEnter={this.onOpened}
|
||||
onAfterLeave={this.onClosed}
|
||||
>
|
||||
|
Reference in New Issue
Block a user