mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[improvement] ActionSheet: optimize wxml (#864)
This commit is contained in:
parent
c88e8e02e2
commit
58c5d2f54d
@ -17,6 +17,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__cancel {
|
||||
height: 60px;
|
||||
|
||||
&::before {
|
||||
display: block;
|
||||
content: ' ';
|
||||
height: 10px;
|
||||
background-color: @background-color;
|
||||
}
|
||||
}
|
||||
|
||||
&__item--disabled {
|
||||
color: @gray;
|
||||
|
||||
@ -31,11 +42,6 @@
|
||||
color: @gray-darker;
|
||||
}
|
||||
|
||||
&__blank {
|
||||
height: 10px;
|
||||
background-color: @background-color;
|
||||
}
|
||||
|
||||
&__header {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
|
@ -29,14 +29,12 @@
|
||||
</block>
|
||||
<van-loading wx:else size="20px" />
|
||||
</button>
|
||||
<block wx:if="{{ cancelText }}">
|
||||
<view class="van-action-sheet__blank" />
|
||||
<view
|
||||
class="van-action-sheet__cancel"
|
||||
bind:tap="onCancel"
|
||||
>
|
||||
{{ cancelText }}
|
||||
</view>
|
||||
</block>
|
||||
<view
|
||||
wx:if="{{ cancelText }}"
|
||||
class="van-action-sheet__cancel"
|
||||
bind:tap="onCancel"
|
||||
>
|
||||
{{ cancelText }}
|
||||
</view>
|
||||
<slot />
|
||||
</van-popup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user