Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-marquee-bar

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-marquee-bar

a vue marquee bar

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by75%
Maintainers
1
Weekly downloads
 
Created
Source

vue-menu-cascader

Vue 跑马灯组件,支持自定义内容

Live Demo

Live Demo

preview 效果预览

vue-marquee-bar

install 安装

npm i vue-marquee-bar --save

use 使用

全局使用:在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>

:::

Cascader Attributes

参数说明类型可选值默认值
content轮播内容Array
speed轮播速度Number1500
hoverPause是否开启鼠标悬浮暂停轮播Booleantrue/falsetrue
background轮播条背景颜色,支持transparentString'#f8f9fa'
color轮播是文字时,字体颜色string'#212529'
boxShadow轮播条阴影效果string'none'

更新日志

版本:1.0.3

Contributor: @sharpFD

时间:2021年5月13日

内容:

  • feature: 初始化提交

FAQs

Package last updated on 13 May 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc