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
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm run build# build for production and view the bundle analyzer reportnpm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.