Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
c-vue-countdown
Advanced tools
#use
<countdown
class="times"
:startTime="startTime"
:endTime="endTime"
:format="format"
@change="chountChange"
@end="end"
/>
内进行付款,若未进行支付则订单自动取消。
js
this.format = "{yy}{mn}月{dd}天{hh}小时{mm}分钟{ss}秒";
this.startTime = new Date().getTime();
this.endTime = this.startTime + 60*1000*60*24*3000
chountChange({ dd, hh, mm, ss,ms,yy}) {
let str = "{dd}天{hh}小时{mm}分钟{ss}秒";
if (dd == 0) str = "{hh}小时{mm}分钟{ss}秒";
if (hh == 0 && dd == 0) str = "{mm}分钟{ss}秒"
if (mm == 0 && hh == 0 && dd == 0) str = "{ss}秒";
if (str != this.format) this.format = str;
}
end(){
}
prop & event | ||
---|---|---|
startTime | 默认本地当前时间戳 | 开始时间 |
endTime | 毫秒 | 结束时间 |
format | "{yy}年{mn}月{dd}天{hh}小时{mm}分钟{ss}秒" | 剩余时间 按照当前最高时间单位解析 1月10天10小时 == {mn}月{dd}天{hh}小时 和 (如果是6月份)40天10小时=={dd}天{hh}小时 是相同的 |
change | 每次计算的回调 1000毫秒 通知一次 这个可以随时更改所有的属性 | |
end | 倒计时结束 |
FAQs
a simple countdown abort vue component
We found that c-vue-countdown demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.