Skip to content

Commit

Permalink
Merge pull request #229 from Rodots/patch-1
Browse files Browse the repository at this point in the history
* docs: Fix the correct usage of float messages.
  • Loading branch information
catouse authored Nov 15, 2024
2 parents e66fdf1 + 35531b8 commit b46fbf2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/messager/docs/lib/components/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $('#messagerTrigger').on('click', () => {

```js
Messager.show({
message: '这是一条悬浮消息。',
content: '这是一条悬浮消息。',
placement: 'top-left',
});
```
Expand Down Expand Up @@ -83,7 +83,7 @@ Messager.show({

```js
zui.Messager.show({
message: '嘿!这是一条消息。',
content: '嘿!这是一条消息。',
type: 'primary',
});
```
Expand All @@ -106,7 +106,7 @@ zui.Messager.show({

```js
zui.Messager.show({
message: '嘿!这是一条消息。',
content: '嘿!这是一条消息。',
close: false
});
```
Expand All @@ -129,7 +129,7 @@ zui.Messager.show({

```js
zui.Messager.show({
massage: '你的邮件已成功发送。',
content: '你的邮件已成功发送。',
type: 'success',
actions: [{
name: 'undo',
Expand Down Expand Up @@ -158,7 +158,7 @@ zui.Messager.show({

```js
zui.Messager.show({
massage: '嘿!这是一条消息。',
content: '嘿!这是一条消息。',
time: 0,
});
```
Expand All @@ -181,7 +181,7 @@ zui.Messager.show({

```js
zui.Messager.show({
massage: '嘿!这是一条消息。',
content: '嘿!这是一条消息。',
animation: false,
});
```
Expand Down

0 comments on commit b46fbf2

Please sign in to comment.