antd-chinese-holiday
v1.0.7
Published
基于antd中的RangePicker的dateRender方法,实现中国节假日日历的功能
Downloads
4
Readme
基于antd中的RangePicker的dateRender方法,实现中国节假日日历的功能
安装
yarn add antd-chinese-holiday
使用
import {DatePicker} from 'antd';
const {RangePicker} = DatePicker;
import chineseHoliday from 'antd-chinese-holiday';
<RangePicker dateRender={(current)=>{
return (
<div className="antd-calendar-date" style={{position: 'relative'}}>
{chineseHoliday(current) || current.date()}
</div>
)
}} />