cl-svg 参数 color 支持 "none"
This commit is contained in:
@@ -52,6 +52,10 @@ const props = defineProps({
|
|||||||
|
|
||||||
// 颜色值
|
// 颜色值
|
||||||
const color = computed(() => {
|
const color = computed(() => {
|
||||||
|
if (props.color == "none") {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
if (props.color != "") {
|
if (props.color != "") {
|
||||||
if (props.color == "primary") {
|
if (props.color == "primary") {
|
||||||
return getColor("primary-500");
|
return getColor("primary-500");
|
||||||
|
|||||||
Reference in New Issue
Block a user