docs: 优化注释

This commit is contained in:
pany 2024-12-02 18:29:41 +08:00
parent 0c23ef9f8c
commit de349901df
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import type { App } from "vue"
import * as ElementPlusIconsVue from "@element-plus/icons-vue" import * as ElementPlusIconsVue from "@element-plus/icons-vue"
export function installElementPlusIcons(app: App) { export function installElementPlusIcons(app: App) {
// 注册所有 Element Plus Icon // 注册所有 Element Plus Icons
for (const [key, component] of Object.entries(ElementPlusIconsVue)) { for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component) app.component(key, component)
} }

View File

@ -2,5 +2,6 @@ import type { App } from "vue"
import SvgIcon from "~virtual/svg-component" import SvgIcon from "~virtual/svg-component"
export function installSvgIcon(app: App) { export function installSvgIcon(app: App) {
// 注册 SvgIcon 组件
app.component("SvgIcon", SvgIcon) app.component("SvgIcon", SvgIcon)
} }