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

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

(cherry picked from commit 61b6099a)
上级 cc14b71f
......@@ -1614,10 +1614,9 @@
}
},
{
"path": "pages/CSS/text/font-icon",
"group": "2,14,15",
"path": "pages/CSS/text/font-family-icon",
"style": {
"navigationBarTitleText": "font-icon"
"navigationBarTitleText": "font-family: uni-icon"
}
},
{
......@@ -2854,10 +2853,6 @@
{
"id": "css.properties.text.letter-spacing",
"name": "letter-spacing"
},
{
"id": "css.properties.text.font-icon",
"name": "font-icon"
}
]
},
......
......@@ -26,14 +26,14 @@
data() {
return {
uniIcons: [ //图标数据
{
'name':'forward',
'code':'E600',
},
{
'name':'back',
'code':'E601',
},
{
'name':'forward',
'code':'E600',
},
{
'name':'share',
'code':'E602',
......@@ -62,6 +62,10 @@
'name':'circle',
'code':'EA01',
},
{
'name':'warn',
'code':'EA0F',
},
{
'name':'info',
'code':'EA03',
......@@ -86,10 +90,6 @@
'name':'cancel circle',
'code':'EA0B',
},
{
'name':'warn',
'code':'EA0F',
},
{
'name':'clear',
'code':'EA14',
......
......@@ -6,7 +6,10 @@
<text class="common" style="font-family: AlimamaDaoLiTiOTF">font-family: 阿里妈妈刀隶体-otf</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: 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>
</template>
......@@ -16,6 +19,13 @@
return {
uniIcon: '\ue100',
}
},
methods: {
openUniIcon() {
uni.navigateTo({
url: '/pages/CSS/text/font-family-icon'
})
}
}
}
</script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册