Skip to content

Releases

v2.4.5

Choose a tag to compare

@PeachScript PeachScript released this 05 Mar 16:51

Fixed

  • querySelector bug for forceUseInfiniteWrapper property
  • Correct PluginFunction type

v2.4.4

Choose a tag to compare

@PeachScript PeachScript released this 31 Mar 15:39

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

Choose a tag to compare

@PeachScript PeachScript released this 23 Nov 16:14

Fixed

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

Improvements

  • Attempt load condition checking logic

v2.4.2

Choose a tag to compare

@PeachScript PeachScript released this 23 Nov 09:23

Fixed

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

v2.4.1

Choose a tag to compare

@PeachScript PeachScript released this 13 Nov 03:01

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"

Choose a tag to compare

@PeachScript PeachScript released this 24 Oct 07:56

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

Choose a tag to compare

@PeachScript PeachScript released this 12 Oct 15:05

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

Choose a tag to compare

@PeachScript PeachScript released this 16 Aug 06:44

Improvements

  • Improve throttle logic to ensure the trailing call.

v2.3.2

Choose a tag to compare

@PeachScript PeachScript released this 11 Aug 16:42

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

Choose a tag to compare

@PeachScript PeachScript released this 10 Apr 09:15

New