Browse Source

整理scss

luyanan 6 years ago
parent
commit
b3bdeaec54

+ 7 - 0
src/element-variables.scss

@ -0,0 +1,7 @@
1
/* 改变主题色变量 */
2
$--color-primary: #2693ec !default;
3
4
/* 改变 icon 字体路径变量,必需 */
5
$--font-path: '~element-ui/lib/theme-chalk/fonts';
6
7
@import "~element-ui/packages/theme-chalk/src/index";

+ 1 - 1
src/main.js

@ -5,7 +5,7 @@ import Vue from 'vue'
5 5
import 'normalize.css/normalize.css'// A modern alternative to CSS resets
6 6
7 7
import ElementUI from 'element-ui'
8
import 'element-ui/lib/theme-chalk/index.css'
8
import './element-variables.scss'
9 9
10 10
import '@/styles/index.scss' // global css
11 11

+ 1 - 1
src/styles/element-ui.scss

@ -73,7 +73,7 @@
73 73
}
74 74
.el-table th{
75 75
  font-weight:bold;
76
  color: $menuBg;
76
  color: $menuHover;
77 77
}
78 78
.el-table .cell{
79 79
  min-height: 23px;

+ 0 - 4
src/styles/index.scss

@ -123,10 +123,6 @@ a:hover {
123 123
  }
124 124
}
125 125
126
.link-href-row, .link-href-row:hover, .link-href-row:active, .link-href-row:link{
127
  color: #409EFF
128
}
129
130 126
.logo-container {
131 127
  font-size: 22px;
132 128
  font-weight: bold;

+ 1 - 1
src/views/companyCen/activeList.vue

@ -23,7 +23,7 @@
23 23
          align="center">
24 24
          <template slot-scope="scope">
25 25
            <div v-if="scope.row[item.prop]">
26
              <a class="link-href-row" v-if="item.link" :href="queryDetailShow(scope.row.id)" target="_blank">{{scope.row[item.prop]}}</a>
26
              <el-button type="text" v-if="item.link"><a :href="queryDetailShow(scope.row.id)" target="_blank">{{scope.row[item.prop]}}</a></el-button>
27 27
              <span v-else>{{scope.row[item.prop]}}</span>
28 28
            </div>
29 29
            <div class="operate-row" v-if="item.operate && typeof scope.row === 'object'">

+ 1 - 1
src/views/companyCen/noactive/compProduct.vue

@ -43,7 +43,7 @@
43 43
            align="center">
44 44
            <template slot-scope="scope">
45 45
              <div v-if="scope.row[item.prop]">
46
                <a class="link-href-row" v-if="item.link" :href="queryDetailShow(scope.row.id)" target="_blank">{{scope.row[item.prop]}}</a>
46
                <el-button type="text" v-if="item.link"><a :href="queryDetailShow(scope.row.id)" target="_blank">{{scope.row[item.prop]}}</a></el-button>
47 47
                <span v-else>{{scope.row[item.prop]}}</span>
48 48
              </div>
49 49
              <div class="operate-row" v-if="item.operate && typeof scope.row === 'object'">

+ 1 - 1
src/views/companyCen/noactive/noactiveList.vue

@ -26,7 +26,7 @@
26 26
          align="center">
27 27
          <template slot-scope="scope">
28 28
            <div v-if="scope.row[item.prop]">
29
              <a class="link-href-row" v-if="item.link" :href="queryDetailShow(scope.row.id)" target="_blank">{{scope.row[item.prop]}}</a>
29
              <el-button type="text" v-if="item.link"><a :href="queryDetailShow(scope.row.id)" target="_blank">{{scope.row[item.prop]}}</a></el-button>
30 30
              <div v-else-if="item.tag">
31 31
                <el-tag style="margin:2px" v-for="tag in scope.row[item.prop]" :key="tag.index">{{tag}}</el-tag>
32 32
              </div>