UNPKG

@tarojsx/ui

Version:

We reinvents the UI for Taro3+

55 lines (34 loc) 1.22 kB
--- id: "_calendar_common_helper_" title: "Calendar/common/helper" sidebar_label: "Calendar/common/helper" --- ## Index ### Functions * [generateCalendarGroup](_calendar_common_helper_.md#generatecalendargroup) * [getGenerateDate](_calendar_common_helper_.md#getgeneratedate) ## Functions ### generateCalendarGroup **generateCalendarGroup**(`options`: GroupOptions): *function* *Defined in [src/Calendar/common/helper.ts:27](https://github.com/tarojsx/ui/blob/v0.11.0/src/Calendar/common/helper.ts#L27)* **Parameters:** Name | Type | ------ | ------ | `options` | GroupOptions | **Returns:** *function* (`generateDate`: number, `selectedDate`: SelectedDate, `isShowStatus?`: boolean): *Calendar.ListInfo‹Item›* **Parameters:** Name | Type | ------ | ------ | `generateDate` | number | `selectedDate` | SelectedDate | `isShowStatus?` | boolean | ___ ### getGenerateDate **getGenerateDate**(`date`: Calendar.DateArg | undefined): *Dayjs* *Defined in [src/Calendar/common/helper.ts:112](https://github.com/tarojsx/ui/blob/v0.11.0/src/Calendar/common/helper.ts#L112)* **Parameters:** Name | Type | ------ | ------ | `date` | Calendar.DateArg | undefined | **Returns:** *Dayjs*