# Calendar-plus 日历 V2.2.16

# 代码演示

# API

# Attributes

参数 说明 类型 可选值 默认值 Version
value / v-model 绑定值 Date | String | Number
first-day-of-week 周起始日 Number 1 - 7 1
is-gregorian-festival 是否显示公历节日(当 fullscreenfalse 时,不展示节日信息) Boolean true
mode 视图 String month / week / day month
data 排班数据 Object - -
time-picker-options 时间段值 Object {}

# dateCell scoped slot 参数

参数 说明 类型 可选值 默认值 Version
date 单元格代表的日期 Date
data { type, isSelected, day, isGregorian, lunar },type 表示该日期的所属月份,可选值有 prev-month,current-month,next-month;isSelected 标明该日期是否被选中;day 是格式化的日期,格式为 yyyy-MM-dd;isGregorian 表明公历节日;lunar 表示节日的名称 Object

# Events

事件名称 说明 回调参数 Version
mode-change 当模式发生变化时触发
上次更新: 3/12/2025, 10:44:23 AM