feat:asset 自定义label显示图标

This commit is contained in:
zhangyu
2021-10-15 16:57:17 +08:00
parent 08f0733052
commit e878dabfe8
6 changed files with 15 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
@font-face {
font-family: "nz-icon"; /* Project id 2030432 */
src: url('iconfont.woff2?t=1634284850064') format('woff2'),
url('iconfont.woff?t=1634284850064') format('woff'),
url('iconfont.ttf?t=1634284850064') format('truetype');
src: url('iconfont.woff2?t=1634288113261') format('woff2'),
url('iconfont.woff?t=1634288113261') format('woff'),
url('iconfont.ttf?t=1634288113261') format('truetype');
}
.nz-icon {
@@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}
.nz-icon-label:before {
content: "\e747";
}
.nz-icon-language-change:before {
content: "\e746";
}

View File

@@ -1,8 +1,8 @@
@font-face {
font-family: "nz-icon"; /* Project id 2030432 */
src: url('./font/iconfont.woff2?t=1634284850064') format('woff2'),
url('./font/iconfont.woff?t=1634284850064') format('woff'),
url('./font/iconfont.ttf?t=1634284850064') format('truetype');
src: url('./font/iconfont.woff2?t=1634288113261') format('woff2'),
url('./font/iconfont.woff?t=1634288113261') format('woff'),
url('./font/iconfont.ttf?t=1634288113261') format('truetype');
}
.nz-icon {
@@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}
.nz-icon-label:before {
content: "\e747";
}
.nz-icon-language-change:before {
content: "\e746";
}

View File

@@ -32,7 +32,7 @@
class="data-column"
>
<template slot="header">
<span class="data-column__span">{{item.label}}</span>
<span class="data-column__span">{{item.label}} <i class="nz-icon nz-icon-label" v-if="item.type==='label'" style="color: #fa901c"/></span>
<div class="col-resize-area"></div>
</template>
<template slot-scope="scope" :column="item">