[update] 菜单图标

This commit is contained in:
zhaoxiao
2021-09-14 17:54:41 +08:00
parent 7e2ceec092
commit 741cc0f828
13 changed files with 194 additions and 9 deletions
@@ -3,6 +3,7 @@
v-bind="$attrs"
v-on="$listeners"
show-search
allowClear
option-filter-prop="children"
:filter-option="filterOption">
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ `${item.realname}(${item.orgCodeTxt})` }}</a-select-option>
+12
View File
@@ -0,0 +1,12 @@
/* 引入 icon class 文件 */
@import "./iconfont.css";
/* 设置使用字体的优先级 anticon 高 */
:global(.anticon) { /* :global() 是为了覆盖全局class .anticon 的样式 */
&:before {
font-family: "anticon", "anticon-jeecg" !important;
/* 默认样式是这样
font-family: "anticon" !important;
*/
}
}
+47
View File
@@ -0,0 +1,47 @@
@font-face {
font-family: "anticon-jeecg"; /* Project id 2798517 */
src: url('iconfont.woff2?t=1631613073967') format('woff2'),
url('iconfont.woff?t=1631613073967') format('woff'),
url('iconfont.ttf?t=1631613073967') format('truetype');
}
.anticon-jeecg {
font-family: "anticon-jeecg" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticonmeeting:before {
content: "\e60f";
}
.anticonproject:before {
content: "\e609";
}
.anticonpack:before {
content: "\e60a";
}
.anticonmember:before {
content: "\e60b";
}
.anticondata-network-disk:before {
content: "\e60c";
}
.anticonfinancial:before {
content: "\e60e";
}
.anticoncontract:before {
content: "\e608";
}
.anticoncompany:before {
content: "\e607";
}
File diff suppressed because one or more lines are too long
+65
View File
@@ -0,0 +1,65 @@
{
"id": "2798517",
"name": "zx-project",
"font_family": "anticon-jeecg",
"css_prefix_text": "anticon",
"description": "",
"glyphs": [
{
"icon_id": "24340808",
"name": "cus_meeting",
"font_class": "meeting1",
"unicode": "e60f",
"unicode_decimal": 58895
},
{
"icon_id": "24340604",
"name": "cus_project",
"font_class": "project",
"unicode": "e609",
"unicode_decimal": 58889
},
{
"icon_id": "24340605",
"name": "cus_pack",
"font_class": "pack",
"unicode": "e60a",
"unicode_decimal": 58890
},
{
"icon_id": "24340606",
"name": "cus_member",
"font_class": "member",
"unicode": "e60b",
"unicode_decimal": 58891
},
{
"icon_id": "24340607",
"name": "cus_data-network-disk",
"font_class": "data-network-disk",
"unicode": "e60c",
"unicode_decimal": 58892
},
{
"icon_id": "24340609",
"name": "cus_financial",
"font_class": "financial",
"unicode": "e60e",
"unicode_decimal": 58894
},
{
"icon_id": "24337509",
"name": "cus_contract",
"font_class": "contract",
"unicode": "e608",
"unicode_decimal": 58888
},
{
"icon_id": "24337464",
"name": "cus_company",
"font_class": "company",
"unicode": "e607",
"unicode_decimal": 58887
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4
View File
@@ -146,6 +146,10 @@ export default {
)
},
renderIcon (icon) {
if (icon !== 'none' && icon !== undefined && icon.indexOf('cus_') !== -1) {
let className = `anticon-jeecg anticon${icon.substr(4)}`
return <i class={className} style='margin-right: 8px'></i>
}
if (icon === 'none' || icon === undefined) {
return null
}