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 | -- |