ElemeFE / ElemeFE/element

[Feature Request] el-date-picker type=date切换月份或年时,异步获取数据列表,然后突出高亮。

Open
#22,513 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Existing Component

### Component Name
el-date-picker

### Description
el-date-picker type=date组件,在切换月份或年时,异步获取数据列表,然后突出高亮。
之前是通过computed:{picker_options(){return{cellClassName:date=>{return 'active'}}}}来绑定选中高亮样式。
现在需要切换年或月时候,获取当前时间段列表数据list=[{date:'2021/01/01'}],然后cellClassName再循环判断如果当前时间在list中有值就return classname.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.