/** * * @title 复杂表格中行过滤 * @parent 列操作-过滤 Filter * @description 在过滤数据行的基础上增加列拖拽、动态菜单显示、下拉条件动态传入自定义等 * demo0702 */ import React, { Component } from 'react'; import {Icon,Checkbox,Dropdown,Menu} from "tinper-bee"; import Table from '../../src'; import multiSelect from '../../src/lib/multiSelect'; import sort from '../../src/lib/sort'; const { Item } = Menu; const data27 = [ { key: "1", name: "John Brown", age: 32, date: "2018-09-19", address: "朝阳区", mark: "无" }, { key: "2", name: "Jim Green", age: 40, date: "2018-09-18", address: "朝阳区", mark: "无" }, { key: "3", name: "Jim Green", age: 40, date: "2018-09-18", address: "东城区", mark: "无" }, { key: "4", name: "Jim Green", age: 40, date: "2018-09-18", address: "东城区", mark: "无" }, { key: "5", name: "John Brown", age: 32, date: "2018-09-18", address: "海淀区", mark: "无" }, { key: "6", name: "Jim Green", age: 48, date: "2018-09-18", address: "海淀区", mark: "无" }, { key: "7", name: "Jim Green", age: 40, date: "2018-09-18", address: "海淀区", mark: "无" }, { key: "8", name: "Jim Green", age: 38, date: "2018-09-18", address: "海淀区", mark: "无" } ]; const MultiSelectTable = multiSelect(Table, Checkbox); const ComplexTable = sort(MultiSelectTable, Icon); class Demo27 extends Component { constructor(props) { super(props); this.state = { dropdownvalue: [] } } handlerFilterChange = (key, val, condition) => { console.log('参数:key=', key, ' value=', val, 'condition=', condition); } handlerFilterClear = (key) => { console.log('清除条件', key); } getSelectedDataFunc = data => { console.log(data); } onSelect = (item) => { console.log(item); } render() { const menu1 = (
); let multiObj = { type: "checkbox" }; let columns27 = [ { title: "关联",dataIndex: "link",key: "link",width: 80, render: (text, record, index) => { return (