Blame view

uni_modules/uview-plus/components/u-cascader/calendar.js 1.82 KB
9441e28e   刘淇   考勤打卡
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
  /*
   * @Author       : LQ
   * @Description  :
   * @version      : 3.0
   * @Date         : 2021-08-20 16:44:21
   * @LastAuthor   : jry
   * @lastTime     : 2025-12-19 08:55:21
   * @FilePath     : /uview-plus/libs/config/props/calendar.js
   */
  import { t } from '../../libs/i18n'
  export default {
      // calendar 组件
      calendar: {
          title: t("up.calendar.chooseDates"),
          showTitle: true,
          showSubtitle: true,
          mode: 'single',
          startText: t("up.common.start"),
          endText: t("up.common.end"),
          customList: [],
          color: '#3c9cff',
          minDate: 0,
          maxDate: 0,
          defaultDate: null,
          maxCount: Number.MAX_SAFE_INTEGER, // Infinity
          rowHeight: 56,
          formatter: null,
          showLunar: false,
          showMark: true,
          confirmText: t("up.common.confirm"),
          confirmDisabledText: t("up.common.confirm"),
          show: false,
          closeOnClickOverlay: false,
          readonly: false,
          showConfirm: true,
          maxRange: Number.MAX_SAFE_INTEGER, // Infinity
          rangePrompt: '',
          showRangePrompt: true,
          allowSameDay: false,
          rangeResultMode: 'all',
          enableTime: false,
          timePrecision: 'minute',
          defaultTime: '',
  		round: 0,
          overlay: true,
          duration: 300,
          overlayStyle: {},
          overlayOpacity: 0.5,
          zIndex: 10075,
          safeAreaInsetBottom: true,
          safeAreaInsetTop: false,
          bgColor: '',
  		monthNum: 3,
          monthSwitch: false,
          showToday: true,
          todayColor: '',
          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")],
          forbidDays: [],
          forbidDaysToast: t("up.calendar.disabled"),
          monthFormat: '',
          pageInline: false
      }
  }