✨: 添加 withInstall 函数
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user