element [bug report] the emitpath property of El cascade is set to false, and the value obtained is not the value of the last node

oyxsuwqo  于 3个月前  发布在  其他
关注(0)|答案(2)|浏览(96)

Element UI version

2.14.1

OS/Browsers version

win10

Vue version

2.6.10

https://codepen.io/eleven-wang/pen/LYRjyrp

Steps to reproduce

将emit-path设置为"false",change方法触发的时候打印出value的值

What is Expected?

返回应该是该节点的值

What is actually happening?

实际返回由该节点所在的各级菜单的值所组成的数组

monwx1rj

monwx1rj1#

Translation of this issue:

Element UI version

2.14.1

OS/Browsers version

win10

Vue version

2.6.10

https://codepen.io/eleven-wang/pen/LYRjyrp

Steps to reproduce

Set emit path to "false" and print the value when the change method is triggered

What is Expected?

Returns the value that should be the node

What is actually happening?

The actual return is an array composed of the values of all levels of the menu where the node is located

dz6r00yl

dz6r00yl2#

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.

相关问题