import * as React from 'react'; import { Cell, Image, Tag, Fab } from 'tdesign-mobile-react'; import { Icon } from 'tdesign-icons-react'; export default function render() { const { t } = this; const { entity } = this.props; const { users } = this.state; return (
{users?.map((ele, index) => { return ( this.goDetail(ele.id)} key={index} title={ele.nickname || '未设置'} image={ 头像 } description={
姓名: {ele.name || '未设置'}
手机: {ele.mobile || '未设置'}
{ele.relations?.map((relation, index) => ( {t(`${entity}:r.${relation}`)} ))}
} /> ); })} } style={{ right: '16px', bottom: '32px' }} onClick={() => { this.goUpsert(); }} />
); }