提交 653d4de2 编写于 作者: Y yangkaixuan

fix: toast bug

上级 a44fb9b9
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<transition name="toastfade"> <transition name="toastfade">
<nut-popup <nut-popup
:overlay="cover" :overlay="cover"
:class="toastClass" :class="toastBodyClass"
v-model="visible" v-model="visible"
:closeOnClickOverlay="closeOnClickOverlay" :closeOnClickOverlay="closeOnClickOverlay"
:overlayStyle="{ backgroundColor: coverColor }" :overlayStyle="{ backgroundColor: coverColor }"
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
cusIcon() { cusIcon() {
return this.icon ? `url("${this.icon}")` : ''; return this.icon ? `url("${this.icon}")` : '';
}, },
toastClass() { toastBodyClass() {
return [ return [
'nut-toast', 'nut-toast',
{ 'nut-toast-buttom': !this.center }, { 'nut-toast-buttom': !this.center },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册