0.0.2 • Published 6 years ago

vue-component-count-down v0.0.2

Weekly downloads
9
License
-
Repository
-
Last release
6 years ago

vue-component-popup

弹层组件

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

功能介绍

该组件是一个倒计时组件: 1. countDownMilliSeconds: 倒计的的毫秒数 2. autoStart:是否开启倒计时 3. interval: 间隔多少更新倒计时 4. isEmit:是否发送相关的事件

示例

<template>
  <div id="app">
    <img src="./assets/logo.png" />
    <CountDown :countDownMilliSeconds="12312312312">
      <template slot-scope="props">
        <p>总共还有:{{props.days}} 天 {{props.hours}} 小时 {{props.minutes}} 分 {{props.seconds}} 秒 {{props.milliseconds}} 毫秒</p>
        <p>总共还剩:{{props.totalDays}} 天 </p>
        <p>总共还剩:{{props.totalHours}}小时</p>
        <p>总共还剩:{{props.totalMinutes}}分</p>
        <p>总共还剩:{{props.totalSeconds}}秒</p>
        <p>总共还剩:{{props.totalMilliseconds}}毫秒</p>
      </template>
    </CountDown>
  </div>
</template>

<script>
import CountDown from './components/CountDown'

export default {
  name: 'App',
  components: {
    CountDown
  }
}
</script>

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

0.0.2

6 years ago

0.0.1

6 years ago

1.0.0

6 years ago