Browse Source

fix: toast样式优化

任一存 3 years ago
parent
commit
efc786aadc
2 changed files with 6 additions and 6 deletions
  1. 1 1
      src/assets/style/component.less
  2. 5 5
      src/mixins/index.js

+ 1 - 1
src/assets/style/component.less

@@ -980,7 +980,7 @@ textarea:-ms-input-placeholder {
 }
 
 // 覆盖element-ui的默认样式
-.el-message--success, .el-message--warning, .el-message--error {
+.el-message--success, .el-message--info, .el-message--warning, .el-message--error {
   background: #FFFFFF;
   box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.05), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
   border-radius: 2px;

+ 5 - 5
src/mixins/index.js

@@ -47,34 +47,34 @@ Vue.prototype.$MARERIALSTR = MARERIALSTR;
 Vue.prototype.$STRSTATUS = STRSTATUS;
 Vue.prototype.$msg = (data)=>{
   return Message({
-    offset:100,
+    offset: 85,
     ...data
   });
 }
 Vue.prototype.$msg.success = (string)=>{
   return Message.success({
-    offset:100,
+    offset: 85,
     message: string,
     duration: 1000
   });
 }
 Vue.prototype.$msg.warning = (string)=>{
   return Message.warning({
-    offset:100,
+    offset: 85,
     message: string,
     duration: 1000
   });
 }
 Vue.prototype.$msg.message = (string)=>{
   return Message.info({
-    offset:100,
+    offset: 85,
     message: string,
     duration: 1000
   });
 }
 Vue.prototype.$msg.error = (string)=>{
   return Message.error({
-    offset:100,
+    offset: 85,
     message: string,
     duration: 1000
   });