<el-calendar v-model="item.value">
css代码:
<style lang="scss" scoped>
::v-deep .el-calendar {
/* 隐藏默认的快捷按钮样式 */
.el-calendar__header {
justify-content: center;
}
.el-calendar__header .el-calendar__button-group {
display: none;
}
/* 非当前月不可点击 */
.el-calendar-table {
&:not(.is-range) {
td.next {
pointer-events: none;
}
td.prev {
pointer-events: none;
}
}
}
}
</style>