schedule-vue3
v1.1.5
Published
<h1>Schedule-Vue</h1>
Downloads
6
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" @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[]
}