File tree Expand file tree Collapse file tree 5 files changed +82
-9
lines changed Expand file tree Collapse file tree 5 files changed +82
-9
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ export const asyncRoutes = [
163
163
children : [
164
164
{
165
165
path : 'index' ,
166
- component : ( ) => import ( '@/views/svg- icons/index' ) ,
166
+ component : ( ) => import ( '@/views/icons/index' ) ,
167
167
name : 'Icons' ,
168
168
meta : { title : 'icons' , icon : 'icon' , noCache : true }
169
169
}
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 6
6
</aside >
7
7
<el-tabs type =" border-card" >
8
8
<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)" >
10
10
<el-tooltip placement =" top" >
11
11
<div slot =" content" >
12
12
{{ generateIconCode(item) }}
37
37
38
38
<script >
39
39
import 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 '
42
42
43
43
export default {
44
44
name: ' Icons' ,
45
45
data () {
46
46
return {
47
- iconsMap : icons ,
48
- elementIcons: elementIcons
47
+ svgIcons ,
48
+ elementIcons
49
49
}
50
50
},
51
51
methods: {
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ const requireAll = requireContext => requireContext.keys()
3
3
4
4
const re = / \. \/ ( .* ) \. s v g /
5
5
6
- const icons = requireAll ( req ) . map ( i => {
6
+ const svgIcons = requireAll ( req ) . map ( i => {
7
7
return i . match ( re ) [ 1 ]
8
8
} )
9
9
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