mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-24 11:05:17 +08:00
fix(docs): icon import (#7440)
This commit is contained in:
parent
6b9ac43419
commit
ca5b8982eb
@ -39,7 +39,7 @@ You need import all icons from `@element-plus/icons-vue` and register them globa
|
||||
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||
|
||||
const app = createApp(App)
|
||||
for ([key, component] of Object.entries(ElementPlusIconsVue)) {
|
||||
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
||||
app.component(key, component)
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user