ElemeFE / ElemeFE/element

[Feature Request] <el-date-picker>type="week"时,格式化不灵活

Open
#20,332 1 comment 0 reactions 0 assignees View on GitHub
stale
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="week"时,希望能把input中展示的值格式化为:2020年第41周(10月5号~10月10号)

目前提供的格式化方式不能优雅的实现

问题:format格式化

1)只能填入string类型的值,不能填入格式化方法

2)允许的日期格式,只有WW表示第几周,不能满足显示从多少号到多少号的需求

建议:提供属性传入格式化方法,或者,增强日期格式从而可以支持以上需求

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.