<Dropdown transfer="true" @on-click="dropdownAction($event, params.row)">
<a href="javascript:void(0)">
...
</a>
<Dropdown-menu slot="list">
<Dropdown-item name="item1">
item1
</Dropdown-item>
<Dropdown-item name="item2">
item2
</Dropdown-item>
</Dropdown-menu>
</Dropdown>
dropdownAction: function (name, row) {
if (name === 'item1') {
console.log(111)
} else if (name === 'item2') {
console.log(111)
}
},
标签:console,name,Dropdown,事例,item1,item2,111,iview
From: https://www.cnblogs.com/hasome/p/17792669.html