Procházet zdrojové kódy

!816 update Web/src/components/svgIcon/index.vue.
Merge pull request !816 from 天天/N/A

zuohuaijun před 2 roky
rodič
revize
5825d56ba5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Web/src/components/svgIcon/index.vue

+ 1 - 1
Web/src/components/svgIcon/index.vue

@@ -57,7 +57,7 @@ const setIconImgOutStyle = computed(() => {
 const setIconSvgInsStyle = computed(() => {
 const setIconSvgInsStyle = computed(() => {
 	const filterStyle: string[] = [];
 	const filterStyle: string[] = [];
 	const compatibles: string[] = ['-webkit', '-ms', '-o', '-moz'];
 	const compatibles: string[] = ['-webkit', '-ms', '-o', '-moz'];
-	compatibles.forEach((j) => filterStyle.push(`${j}-filter: drop-shadow(${props.color} 30px 0);`));
+	compatibles.forEach((j) => filterStyle.push(`${j}-filter: drop-shadow(${props.color} ${props.size}px 0);`));
 	return `width: ${props.size}px;height: ${props.size}px;position: relative;left: -${props.size}px;${filterStyle.join('')}`;
 	return `width: ${props.size}px;height: ${props.size}px;position: relative;left: -${props.size}px;${filterStyle.join('')}`;
 });
 });
 </script>
 </script>