Files
2025-08-15 14:05:08 +08:00

34 lines
1.6 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<t-navbar class="demo-navbar" title="BackTop" leftArrow />
<view class="demo">
<t-demo-header
title="BackTop 返回顶部"
desc="用于当页面过长往下滑动时,帮助用户快速回到页面顶部。"
notice="渲染框架支持情况Skyline、WebView"
/>
<t-demo title="组件类型" desc="圆形返回顶部" padding>
<t-button theme="primary" size="large" block variant="outline" data-source="round" bindtap="onBtnClick">
圆形返回顶部
</t-button>
</t-demo>
<t-demo desc="半圆形返回顶部" padding>
<t-button theme="primary" size="large" block variant="outline" data-source="half-round" bindtap="onBtnClick">
半圆形返回顶部
</t-button>
</t-demo>
<t-demo padding>
<view class="container-flex">
<t-skeleton rowCol="{{rowCol}}" class="skeleton-item" loading></t-skeleton>
<t-skeleton rowCol="{{rowCol}}" class="skeleton-item" loading></t-skeleton>
<t-skeleton rowCol="{{rowCol}}" class="skeleton-item" loading></t-skeleton>
<t-skeleton rowCol="{{rowCol}}" class="skeleton-item" loading></t-skeleton>
<t-skeleton rowCol="{{rowCol}}" class="skeleton-item" loading></t-skeleton>
<t-skeleton rowCol="{{rowCol}}" class="skeleton-item" loading></t-skeleton>
<t-skeleton rowCol="{{rowCol}}" class="skeleton-item" loading></t-skeleton>
<t-skeleton rowCol="{{rowCol}}" class="skeleton-item" loading></t-skeleton>
</view>
</t-demo>
<base wx:if="{{type == 'round'}}" scroll-top="{{scrollTop}}" />
<half-round wx:if="{{type == 'half-round'}}" scroll-top="{{scrollTop}}" />
</view>