Skip to content

Commit

Permalink
Merge pull request #482 from w2xi/docfix
Browse files Browse the repository at this point in the history
docs(components): [message] `close-btn` prop should accept an icon instead of a vnode
  • Loading branch information
Tyh2001 authored May 1, 2024
2 parents 24c81b5 + e147bfd commit 5198f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/components/message.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@

此外,`Message` 拥有可控的 duration, 默认的关闭时间为 `2500 毫秒`,当把这个属性的值设置为 0 便表示该消息不会被自动关闭。

可以传递 `close-btn` 属性来自定义关闭按钮,支持字符串与 `VNode`
可以传递 `close-btn` 属性来自定义关闭按钮,支持字符串与 `icon`

::: demo

Expand Down

0 comments on commit 5198f0a

Please sign in to comment.