Skip to content
On this page

Date Picker 日期选择器

选取你想要的时间

DANGER

组件仍在测试阶段,高频更新中,部分参数暂不稳定!

基本使用

使用 v-model:date 绑定一个值

开启

Attributes

参数说明类型可选值默认值
v-model:date绑定值string————
disabled是否禁用boolean——false
clear是否可清空boolean——false
format时间格式string——YYYY/MM/DD
placeholder占位符string————
size尺寸FightingSizelarge middle small minimiddle
add-zero不满 10 的是否前面加 0boolean——false

Interface

组件导出以下类型定义:

ts
import type { DatePickerInstance, DatePickerProps } from 'fighting-design'

Contributors