mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-21 13:59:15 +08:00
feat(Picker): update action button style (#3316)
This commit is contained in:
parent
11dd8df9d4
commit
b4cfcceca8
@ -27,6 +27,7 @@
|
||||
@disabled-opacity: 0.5;
|
||||
@background-color: @gray-1;
|
||||
@background-color-light: #fafafa;
|
||||
@text-link-color: #576b95;
|
||||
|
||||
// Padding
|
||||
@padding-base: 4px;
|
||||
@ -328,8 +329,8 @@
|
||||
@picker-title-font-size: @font-size-lg;
|
||||
@picker-action-padding: 0 @padding-md;
|
||||
@picker-action-font-size: @font-size-md;
|
||||
@picker-action-text-color: @blue;
|
||||
@picker-action-active-color: @active-color;
|
||||
@picker-confirm-action-color: @text-link-color;
|
||||
@picker-cancel-action-color: @gray-6;
|
||||
@picker-option-font-size: @font-size-lg;
|
||||
@picker-option-text-color: @black;
|
||||
@picker-loading-icon-color: @blue;
|
||||
|
@ -19,13 +19,20 @@
|
||||
&__confirm {
|
||||
.theme(padding, '@picker-action-padding');
|
||||
.theme(font-size, '@picker-action-font-size');
|
||||
.theme(color, '@picker-action-text-color');
|
||||
|
||||
&--hover {
|
||||
.theme(background-color, '@picker-action-active-color');
|
||||
opacity: @active-opacity;
|
||||
}
|
||||
}
|
||||
|
||||
&__confirm {
|
||||
.theme(color, '@picker-confirm-action-color');
|
||||
}
|
||||
|
||||
&__cancel {
|
||||
.theme(color, '@picker-cancel-action-color');
|
||||
}
|
||||
|
||||
&__title {
|
||||
max-width: 50%;
|
||||
text-align: center;
|
||||
@ -75,13 +82,12 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&__loading .van-loading,
|
||||
&__frame {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: @padding-md;
|
||||
left: @padding-md;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
transform: translateY(-50%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template name="toolbar">
|
||||
<view
|
||||
wx:if="{{ showToolbar }}"
|
||||
class="van-picker__toolbar van-hairline--top-bottom toolbar-class"
|
||||
class="van-picker__toolbar toolbar-class"
|
||||
>
|
||||
<view
|
||||
class="van-picker__cancel"
|
||||
|
Loading…
x
Reference in New Issue
Block a user