feat(font): support woff2
This commit is contained in:
parent
fd5d3596d6
commit
b351c2bd6f
5 changed files with 27 additions and 7 deletions
|
@ -68,6 +68,7 @@ nav {
|
|||
<li><router-link to="/time">Time</router-link></li>
|
||||
<li><router-link to="/cell">Cell</router-link></li>
|
||||
<li><router-link to="/drawer">Drawer</router-link></li>
|
||||
<li><router-link to="/icon">Icon</router-link></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<router-view></router-view>
|
||||
|
|
|
@ -229,6 +229,10 @@ const router = new VueRouter({
|
|||
{
|
||||
path: '/drawer',
|
||||
component: (resolve) => require(['./routers/drawer.vue'], resolve)
|
||||
},
|
||||
{
|
||||
path: '/icon',
|
||||
component: (resolve) => require(['./routers/icon.vue'], resolve)
|
||||
}
|
||||
]
|
||||
});
|
||||
|
|
15
examples/routers/icon.vue
Normal file
15
examples/routers/icon.vue
Normal file
File diff suppressed because one or more lines are too long
|
@ -3,9 +3,9 @@
|
|||
|
||||
@font-face {
|
||||
font-family: @ionicons-font-family;
|
||||
src:
|
||||
url("@{ionicons-font-path}/ionicons.ttf?v=@{ionicons-version}") format("truetype"),
|
||||
src: url("@{ionicons-font-path}/ionicons.woff2?v=@{ionicons-version}") format("woff2"),
|
||||
url("@{ionicons-font-path}/ionicons.woff?v=@{ionicons-version}") format("woff"),
|
||||
url("@{ionicons-font-path}/ionicons.ttf?v=@{ionicons-version}") format("truetype"),
|
||||
url("@{ionicons-font-path}/ionicons.svg?v=@{ionicons-version}#Ionicons") format("svg");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
|
|
BIN
src/styles/common/iconfont/fonts/ionicons.woff2
Normal file
BIN
src/styles/common/iconfont/fonts/ionicons.woff2
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue