File tree Expand file tree Collapse file tree 6 files changed +83
-10
lines changed Expand file tree Collapse file tree 6 files changed +83
-10
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export const asyncRoutes = [
119119 children : [
120120 {
121121 path : 'index' ,
122- component : 'views/svg- icons/index' ,
122+ component : 'views/icons/index' ,
123123 name : 'Icons' ,
124124 meta : { title : 'icons' , icon : 'icon' , noCache : true }
125125 }
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ export const asyncRoutes = [
163163 children : [
164164 {
165165 path : 'index' ,
166- component : ( ) => import ( '@/views/svg- icons/index' ) ,
166+ component : ( ) => import ( '@/views/icons/index' ) ,
167167 name : 'Icons' ,
168168 meta : { title : 'icons' , icon : 'icon' , noCache : true }
169169 }
Original file line number Diff line number Diff line change 1+ const elementIcons = [
2+ 'info' ,
3+ 'error' ,
4+ 'success' ,
5+ 'warning' ,
6+ 'question' ,
7+ 'back' ,
8+ 'arrow-left' ,
9+ 'arrow-down' ,
10+ 'arrow-right' ,
11+ 'arrow-up' ,
12+ 'caret-left' ,
13+ 'caret-bottom' ,
14+ 'caret-top' ,
15+ 'caret-right' ,
16+ 'd-arrow-left' ,
17+ 'd-arrow-right' ,
18+ 'minus' ,
19+ 'plus' ,
20+ 'remove' ,
21+ 'circle-plus' ,
22+ 'remove-outline' ,
23+ 'circle-plus-outline' ,
24+ 'close' ,
25+ 'check' ,
26+ 'circle-close' ,
27+ 'circle-check' ,
28+ 'circle-close-outline' ,
29+ 'circle-check-outline' ,
30+ 'zoom-out' ,
31+ 'zoom-in' ,
32+ 'd-caret' ,
33+ 'sort' ,
34+ 'sort-down' ,
35+ 'sort-up' ,
36+ 'tickets' ,
37+ 'document' ,
38+ 'goods' ,
39+ 'sold-out' ,
40+ 'news' ,
41+ 'message' ,
42+ 'date' ,
43+ 'printer' ,
44+ 'time' ,
45+ 'bell' ,
46+ 'mobile-phone' ,
47+ 'service' ,
48+ 'view' ,
49+ 'menu' ,
50+ 'more' ,
51+ 'more-outline' ,
52+ 'star-on' ,
53+ 'star-off' ,
54+ 'location' ,
55+ 'location-outline' ,
56+ 'phone' ,
57+ 'phone-outline' ,
58+ 'picture' ,
59+ 'picture-outline' ,
60+ 'delete' ,
61+ 'search' ,
62+ 'edit' ,
63+ 'edit-outline' ,
64+ 'rank' ,
65+ 'refresh' ,
66+ 'share' ,
67+ 'setting' ,
68+ 'upload' ,
69+ 'upload2' ,
70+ 'download' ,
71+ 'loading'
72+ ]
73+
74+ export default elementIcons
Original file line number Diff line number Diff line change 66 </aside >
77 <el-tabs type =" border-card" >
88 <el-tab-pane label =" Icons" >
9- <div v-for =" item of iconsMap " :key =" item" @click =" handleClipboard(generateIconCode(item),$event)" >
9+ <div v-for =" item of svgIcons " :key =" item" @click =" handleClipboard(generateIconCode(item),$event)" >
1010 <el-tooltip placement =" top" >
1111 <div slot =" content" >
1212 {{ generateIconCode(item) }}
3737
3838<script >
3939import clipboard from ' @/utils/clipboard'
40- import icons from ' ./require -icons'
41- import elementIcons from ' ./element-icon.json '
40+ import svgIcons from ' ./svg -icons'
41+ import elementIcons from ' ./element-icons '
4242
4343export default {
4444 name: ' Icons' ,
4545 data () {
4646 return {
47- iconsMap : icons ,
48- elementIcons: elementIcons
47+ svgIcons ,
48+ elementIcons
4949 }
5050 },
5151 methods: {
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ const requireAll = requireContext => requireContext.keys()
33
44const re = / \. \/ ( .* ) \. s v g /
55
6- const icons = requireAll ( req ) . map ( i => {
6+ const svgIcons = requireAll ( req ) . map ( i => {
77 return i . match ( re ) [ 1 ]
88} )
99
10- export default icons
10+ export default svgIcons
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments