
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
vue-notice-bar
Advanced tools
a notice-bar component for Vue2.0
use npm:
npm i -S vue-notice-bar
Like most of the Vue-Plugin:
import Vue from 'vue'
import NoticeBar from './lib'
Vue.use(NoticeBar)
Then, use in your component:
<notice-bar
:text="msg"
icon="http://o8sux93eg.bkt.clouddn.com/notice.png"
:speed="30"
:callback="handleAnimationEnd">
</notice-bar>
export default {
name: 'app',
components: {
NoticeBar
},
data () {
return {
list: [
'世界杯就要开始啦!',
'德国、葡萄牙、阿根廷、西班牙相继出局',
'巴西2:0淘汰墨西哥,日本竟然破了两次比利时的球门,虽败犹荣。',
'这次到底谁才能成功捧起大力神杯呢?'
],
msg: ''
}
},
created () {
this.index = 0
this.msg = this.list[0]
},
methods: {
handleAnimationEnd () {
// update autoscroll content at the right time
this.msg = this.list[++this.index]
if (this.index === this.list.length - 1) {
this.index = -1
}
}
}
}

| propName | Type | Required | Default |
|---|---|---|---|
| color | String | false | #FFF |
| backgroundColor | String | false | #F60 |
| icon | String | false | '' |
| text | String | true | -- |
| speed | Number | false | 40 |
| delay | Number | false | 1 (s) |
| callback | Function | false | -- |
# for dev
npm run dev
FAQs
a notice-bar component for Vue2.0
We found that vue-notice-bar 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.