Skip to main content

DateField Date Selection

When to use

  • Input or select specific time, when users need to input a date, they can click the standard input box and a date panel will pop up for selection.

Component Example

Component Properties

属性说明类型默认值
behavior

表单组件显示状态

Behavior

'NORMAL'

disabledDate

Custom restriction, takes effect when type property is custom

(current: number)=> boolean

-
end

Date end time, takes effect when type property is duration

number

-
format

Date format

'YYYY' | 'YYYY-MM' | 'YYYY-MM-DD'| 'YYYY-MM-DD HH:mm'| 'YYYY-MM-DD HH:mm:ss'

'YYYY-MM-DD'

hasClear

Whether there is a clear button

boolean

true

label

表单组件标题

string

-
labelAlign

表单组件标题的位置

'left' | 'top'

'top'

labelColOffset

设置标题的偏移位置,配置值为栅格值,1代表1/24

number

0

labelColSpan

设置标题的占位宽度,配置值为栅格值,1代表1/24

number

4

labelTextAlign

表单组件的标题对齐方式

'left' | 'right'

'right'

labelTipsIcon

表单组件标题提示信息入口图标,当labelTipsTypes取值为 textrender 时生效

string

-
labelTipsRender

表单组件标题提示信息自定义渲染方法,当labelTipsTypes取值为 render 时生效

(props: IComponentProps) => ReactNode

-
labelTipsText

表单组件标题提示文本信息,当labelTipsTypes取值为 text 时生效

string

-
labelTipsTypes

表单组件标题提示信息类型设置

LabelTipsTypes

'none'

onChange

Component value change event

({value: number})=> void

-
onOk

Event triggered when clicking OK

({value: number})=> void

-
onVisibleChange

Event triggered when panel shows or hides

(visible: boolean) => void

-
placeholder

Placeholder prompt

string

'Please select'

resetTime

Whether to reset time every time a date is selected

boolean

false

returnType

Date return type

'timestamp' | 'string' | 'moment'

'timestamp'

size

表单组件尺寸

Size

'medium'

start

Date start time, takes effect when type property is duration

number

-
tips

表单组件描述信息,展示在控件下方

string

-
type

Time limit range

'none' | 'beforeToday' | 'afterToday'| 'duration'| 'custom'

'none'

validation

表单组件校验设置,具体使用详见表单校验文档

Validation[]

[]

value

Date selection default value

number

-
wrapperColOffset

设置表单组件的偏移位置,设置值为栅格值,1代表1/24

number

0

wrapperColSpan

设置表单组件的占位宽度,设置值为栅格值,1代表1/24

number

0

This doc is generated using machine translation. Any discrepancies or differences created in the translation are not binding and have no legal effect for compliance or enforcement purposes.
Copyright © 2025钉钉(中国)信息技术有限公司和/或其关联公司浙ICP备18037475号-4