SwitchWeekDay

SwitchWeekDay 周天选择器

代码示例

import { BfSwitchWeekDay } from '@bud-fe/react-taro-ui';
import { View } from '@tarojs/components';
import React from 'react';
export default () => {
return (
<>
<View className="group-title">基础用法</View>
<BfSwitchWeekDay />
</>
);
};

API

属性名描述类型默认值
curWeek当前周number--
curDay当前天number--
firstDayStandard第一天标准,默认为东方标准,第一天为周一.TDAY_STANDARD--
onWeekSelected周选择回调(week: IWeekDayItem) => void--
onDaySelected天选择回调(day: IWeekDayItem) => void--
onWeekDaySelected周天选择回调(week: IWeekDayItem, day: IWeekDayItem) => void--
dumi10:24