| ¶Ô±ÈÐÂÎļþ |
| | |
| | | export default { |
| | | props: { |
| | | // æ¥å顶鍿 é¢ |
| | | title: { |
| | | type: String, |
| | | default: uni.$u.props.calendar.title |
| | | }, |
| | | // æ¯å¦æ¾ç¤ºæ é¢ |
| | | showTitle: { |
| | | type: Boolean, |
| | | default: uni.$u.props.calendar.showTitle |
| | | }, |
| | | // æ¯å¦æ¾ç¤ºå¯æ é¢ |
| | | showSubtitle: { |
| | | type: Boolean, |
| | | default: uni.$u.props.calendar.showSubtitle |
| | | }, |
| | | // æ¥æç±»åéæ©ï¼single-éæ©åä¸ªæ¥æï¼multiple-å¯ä»¥éæ©å¤ä¸ªæ¥æï¼range-éæ©æ¥æèå´ |
| | | mode: { |
| | | type: String, |
| | | default: uni.$u.props.calendar.mode |
| | | }, |
| | | // mode=rangeæ¶ï¼ç¬¬ä¸ä¸ªæ¥æåºé¨çæç¤ºæå |
| | | startText: { |
| | | type: String, |
| | | default: uni.$u.props.calendar.startText |
| | | }, |
| | | // mode=rangeæ¶ï¼æåä¸ä¸ªæ¥æåºé¨çæç¤ºæå |
| | | endText: { |
| | | type: String, |
| | | default: uni.$u.props.calendar.endText |
| | | }, |
| | | // èªå®ä¹å表 |
| | | customList: { |
| | | type: Array, |
| | | default: uni.$u.props.calendar.customList |
| | | }, |
| | | // 主é¢è²ï¼å¯¹åºé¨æé®åé䏿¥æææ |
| | | color: { |
| | | type: String, |
| | | default: uni.$u.props.calendar.color |
| | | }, |
| | | // æå°çå¯éæ¥æ |
| | | minDate: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.calendar.minDate |
| | | }, |
| | | // æå¤§å¯éæ¥æ |
| | | maxDate: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.calendar.maxDate |
| | | }, |
| | | // é»è®¤éä¸çæ¥æï¼mode为multipleærangeæ¯å¿
须为æ°ç»æ ¼å¼ |
| | | defaultDate: { |
| | | type: [Array, String, Date, null], |
| | | default: uni.$u.props.calendar.defaultDate |
| | | }, |
| | | // mode=multipleæ¶ï¼æå¤å¯éå¤å°ä¸ªæ¥æ |
| | | maxCount: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.calendar.maxCount |
| | | }, |
| | | // æ¥æè¡é« |
| | | rowHeight: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.calendar.rowHeight |
| | | }, |
| | | // æ¥ææ ¼å¼å彿° |
| | | formatter: { |
| | | type: [Function, null], |
| | | default: uni.$u.props.calendar.formatter |
| | | }, |
| | | // æ¯å¦æ¾ç¤ºåå |
| | | showLunar: { |
| | | type: Boolean, |
| | | default: uni.$u.props.calendar.showLunar |
| | | }, |
| | | // æ¯å¦æ¾ç¤ºæä»½èæ¯è² |
| | | showMark: { |
| | | type: Boolean, |
| | | default: uni.$u.props.calendar.showMark |
| | | }, |
| | | // ç¡®å®æé®çæå |
| | | confirmText: { |
| | | type: String, |
| | | default: uni.$u.props.calendar.confirmText |
| | | }, |
| | | // 确认æé®å¤äºç¦ç¨ç¶ææ¶çæå |
| | | confirmDisabledText: { |
| | | type: String, |
| | | default: uni.$u.props.calendar.confirmDisabledText |
| | | }, |
| | | // æ¯å¦æ¾ç¤ºæ¥åå¼¹çª |
| | | show: { |
| | | type: Boolean, |
| | | default: uni.$u.props.calendar.show |
| | | }, |
| | | // æ¯å¦å
许ç¹å»é®ç½©å
³éæ¥å |
| | | closeOnClickOverlay: { |
| | | type: Boolean, |
| | | default: uni.$u.props.calendar.closeOnClickOverlay |
| | | }, |
| | | // æ¯å¦ä¸ºåªè¯»ç¶æï¼åªè¯»ç¶æä¸ç¦æ¢éæ©æ¥æ |
| | | readonly: { |
| | | type: Boolean, |
| | | default: uni.$u.props.calendar.readonly |
| | | }, |
| | | // æ¯å¦å±ç¤ºç¡®è®¤æé® |
| | | showConfirm: { |
| | | type: Boolean, |
| | | default: uni.$u.props.calendar.showConfirm |
| | | }, |
| | | // æ¥æåºé´æå¤å¯é天æ°ï¼é»è®¤æ éå¶ï¼mode = rangeæ¶ææ |
| | | maxRange: { |
| | | type: [Number, String], |
| | | default: uni.$u.props.calendar.maxRange |
| | | }, |
| | | // èå´éæ©è¶
è¿æå¤å¯éå¤©æ°æ¶çæç¤ºææ¡ï¼mode = rangeæ¶ææ |
| | | rangePrompt: { |
| | | type: String, |
| | | default: uni.$u.props.calendar.rangePrompt |
| | | }, |
| | | // èå´éæ©è¶
è¿æå¤å¯éå¤©æ°æ¶ï¼æ¯å¦å±ç¤ºæç¤ºææ¡ï¼mode = rangeæ¶ææ |
| | | showRangePrompt: { |
| | | type: Boolean, |
| | | default: uni.$u.props.calendar.showRangePrompt |
| | | }, |
| | | // æ¯å¦å
è®¸æ¥æèå´çèµ·æ¢æ¶é´ä¸ºåä¸å¤©ï¼mode = rangeæ¶ææ |
| | | allowSameDay: { |
| | | type: Boolean, |
| | | default: uni.$u.props.calendar.allowSameDay |
| | | }, |
| | | // åè§å¼ |
| | | round: { |
| | | type: [Boolean, String, Number], |
| | | default: uni.$u.props.calendar.round |
| | | }, |
| | | // æå¤å±ç¤ºæä»½æ°é |
| | | monthNum: { |
| | | type: [Number, String], |
| | | default: 3 |
| | | } |
| | | } |
| | | } |