import React from 'react';
import { Table, Tag, Button, DialogPlugin, Space, Avatar } from 'tdesign-react';
import { UserIcon } from 'tdesign-icons-react';
export default function render() {
const { t } = this;
const { event } = this.props;
const { userArr = [], oakLoading, stateColor, pagination } = this.state;
const { pageSize, total, currentPage } = pagination || {};
return (
{
if (!row.avatar) {
return }>;
}
return ;
},
},
{
colKey: 'nickname',
title: '昵称',
},
{
colKey: 'name',
title: '姓名',
},
{
colKey: 'mobile',
title: '手机号',
},
{
colKey: 'userState',
title: '状态',
cell: ({ row, rowIndex }) => {
return (
{t(`user:v.userState.${row.userState}`)}
);
},
},
{
colKey: 'op',
width: 200,
title: '操作',
align: 'center',
cell: ({ row }) => {
return (
<>
>
);
},
fixed: 'right',
},
]}
pagination={{
total: total,
pageSize: pageSize,
current: currentPage,
onPageSizeChange: (pageSize: number) => {
this.setPageSize(pageSize);
},
}}
/>
);
}