ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.13k stars 14.64k forks source link

The format attribute of El time picker is missing in the official document of [bug report] #21022

Open ygwStudy opened 3 years ago

ygwStudy commented 3 years ago

Element UI version

2.15.1

OS/Browsers version

Windows7 / Cheome 90

Vue version

2.6.12

Reproduction Link

https://codepen.io/ygw/pen/abJWdMO

Steps to reproduce

官方文档中el-time-picker组件并没有说明存在format属性用来格式化输入框中显示的时间格式,只显示了在Time Picker Options这个属性中存在format,但是实际使用中发现存在单独的format属性可以格式化时间的显示格式,比如不显示秒。也就是说文档中缺失format属性的说明

What is Expected?

在文档中的Attributes那一栏中增加format属性

What is actually happening?

文档中的Attributes栏不存在format却可以使用这一属性

element-bot commented 3 years ago

Translation of this issue:

Element UI version

2.15.1

OS/Browsers version

Windows7 / Cheome 90

Vue version

2.6.12

Reproduction Link

https://codepen.io/ygw/pen/abJWdMO

Steps to reproduce

The El time picker component in the official document does not specify the existence of the format attribute to format the time format displayed in the input box. It only shows the existence of format in the time picker options attribute. However, in actual use, it is found that there is a separate format attribute that can format the time format, such as not displaying seconds. That is to say, the description of the format attribute is missing in the document

What is Expected?

Add the format attribute in the attributes column of the document

What is actually happening?

Format does not exist in the attributes column of the document, but it can be used