mixit/compiler/src/core/loadable/ReLoadable.js

16 lines
297 B
JavaScript
Raw Normal View History

2019-04-29 14:10:28 +00:00
import Loadable from './Loadable'
export default class extends Loadable {
reset() {
super.reset()
this.loadingMore = false
}
loadMore(promise, then) {
this.loadingMore = true
promise.then(res => {
then(res, this.data, this)
this.loadingMore = false
})
}
}