diff --git a/src/App.vue b/src/App.vue index 9eb25bca..33bd8dc6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,6 +14,8 @@ import moment from 'moment' import 'moment/locale/zh-cn' // 水印功能 import '@/utils/warterMark' +// 引入自定义icon +import '@/assets/icon/iconfont.less' moment.locale('zh-cn') diff --git a/src/assets/icon/iconfont.css b/src/assets/icon/iconfont.css new file mode 100644 index 00000000..796ee406 --- /dev/null +++ b/src/assets/icon/iconfont.css @@ -0,0 +1,71 @@ +@font-face { + font-family: "iconfont"; /* Project id 4236293 */ + src: url('iconfont.woff2?t=1693807596400') format('woff2'), + url('iconfont.woff?t=1693807596400') format('woff'), + url('iconfont.ttf?t=1693807596400') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-chexiao:before { + content: "\e619"; +} + +.icon-star:before { + content: "\e6ae"; +} + +.icon-water-drop-slash:before { + content: "\e846"; +} + +.icon-star1:before { + content: "\e640"; +} + +.icon-jiedian:before { + content: "\e629"; +} + +.icon-user:before { + content: "\e645"; +} + +.icon-bianji:before { + content: "\e611"; +} + +.icon-shanchu_:before { + content: "\e614"; +} + +.icon-chat:before { + content: "\e635"; +} + +.icon-edit-1:before { + content: "\e605"; +} + +.icon-fangxingfenxiang:before { + content: "\e85d"; +} + +.icon-chart-pie:before { + content: "\e65c"; +} + +.icon-root-list:before { + content: "\e667"; +} + +.icon-save:before { + content: "\e625"; +} + diff --git a/src/assets/icon/iconfont.js b/src/assets/icon/iconfont.js new file mode 100644 index 00000000..acc56ee4 --- /dev/null +++ b/src/assets/icon/iconfont.js @@ -0,0 +1 @@ +window._iconfont_svg_string_4236293='',function(e){var t=(t=document.getElementsByTagName("script"))[t.length-1],c=t.getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var a,o,i,l,n,h=function(t,c){c.parentNode.insertBefore(t,c)};if(c&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(t){console&&console.log(t)}}a=function(){var t,c=document.createElement("div");c.innerHTML=e._iconfont_svg_string_4236293,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(t=document.body).firstChild?h(c,t.firstChild):t.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(a,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),a()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(i=a,l=e.document,n=!1,v(),l.onreadystatechange=function(){"complete"==l.readyState&&(l.onreadystatechange=null,s())})}function s(){n||(n=!0,i())}function v(){try{l.documentElement.doScroll("left")}catch(t){return void setTimeout(v,50)}s()}}(window); diff --git a/src/assets/icon/iconfont.json b/src/assets/icon/iconfont.json new file mode 100644 index 00000000..767610da --- /dev/null +++ b/src/assets/icon/iconfont.json @@ -0,0 +1,107 @@ +{ + "id": "4236293", + "name": "laws_sinotruk", + "font_family": "iconfont", + "css_prefix_text": "icon-", + "description": "", + "glyphs": [ + { + "icon_id": "755531", + "name": "撤销", + "font_class": "chexiao", + "unicode": "e619", + "unicode_decimal": 58905 + }, + { + "icon_id": "1251444", + "name": "star", + "font_class": "star", + "unicode": "e6ae", + "unicode_decimal": 59054 + }, + { + "icon_id": "8953349", + "name": "water-drop-slash", + "font_class": "water-drop-slash", + "unicode": "e846", + "unicode_decimal": 59462 + }, + { + "icon_id": "10166370", + "name": "star", + "font_class": "star1", + "unicode": "e640", + "unicode_decimal": 58944 + }, + { + "icon_id": "10936714", + "name": "节点", + "font_class": "jiedian", + "unicode": "e629", + "unicode_decimal": 58921 + }, + { + "icon_id": "13851484", + "name": "user", + "font_class": "user", + "unicode": "e645", + "unicode_decimal": 58949 + }, + { + "icon_id": "22808337", + "name": "bianji", + "font_class": "bianji", + "unicode": "e611", + "unicode_decimal": 58897 + }, + { + "icon_id": "22808347", + "name": "shanchu_", + "font_class": "shanchu_", + "unicode": "e614", + "unicode_decimal": 58900 + }, + { + "icon_id": "27107441", + "name": "chat", + "font_class": "chat", + "unicode": "e635", + "unicode_decimal": 58933 + }, + { + "icon_id": "32162437", + "name": "edit-1", + "font_class": "edit-1", + "unicode": "e605", + "unicode_decimal": 58885 + }, + { + "icon_id": "34202238", + "name": "方形分享", + "font_class": "fangxingfenxiang", + "unicode": "e85d", + "unicode_decimal": 59485 + }, + { + "icon_id": "35043333", + "name": "chart-pie", + "font_class": "chart-pie", + "unicode": "e65c", + "unicode_decimal": 58972 + }, + { + "icon_id": "35043480", + "name": "root-list", + "font_class": "root-list", + "unicode": "e667", + "unicode_decimal": 58983 + }, + { + "icon_id": "36945912", + "name": "save", + "font_class": "save", + "unicode": "e625", + "unicode_decimal": 58917 + } + ] +} diff --git a/src/assets/icon/iconfont.less b/src/assets/icon/iconfont.less new file mode 100644 index 00000000..f3d8cdb2 --- /dev/null +++ b/src/assets/icon/iconfont.less @@ -0,0 +1,7 @@ +@import "./iconfont.css"; + +:global(.anticon) { + &:before { + font-family: "icon-extend", "extend", serif !important; + } +} \ No newline at end of file diff --git a/src/assets/icon/iconfont.ttf b/src/assets/icon/iconfont.ttf new file mode 100644 index 00000000..c3232fd7 Binary files /dev/null and b/src/assets/icon/iconfont.ttf differ diff --git a/src/assets/icon/iconfont.woff b/src/assets/icon/iconfont.woff new file mode 100644 index 00000000..af2f25fb Binary files /dev/null and b/src/assets/icon/iconfont.woff differ diff --git a/src/assets/icon/iconfont.woff2 b/src/assets/icon/iconfont.woff2 new file mode 100644 index 00000000..a17e6086 Binary files /dev/null and b/src/assets/icon/iconfont.woff2 differ