1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/open-hand-choerodon-ui

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
index.en-US.md 2.3 КБ
Копировать Редактировать Исходные данные Просмотреть построчно История
HughHzWu Отправлено 4 лет назад a1aeba5
category type cols title
Components
Data Display
1
Calendar

Container for displaying data in calendar form.

When To Use

When data is in the form of dates, such as schedules, timetables, prices calendar, lunar calendar. This component also supports Year/Month switch.

API

Note: Part of the Calendar's locale is read from value. So, please set the locale of moment correctly.

// The default locale is en-US, if you want to use other locale, just set locale in entry file globaly.
// import moment from 'moment';
// import 'moment/locale/zh-cn';
// moment.locale('zh-cn');

<Calendar
  dateCellRender={dateCellRender}
  monthCellRender={monthCellRender}

  onPanelChange={onPanelChange}

  onSelect={onSelect}
/>
Property Description Type Default
dateCellRender Customize the display of the date cell, the returned content will be appended to the cell function(date: moment): ReactNode -
dateFullCellRender Customize the display of the date cell, the returned content will override the cell function(date: moment): ReactNode -
defaultValue The date selected by default moment default date
disabledDate Function that specifies the dates that cannot be selected (currentDate: moment) => boolean -
fullscreen Whether to display in full-screen boolean true
locale The calendar's locale object default
mode The display mode of the calendar month | year month
monthCellRender Customize the display of the month cell, the returned content will be appended to the cell function(date: moment): ReactNode -
monthFullCellRender Customize the display of the month cell, the returned content will override the cell function(date: moment): ReactNode -
validRange to set valid range [moment, moment] -
value The current selected date moment current date
onPanelChange Callback for when panel changes function(date: moment, mode: string) -
onSelect Callback for when a date is selected function(date: moment) -

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://gitlife.ru/oschina-mirror/open-hand-choerodon-ui.git
git@gitlife.ru:oschina-mirror/open-hand-choerodon-ui.git
oschina-mirror
open-hand-choerodon-ui
open-hand-choerodon-ui
1.5.0-beta.0