Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4bd448f7
authored
Sep 27, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
57201723
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
71 additions
and
33 deletions
src/App.vue
src/assets/css/font/demo_index.html
src/assets/css/font/iconfont.css
src/assets/css/font/iconfont.js
src/assets/css/font/iconfont.json
src/assets/css/font/iconfont.ttf
src/assets/css/font/iconfont.woff
src/assets/css/font/iconfont.woff2
src/components/menu.vue
src/App.vue
View file @
4bd448f7
<
template
>
<div
id=
"app"
>
<keep-alive
exclude=
"InquireDetail,ListDetail,orderTrackGoodsDetail"
>
<router-view
class=
"router-view"
></router-view>
</keep-alive>
</div>
<div
id=
"app"
>
<keep-alive
exclude=
"InquireDetail,ListDetail,orderTrackGoodsDetail"
>
<router-view
class=
"router-view"
></router-view>
</keep-alive>
</div>
</
template
>
<
script
>
export
default
{
name
:
'app'
}
export
default
{
name
:
'app'
}
</
script
>
\ No newline at end of file
src/assets/css/font/demo_index.html
View file @
4bd448f7
...
...
@@ -3,8 +3,8 @@
<head>
<meta
charset=
"utf-8"
/>
<title>
iconfont Demo
</title>
<link
rel=
"shortcut icon"
href=
"//img.alicdn.com/imgextra/i
2/O1CN01ZyAlrn1MwaMhqz36G_!!6000000001499-73-tps-64-64.ico
"
type=
"image/x-icon"
/>
<link
rel=
"icon"
type=
"image/svg+xml"
href=
"//img.alicdn.com/imgextra/i4/O1CN01
EYTRnJ297D6vehehJ_!!6000000008020-55-tps-64-64
.svg"
/>
<link
rel=
"shortcut icon"
href=
"//img.alicdn.com/imgextra/i
4/O1CN01Z5paLz1O0zuCC7osS_!!6000000001644-55-tps-83-82.svg
"
type=
"image/x-icon"
/>
<link
rel=
"icon"
type=
"image/svg+xml"
href=
"//img.alicdn.com/imgextra/i4/O1CN01
Z5paLz1O0zuCC7osS_!!6000000001644-55-tps-83-82
.svg"
/>
<link
rel=
"stylesheet"
href=
"https://g.alicdn.com/thx/cube/1.3.2/cube.min.css"
>
<link
rel=
"stylesheet"
href=
"demo.css"
>
<link
rel=
"stylesheet"
href=
"iconfont.css"
>
...
...
@@ -55,6 +55,12 @@
<ul
class=
"icon_lists dib-box"
>
<li
class=
"dib"
>
<span
class=
"icon iconfont"
>

</span>
<div
class=
"name"
>
指标追踪
</div>
<div
class=
"code-name"
>
&
#xe625;
</div>
</li>
<li
class=
"dib"
>
<span
class=
"icon iconfont"
>

