feat: 完成文字涂色卡功能

This commit is contained in:
2025-07-01 11:27:50 +08:00
parent 654afced6f
commit 6d38a17652
21 changed files with 267 additions and 103 deletions
+2 -3
View File
@@ -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);
}
+1 -1
View File
@@ -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,
});
+1 -1
View File
@@ -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;
},