Watch 1 Star 1 Fork 0

orh / vue-nprogressJavaScript

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
readme.md

vue-nprogress

进度条

examples

常规

<link href="path/vue-nprogress/css/index.css" rel="stylesheet">

<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
<script src="path/vue-nprogress/js/index.js"></script>

NPM

  1. 安装
yarn add vue-nprogress-orh --dev
  1. 引入 js
import vueNProgress from 'vue-nprogress-orh';

Vue.use(vueNProgress);
  1. 引入样式
@import "~vue-nprogress-orh/dist/css/index";

使用

this.$nprogress.start();

this.$nprogress.set(0.4);

this.$nprogress.inc();

this.$nprogress.done();

Comments ( 0 )

Sign in for post a comment

JavaScript
1
https://gitee.com/orh/vue-nprogress.git
git@gitee.com:orh/vue-nprogress.git
orh
vue-nprogress
vue-nprogress
master

Help Search