mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] ActionSheet: 修复背景色样式问题
This commit is contained in:
parent
8a78daf035
commit
8a6339d062
@ -1,9 +1,8 @@
|
||||
@import '../common/style/var.less';
|
||||
|
||||
.van-action-sheet {
|
||||
color: @text-color;
|
||||
max-height: 90% !important;
|
||||
background-color: @background-color !important;
|
||||
color: @text-color;
|
||||
|
||||
&__item,
|
||||
&__cancel {
|
||||
@ -27,13 +26,14 @@
|
||||
}
|
||||
|
||||
&__subname {
|
||||
margin-left: 5px;
|
||||
font-size: 12px;
|
||||
color: @gray-darker;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
&__cancel {
|
||||
margin-top: 10px;
|
||||
&__blank {
|
||||
height: 10px;
|
||||
background-color: @background-color;
|
||||
}
|
||||
|
||||
&__header {
|
||||
@ -44,12 +44,12 @@
|
||||
}
|
||||
|
||||
&__close {
|
||||
position: absolute !important;
|
||||
top: 0;
|
||||
right: 0;
|
||||
padding: 0 15px;
|
||||
color: @gray-dark;
|
||||
font-size: 18px !important;
|
||||
position: absolute !important;
|
||||
line-height: inherit !important;
|
||||
color: @gray-dark;
|
||||
}
|
||||
}
|
||||
|
@ -29,12 +29,14 @@
|
||||
</block>
|
||||
<van-loading wx:else size="20px" />
|
||||
</button>
|
||||
<view
|
||||
wx:if="{{ cancelText }}"
|
||||
class="van-action-sheet__cancel"
|
||||
bind:tap="onCancel"
|
||||
>
|
||||
{{ cancelText }}
|
||||
</view>
|
||||
<block wx:if="{{ cancelText }}">
|
||||
<view class="van-action-sheet__blank" />
|
||||
<view
|
||||
class="van-action-sheet__cancel"
|
||||
bind:tap="onCancel"
|
||||
>
|
||||
{{ cancelText }}
|
||||
</view>
|
||||
</block>
|
||||
<slot />
|
||||
</van-popup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user