@moohng/dui
Version:
基于 Vue 3 的轻量级组件库
18 lines (14 loc) • 404 B
text/typescript
import { Plugin } from 'vue'
import LoadMore from './load-more.vue'
import Load from './load.vue'
import Pullup from '../../tools/pullup'
export type LoadMoreEventCallBack = (noMore: boolean) => void
export const plugin: Plugin = {
install: (app) => {
app.use(Pullup)
// 注册组件
app.component(LoadMore.name, LoadMore)
app.component(Load.name, Load)
},
}
export default plugin