https://github.com/harhao/vill-directive
https://github.com/harhao/vill-directive
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/harhao/vill-directive
- Owner: Harhao
- License: mit
- Created: 2019-03-19T02:33:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T16:18:23.000Z (over 2 years ago)
- Last Synced: 2023-08-24T07:49:02.887Z (over 1 year ago)
- Language: JavaScript
- Size: 1.39 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```
v-time 指令
v-clock 指令
v-down 指令
export default {
name: "Demo",
data() {
return {
time: "2019-03-20 13:16:00"
};
},
computed: {
now() {
return Date.now();
}
}
};```
| 指令选项 | 说明 | 类型 | 默认值
|----- | ----- | ----- | -----
| v-clock | 显示时间钟表| - | -
| v-time | 显示当前时间 | String | -
| v-down | 显示输入的时间和当前时间倒计时 | String | -
### demos

## License
[MIT](http://opensource.org/licenses/MIT)