vue3-progress

A vue3 component of progress bar.
33,840 29
Install
npm install vue3-progress
Latest Version:0.0.1-beta4
Vue:3
License:MIT
Last Updated:May 30, 2022
Links: GitHub  ·  npm
Maintainer: meloalright

cover

vue3-progress

license npm downloads

A vue3 progress bar component in which custom colors are supported

一款 vue3 进度条组件 支持自定义喜欢的颜色

This Vue Component is now Type Script Compatible!

Demo

Live Demo

Install

$ npm i vue3-progress

Usage

main.js

import Vue3Progress from "vue3-progress";

const options = {
  position: "fixed",
  height: "3px",
  // color: "<Your Color>",
};

createApp(App).use(Vue3Progress, options).mount("#app");

App.vue

<template>
  <div id="app">
    <vue3-progress />
    <router-view />
  </div>
</template>

<script>
export default {
  name: "App",
  mounted() {
    this.$progress.finish();
  },
  created() {
    this.$progress.start();

    this.$router.beforeEach((to, from, next) => {
      this.$progress.start();
      next();
    });

    this.$router.afterEach((to, from) => {
      this.$progress.finish();
    });
  },
};
</script>

APIs

this.$progress.start() // start the loading
this.$progress.finish() // finish the loading
this.$progress.height(4) // resize the height of loading bar to 4px

License

MIT

Links

Vue.js - The Progressive JavaScript Framework

vue-ins-progress-bar 一款 ins 风格的 vue 进度条组件

Related Packages

vue3-progress-bar

A vue3 component of progress bar.

2,471
vuejs-progress-bar

A progress bar component for Vue.js

51,032 75
vue-simple-progress

A simple, flexible progress bar for Vue.js

138,053 90
vue-top-progress

Yet another top progress loading bar component for Vue.js

40,376 249
vue-js-progress

With Vue Js Progress, you will have the opportunity to create your own animated...

3,051

Version History

Pre-releases (3)
Version Released License
0.0.1-beta4 MIT
0.0.1-beta3 MIT
0.0.1-beta1 MIT