Browse Source

整理scss

luyanan 6 years ago
parent
commit
b3bdeaec54

+ 7 - 0
src/element-variables.scss

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
import 'normalize.css/normalize.css'// A modern alternative to CSS resets
5
import 'normalize.css/normalize.css'// A modern alternative to CSS resets
6
6
7
import ElementUI from 'element-ui'
7
import ElementUI from 'element-ui'
8
import 'element-ui/lib/theme-chalk/index.css'
8
import './element-variables.scss'
9
9
10
import '@/styles/index.scss' // global css
10
import '@/styles/index.scss' // global css
11
11

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

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

+ 0 - 4
src/styles/index.scss

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
.logo-container {
126
.logo-container {
131
  font-size: 22px;
127
  font-size: 22px;
132
  font-weight: bold;
128
  font-weight: bold;

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

23
          align="center">
23
          align="center">
24
          <template slot-scope="scope">
24
          <template slot-scope="scope">
25
            <div v-if="scope.row[item.prop]">
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
              <span v-else>{{scope.row[item.prop]}}</span>
27
              <span v-else>{{scope.row[item.prop]}}</span>
28
            </div>
28
            </div>
29
            <div class="operate-row" v-if="item.operate && typeof scope.row === 'object'">
29
            <div class="operate-row" v-if="item.operate && typeof scope.row === 'object'">

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

43
            align="center">
43
            align="center">
44
            <template slot-scope="scope">
44
            <template slot-scope="scope">
45
              <div v-if="scope.row[item.prop]">
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
                <span v-else>{{scope.row[item.prop]}}</span>
47
                <span v-else>{{scope.row[item.prop]}}</span>
48
              </div>
48
              </div>
49
              <div class="operate-row" v-if="item.operate && typeof scope.row === 'object'">
49
              <div class="operate-row" v-if="item.operate && typeof scope.row === 'object'">

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

26
          align="center">
26
          align="center">
27
          <template slot-scope="scope">
27
          <template slot-scope="scope">
28
            <div v-if="scope.row[item.prop]">
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
              <div v-else-if="item.tag">
30
              <div v-else-if="item.tag">
31
                <el-tag style="margin:2px" v-for="tag in scope.row[item.prop]" :key="tag.index">{{tag}}</el-tag>
31
                <el-tag style="margin:2px" v-for="tag in scope.row[item.prop]" :key="tag.index">{{tag}}</el-tag>
32
              </div>
32
              </div>