/* eslint-disable no-console,func-names,react/no-multi-comp */ import Table from '../index'; import '../assets/index.less'; import Menu from '../../menu'; const Item = Menu.Item; const Divider = Menu.Divider; import DropDown from '../../dropdown'; const data = []; for (let i = 0; i < 10; i++) { data.push({ key: i, a: `a${i}`, b: `b${i}`, c: `c${i}`, }); } export default { data() { this.filters = []; return { visible: false, }; }, methods: { handleVisibleChange(visible) { this.visible = visible; }, handleSelect(selected) { this.filters.push(selected); }, handleDeselect(key) { const index = this.filters.indexOf(key); if (index !== -1) { this.filters.splice(index, 1); } }, confirmFilter() { console.log(this.filters.join(',')); this.visible = false; }, }, render() { const menu = (
); const columns = [ { title: (