add duration (#4099)

computed.wrapperStyle needs duration parameter, otherwise it will generate undefined value for transition style property
This commit is contained in:
eastyu 2021-04-01 20:41:25 +08:00 committed by GitHub
parent e3c98c7a77
commit c21e39784f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@
bind:touchend="onTouchEnd" bind:touchend="onTouchEnd"
bind:touchcancel="onTouchEnd" bind:touchcancel="onTouchEnd"
> >
<view style="{{ computed.wrapperStyle({ offset, itemHeight, visibleItemCount }) }}"> <view style="{{ computed.wrapperStyle({ offset, itemHeight, visibleItemCount, duration }) }}">
<view <view
wx:for="{{ options }}" wx:for="{{ options }}"
wx:for-item="option" wx:for-item="option"