-
Notifications
You must be signed in to change notification settings - Fork 1
Home
William edited this page Nov 7, 2018
·
1 revision
Mrc-calendar 日历支# 持阳历和农历展示,支持设置标签,支持单选多选,左右滑动切换上下月,使用方便,简洁。
地址: git地址
使用简介:
<MonthList style = {{marginHorizontal:25,marginTop:64}}
width = {maxWidth - 50}
height = {270}
isSelectMore = {false} //是否允许多选
isShowNotCurrentMonth = {true} //是否展示当月天
isSelectGray = {false} //是否可以点击非当月天
horizontal = {true} //暂时只能横向滑动
getShowTime = {(year,month) =>{//返回当前年月}}
getMarks={(month) =>{//每次加载新界面,获取对应标签,数组中传几号
return [3,6,9];
}}
getSelectDays={(month) =>{//每次加载新界面(重复加载<加载第二次>不获取),获取对应选择天,数组中传几号
return [13,16,19];
}}
selectDaysBack={(days) =>{//返回用户当前选择天}}/>
更多参数见git
效果图:
![效果图1](https://raw.githubusercontent.com/jiajun1203/calendar/master/assets/image/month.jpg)
![效果图2](https://raw.githubusercontent.com/jiajun1203/calendar/master/assets/image/monthSelect.jpg)