feat: withInstall (#275)

This commit is contained in:
一万
2022-05-19 12:31:42 +08:00
committed by GitHub
parent b6ed8b40d1
commit 1f8e50f482
12 changed files with 34 additions and 81 deletions

View File

@@ -1,11 +1,7 @@
import { App } from "vue";
import reFlop from "./src/index.vue";
import { withInstall } from "/@/utils";
/** 时间翻牌组件 */
export const ReFlop = Object.assign(reFlop, {
install(app: App) {
app.component(reFlop.name, reFlop);
}
});
export const ReFlop = withInstall(reFlop);
export default ReFlop;