element [Bug Report] el-date-picker values shown in the popper are different from the input box when set the default v-model value

eit6fx6z  于 6个月前  发布在  其他
关注(0)|答案(2)|浏览(60)

Element UI version

2.13.1

OS/Browsers version

windos10 / chrome 80.0.3987.132 safari/537.36

Vue version

2.6.11

https://codepen.io/eeeeeemiya/pen/JjYWYpR

Steps to reproduce

点击第一个有默认值的date-picker, 会发现弹出的下拉框中没有显示默认值;

点击popper中的任意选项开后就会默认值显示出来了

What is Expected?

在下拉框出现后,可以正常显示默认值

What is actually happening?

在下拉框出现后,不会显示默认值,需要关闭后重新打开或点击选项后才会出现默认值

xzlaal3s

xzlaal3s1#

Translation of this issue:

Element UI version

2.13.1

OS/Browsers version

windos10 / chrome 80.0.3987.132 safari/537.36

Vue version

2.6.11

https://codepen.io/eeeeeemiya/pen/JjYWYpR

Steps to reproduce

Click the first date picker with a default value, and you will find that the default value is not displayed in the pop-up drop-down box;

Click any option in Popper and the default value will be displayed

What is Expected?

After the drop-down box appears, the default value can be displayed normally

What is actually happening?

After the drop-down box appears, the default value will not be displayed. You need to turn it off and turn it back on or click the option before the default value appears

0vvn1miw

0vvn1miw2#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题