Skip to content

日期选择器(DatePicker)

组件标识

component: 'DatePicker'

componentProps

参数名类型说明
type'date' | 'datetime' | 'year' | 'month' | 'week' | 'daterange' | 'monthrange' | 'datetimerange'日期类型
placeholderstring占位符(单值)
startPlaceholderstring开始占位符(范围)
endPlaceholderstring结束占位符(范围)
disabledDate(date: Date) => boolean禁用日期函数
disabledboolean禁用
clearableboolean可清空
formatstring展示格式
valueFormatstring值格式
value-formatstring值格式(Schema 常用写法)
onChange(value: string | Date | [string, string] | [Date, Date]) => void值变化
styleRecord<string, any>自定义样式