当前位置: 首页> 教育> 高考 > 小企业广告投放平台_建设厅电工证_网络推广引流最快方法_百度广告推广费用

小企业广告投放平台_建设厅电工证_网络推广引流最快方法_百度广告推广费用

时间:2025/7/9 22:22:31来源:https://blog.csdn.net/qq_34425377/article/details/144292533 浏览次数:0次
小企业广告投放平台_建设厅电工证_网络推广引流最快方法_百度广告推广费用

svg/icon-svg-symbol.vue

<template><svgclass="icon-svg-symbol":class="className":style="{ color: props.color }":width="width":height="height"><use :xlink:href="symbolId" :width="width" :height="height"></use></svg>
</template><script setup lang="ts">import { computed } from 'vue';const props = withDefaults(defineProps<{name: string;color?: string;size?: string;width?: string | 0;height?: string | 0;}>(),{color: 'currentColor',size: '24px',width: 0,height: 0,},);const symbolId = computed(() => `#${props.name}`);const className = computed(() => `icon-${props.name}`);const width = computed(() => props.width || props.size);const height = computed(() => props.height || props.size);
</script>

svg/index.vue

<template><svg version="1.1" xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="add" viewBox="0 0 29 29" fill="none"><pathfill-rule="evenodd"clip-rule="evenodd"d="M15.117 6.225h-1.779v7.113H6.225v1.779h7.113v7.113h1.779v-7.113h7.113v-1.779h-7.113V6.225z"fill="currentColor"fill-opacity=".8"/></symbol><symbol id="add-upload" viewBox="0 0 36 36" fill="none"><g opacity="1"><path d="M6.75 18H29.25" stroke="currentColor" stroke-width="1.25" /><path d="M6.75 18H29.25" stroke="currentColor" stroke-width="1.25" /><path d="M18 29.25L18 6.75" stroke="currentColor" stroke-width="1.25" /></g></symbol></svg>
</template>
<script setup lang="ts"></script>

实际使用

import IconSvgSymbol from '~/components/svg/icon-svg-symbol.vue';<IconSvgSymbolname="add-upload"size="16"></IconSvgSymbol>
关键字:小企业广告投放平台_建设厅电工证_网络推广引流最快方法_百度广告推广费用

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: