UNPKG

npm-cts-ui

Version:

UI KIT for Taro

26 lines (22 loc) 668 B
import { ComponentClass } from 'react' import { CommonEventFunction } from '@tarojs/components/types/common' import CtsComponent from './base' export interface CtsDateSelectorProps extends CtsComponent { /** * 时间模式,month:月份,date:日期 * @description 可选择的值 'month', 'date' * @type {('month','date')} * @default 'date' */ mode: 'date' | 'month' /** * 当前月份(2019-07)或日期(2019-07-10) */ data: string /** * 选中事件 */ onChange: CommonEventFunction } declare const CtsDateSelector: ComponentClass<CtsDateSelectorProps> export default CtsDateSelector