文章詳情頁
vue 自定義icon圖標的步驟
瀏覽:26日期:2023-02-16 09:15:52
ant-design-vue自定義使用阿里iconfont圖標
第一步:從iconfont獲取項目js鏈接

第二步 在需要引用iconfont的頁面處加入
在Deom中使用: <a> <Fonts type=’icon-zutaishitu’/> </a>
import { Icon } from ‘a(chǎn)nt-design-vue’; const Fonts = Icon.createFromIconfontCN({ scriptUrl: ’//at.alicdn.com/t/font_2731654_ew9hs5g22se.js’ }) export default { components: { Fonts }}
效果:

到此這篇關(guān)于vue 自定義icon的文章就介紹到這了,更多相關(guān)vue 自定義icon內(nèi)容請搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
標簽:
Vue
相關(guān)文章:
排行榜

網(wǎng)公網(wǎng)安備