Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
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 5 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.