UNPKG

vue-widget-date

Version:

基于vue仿广点通时间选择程序

38 lines (28 loc) 927 B
# vue-widget-date > 一个Vue 仿广点通时间选择组件 ## 使用方法 ###安装 npm i vue-widget-date yarn add vue-widget-date ###引入 import { TimeTable } from 'vue-widget-date' ###组件使用 props: defaultBinaryTime (optional): 336个[0|1] methods:[子组件向父组件传值] selectedBinaryTime:return'0|1';[0|1] selectedTimeStr:return'01:00-08:30,14:00-16:30;01:00-08:30' 时间段用','分割 周几用";"分割 ### 演示 vue-widget-date/example/index.html ## Build Setup ``` bash # 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 ``` For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).