mirror of https://github.com/fantasticit/think.git
client: fix type
This commit is contained in:
parent
657b0e0ef9
commit
43f83ff243
|
@ -34,7 +34,7 @@ export const CommentItem: React.FC<IProps> = ({ comment, replyComment, editComme
|
|||
<Space>
|
||||
<Text strong>{(createUser as IUser).name}</Text>
|
||||
<Text type="tertiary">
|
||||
<LocaleTime date={comment.createdAt} timeago />
|
||||
<LocaleTime date={comment.createdAt} />
|
||||
</Text>
|
||||
</Space>
|
||||
</header>
|
||||
|
|
|
@ -31,7 +31,7 @@ export const Author: React.FC<IProps> = ({ document }) => {
|
|||
</p>
|
||||
<p style={{ margin: '8px 0 0' }}>
|
||||
最近更新日期:
|
||||
<LocaleTime date={document.updatedAt} timeago />
|
||||
<LocaleTime date={document.updatedAt} />
|
||||
{' ⦁ '}阅读量:
|
||||
{document.views}
|
||||
</p>
|
||||
|
|
|
@ -45,7 +45,7 @@ const List: React.FC<{ data: IDocument[] }> = ({ data }) => {
|
|||
|
||||
<Text size="small" type="tertiary">
|
||||
创建者:
|
||||
{doc.createUser && doc.createUser.name} • <LocaleTime date={doc.updatedAt} timeago />
|
||||
{doc.createUser && doc.createUser.name} • <LocaleTime date={doc.updatedAt} />
|
||||
</Text>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -51,7 +51,7 @@ export const RecentDocs = () => {
|
|||
|
||||
<Text size="small" type="tertiary">
|
||||
创建者:
|
||||
{doc.createUser && doc.createUser.name} • <LocaleTime date={doc.updatedAt} timeago />
|
||||
{doc.createUser && doc.createUser.name} • <LocaleTime date={doc.updatedAt} />
|
||||
</Text>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -63,12 +63,7 @@ const RecentDocs = () => {
|
|||
);
|
||||
}}
|
||||
/>,
|
||||
<Column
|
||||
title="更新时间"
|
||||
dataIndex="updatedAt"
|
||||
key="updatedAt"
|
||||
render={(date) => <LocaleTime date={date} timeago />}
|
||||
/>,
|
||||
<Column title="更新时间" dataIndex="updatedAt" key="updatedAt" render={(date) => <LocaleTime date={date} />} />,
|
||||
<Column
|
||||
title="操作"
|
||||
dataIndex="operate"
|
||||
|
|
Loading…
Reference in New Issue