Skip to content

基于Vue3 Typescript的时间表拖拽选择组件,例如广告投放时间排期选择等。

Notifications You must be signed in to change notification settings

kinggq/vue-schedule

Repository files navigation

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

About

基于Vue3 Typescript的时间表拖拽选择组件,例如广告投放时间排期选择等。

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published