白色主题

This commit is contained in:
2023-02-12 19:05:37 +08:00
parent 57ab6fbb49
commit a0b72a542a
104 changed files with 3942 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<wxs src="../common/utils.wxs" module="_" />
<view style="{{ style }}" class="{{classPrefix}} {{classPrefix}}--{{placement}} {{prefix}}-class">
<view
class="{{classPrefix}}__title"
aria-role="button"
aria-expanded="{{expanded}}"
aria-disabled="{{ultimateDisabled}}"
bind:tap="onClick"
>
<t-cell
title="{{header}}"
note="{{headerRightContent}}"
bordered
right-icon="{{ ultimateExpandIcon ? (expanded ? 'chevron-up' : 'chevron-down') : '' }}"
t-class="{{_.cls(classPrefix + '__header', [placement, ['expanded', expanded]])}} {{prefix}}-class-header"
t-class-title="class-title {{ultimateDisabled ? 'class-title--disabled' : ''}}"
t-class-note="class-note {{ultimateDisabled ? 'class-note--disabled' : ''}}"
t-class-right-icon="class-right-icon {{classPrefix}}__arrow--{{placement}} {{ultimateDisabled ? 'class-right-icon--disabled' : ''}}"
t-class-hover="class-header-hover"
>
<slot name="header" slot="title" />
<slot name="header-right-content" slot="note" />
<slot name="expand-icon" slot="right-icon" />
</t-cell>
</view>
<view class="{{classPrefix}}__wrapper" animation="{{animation}}" aria-hidden="{{expanded ? '' : true}}">
<view class="{{classPrefix}}__content {{prefix}}-class-content">
{{content}}
<slot />
<slot name="content" />
</view>
</view>
</view>