File tree Expand file tree Collapse file tree 13 files changed +45
-116
lines changed Expand file tree Collapse file tree 13 files changed +45
-116
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11<template >
2- <svg class =" wscn -icon" aria-hidden =" true" >
2+ <svg class =" svg -icon" aria-hidden =" true" >
33 <use :xlink:href =" iconName" ></use >
44 </svg >
55</template >
66
77<script >
88 export default {
9- name: ' wscn- icon-svg' ,
9+ name: ' icon-svg' ,
1010 props: {
1111 iconClass: {
1212 type: String ,
2020 }
2121 }
2222 </script >
23-
24- <style lang="scss" scoped>
25-
26- </style >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,19 +10,21 @@ import 'assets/custom-theme/index.css'; // 换肤版本element-ui css
1010import NProgress from 'nprogress' ; // Progress 进度条
1111import 'nprogress/nprogress.css' ; // Progress 进度条 样式
1212import 'normalize.css/normalize.css' ; // normalize.css 样式格式化
13- import 'components/Icon-svg/index' ; // 封装的svg组件
1413import 'assets/iconfont/iconfont' ; // iconfont 具体图标见https://github.com/PanJiaChen/vue-element-admin/wiki
1514import * as filters from './filters' ; // 全局vue filter
1615import Multiselect from 'vue-multiselect' ; // 使用的一个多选框组件,element-ui的select不能满足所有需求
1716import 'vue-multiselect/dist/vue-multiselect.min.css' ; // 多选框组件css
1817import Sticky from 'components/Sticky' ; // 粘性header组件
18+ import IconSvg from 'components/Icon-svg' ; // svg 组件
1919import vueWaves from './directive/waves' ; // 水波纹指令
2020import errLog from 'store/errLog' ; // error log组件
2121import './mock/index.js' ; // 该项目所有请求使用mockjs模拟
2222
23+
2324// register globally
2425Vue . component ( 'multiselect' , Multiselect ) ;
2526Vue . component ( 'Sticky' , Sticky ) ;
27+ Vue . component ( 'icon-svg' , IconSvg )
2628Vue . use ( ElementUI ) ;
2729Vue . use ( vueWaves ) ;
2830
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ code {
116116.text-center {
117117 text-align : center
118118}
119- .wscn -icon {
119+ .svg -icon {
120120 width : 1em ;
121121 height : 1em ;
122122 vertical-align : -0.15em ;
Original file line number Diff line number Diff line change 11<template >
22 <div class =" dashboard-editor-container" >
3-
43 <a href =" https://github.com/PanJiaChen/vue-element-admin" target =" _blank" class =" github-corner" aria-label =" View source on Github" >
54 <svg width =" 80" height =" 80" viewBox =" 0 0 250 250" style =" fill :#4AB7BD ; color :#fff ; position : absolute ; top : 50px ; border : 0 ; right : 0 ;"
65 aria-hidden =" true" >
1110 fill =" currentColor" class =" octo-body" ></path >
1211 </svg >
1312 </a >
14-
1513 <el-row class =" btn-group" >
1614 <el-col :span =" 4" class =' text-center' >
1715 <router-link class =" pan-btn blue-btn" to =" /components/index" >Components</router-link >
3836 <el-card class =" box-card" >
3937 <div slot =" header" class =" box-card-header" >
4038 <pan-thumb class =" panThumb" :image =" avatar" > 你的权限:
41- <span class =" pan-info-roles" v-for =" item in roles" >{{item}}</span >
39+ <span class =" pan-info-roles" :key = ' item ' v-for =" item in roles" >{{item}}</span >
4240 </pan-thumb >
4341 </div >
4442 <span class =" display_name" >{{name}}</span >
4543 <div class =" info-item" >
4644 <countTo class =" info-item-num" :startVal =' 0' :endVal =' statisticsData.article_count' :duration =' 3400' ></countTo >
4745 <span class =" info-item-text" >文章</span >
48- <wscn- icon-svg icon-class =" a" class =" dashboard-editor-icon" / >
46+ <icon-svg icon-class =" a" class =" dashboard-editor-icon" ></ icon-svg >
4947 </div >
5048 <div class =" info-item" >
5149 <countTo class =" info-item-num" :startVal =' 0' :endVal =' statisticsData.pageviews_count' :duration =' 3600' ></countTo >
5250 <span class =" info-item-text" >浏览量</span >
53- <wscn- icon-svg icon-class =" b" class =" dashboard-editor-icon" / >
51+ <icon-svg icon-class =" b" class =" dashboard-editor-icon" ></ icon-svg >
5452 </div >
5553 </el-card >
5654 </el-col >
Original file line number Diff line number Diff line change 2828
2929 <el-table-column width =" 80px" label =" 重要性" >
3030 <template scope="scope">
31- <wscn- icon-svg v-for =" n in +scope.row.importance" icon-class =" wujiaoxing" class =" meta-item__icon" :key =" n" / >
31+ <icon-svg v-for =" n in +scope.row.importance" icon-class =" wujiaoxing" class =" meta-item__icon" :key =" n" ></ icon-svg >
3232 </template >
3333 </el-table-column >
3434
Original file line number Diff line number Diff line change 2929
3030 <el-table-column width =" 80px" label =" 重要性" >
3131 <template scope="scope">
32- <wscn- icon-svg v-for =" n in +scope.row.importance" icon-class =" wujiaoxing" class =" meta-item__icon" :key =" n" / >
32+ <icon-svg v-for =" n in +scope.row.importance" icon-class =" wujiaoxing" class =" meta-item__icon" :key =" n" ></ icon-svg >
3333 </template >
3434 </el-table-column >
3535
4747
4848 <el-table-column align =" center" label =" 拖拽" width =" 95" >
4949 <template scope="scope">
50- <wscn- icon-svg class =' drag-handler' icon-class =" tuozhuai" / >
50+ <icon-svg class =' drag-handler' icon-class =" tuozhuai" ></ icon-svg >
5151 </template >
5252 </el-table-column >
5353
Original file line number Diff line number Diff line change 2323
2424 <el-table-column width =" 100px" label =" 重要性" >
2525 <template scope="scope">
26- <wscn- icon-svg v-for =" n in +scope.row.importance" icon-class =" wujiaoxing" class =" meta-item__icon" :key =" n" / >
26+ <icon-svg v-for =" n in +scope.row.importance" icon-class =" wujiaoxing" class =" meta-item__icon" :key =" n" ></ icon-svg >
2727 </template >
2828 </el-table-column >
2929
Original file line number Diff line number Diff line change 6060
6161 <el-table-column width =" 80px" label =" 重要性" >
6262 <template scope="scope">
63- <wscn- icon-svg v-for =" n in +scope.row.importance" icon-class =" wujiaoxing" class =" meta-item__icon" :key =" n" / >
63+ <icon-svg v-for =" n in +scope.row.importance" icon-class =" wujiaoxing" class =" meta-item__icon" :key =" n" ></ icon-svg >
6464 </template >
6565 </el-table-column >
6666
You can’t perform that action at this time.
0 commit comments