Skip to content

Commit

Permalink
docs: toast md
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkaixuan committed Aug 13, 2020
1 parent c1e6ee0 commit 025636a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/packages/toast/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,6 @@ Toast.resetDefaultOptions("text");
| loadingRotate | loading图标是否旋转,仅对loading类型生效 | Boolean | true |
| onClose | 关闭时触发的事件 | function | null |
| closeOnClickOverlay | 是否在点击遮罩层后关闭提示 | Boolean | false |
| coverStyle | 遮罩层style | object | {} |
| coverClass | 遮罩层class | String | "" |
| toastStyle | 提示框style | object | {} |
| toastClass | 提示框class | String | "" |

8 changes: 4 additions & 4 deletions src/packages/toast/toast.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
>
<div
class="nut-toast-inner"
:class="coverClass"
:class="toastClass"
:style="{
'text-align': textAlignCenter ? 'center' : 'left',
'background-color': bgColor,
...coverStyle,
...toastStyle,
}"
>
<span v-if="hasIcon" class="nut-toast-icon-wrapper">
Expand Down Expand Up @@ -54,8 +54,8 @@ export default {
textTimer: null,
cover: false,
coverColor: 'rgba(0, 0, 0, 0)',
coverStyle: {},
coverClass: '',
toastStyle: {},
toastClass: '',
timeStamp: null,
closeOnClickOverlay: false,
};
Expand Down

0 comments on commit 025636a

Please sign in to comment.