mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
feat: withInstall (#275)
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
import { App } from "vue";
|
||||
import { withInstall } from "/@/utils";
|
||||
import reSeamlessScroll from "./src/index.vue";
|
||||
|
||||
/** 无缝滚动组件 */
|
||||
export const ReSeamlessScroll = Object.assign(reSeamlessScroll, {
|
||||
install(app: App) {
|
||||
app.component(reSeamlessScroll.name, reSeamlessScroll);
|
||||
}
|
||||
});
|
||||
export const ReSeamlessScroll = withInstall(reSeamlessScroll);
|
||||
|
||||
export default ReSeamlessScroll;
|
||||
|
||||
Reference in New Issue
Block a user