feat: 字母描红页样式开发基本完成
This commit is contained in:
@@ -171,6 +171,7 @@ Component({
|
||||
visualType,
|
||||
variant,
|
||||
disabled,
|
||||
pressed,
|
||||
);
|
||||
const resolvedIconSize =
|
||||
this.normalizeUnit(iconSize) ||
|
||||
@@ -214,10 +215,16 @@ Component({
|
||||
type: string,
|
||||
variant: string,
|
||||
disabled: boolean,
|
||||
pressed: boolean,
|
||||
) {
|
||||
if (disabled) return '#b8b2a6';
|
||||
if (iconColor) return iconColor;
|
||||
|
||||
/* 与 .toy-btn--primary.toy-btn--active 的 color(@btn-primary-pressed-text)一致 */
|
||||
if (pressed && variant === 'filled' && type === 'primary') {
|
||||
return '#fff2cd';
|
||||
}
|
||||
|
||||
if (variant === 'outlined' || variant === 'ghost') {
|
||||
const outlinedMap: Record<string, string> = {
|
||||
primary: '#6c5a00',
|
||||
|
||||
Reference in New Issue
Block a user