1.0.3 • Published 3 years ago

vue-marquee-bar v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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: 初始化提交

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago