Open ygwStudy opened 3 years ago
Translation of this issue:
2.15.1
Windows7 / Cheome 90
2.6.12
https://codepen.io/ygw/pen/abJWdMO
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
Add the format attribute in the attributes column of the document
Format does not exist in the attributes column of the document, but it can be used
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却可以使用这一属性