mfw-vue-comps

0.0.9 • Public • Published

mfw-vue-comps

a set of components for vue projects.

Setup Components

# install dependencies
npm i mfw-vue-comps --save

Using CDLabel

CDLabel component have two properties you need to provide: time and format. Time means how many seconds for countdown. Format is a string you want to transform the countdown in to.

<template>
  <div class="page">
    <CDLabel :time="10" :format="'<span>{d}</span> <span>{h}</span>:<span>{m}</span>:<span>{s}</span>'" @over="onCDOver"></CDLabel>
  </div>
</template>

<script>
import CDLabel from 'mfw-vue-comps'
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  components: {CDLabel},
  methods: {
      onCDOver () {
          alert('over')
      }
  }
}
</script>

Readme

Keywords

none

Package Sidebar

Install

npm i mfw-vue-comps

Weekly Downloads

15

Version

0.0.9

License

MIT

Unpacked Size

485 kB

Total Files

21

Last publish

Collaborators

  • jerrymy.zhang