怎样在iview的Table表格中添加下拉菜单?我怎么在table表格里面添加下拉菜单
2 回答

桃花长相依
TA贡献1860条经验 获得超8个赞
h('Dropdown', { style: { marginLeft: '5px' }, on: { 'on-click': (value) => { console.log(value) } } }, [ h('div', { class: { member_operate_div: true } }, [ h('Button', { props: { type: 'primary', size: 'small' } }, [ h('span', '更多'), h('Icon', { props: { type: 'arrow-down-b' }, style: { marginLeft: '5px' } }) ]) ]), h('DropdownMenu', { slot: 'list' }, [ h('DropdownItem', { props: { name: 'edit' } }, [ h('Button', { props: { type: 'primary', size: 'small' }, style: { display: 'inline-block', width: '76px' }, on: { click: () => { this.openEditUserDialog(params.row, params.index) } } }, '编辑') ]) ]) ])
- 2 回答
- 0 关注
- 2524 浏览
添加回答
举报
0/150
提交
取消