Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-marquee-bar
Advanced tools
Readme
Vue 跑马灯组件,支持自定义内容
npm i vue-marquee-bar --save
全局使用:在main.js中写入下面的代码
import VueMarqueeBar from "vue-marquee-bar";
Vue.use(VueMarqueeBar);
文件中使用:
<scrpit>
import VueMarqueeBar from "vue-marquee-bar";
export default{
components:{VueMarqueeBar}
}
</script>
接下来,你就可以在页面中使用vue-marquee-bar了
```html
<template>
<vue-marquee-bar
:content="emoji"
:speed="1000"
background="transparent"
color="#000000"
>
<template v-slot:content="scope">
<div style="display: flex; align-items: baseline">
<div style="color: #03c08d">{{ scope.data }}</div>
</div>
</template>
</vue-marquee-bar>
</template>
<script>
export default {
data () {
return {
emoji: [
"😀",
"😃",
"😄",
"😁",
"😆",
"😅",
"😂",
"🤣"
]
}
}
</script>
:::
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
content | 轮播内容 | Array | — | — |
speed | 轮播速度 | Number | — | 1500 |
hoverPause | 是否开启鼠标悬浮暂停轮播 | Boolean | true/false | true |
background | 轮播条背景颜色,支持transparent | String | — | '#f8f9fa' |
color | 轮播是文字时,字体颜色 | string | — | '#212529' |
boxShadow | 轮播条阴影效果 | string | — | 'none' |
版本:1.0.3
Contributor: @sharpFD
时间:2021年5月13日
内容:
FAQs
a vue marquee bar
The npm package vue-marquee-bar receives a total of 3 weekly downloads. As such, vue-marquee-bar popularity was classified as not popular.
We found that vue-marquee-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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.