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