-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[comp:date-picker] 日期选择器 #541
Labels
Comments
Translation of this issue:[Comp: Date-Picker] Date Selector
What proBLEES THIS Feature SOLVE?What does the proposed API LOOK LIKE?APIdatepickercommonpropsThe following
datepickercommonslotsThe following
datepickercommonMethodsThe following
ixdatepickerDatePickerProps
ixdateralgengepickerDateRangePickerProps
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
What does the proposed API look like?
API
DatePickerCommonProps
以下
Props
为IxDatePicker
、IxDateRangePicker
共享的属性。control
string | number | AbstractControl
@idux/cdk/forms
使用, 参考 Formv-model:open
boolean
autofocus
boolean
false
borderless
boolean
false
clearable
boolean
false
clearIcon
string
'close-circle'
disabled
boolean
false
disabledDate
(date: any) => boolean
date
的类型为outputFormat
的返回值类型format
string
HH:mm:ss
outputFormat
(date: Dayjs) => number | string | Date | Dayjs
(date: Dayjs) => number
overlayClassName
class
string
overlayRender
(children:VNode[]) => VNodeTypes
readonly
boolean
size
'sm' | 'md' | 'lg'
md
suffix
string | #suffix
'calendar'
type
'date' | 'week' | 'month' | 'quarter' | 'year'
'date'
onClear
(evt: MouseEvent) => void
onFocus
(evt: FocusEvent) => void
onBlur
(evt: FocusEvent) => void
DatePickerCommonSlots
以下
Slots
为IxDatePicker
、IxDateRangePicker
共享的插槽。footer
option
{date: any}
date
的类型为outputFormat
的返回值类型DatePickerCommonMethods
以下
Methods
为IxDatePicker
、IxDateRangePicker
共享的方法。blur
(options?: FocusOptions) => void
focus
() => void
IxDatePicker
DatePickerProps
v-model:value
number | string | Date | Dayjs
string
类型时,请指定时区信息defaultOpenValue
number | string | Date | Dayjs
value
为空时,高亮的值placeholder
string | #placeholder
i18n
配置timePicker
boolean | TimePickerProps
false
type='date'
时生效IxDateRangePicker
DateRangePickerProps
v-model:value
Array<number | string | Date | Dayjs>
string
类型时,请指定时区信息defaultOpenValue
Array<number | string | Date | Dayjs>
value
为空时,高亮的值placeholder
string[] | #placeholder=placement:'start'|'end'
i18n
配置separator
string | VNode | #separator
'swap-right'
timePicker
boolean | TimePickerProps | TimePickerProps[]
false
The text was updated successfully, but these errors were encountered: