Mixin.js 388 B

1234567891011121314151617181920212223
  1. export default {
  2. data() {
  3. return {
  4. };
  5. },
  6. onReachBottom() {
  7. try {
  8. if (this.initModule && this.initModule.length > 0) {
  9. this.initModule.forEach(el => {
  10. if (this.$refs[`${el.component}Ref`][0].reachBottom) {
  11. this.$refs[`${el.component}Ref`][0].onReachBottom()
  12. }
  13. })
  14. }
  15. } catch (e) {
  16. console.log('触摸底部 ----------: ' + e.message)
  17. }
  18. },
  19. }