mirror of https://github.com/certd/certd
refactor: export
parent
136983cf14
commit
7326119f52
|
@ -9,19 +9,19 @@ import {
|
|||
DeleteOutlined
|
||||
} from '@ant-design/icons-vue'
|
||||
|
||||
// 必须这么写。否则打包正式环境的时候显示不了图标
|
||||
const icons = {
|
||||
PlusCircleOutlined,
|
||||
PlusOutlined,
|
||||
CheckOutlined,
|
||||
EditOutlined,
|
||||
ArrowRightOutlined,
|
||||
NodeIndexOutlined,
|
||||
ThunderboltOutlined,
|
||||
DeleteOutlined
|
||||
PlusCircleOutlined: PlusCircleOutlined,
|
||||
PlusOutlined: PlusOutlined,
|
||||
CheckOutlined: CheckOutlined,
|
||||
EditOutlined: EditOutlined,
|
||||
ArrowRightOutlined: ArrowRightOutlined,
|
||||
NodeIndexOutlined: NodeIndexOutlined,
|
||||
ThunderboltOutlined: ThunderboltOutlined,
|
||||
DeleteOutlined: DeleteOutlined
|
||||
}
|
||||
export default function (app) {
|
||||
_.forEach(icons, item => {
|
||||
console.log('icons:', item.name)
|
||||
app.component(item.name, item)
|
||||
_.forEach(icons, (item, key) => {
|
||||
app.component(key, item)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue