Skip to content

DatePicker 日期选择器 ​

选择单日或日期范围(YYYY-MM-DD)。

基础用法 ​

当前:未选择

范围选择 ​

DatePicker Props ​

属性说明类型默认值
modelValue / v-model单日 string,范围 [string, string]string | [string, string] | nullnull
typedate / daterangestring'date'
size尺寸'small' | 'default' | 'large'继承 ConfigProvider
disabled禁用booleanfalse
clearable可清空booleanfalse
placeholder单日占位string'选择日期'
startPlaceholder / endPlaceholder范围占位string—

DatePicker Events ​

事件说明参数
change值变化(value)
clear清空时—
visibleChange面板显隐(visible)
focus / blur聚焦 / 失焦(event)