工具类库
导出VUE插件
安装
pnpm install @chenzoho/utils-install
使用
import Icon from "./src/Icon.vue"
import { withInstall } from "@chenzoho/utils-install"
// 导出组件AppIcon
export const AppSvgIcon = withInstall(SvgIcon)
export const AppIcon = withInstall(Icon)
// AppIcon可以全局注册
export function setupIcon(app: App<Element>): void {
app.use(AppIcon)
app.use(AppSvgIcon)
}
更新记录
- 0.0.1
- 初始版本
- 1.0.1
- 可用版本