Browse Source

fix: toast bug

yangkaixuan 5 years ago
parent
commit
653d4de28d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/packages/toast/toast.vue

+ 2 - 2
src/packages/toast/toast.vue

@@ -2,7 +2,7 @@
   <transition name="toastfade">
     <nut-popup
       :overlay="cover"
-      :class="toastClass"
+      :class="toastBodyClass"
       v-model="visible"
       :closeOnClickOverlay="closeOnClickOverlay"
       :overlayStyle="{ backgroundColor: coverColor }"
@@ -72,7 +72,7 @@ export default {
     cusIcon() {
       return this.icon ? `url("${this.icon}")` : '';
     },
-    toastClass() {
+    toastBodyClass() {
       return [
         'nut-toast',
         { 'nut-toast-buttom': !this.center },