1.0.5 • Published 5 years ago

vill-directive v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vill-message

a vue plugins about time directive

Build Setup

install the plugin on bash and the sass module support

npm install vill-directive --save-dev

register the plugins on global file (main.js)

import time from 'vill-directive'
Vue.use(time);

on the vue template file ,you can use it by

<template>
  <div class="demo">
    <h4>v-time 指令</h4>
    <span v-time="now"></span>
    <h4>v-clock 指令</h4>
    <span v-clock></span>
    <h4>v-down 指令</h4>
    <span v-down="time"></span>
  </div>
</template>
<script>
export default {
  name: "Demo",
  data() {
    return {
      time: "2019-03-20 13:16:00"
    };
  },
  computed: {
    now() {
      return Date.now();
    }
  }
};
</script>
<style scoped></style>
指令选项说明类型默认值
v-clock显示时间钟表--
v-time显示当前时间String-
v-down显示输入的时间和当前时间倒计时String-

demos

demo

License

MIT

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago