chore: fui-preview 引入阿里巴巴图标

This commit is contained in:
Hefeng
2023-10-26 10:25:20 +08:00
parent 2c92d98c0a
commit 112b831344
4 changed files with 21 additions and 3 deletions

View File

@ -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 {

View 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";
}

View File

@ -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%;