mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
feat(Toast): add transition option (#4638)
This commit is contained in:
@@ -24,6 +24,10 @@ export default createComponent({
|
||||
type: String,
|
||||
default: 'middle'
|
||||
},
|
||||
transition: {
|
||||
type: String,
|
||||
default: 'van-fade'
|
||||
},
|
||||
lockScroll: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
@@ -109,7 +113,7 @@ export default createComponent({
|
||||
|
||||
return (
|
||||
<transition
|
||||
name="van-fade"
|
||||
name={this.transition}
|
||||
onAfterEnter={this.onAfterEnter}
|
||||
onAfterLeave={this.onAfterLeave}
|
||||
>
|
||||
|
Reference in New Issue
Block a user