project init & fix ui
This commit is contained in:
22
miniprogram_npm/tdesign-miniprogram/navbar/navbar.wxml
Normal file
22
miniprogram_npm/tdesign-miniprogram/navbar/navbar.wxml
Normal file
@@ -0,0 +1,22 @@
|
||||
<wxs src="../common/utils.wxs" module="_" />
|
||||
<view
|
||||
class="{{_.cls(classPrefix, ['fixed', fixed])}} {{visibleClass}} {{prefix}}-class"
|
||||
style="{{boxStyle}}; {{customStyle}}"
|
||||
>
|
||||
<view wx:if="{{fixed}}" class="{{classPrefix}}__placeholder" />
|
||||
<view class="{{classPrefix}}__content">
|
||||
<view class="{{classPrefix}}__left {{prefix}}-class-left">
|
||||
<view wx:if="{{leftArrow}}" class="{{classPrefix}}__btn" bind:tap="goBack" aria-role="button" aria-label="返回">
|
||||
<t-icon name="chevron-left" class="{{classPrefix}}__left-arrow" />
|
||||
</view>
|
||||
<slot name="left" />
|
||||
<view class="{{classPrefix}}__capsule">
|
||||
<slot name="capsule" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="{{classPrefix}}__center t-class-center">
|
||||
<slot name="title" class="t-class-title" />
|
||||
<text wx:if="{{title}}" class="{{classPrefix}}__center-title t-class-title">{{showTitle}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user