xiongzhu 3 yıl önce
ebeveyn
işleme
83d1c54a9d
2 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 4 1
      src/styles/main.less
  2. 1 0
      src/utils/toast.js

+ 4 - 1
src/styles/main.less

@@ -20,7 +20,10 @@ ion-content {
         scrollbar-width: none;
         scrollbar-width: none;
     }
     }
 }
 }
-
+ion-toast.info-toast {
+    --background: var(--ion-color-step-800);
+    --color: var(--ion-color-light);
+}
 ion-toast.success-toast {
 ion-toast.success-toast {
     --background: var(--ion-color-success);
     --background: var(--ion-color-success);
     --color: var(--ion-color-light);
     --color: var(--ion-color-light);

+ 1 - 0
src/utils/toast.js

@@ -22,6 +22,7 @@ const Toast = async function (options) {
     }
     }
     switch (options.type) {
     switch (options.type) {
         case 'info':
         case 'info':
+            toastOps.cssClass = 'info-toast'
             break
             break
         case 'success':
         case 'success':
             toastOps.cssClass = 'success-toast'
             toastOps.cssClass = 'success-toast'