0.1.8 • Published 12 months ago

vue-notice-roll v0.1.8

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

vue-notice-roll(基于Vue2的垂直滚动公告插件)

Install

# npm
npm i vue-notice-roll
# yarn
yarn add vue-notice-roll

Quick Start

import notice from 'vue-notice-roll'
Vue.use(notice)

//or
import {Notice} from 'vue-notice-roll'
Vue.component(Notice.name, Notice);

//component
<IMNotice></IMNotice>

参数说明

参数说明默认值(类型)
jump一次滚动子元素个数1(Number)
showNumber可见的元素个数1(Number)
autoplay是否自动切换false(Boolean)
duration自动切换的时间间隔,单位为毫秒3000(Number)
list滚动列表
setting所有参数集合如:{height: 40,jump: 1,autoplay:true,...}(Object)

jump可不传,默认滚动父元素的高度,即父元素下展示了几条就滚动几条 showNumber值设置为2即可见元素是2个,jump值设置1即逐条往上滚动

0.1.8

12 months ago

0.1.7

12 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago