rex 60453083b3
feat(Tab): add new prop lazyRender & improve performance (#2328)
Tab

add new prop lazyRender
improve performace
Sticky

add new prop container
2019-11-18 21:15:20 +08:00

26 lines
686 B
Plaintext

<demo-block title="基础用法">
<van-sticky>
<van-button type="primary" custom-style="margin-left: 15px">
基础用法
</van-button>
</van-sticky>
</demo-block>
<demo-block title="吸顶距离">
<van-sticky offset-top="{{ 50 }}">
<van-button type="info" custom-style="margin-left: 115px">
吸顶距离
</van-button>
</van-sticky>
</demo-block>
<demo-block title="指定容器">
<view id="container" style="height: 150px; background-color: #fff;">
<van-sticky container="{{ container }}">
<van-button type="warning" custom-style="margin-left: 215px;">
指定容器
</van-button>
</van-sticky>
</view>
</demo-block>