提交 b2196633 编写于 作者: Y yangkaixuan

feat: add toast props

上级 527ca1a5
......@@ -167,3 +167,7 @@ Toast.resetDefaultOptions("text");
| loadingRotate | loading图标是否旋转,仅对loading类型生效 | Boolean | true |
| onClose | 关闭时触发的事件 | function | null |
| closeOnClickOverlay | 是否在点击遮罩层后关闭提示 | Boolean | false |
| toastStyle | 提示框style | object | |
| toastClass | 提示框class | String | "" |
......@@ -12,9 +12,11 @@
>
<div
class="nut-toast-inner"
:class="toastClass"
:style="{
'text-align': textAlignCenter ? 'center' : 'left',
'background-color': bgColor,
...toastStyle,
}"
>
<span v-if="hasIcon" class="nut-toast-icon-wrapper">
......@@ -51,6 +53,8 @@ export default {
onClose: null,
textTimer: null,
cover: false,
toastStyle: {},
toastClass: '',
coverColor: 'rgba(0, 0, 0, 0)',
timeStamp: null,
closeOnClickOverlay: false,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册