Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
vue3-progress
Advanced tools
A vue3 progress bar component in which custom colors are supported
一款 vue3 进度条组件 支持自定义喜欢的颜色
This Vue Component is now Type Script Compatible!
$ npm i vue3-progress
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>
this.$progress.start() // start the loading
this.$progress.finish() // finish the loading
this.$progress.height(4) // resize the height of loading bar to 4px
FAQs
A vue3 component of progress bar.
The npm package vue3-progress receives a total of 200 weekly downloads. As such, vue3-progress popularity was classified as not popular.
We found that vue3-progress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.