提交 61b6099a 编写于 作者: DCloud-yyl's avatar DCloud-yyl

调整字体图标示例页面路径及入口

上级 ff3184d1
...@@ -1641,10 +1641,9 @@ ...@@ -1641,10 +1641,9 @@
} }
}, },
{ {
"path": "pages/CSS/text/font-icon", "path": "pages/CSS/text/font-family-icon",
"group": "2,14,15",
"style": { "style": {
"navigationBarTitleText": "font-icon" "navigationBarTitleText": "font-family: uni-icon"
} }
}, },
{ {
...@@ -2893,10 +2892,6 @@ ...@@ -2893,10 +2892,6 @@
{ {
"id": "css.properties.text.letter-spacing", "id": "css.properties.text.letter-spacing",
"name": "letter-spacing" "name": "letter-spacing"
},
{
"id": "css.properties.text.font-icon",
"name": "font-icon"
} }
] ]
}, },
...@@ -2924,4 +2919,4 @@ ...@@ -2924,4 +2919,4 @@
] ]
} }
] ]
} }
\ No newline at end of file
...@@ -26,14 +26,14 @@ ...@@ -26,14 +26,14 @@
data() { data() {
return { return {
uniIcons: [ //图标数据 uniIcons: [ //图标数据
{
'name':'forward',
'code':'E600',
},
{ {
'name':'back', 'name':'back',
'code':'E601', 'code':'E601',
}, },
{
'name':'forward',
'code':'E600',
},
{ {
'name':'share', 'name':'share',
'code':'E602', 'code':'E602',
...@@ -62,6 +62,10 @@ ...@@ -62,6 +62,10 @@
'name':'circle', 'name':'circle',
'code':'EA01', 'code':'EA01',
}, },
{
'name':'warn',
'code':'EA0F',
},
{ {
'name':'info', 'name':'info',
'code':'EA03', 'code':'EA03',
...@@ -86,10 +90,6 @@ ...@@ -86,10 +90,6 @@
'name':'cancel circle', 'name':'cancel circle',
'code':'EA0B', 'code':'EA0B',
}, },
{
'name':'warn',
'code':'EA0F',
},
{ {
'name':'clear', 'name':'clear',
'code':'EA14', 'code':'EA14',
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
<text class="common" style="font-family: AlimamaDaoLiTiOTF">font-family: 阿里妈妈刀隶体-otf</text> <text class="common" style="font-family: AlimamaDaoLiTiOTF">font-family: 阿里妈妈刀隶体-otf</text>
<text style="font-family: UniFontFamily;">style 加载非 static 目录字体文件:{{uniIcon}}</text> <text style="font-family: UniFontFamily;">style 加载非 static 目录字体文件:{{uniIcon}}</text>
<!-- <text class="common" style="font-family: AlimamaDaoLiTiWOFF">font-family: 阿里妈妈刀隶体-woff</text> <!-- <text class="common" style="font-family: AlimamaDaoLiTiWOFF">font-family: 阿里妈妈刀隶体-woff</text>
<text class="common" style="font-family: AlimamaDaoLiTiWOFF2">font-family: 阿里妈妈刀隶体-woff2</text> --> <text class="common" style="font-family: AlimamaDaoLiTiWOFF2">font-family: 阿里妈妈刀隶体-woff2</text> -->
</view>
<view style="margin: 24px 12px;">
<button type="default" @click="openUniIcon">内置字体图标uni-icon示例</button>
</view> </view>
</template> </template>
...@@ -16,6 +19,13 @@ ...@@ -16,6 +19,13 @@
return { return {
uniIcon: '\ue100', uniIcon: '\ue100',
} }
},
methods: {
openUniIcon() {
uni.navigateTo({
url: '/pages/CSS/text/font-family-icon'
})
}
} }
} }
</script> </script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册