1.0.4 • Published 9 months ago

schedule-vue v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
9 months 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

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago