New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vuejs-countdown-timer

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuejs-countdown-timer

Vue 2 countdown and timer component

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Vue-countdown-timer Component

Build Status Github starts License Npm downloads

一 Vue 2 countdown and timer component

📙中文文档

Installation

npm i vuejs-countdown-timer -S

Usage

Support

Supported PackageVersion
Vue2.5+

Install component

Javascript

// global register
import VueCountdownTimer from 'vuejs-countdown-timer'
Vue.use(VueCountdownTimer)

// defalut install
Vue.use(VuePhotoswipe)

// or for a single instance
import VueCountdownTimer from 'vuejs-countdown-timer'

components: {
    VueCountdownTimer
},
methods: {
  countDownS_cb: function (x) {
    console.log(x)
  },
  countDownE_cb: function (x) {
    console.log(x)
  }
}

Vue template

<vue-countdown-timer
  @start_callback="startCallBack('event started')"
  @end_callback="endCallBack('event ended')"
  :current-time="1481450106"
  :start-time="1481450110"
  :end-time="1481450115"
  :tip-text="'Until start'"
  :tip-text-end="'Until end'"
  :end-text="'Event ended'"
  :day-txt="'days'"
  :hour-txt="'hours'"
  :minutes-txt="'minutes'"
  :seconds-txt="'seconds'">
</vue-countdown-timer>

Props

current-time

  • type: Number
  • required : false
  • default: new Date().getTime()

start-time

  • type: Number
  • required : true

end-time

  • type: Number
  • required : true

tip-text

  • type: String
  • required : false
  • default : '距离开始'

tip-text-end

  • type: String
  • required : false
  • default : '距离结束'

end-text

  • type: String
  • required : false
  • default : '已结束'

day-txt

  • type: String
  • required : false
  • default : ':'

hour-txt

  • type: String
  • required : false
  • default : ':'

seconds-txt

  • type: String
  • required : false
  • default : ':'

seconds-fixed

  • type: String
  • required : false
  • default : ':'

Events

start_callback - Event started callback

  • type: Function
  • required : false

end_callback - Event ended callback

  • type: Function
  • required : false

Liscense

MIT License

Copyright (c) 2018 TriDiamond

Keywords

FAQs

Package last updated on 31 Aug 2018

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