Open zcj-cool opened 4 years ago
Translation of this issue:
yes
El-dropdown
Suggestions on El dropdown: it is recommended to add V-model binding for El dropdown, and then V-model can know the value of the menu selected by the user and can transfer the value through @ command = "handlecommand (data)" to do the corresponding operation. The defect now is that only the value selected by the user can be transferred through @ command = "handlecommand" but not the value outside!
我也有同样的问题,我在一个列表的 左边 增加了一个 dropdown, 然后不知道,这是哪一行的。
@runner-mei 是我错了, command 可以是一个对象。
文档中可以写清楚一点 增加一个例子
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.
Existing Component
是
Component Name
el-dropdown
Description
关于el-dropdown的建议:建议为el-dropdown添加v-model的绑定 然后就可以v-model知道用户选择菜单的值 并且可以通过@command="handleCommand(data)"的方式传值做相应的操作,现在的缺陷就是只能通过@command="handleCommand"才只用用户选择的值 却不能额外传值!