仿互站小程序
This commit is contained in:
14
vant/collapse-item/index.wxml
Normal file
14
vant/collapse-item/index.wxml
Normal file
@@ -0,0 +1,14 @@
|
||||
<view class="van-collapse-item custom-class {{index!==0?'van-hairline--top':''}}">
|
||||
<van-cell bind:click="onClick" border="{{border&&expanded}}" class="{{utils.bem( 'collapse-item__title',{disabled:disabled,expanded:expanded} )}}" clickable="{{clickable}}" customClass="van-cell" hoverClass="van-cell--hover" icon="{{icon}}" isLink="{{isLink}}" label="{{label}}" rightIconClass="van-cell__right-icon" title="{{title}}" titleClass="title-class" value="{{value}}">
|
||||
<slot name="title" slot="title"></slot>
|
||||
<slot name="icon" slot="icon"></slot>
|
||||
<slot name="value"></slot>
|
||||
<slot name="right-icon" slot="right-icon"></slot>
|
||||
</van-cell>
|
||||
<view bind:transitionend="onTransitionEnd" class="{{utils.bem( 'collapse-item__wrapper',{transition:transition} )}}" style="height: {{contentHeight}};">
|
||||
<view class="van-collapse-item__content content-class">
|
||||
<slot></slot>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<wxs module="utils" src="../wxs/utils.wxs" />
|
Reference in New Issue
Block a user