Socket
Socket
Sign inDemoInstall

vue-marquee-bar

Package Overview
Dependencies
12
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-marquee-bar

a vue marquee bar


Version published
Weekly downloads
3
decreased by-85%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 13 May 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc