Browse Source

fix: toast bug

yangkaixuan 5 years ago
parent
commit
8383dfefbc
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">
   <transition name="toastfade">
     <div
     <div
       :id="id"
       :id="id"
-      :class="toastClass"
+      :class="toastBodyClass"
       v-if="visible"
       v-if="visible"
       :style="{
       :style="{
         bottom: center ? 'auto' : bottom + 'px',
         bottom: center ? 'auto' : bottom + 'px',
@@ -71,7 +71,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-center': this.center },
         { 'nut-toast-center': this.center },