schedule-vue
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Schedule-Vue

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

Readme

Keywords

none

Package Sidebar

Install

npm i schedule-vue

Weekly Downloads

1

Version

1.0.4

License

none

Unpacked Size

24 kB

Total Files

14

Last publish

Collaborators

  • baoguoqiang