Skip to content

Commit

Permalink
🐛 fix: ChatItem demo error (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
chen201724 authored Aug 2, 2024
1 parent 928f824 commit 635aa78
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ChatItem/demos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ export default () => {
const [edit, setEdit] = useState(false);
const control: ChatItemProps | any = {
loading: false,
message: {
rows: true,
value:
"要使用 dayjs 的 fromNow 函数,需要先安装 dayjs 库并在代码中引入它。然后,可以使用以下语法来获取当前时间与给定时间之间的相对时间:\n\n```javascript\ndayjs().fromNow();\ndayjs('2021-05-01').fromNow();\n```",
},
message:
"要使用 dayjs 的 fromNow 函数,需要先安装 dayjs 库并在代码中引入它。然后,可以使用以下语法来获取当前时间与给定时间之间的相对时间:\n\n```javascript\ndayjs().fromNow();\ndayjs('2021-05-01').fromNow();\n```",
placement: {
options: ['left', 'right'],
value: 'left',
Expand Down

0 comments on commit 635aa78

Please sign in to comment.