Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
befb9528
Commit
befb9528
authored
Sep 02, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: symbol方式引入iconfont
parent
1c267fda
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
2 deletions
+21
-2
index.html
public/index.html
+1
-0
iconfont.scss
src/assets/style/iconfont.scss
+8
-0
reset.scss
src/assets/style/reset.scss
+0
-1
main.js
src/main.js
+1
-0
home.vue
src/views/home.vue
+10
-0
vue.config.js
vue.config.js
+1
-1
No files found.
public/index.html
View file @
befb9528
...
...
@@ -17,4 +17,5 @@
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
<script
src=
'https://at.alicdn.com/t/font_225870_1m6sm6jaktk.js'
></script>
</html>
src/assets/style/iconfont.scss
0 → 100644
View file @
befb9528
// iconfont的基础css样式
.icon
{
width
:
1em
;
height
:
1em
;
vertical-align
:
-0
.15em
;
fill
:
currentColor
;
overflow
:
hidden
;
}
src/assets/style/reset.scss
View file @
befb9528
...
...
@@ -69,4 +69,3 @@ input:-webkit-autofill {
-webkit-box-shadow
:
0
0
0px
1000px
white
inset
!
important
;
}
src/main.js
View file @
befb9528
...
...
@@ -13,6 +13,7 @@ import globalComponents from '@/components/global/index.js'
import
filters
from
'@/filters/index.js'
import
directives
from
'@/directives/index.js'
import
utils
from
'@/utils/index.js'
console
.
log
(
'process.env:'
,
process
.
env
)
// 全局注册layout组件
Vue
.
use
(
layoutComponents
)
...
...
src/views/home.vue
View file @
befb9528
...
...
@@ -11,6 +11,16 @@
<!--
<a-button
type=
"primary"
>
Primary
</a-button>
-->
<svg
class=
"icon iconfont"
aria-hidden=
"true"
>
<use
xlink:href=
"#icon-13-5wufayulan"
></use>
</svg>
<svg
class=
"icon iconfont"
aria-hidden=
"true"
>
<use
xlink:href=
"#icon-14"
></use>
</svg>
</div>
</
template
>
...
...
vue.config.js
View file @
befb9528
const
proxyConf
=
require
(
'./src/config/proxy.config.js'
)
console
.
log
(
'process.env.NODE_ENV1:'
,
process
.
env
)
//
console.log('process.env.NODE_ENV1:', process.env)
const
LodashModuleReplacementPlugin
=
require
(
'lodash-webpack-plugin'
)
...
...
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