ソースを参照

fix: toast bug

yangkaixuan 5 年 前
コミット
8383dfefbc
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/packages/toast/toast.vue

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

@@ -2,7 +2,7 @@
   <transition name="toastfade">
     <div
       :id="id"
-      :class="toastClass"
+      :class="toastBodyClass"
       v-if="visible"
       :style="{
         bottom: center ? 'auto' : bottom + 'px',
@@ -71,7 +71,7 @@ export default {
     cusIcon() {
       return this.icon ? `url("${this.icon}")` : '';
     },
-    toastClass() {
+    toastBodyClass() {
       return [
         'nut-toast',
         { 'nut-toast-center': this.center },