1.0.1 • Published 7 years ago

vue-pomodoro v1.0.1

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

vue-pomodoro

A pomodoro clock component with Vue.js

Based on the component of vue-radial-progress

Demo

http://xiongzixiao.com/vue-pomodoro/

Requirements

Vue.js (^2.0)

Install

npm install xxx

Usage

<template>
  <Pomodoro :total-pomodoro = "totalPomodoro"
            :work-duration = "25"
            :diameter = "diameter">
  </Pomodoro>
</template>

<script>
import Pomodoro from 'vue-pomodoro'

export default {
  data () {
    return {
      diameter: 300
      totalPomodoro: 4
    }
  },

  components: {
    Pomodoro
  }
}
</script>

Props

NameDefault valueDescription
totalPomodoro4The pomodoro clock required to complete the task.
workDuration25A Pomodoro clock working time(minutes).
restDuration5A Pomodoro clock rest time(minutes).
startColor#CCFFFFThe color of the leading edge of the pomodoro clock gradient.
stopColor#99CCCCThe secondary color of the pomodoro clock gradient.
innerStrokeColor#0099CCBackground color of the pomodoro clock.
strokeWidth10The width of the pomodoro clock.
innerTextColor#FF6666Text color of the inner text.
diameter300Diameter of the pomodoro clock in pixels.

License

The MIT License