chore: fui-preview 引入阿里巴巴图标
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司(手机号: 18 61 4 072 54 9,身份证尾号:5A07X5)专用,请尊重知识产权,勿私下传播,违者追究法律责任。-->
|
<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司(手机号: 18 61 4 072 54 9,身份证尾号:5A07X5)专用,请尊重知识产权,勿私下传播,违者追究法律责任。-->
|
||||||
<template>
|
<template>
|
||||||
<!-- #ifndef APP-NVUE -->
|
<!-- #ifndef APP-NVUE -->
|
||||||
<text :style="{ color:getColor, fontSize: getSize, fontWeight: fontWeight}" class="fui-icon"
|
<text :style="{ color:getColor, fontSize: getSize, fontWeight: fontWeight}"
|
||||||
:class="[!getColor && !primary?'fui-icon__color':'',primary && (!color || color===true)?'fui-icon__active-color':'',disabled?'fui-icon__not-allowed':'',customPrefix,customPrefix?name:'']"
|
:class="[!getColor && !primary?'fui-icon__color':'',primary && (!color || color===true)?'fui-icon__active-color':'',disabled?'fui-icon__not-allowed':'',customPrefix?customPrefix:'fui-icon',customPrefix?name:'']"
|
||||||
@click="handleClick">{{ icons[name] || '' }}</text>
|
@click="handleClick">{{ icons[name] || '' }}</text>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!-- #ifdef APP-NVUE -->
|
<!-- #ifdef APP-NVUE -->
|
||||||
@ -112,6 +112,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@import "./iconfont.css";
|
||||||
/* #ifndef APP-NVUE */
|
/* #ifndef APP-NVUE */
|
||||||
/* 头条小程序组件内不能引入字体,需要在父级页面引入字体文件*/
|
/* 头条小程序组件内不能引入字体,需要在父级页面引入字体文件*/
|
||||||
@font-face {
|
@font-face {
|
||||||
|
BIN
components/firstui/fui-icon/iconfont-ttf/icon-weixiu.ttf
Normal file
BIN
components/firstui/fui-icon/iconfont-ttf/icon-weixiu.ttf
Normal file
Binary file not shown.
17
components/firstui/fui-icon/iconfont.css
Normal file
17
components/firstui/fui-icon/iconfont.css
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: "iconfont"; /* Project id */
|
||||||
|
src: url('./iconfont-ttf/icon-weixiu.ttf') format('truetype');
|
||||||
|
}
|
||||||
|
|
||||||
|
.iconfont {
|
||||||
|
font-family: "iconfont" !important;
|
||||||
|
font-size: 16px;
|
||||||
|
font-style: normal;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-weixiu:before {
|
||||||
|
content: "\e640";
|
||||||
|
}
|
||||||
|
|
@ -353,7 +353,7 @@ export default {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@import "./iconfont.css";
|
|
||||||
.fui-preview__wrap {
|
.fui-preview__wrap {
|
||||||
/* #ifndef APP-NVUE */
|
/* #ifndef APP-NVUE */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Reference in New Issue
Block a user