UNPKG
lighty-admin-vite
Version:
latest (3.4.0)
3.4.0
基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术.
lighty-admin-vite
/
src
/
plugins
/
element-plus-icon
/
index.ts
10 lines
(8 loc)
•
295 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ type
App
}
from
"vue"
import
*
as
ElementPlusIconsVue
from
"@element-plus/icons-vue"
export
function
loadElementPlusIcon
(
app: App
) {
/** 注册所有 Element Plus Icon */
for
(
const
[key, component]
of
Object
.
entries
(
ElementPlusIconsVue
)) { app.
component
(key, component) } }