进展
由进步激励的微弱进步栏.
NProgress V2和下个NProgress Bar成为了"进步"!
从 nprogress-v2
使用时 nprogress-v2你可以迁移到 @bprogress/core 通过跟踪 移徙指南。 。 。 .
安装
节点.js
要安装 BProgress, 请运行以下命令:
npm install @bprogress/core
光盘N
使用 (单位:公斤)数字 :
- 联合材料:https://unpkg.com/@bprogress/core/dist/index.global.js
- 无害环境管理:https://unpkg.com/@bprogress/core/dist/index.js
- 支助组:https://unpkg.com/@bprogress/core/dist/index.css
使用 日记数字 :
- 联合材料:https://cdn.jsdelivr.net/npm/@bprogress/core/dist/index.global.js
- 无害环境管理:https://cdn.jsdelivr.net/npm/@bprogress/core/dist/index.js
- 支助科:https://cdn.jsdelivr.net/npm/@bprogress/core/dist/index.css
整合图书馆
以下框架有一套专用的 " 进展 " 软件包:
快速启动
导入
光盘N
导入您的 CSS index.html 文档.
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/@bprogress/core/dist/index.css"
/>
导入您的 Java 脚本 index.html 文档.
<script type="module">
import { BProgress } from 'https://unpkg.com/@bprogress/core/dist/index.js';
BProgress.configure({
...
});
</script>
或者你可以加点 BProgressJS 作为利用遗产的全球变量,包括:
<script src="https://unpkg.com/@bprogress/core/dist/index.global.js"></script>
<script>
const { BProgress } = BProgressJS;
BProgress.configure({
...
});
</script>
节点.js
import '@bprogress/core/css';
import { BProgress } from '@bprogress/core';
基本用途
仅此而已 start() 财务报告和审定财务报表 done() 控制进度栏.
BProgress.start();
BProgress.done();
有关文件的更多信息
转到 文档 学习更多关于B进步.
问题
如果你遇到任何问题,不要犹豫 打开一个问题 或制作 PR 这里。 。 。 .
自由主义
麻省理工学院