Parcourir la source

cl-svg 参数 color 支持 "none"

icssoa il y a 7 mois
Parent
commit
1e8d712b89
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      uni_modules/cool-svg/components/cl-svg/cl-svg.uvue

+ 4 - 0
uni_modules/cool-svg/components/cl-svg/cl-svg.uvue

@@ -52,6 +52,10 @@ const props = defineProps({
 
 // 颜色值
 const color = computed(() => {
+	if (props.color == "none") {
+		return "";
+	}
+
 	if (props.color != "") {
 		if (props.color == "primary") {
 			return getColor("primary-500");