</span>
<div
class=
"name"
>
文档管理
</div>
<div
class=
"code-name"
>
&
#xe73a;
</div>
...
...
@@ -198,9 +204,9 @@
<pre><code
class=
"language-css"
>
@font-face {
font-family: 'iconfont';
src: url('iconfont.woff2?t=16
23223469753
') format('woff2'),
url('iconfont.woff?t=16
23223469753
') format('woff'),
url('iconfont.ttf?t=16
23223469753
') format('truetype');
src: url('iconfont.woff2?t=16
64261089386
') format('woff2'),
url('iconfont.woff?t=16
64261089386
') format('woff'),
url('iconfont.ttf?t=16
64261089386
') format('truetype');
}
</code></pre>
<h3
id=
"-iconfont-"
>
第二步:定义使用 iconfont 的样式
</h3>
...
...
@@ -227,6 +233,15 @@
<ul
class=
"icon_lists dib-box"
>
<li
class=
"dib"
>
<span
class=
"icon iconfont iconzhibiaozhuizong"
></span>
<div
class=
"name"
>
指标追踪
</div>
<div
class=
"code-name"
>
.iconzhibiaozhuizong
</div>
</li>
<li
class=
"dib"
>
<span
class=
"icon iconfont iconwendangguanli"
></span>
<div
class=
"name"
>
文档管理
...
...
@@ -444,6 +459,14 @@
<li
class=
"dib"
>
<svg
class=
"icon svg-icon"
aria-hidden=
"true"
>
<use
xlink:href=
"#iconzhibiaozhuizong"
></use>
</svg>
<div
class=
"name"
>
指标追踪
</div>
<div
class=
"code-name"
>
#iconzhibiaozhuizong
</div>
</li>
<li
class=
"dib"
>
<svg
class=
"icon svg-icon"
aria-hidden=
"true"
>
<use
xlink:href=
"#iconwendangguanli"
></use>
</svg>
<div
class=
"name"
>
文档管理
</div>
...
...
src/assets/css/font/iconfont.css
View file @
4bd448f7
@font-face
{
font-family
:
"iconfont"
;
/* Project id 2537242 */
src
:
url('iconfont.woff2?t=16
23223469753
')
format
(
'woff2'
),
url('iconfont.woff?t=16
23223469753
')
format
(
'woff'
),
url('iconfont.ttf?t=16
23223469753
')
format
(
'truetype'
);
src
:
url('iconfont.woff2?t=16
64261089386
')
format
(
'woff2'
),
url('iconfont.woff?t=16
64261089386
')
format
(
'woff'
),
url('iconfont.ttf?t=16
64261089386
')
format
(
'truetype'
);
}
.iconfont
{
...
...
@@ -13,6 +13,10 @@
-moz-osx-font-smoothing
:
grayscale
;
}
.iconzhibiaozhuizong
:before
{
content
:
"\e625"
;
}
.iconwendangguanli
:before
{
content
:
"\e73a"
;
}
...
...
src/assets/css/font/iconfont.js
View file @
4bd448f7
This diff is collapsed.
Click to expand it.
src/assets/css/font/iconfont.json
View file @
4bd448f7
...
...
@@ -6,6 +6,13 @@
"description"
:
"猎芯云芯系统前端"
,
"glyphs"
:
[
{
"icon_id"
:
"7884841"
,
"name"
:
"指标追踪"
,
"font_class"
:
"zhibiaozhuizong"
,
"unicode"
:
"e625"
,
"unicode_decimal"
:
58917
},
{
"icon_id"
:
"22154515"
,
"name"
:
"文档管理"
,
"font_class"
:
"wendangguanli"
,
...
...
src/assets/css/font/iconfont.ttf
View file @
4bd448f7
No preview for this file type
src/assets/css/font/iconfont.woff
View file @
4bd448f7
No preview for this file type
src/assets/css/font/iconfont.woff2
View file @
4bd448f7
No preview for this file type
src/components/menu.vue
View file @
4bd448f7
...
...
@@ -50,7 +50,7 @@
</el-menu-item>
<el-submenu
index=
"2"
>
<
template
slot=
"title"
>
<span
class=
"icon iconfont
"
>
</span>
<span
class=
"icon iconfont
iconbj"
>
</span>
<span
slot=
"title"
>
询报价管理
</span>
</
template
>
<el-menu-item-group>
...
...
@@ -61,7 +61,7 @@
</el-submenu>
<el-submenu
index=
"3"
>
<
template
slot=
"title"
>
<span
class=
"icon iconfont
"
>
</span>
<span
class=
"icon iconfont
iconzhibiaozhuizong"
>
</span>
<span
slot=
"title"
>
订单追踪
</span>
</
template
>
<el-menu-item-group>
...
...
@@ -71,7 +71,7 @@
</el-submenu>
<el-submenu
index=
"4"
>
<
template
slot=
"title"
>
<span
class=
"icon iconfont
"
>
</span>
<span
class=
"icon iconfont
iconstore"
>
</span>
<span
slot=
"title"
>
库存管理
</span>
</
template
>
<el-menu-item-group>
...
...
@@ -83,7 +83,7 @@
</el-submenu>
<el-submenu
index=
"5"
>
<
template
slot=
"title"
>
<span
class=
"icon iconfont
"
>
</span>
<span
class=
"icon iconfont
icongoods"
>
</span>
<span
slot=
"title"
>
商品管理
</span>
</
template
>
<el-menu-item-group>
...
...
@@ -93,7 +93,7 @@
</el-submenu>
<el-submenu
index=
"6"
>
<
template
slot=
"title"
>
<span
class=
"icon iconfont
"
>
</span>
<span
class=
"icon iconfont
iconuser"
>
</span>
<span
slot=
"title"
>
用户中心
</span>
</
template
>
<el-menu-item-group>
...
...
@@ -108,7 +108,7 @@
<div
class=
"zankai"
>
<span
class=
"icon iconfont fr"
@
click=
"zk"
>
</span>
</div>
<div
class=
"item
"
:class=
"{'act':tabSure==1}"
>
<div
class=
"item"
:class=
"{'act':tabSure==1}"
>
<span
class=
"icon iconfont"
>
</span>
</div>
<div
class=
"item"
:class=
"{'act':tabSure==2}"
>
...
...
@@ -771,21 +771,23 @@ export default {
}
.el-submenu
{
transition
:
all
0.4s
ease
;
position
:
relative
;
}
.el-submenu
:hover
{
&::after
{
content
:
""
;
position
:
absolute
;
left
:
0px
;
top
:
7px
;
width
:
5px
;
height
:
30px
;
background
:
#1969F9
;
&:hover
{
&::after
{
content
:
""
;
position
:
absolute
;
left
:
0px
;
top
:
7px
;
width
:
5px
;
height
:
30px
;
background
:
#1969F9
;
}
}
}
.el-menu-item
:focus
,
.el-menu-item
:hover
,
.el-submenu__title
:hover
{
...
...
@@ -838,7 +840,8 @@ export default {
.el-submenu__title
{
height
:
46px
;
line-height
:
42px
;
padding-left
:
37px
!important
;
padding-left
:
37px
;
transition
:
all
0.4s
ease
;
.iconfont
{
font-size
:
20px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment