Git Product home page Git Product logo

Comments (12)

sky-code avatar sky-code commented on July 22, 2024 1

Yes i am talking about percentage or any other progress value.
In activeLoaders property we can store string or object

{
name: same as loaderMessage atm
progress: value,
max: value
}

and in code handle both activeLoaders types
than state will be

state = [
  {
    name: "fetching data",
    progress: 90,
    max: 100
  },
  "logging user" // no progress info loader
]

but your variant with object instead of list a little bit better, and we can use object instead of number for progress information

state = {
  "fetching data": true, // for no progress information loaders
  "logging user": {
    progress: 90,
    max: 100
    percent: 90 // injected property that calculate percent
  }
}

from vue-wait.

f avatar f commented on July 22, 2024 1

Let's plan this for v1.5.0 :)

from vue-wait.

f avatar f commented on July 22, 2024

What kind of progress information you want to track? Like percentage or something?

from vue-wait.

f avatar f commented on July 22, 2024

If you mean percentage, we may edit the plugin to watch some values.

We may convert this:

state = [
  "fetching data",
  "logging user"
]

into this:

state = {
  "fetching data": 90,
  "logging user": 22
}

from vue-wait.

jnarowski avatar jnarowski commented on July 22, 2024

Would this allow for other messages like errors and whatnot? I love this library but would love to be able to use it to show error information as well, if the request fails.

from vue-wait.

f avatar f commented on July 22, 2024

Let's plan this for v1.1.0

from vue-wait.

sky-code avatar sky-code commented on July 22, 2024

@f publish please the 1.1.4 version to npm

from vue-wait.

f avatar f commented on July 22, 2024

from vue-wait.

f avatar f commented on July 22, 2024

from vue-wait.

sky-code avatar sky-code commented on July 22, 2024

release 1.1.4 contains bug and require redeploy.
fix f4ca69a

from vue-wait.

f avatar f commented on July 22, 2024

Deployed with 1.1.5

from vue-wait.

f avatar f commented on July 22, 2024

@sky-code #44

from vue-wait.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.