收藏
回答

多个scroll-view下,scroll-into-view失效



<scroll-view style="display:{{showS1 ? 'block':'none'}} scroll-into-view="view1">

        <view id="view1"></view>

        <view id="view2"></view>

</scroll-view>


<scroll-view style="display:{{showS2 ? 'block':'none'}} scroll-into-view="view3">

        <view id="view3"></view>

        <view id="view4"></view>

</scroll-view>


设计是这样的:根据showS1和showS2来判断显示哪一个scroll-view,期望是显示某个scroll-view的时候能够定位到对应的子元素,但是实际上这样写是失效的,求解

开发工具:0.19.191100

回答关注问题邀请回答
收藏
登录 后发表内容