Emperor_Shun_Reading/frontend/src/components/global/iconFont.js

19 lines
425 B
JavaScript
Raw Normal View History

2024-08-22 01:03:01 +00:00
import { createFromIconfontCN } from '@ant-design/icons-vue'
import { h } from 'vue'
const IconFont = createFromIconfontCN({
scriptUrl: 'https://at.alicdn.com/t/font_2456157_4ovzopz659q.js',
extraCommonProps: {
type: 'icon-fengche',
style: {
fontSize: '18px',
},
},
})
const DynamicIconFont = props => {
return h(IconFont, { type: props.type || 'icon-fengche' })
}
export default DynamicIconFont