Browse Source

修复 disabled 样式不生效问题

icssoa 4 months ago
parent
commit
b0dd9c1146
1 changed files with 2 additions and 0 deletions
  1. 2 0
      uni_modules/cool-ui/components/cl-tabs/cl-tabs.uvue

+ 2 - 0
uni_modules/cool-ui/components/cl-tabs/cl-tabs.uvue

@@ -42,6 +42,7 @@
 										item.isActive && color == '' && unColor == '',
 										showSlider ? 'text-white' : 'text-primary-500'
 									],
+									[item.disabled, 'opacity-30'],
 									pt.text?.className
 								])
 							}"
@@ -225,6 +226,7 @@ function getColor(isActive: boolean) {
 	} else {
 		color = props.unColor;
 	}
+
 	return isEmpty(color) ? null : color;
 }