
Product
Introducing Custom Pull Request Alert Comment Headers
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
@msidolphin/vue-progress
Advanced tools
vue进度条组件
npm install @msidolphin/vue-progress
import Vue from 'vue'
import VueProgress from '@msidolphin/vue-progress'
Vue.use(VueProgress)
<script>
export default {
name: 'App',
data () {
return {
percent: 0.8
}
},
mounted () {
this.timer = setInterval(() => {
this.percent = Math.random()
}, 1000)
},
beforeDestroy () {
clearInterval(this.timer)
}
}
</script>
<template>
<div id="app">
<v-linear-progress
className="hover"
:chunks="20"
:colors="['red', 'blue', 'orange']"
:percent="percent"
curve="linear"
/>
<br/>
<v-linear-progress
className="hover"
:chunks="44"
:percent="percent"
/>
</div>
</template>
<style scoped>
.hover {
width: 360px;
height: 36px;
border-color: #000;
}
.hover:hover {
border-color: red;
}
</style>
属性 | 类型 | 默认值 | 说明 |
---|---|---|---|
percent | number | 0 | 进度所占比例 [0 - 1] |
chunks | number | 20 | 分块数量 |
chunkGaps | number | 1 | 分块间距 |
chunkColor | string | rgba(0,0,0,.2) | 分块的背景色 |
colors | array | ['#56D6C7', '#409BFF'] | 进度条背景色 |
duration | number | 300 | 动画时长 |
curve | string | easeInQuad | 动画缓动函数 |
FAQs
vue进度条组件
The npm package @msidolphin/vue-progress receives a total of 0 weekly downloads. As such, @msidolphin/vue-progress popularity was classified as not popular.
We found that @msidolphin/vue-progress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.