notice-bar

npm i notice-bar -S

Usage no npm install needed!

<script type="module">
  import noticeBar from 'https://cdn.skypack.dev/notice-bar';
</script>

README

纵向滚动组件

example

使用说明

npm i notice-bar -S
import noticeBar from 'notice-bar'
export default {
  components: {
    noticeBar,
  },
}
<notice-bar />

属性说明

参数 说明 类型 默认值
noticeBarList 消息数组 Array []
speed 速度(毫秒) Number 2000
height 高度(px) Number 40
background 背景色 String #fff
color 字体颜色 String #000