Skip to content

Releases: PeachScript/vue-infinite-loading

v2.4.5

05 Mar 16:51
Compare
Choose a tag to compare

Fixed

  • querySelector bug for forceUseInfiniteWrapper property
  • Correct PluginFunction type

v2.4.4

31 Mar 15:39
Compare
Choose a tag to compare

Fixed

  • Double trigger bug when init with a scrolled wrapper #228

Improvements

  • Add missing install method declaration in the TypeScript definition file

v2.4.3

23 Nov 16:14
Compare
Choose a tag to compare

Fixed

  • Throttleer bug when using multiple instances with v-show #204

Improvements

  • Attempt load condition checking logic

v2.4.2

23 Nov 09:23
Compare
Choose a tag to compare

Fixed

  • Global object and document not defined error in SSR #202

v2.4.1

13 Nov 03:01
Compare
Choose a tag to compare

Fixed

  • Keep TypeScript definition file sync with source code
  • Throttle reset bug will trigger double infinite event when reseting plugin #189

v2.4.0 "10.24"

24 Oct 07:56
Compare
Choose a tag to compare

Happy Programmer's Day!

This version contains some notable changes and a lot of new features, you may need to spend some time reading them, I believe these changes can help you build application more easily :)

Notable changes

  • Deprecate the $InfiniteLoading:reset event, use identifier property instead, because it is not a elegant way that getting the instance and communicate via event. Since this verison, the InfiniteLoading component will be reset whenever the identifier property is changed, so you can change your reset logic like this:
<template>
  <!-- ... -->
  <infinite-loading :identifier="infiniteId"></infinite-loading>
  <!-- ... -->
</template>
<script>
export default {
  data() {
    return { identifier: +new Date() };
  },
  methods: {
    reset() {
      this.identifier += 1; // or any expression can change identifier value
    },
  },
};
</script>

New

  • The scroll height will be save and restore automatically when the direction is set to top, it means we can create a top-direction infinite scroll list out of the box!
  • Support configure default values of props, default contents of slots and default system settings via the plugin API, read more
  • Add a new status named error to control message display when loading error, read more
  • A full-new documentation website, powered by Vuepress

Improvements

  • To avoid inherit styles when configure complex load message via slot special attr, read more
  • Better logger system, only output error message in production

v2.3.5

12 Oct 15:05
Compare
Choose a tag to compare

Improvements

  • The forceUseInfiniteWrapper prop support to pass a CSS selector, contributed by @snowyu through #187
  • Vulnerabilities of dependencies

Fixed

  • Export bug in TypeScript definition file, contributed by @snowyu through #188

v2.3.3

16 Aug 06:44
Compare
Choose a tag to compare

Improvements

  • Improve throttle logic to ensure the trailing call.

v2.3.2

11 Aug 16:42
Compare
Choose a tag to compare

Improvements

  • Support passive event listener #173 , contributed by @patrickabkarian
  • Use throttle instead of debounce #160 , contributed by @whdckszxxx
  • Add banner into dist file when bundle in production #154

v.2.3.1

10 Apr 09:15
Compare
Choose a tag to compare

New