mobile-more
Version:
基于 antd-mobile v5 扩展移动端 UI 组件
25 lines (24 loc) • 662 B
TypeScript
import React from 'react';
import { TextFieldProps } from './TextField';
import { DateFieldType } from './utils';
import { DateValue } from '../../utils/dayjsUtil';
export interface DateFieldProps extends Omit<TextFieldProps, 'whitespaceLineBreak' | 'value'> {
/**
* 要显示的值。
*/
value?: DateValue | [DateValue, DateValue];
/**
* 日期类型。
*
* 如果在 `BizField` 中使用,请通过 `valueType` 设置。
*/
type: DateFieldType;
/**
* 自定义格式。
*
* 如 `YY`。
*/
format?: string;
}
declare const DateField: React.FC<DateFieldProps>;
export default DateField;