schedule-vue
v1.0.4
Published
<h1>Schedule-Vue</h1>
Downloads
1
Readme
Install
npm i schedule-vue@latest
Usage
import VueSchedule from 'schedule-vue'
import 'schedule-vue/dist/style.css'
const value = ref('')
<VueSchedule v-model:value="value" @format-time="times => time = times" />
interface Props {
value: string
selectedText?: string
unselectedText?: string
morningText?: string
afternoonText?: string
weeksText?: string[]
placeholder?: string
}
interface Emits {
(e: 'update:value', value: string): void
(e: 'formatTime', list: FormatTime): void
}
interface FormatTime {
[key: string]: string[]
}