Files
MiniProgram/ProjectLiaisonForm/pages/guide/guide.wxml
2025-08-15 14:05:08 +08:00

62 lines
2.6 KiB
Plaintext
Raw 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.

<view class="custom-navbar">
<t-navbar class="demo-navbar" title="Guide" leftArrow />
</view>
<view class="demo">
<t-demo-header
title="Guide 引导"
desc="逐步骤进行指引或解释说明的组件,常用于用户不熟悉的或需进行特别强调的页面。"
notice="渲染框架支持情况WebView"
/>
<t-demo title="01 组件类型" desc="基础引导" padding>
<view style="text-align: center">
<t-button theme="primary" content="用户引导" bindtap="handleBaseClick"></t-button>
</view>
<t-popup visible="{{visibleBasePopup}}" placement="bottom" show-overlay="{{false}}">
<view style="height: calc(100vh - {{navbarHeight}}px)">
<base wx:if="{{visibleBase}}" bind:close="handleBaseClose" />
</view>
</t-popup>
</t-demo>
<t-demo desc="不带遮罩的引导" padding>
<view style="text-align: center">
<t-button theme="primary" content="用户引导" bindtap="handleNoMaskClick"></t-button>
</view>
<t-popup visible="{{visibleNoMaskPopup}}" placement="bottom" show-overlay="{{false}}">
<view style="height: calc(100vh - {{navbarHeight}}px)">
<no-mask wx:if="{{visibleNoMask}}" bind:close="handleNoMaskClose" />
</view>
</t-popup>
</t-demo>
<t-demo desc="弹窗形式的引导" padding>
<view style="text-align: center">
<t-button theme="primary" content="用户引导" bindtap="handleDialogClick"></t-button>
</view>
<t-popup visible="{{visibleDialogPopup}}" placement="bottom" show-overlay="{{false}}">
<view style="height: calc(100vh - {{navbarHeight}}px)">
<dialog wx:if="{{visibleDialog}}" bind:close="handleDialogClose" />
</view>
</t-popup>
</t-demo>
<t-demo desc="气泡与弹窗混合的引导" padding>
<view style="text-align: center">
<t-button theme="primary" content="用户引导" bindtap="handleDialog1Click"></t-button>
</view>
<t-popup visible="{{visibleDialog1Popup}}" placement="bottom" show-overlay="{{false}}">
<view style="height: calc(100vh - {{navbarHeight}}px)">
<multiple wx:if="{{visibleDialog1}}" bind:close="handleDialog1Close" />
</view>
</t-popup>
</t-demo>
<t-demo desc="自定义气泡" padding>
<view style="text-align: center">
<t-button theme="primary" content="用户引导" bindtap="handleContentClick"></t-button>
</view>
<t-popup visible="{{visibleContentPopup}}" placement="bottom" show-overlay="{{false}}">
<view style="height: calc(100vh - {{navbarHeight}}px)">
<content wx:if="{{visibleContent}}" bind:close="handleContentClose" />
</view>
</t-popup>
</t-demo>
</view>