fix: style problem of message component; 🐛

修复:message 组件样式问题;
master
iczer 4 years ago
parent ad11e315e6
commit 04be83ac7c
  1. 2
      src/mock/user/login.js
  2. 2
      src/pages/dashboard/analysis/Analysis.vue
  3. 3
      src/theme/antd/ant-message.less
  4. 1
      src/theme/antd/index.less

@ -21,7 +21,7 @@ Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/login`, 'post', ({body}) => {
result.data.user = user result.data.user = user
result.data.token = 'Authorization:' + Math.random() result.data.token = 'Authorization:' + Math.random()
result.data.expireAt = new Date(new Date().getTime() + 30 * 60 * 1000) result.data.expireAt = new Date(new Date().getTime() + 30 * 60 * 1000)
result.data.permissions = [{id: 'queryForm', operation: ['add', 'edit', 'delete']}] result.data.permissions = [{id: 'queryForm', operation: ['add', 'edit']}]
result.data.roles = [{id: 'admin', operation: ['add', 'edit', 'delete']}] result.data.roles = [{id: 'admin', operation: ['add', 'edit', 'delete']}]
} }
return result return result

@ -1,6 +1,6 @@
<template> <template>
<div class="analysis"> <div class="analysis">
<a-row :gutter="[24, 24]"> <a-row style="margin-top: 0" :gutter="[24, 24]">
<a-col :sm="24" :md="12" :xl="6"> <a-col :sm="24" :md="12" :xl="6">
<chart-card :loading="loading" :title="$t('totalSales')" total="¥ 189,345"> <chart-card :loading="loading" :title="$t('totalSales')" total="¥ 189,345">
<a-tooltip :title="$t('introduce')" slot="action"> <a-tooltip :title="$t('introduce')" slot="action">

@ -0,0 +1,3 @@
.ant-message{
z-index: 1100;
}

@ -1 +1,2 @@
@import "ant-time-picker"; @import "ant-time-picker";
@import "ant-message";

Loading…
Cancel
Save