Socket
Book a DemoInstallSign in
Socket

rolling-countdown

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rolling-countdown

Vue 倒计时组件 滚动倒计时 支持Vue2.x和Vue3.x

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

下载

yarn add rolling-countdown 

引入

import RollingCountdown from 'rolling-countdown'
Vue.use(RollingCountdown);

使用

<RollingCountdown @timeEnd="timeEnd"></RollingCountdown>  



<RollingCountdown @timeEnd="timeEnd" timeData="2025-07-10 00:00:00"
    :timeUnit="['day',':',':','s']" >
</RollingCountdown>

参数说明

timeData | 时间格式;  默认30秒后
splitClass  | 分割符样式class
timeUnit | ['天','时','分','秒']
overText | 倒计时结束显示的文字
overClass | 倒计时结束样式class


autoplay | 是否自动开始倒计时;默认true
unpalyTxt | 未开始倒计时显示的文字
unplayClass | 未开始倒计时显示的样式class

@timeEnd 倒计时结束回调函数
 
start() 开始方法。当autoplay为false时,需要手动调用该方法开始倒计时。


Keywords

vue

FAQs

Package last updated on 17 Jul 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.