client: update table width

This commit is contained in:
fantasticit 2022-05-25 13:39:14 +08:00
parent 2b64a7c09f
commit 75e3c8dbe4
1 changed files with 10 additions and 2 deletions

View File

@ -48,11 +48,12 @@ const RecentDocs = () => {
); );
}} }}
/>, />,
<Column title="阅读量" dataIndex="views" key="views" />, <Column width={100} title="阅读量" dataIndex="views" key="views" />,
<Column <Column
title="创建者" title="创建者"
dataIndex="createUser" dataIndex="createUser"
key="createUser" key="createUser"
width={160}
render={(createUser) => { render={(createUser) => {
return ( return (
<span> <span>
@ -64,11 +65,18 @@ const RecentDocs = () => {
); );
}} }}
/>, />,
<Column title="访问时间" dataIndex="visitedAt" key="visitedAt" render={(date) => <LocaleTime date={date} />} />, <Column
width={120}
title="访问时间"
dataIndex="visitedAt"
key="visitedAt"
render={(date) => <LocaleTime date={date} />}
/>,
<Column <Column
title="操作" title="操作"
dataIndex="operate" dataIndex="operate"
key="operate" key="operate"
width={80}
render={(_, document) => ( render={(_, document) => (
<DocumentActions <DocumentActions
wikiId={document.wikiId} wikiId={document.wikiId}