import { BBatchButton } from '@bdp/ui-vue'; Vue.use(BBatchButton);
<template> <BBatchButton :menuList="menuList" @clickMenu="clickMenu"/> </template> <script> export default { data() { return { menuList: [ { value:'del', label:'批量删除', disabled:false, }, { value:'stop', label:'批量停止', disabled:true, }, ] } }, methods: { clickMenu (item, key, keyPath) { console.log(item, key, keyPath) }, } } </script>
差异
← BIconButton BPagination →