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

z-vue-marquee

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

z-vue-marquee

This is a Vue horizontal scrolling marquee component.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Marquee 封装组件-跑马灯

封装说明

该组件以 :props 形式广播需要滚屏的消息内容。

你无需在使用滚屏组件时进行动效处理,仅需向 <Marquee /> 组件传递绑定 props 对象即可。

Marquee 由 nj_zuoyang 完成封装。

(基础使用)

<template>
  <marquee v-if="isShowMarquee" :marquee-list="priceList" />
</template>

<script>
  export default {
    data() {
      return {
        isShowMarquee: true,
        priceList: [
          'A公司成交15000元',
          'B公司成交17000元',
          'C公司成交13000元',
        ]
      }
    }
  }
</script>

内置属性

Marquee 提供了一些开放属性:

属性说明类型是否必传默认值
speed设定滚动速度Number30
marqueeList滚屏内容Array

注意事项

marqueeList 必须为 [String, string],不可传 [Object, Object]

有时你会遇到因调用远端数据而造成组件渲染错误,解决方法:为组件添加 v-if 属性,接口调用完毕后将其置为 true

Keywords

FAQs

Package last updated on 17 Mar 2022

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