fix(docs): icon import (#7440)

This commit is contained in:
Kevin.Liao 2022-05-01 07:01:01 +08:00 committed by GitHub
parent 6b9ac43419
commit ca5b8982eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
```