@wuxueqin111/schedule-vue-3
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • 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" @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 @wuxueqin111/schedule-vue-3

Weekly Downloads

0

Version

1.0.7

License

none

Unpacked Size

85.5 kB

Total Files

18

Last publish

Collaborators

  • wuxueqin111