
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
rolling-countdown
Advanced tools
下载
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时,需要手动调用该方法开始倒计时。
FAQs
Vue 倒计时组件 滚动倒计时 支持Vue2.x和Vue3.x
We found that rolling-countdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.