chore: fui-preview 引入阿里巴巴图标
This commit is contained in:
@ -259,6 +259,7 @@ export default {
|
||||
class="fui-preview__wrap" :class="{ 'fui-preview__unlined': !isBorder, 'fui-preview__background': !background }"
|
||||
:style="{ 'border-top-color': borderColor, 'border-bottom-color': borderColor, 'marginTop': `${marginTop}rpx`, 'marginBottom': `${marginBottom}rpx`, 'background': background,paddingTop: `${topPadding}rpx` }"
|
||||
>
|
||||
|
||||
<view
|
||||
v-if="pvd[label] || pvd[value]" class="fui-preview__hd"
|
||||
:style="{ paddingLeft: `${padding}rpx`, paddingRight: `${padding}rpx`}"
|
||||
@ -337,6 +338,7 @@ export default {
|
||||
>
|
||||
|
||||
<fui-icon v-if="btn[icon]" :name="btn[icon]" style="margin-right: 16rpx;" :color="btn[color] || fuiColor.primary" :size="iconSize" ></fui-icon>
|
||||
<fui-icon v-if="btn[icon] && btn[customPrefix]" :name="btn[icon]" style="margin-right: 16rpx;" :color="btn[color] || fuiColor.primary" :size="iconSize" custom-prefix="iconfont"></fui-icon>
|
||||
<text
|
||||
:style="{ fontSize: `${btnSize}rpx`, color: btn[color] || '#465CFF' }"
|
||||
:class="{ 'fui-preview__link': !btn[color] }"
|
||||
@ -349,6 +351,7 @@ export default {
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
@import "./iconfont.css";
|
||||
.fui-preview__wrap {
|
||||
/* #ifndef APP-NVUE */
|
||||
width: 100%;
|
||||
|
BIN
components/firstui/fui-preview/icon-weixiu.ttf
Normal file
BIN
components/firstui/fui-preview/icon-weixiu.ttf
Normal file
Binary file not shown.
17
components/firstui/fui-preview/iconfont.css
Normal file
17
components/firstui/fui-preview/iconfont.css
Normal file
@ -0,0 +1,17 @@
|
||||
@font-face {
|
||||
font-family: "iconfont"; /* Project id */
|
||||
src: url('icon-weixiu.ttf?t=1698227292474') 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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user