/* eslint-disable max-lines-per-function */
import React, { useState } from 'react';
import { Table, Dropdown, Tooltip, Tag, Popover } from '@douyinfe/semi-ui/';
import { IconCaretdown, IconUser } from '@douyinfe/semi-icons';
const CREATOR_MAP = {
ALL: {
value: 0,
desc: '创建者',
},
MINE: {
value: 1,
desc: '只看我的',
},
};
function InTableDemo({}) {
const [currentCreator, setCurrentCreator] = useState({});
const setCreator = type => {
if (type) {
setCurrentCreator(CREATOR_MAP[type] || {});
}
};
const onDropdownVisibleChange = (...args) => console.log('Dropdown onVisibleChange: ', ...args);
const onPopoverVisibleChange = (...args) => console.log('Popover onVisibleChange: ', ...args);
const columns = [
{
title: 'Name',
dataIndex: 'name',
width: 150,
},
{
title: 'Age',
dataIndex: 'age',
width: 150,
},
{
title: 'Address',
dataIndex: 'address',
},
{
title: (