mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[new feature] DropdownMenu: add duration prop
This commit is contained in:
@@ -55,7 +55,7 @@ export default sfc({
|
||||
},
|
||||
|
||||
render(h) {
|
||||
const { top, zIndex, overlay, activeColor, closeOnClickOverlay } = this.parent;
|
||||
const { top, zIndex, overlay, duration, activeColor, closeOnClickOverlay } = this.parent;
|
||||
|
||||
const Options = this.options.map(option => {
|
||||
const active = option.value === this.value;
|
||||
@@ -86,7 +86,7 @@ export default sfc({
|
||||
<Popup
|
||||
vModel={this.showPopup}
|
||||
position="top"
|
||||
duration={this.transition ? 0.2 : 0}
|
||||
duration={this.transition ? duration : 0}
|
||||
class={bem('content')}
|
||||
overlay={overlay}
|
||||
closeOnClickOverlay={closeOnClickOverlay}
|
||||
|
Reference in New Issue
Block a user