feat: 完成文字涂色卡功能
This commit is contained in:
@@ -15,7 +15,6 @@ wx-button:not([size=mini]) {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: @button-default-height;
|
||||
line-height: @button-default-height;
|
||||
border-radius: @button-border-radius;
|
||||
font-size: @button-default-font-size;
|
||||
color: @button-default-color;
|
||||
@@ -64,8 +63,8 @@ wx-button:not([size=mini]) {
|
||||
border: 2rpx solid rgba(223, 220, 220, 1);
|
||||
|
||||
&.disabled {
|
||||
color: rgba(34, 36, 37, 0.7);
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
color: rgba(34, 36, 37, 0.5);
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
box-shadow: 0px 8rpx 0rpx rgba(223, 220, 220, 0.9);
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ Component({
|
||||
attached() {
|
||||
const { type, plain, disabled } = this.data;
|
||||
if (type === 'white' && !plain) {
|
||||
const iconColor = disabled ? 'rgba(34, 36, 37, 0.7)' : 'rgba(34, 36, 37, 0.9)';
|
||||
const iconColor = disabled ? 'rgba(34, 36, 37, 0.5)' : 'rgba(34, 36, 37, 0.9)';
|
||||
this.setData({
|
||||
iconColor,
|
||||
});
|
||||
|
||||
@@ -23,7 +23,7 @@ module.exports = {
|
||||
|
||||
getIconColor: function (iconColor, type, plain, disabled) {
|
||||
if (type === 'white' && !plain) {
|
||||
return disabled ? 'rgba(34, 36, 37, 0.7)' : 'rgba(34, 36, 37, 0.9)';
|
||||
return disabled ? 'rgba(34, 36, 37, 0.5)' : 'rgba(34, 36, 37, 0.9)';
|
||||
}
|
||||
return iconColor;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user