mirror of https://github.com/openspug/spug
U 优化样式
parent
7cacb96ffb
commit
b96851b250
|
@ -12,11 +12,11 @@ import uStore from '../account/store';
|
||||||
export default observer(function (props) {
|
export default observer(function (props) {
|
||||||
const users = uStore.records.filter(x => x.role_ids.includes(props.id))
|
const users = uStore.records.filter(x => x.role_ids.includes(props.id))
|
||||||
return (
|
return (
|
||||||
<Table rowKey="id" dataSource={users} pagination={false} scroll={{y: 500,x: 500}}>
|
<Table rowKey="id" dataSource={users} pagination={false} scroll={{y: 500}}>
|
||||||
<Table.Column title="姓名" dataIndex="nickname"/>
|
<Table.Column width={120} title="姓名" dataIndex="nickname"/>
|
||||||
<Table.Column title="状态" dataIndex="is_active"
|
<Table.Column width={90} title="状态" dataIndex="is_active"
|
||||||
render={v => v ? <Badge status="success" text="正常"/> : <Badge status="default" text="禁用"/>}/>
|
render={v => v ? <Badge status="success" text="正常"/> : <Badge status="default" text="禁用"/>}/>
|
||||||
<Table.Column title="最近登录" dataIndex="last_login"/>
|
<Table.Column width={180} title="最近登录" dataIndex="last_login"/>
|
||||||
</Table>
|
</Table>
|
||||||
)
|
)
|
||||||
})
|
})
|
|
@ -40,5 +40,5 @@
|
||||||
|
|
||||||
.roleUser :global(.ant-popover-inner-content) {
|
.roleUser :global(.ant-popover-inner-content) {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 500px;
|
width: 400px;
|
||||||
}
|
}
|
Loading…
Reference in New Issue