/* 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 = ( one two three ); const columns = [ { title: (
title1 filter
), key: 'a', dataIndex: 'a', width: 100, }, { title: 'title2', key: 'b', dataIndex: 'b', width: 100 }, { title: 'title3', key: 'c', dataIndex: 'c', width: 200 }, ]; return (

use dropdown

record.key} /> ); }, };