: 添加 withInstall 函数

This commit is contained in:
sight
2022-04-29 22:21:20 +08:00
parent 53697131b6
commit 813c56f86a
78 changed files with 235 additions and 391 deletions

View File

@@ -1,8 +1,5 @@
import type { App } from "vue";
import { withInstall } from "../utils"
import Component from "./index.vue";
Component.install = (app: App) => {
app.component(Component.name, Component);
};
export default Component;
export const component = withInstall(Component);
export default component;