/** * * @title 数据关联 * @parent 列渲染 Custom Render * @description 数据行关联自定义菜单显示 * demo0404 */ import React, { Component } from 'react'; import {Icon,Checkbox,Dropdown,Menu} from 'tinper-bee'; import Table from '../../src'; import multiSelect from "../../src/lib/newMultiSelect"; import sort from "../../src/lib/sort"; const { Item } = Menu; const data = [ { num:"NU0391025", name: "aa", sex: "男", dept:'财务二科', rank:"T1", year:"1", seniority:"1", key: "1" }, { num:"NU0391026", name: "bb", sex: "女", dept:'财务一科', rank:"M1", year:"1", seniority:"1", key: "2" }, { num:"NU0391027", name: "dd", sex: "女", dept:'财务一科', rank:"T2", year:"2", seniority:"2", key: "3" } ]; const MultiSelectTable = multiSelect(Table, Checkbox); const ComplexTable = sort(MultiSelectTable, Icon); class Demo33 extends Component { constructor(props) { super(props); } getSelectedDataFunc = data => { console.log(data); } onSelect = (item) => { console.log(item); } render() { const menu1 = (
); let columns = [ { title: "关联",dataIndex: "link",key: "link",width: 80, render: (text, record, index) => { return (