1.0.4 • Published 2 years ago

schedule-vue v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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[]
}

Preview

npm.io

npm.io

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago