calendar.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * @Author : LQ
  3. * @Description :
  4. * @version : 1.0
  5. * @Date : 2021-08-20 16:44:21
  6. * @LastAuthor : LQ
  7. * @lastTime : 2021-08-20 16:52:43
  8. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  9. */
  10. import { t } from '../../libs/i18n'
  11. export default {
  12. // calendar 组件
  13. calendar: {
  14. title: t("up.calendar.chooseDates"),
  15. showTitle: true,
  16. showSubtitle: true,
  17. mode: 'single',
  18. startText: t("up.common.start"),
  19. endText: t("up.common.end"),
  20. customList: [],
  21. color: '#3c9cff',
  22. minDate: 0,
  23. maxDate: 0,
  24. defaultDate: null,
  25. maxCount: Number.MAX_SAFE_INTEGER, // Infinity
  26. rowHeight: 56,
  27. formatter: null,
  28. showLunar: false,
  29. showMark: true,
  30. confirmText: t("up.common.confirm"),
  31. confirmDisabledText: t("up.common.confirm"),
  32. show: false,
  33. closeOnClickOverlay: false,
  34. readonly: false,
  35. showConfirm: true,
  36. maxRange: Number.MAX_SAFE_INTEGER, // Infinity
  37. rangePrompt: '',
  38. showRangePrompt: true,
  39. allowSameDay: false,
  40. round: 0,
  41. monthNum: 3,
  42. weekText: [t("up.week.one"), t("up.week.two"), t("up.week.three"), t("up.week.four"), t("up.week.five"), t("up.week.six"), t("up.week.seven")],
  43. forbidDays: [],
  44. forbidDaysToast: t("up.calendar.disabled"),
  45. monthFormat: '',
  46. pageInline: false
  47. }
  48. }