图标更换

qianlishi 3 years ago
parent cb37c54a73
commit 0cda48fab7

@ -54,6 +54,12 @@
<div class="content unicode" style="display: block;"> <div class="content unicode" style="display: block;">
<ul class="icon_lists dib-box"> <ul class="icon_lists dib-box">
<li class="dib">
<span class="icon iconfont">&#xe738;</span>
<div class="name">中国地图</div>
<div class="code-name">&amp;#xe738;</div>
</li>
<li class="dib"> <li class="dib">
<span class="icon iconfont">&#xe625;</span> <span class="icon iconfont">&#xe625;</span>
<div class="name">表格</div> <div class="name">表格</div>
@ -690,9 +696,9 @@
<pre><code class="language-css" <pre><code class="language-css"
>@font-face { >@font-face {
font-family: 'iconfont'; font-family: 'iconfont';
src: url('iconfont.woff2?t=1625020835610') format('woff2'), src: url('iconfont.woff2?t=1625038596365') format('woff2'),
url('iconfont.woff?t=1625020835610') format('woff'), url('iconfont.woff?t=1625038596365') format('woff'),
url('iconfont.ttf?t=1625020835610') format('truetype'); url('iconfont.ttf?t=1625038596365') format('truetype');
} }
</code></pre> </code></pre>
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3> <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@ -718,6 +724,15 @@
<div class="content font-class"> <div class="content font-class">
<ul class="icon_lists dib-box"> <ul class="icon_lists dib-box">
<li class="dib">
<span class="icon iconfont iconzhongguoditu"></span>
<div class="name">
中国地图
</div>
<div class="code-name">.iconzhongguoditu
</div>
</li>
<li class="dib"> <li class="dib">
<span class="icon iconfont iconbiaoge"></span> <span class="icon iconfont iconbiaoge"></span>
<div class="name"> <div class="name">
@ -1672,6 +1687,14 @@
<div class="content symbol"> <div class="content symbol">
<ul class="icon_lists dib-box"> <ul class="icon_lists dib-box">
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconzhongguoditu"></use>
</svg>
<div class="name">中国地图</div>
<div class="code-name">#iconzhongguoditu</div>
</li>
<li class="dib"> <li class="dib">
<svg class="icon svg-icon" aria-hidden="true"> <svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconbiaoge"></use> <use xlink:href="#iconbiaoge"></use>

@ -1,8 +1,8 @@
@font-face { @font-face {
font-family: "iconfont"; /* Project id 1513211 */ font-family: "iconfont"; /* Project id 1513211 */
src: url('iconfont.woff2?t=1625020835610') format('woff2'), src: url('iconfont.woff2?t=1625038596365') format('woff2'),
url('iconfont.woff?t=1625020835610') format('woff'), url('iconfont.woff?t=1625038596365') format('woff'),
url('iconfont.ttf?t=1625020835610') format('truetype'); url('iconfont.ttf?t=1625038596365') format('truetype');
} }
.iconfont { .iconfont {
@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.iconzhongguoditu:before {
content: "\e738";
}
.iconbiaoge:before { .iconbiaoge:before {
content: "\e625"; content: "\e625";
} }

File diff suppressed because one or more lines are too long

@ -5,6 +5,13 @@
"css_prefix_text": "icon", "css_prefix_text": "icon",
"description": "", "description": "",
"glyphs": [ "glyphs": [
{
"icon_id": "22378736",
"name": "中国地图",
"font_class": "zhongguoditu",
"unicode": "e738",
"unicode_decimal": 59192
},
{ {
"icon_id": "21338828", "icon_id": "21338828",
"name": "表格", "name": "表格",

@ -4568,7 +4568,7 @@ const widgetTools = [
code: 'widget-map', code: 'widget-map',
type: 'chart', type: 'chart',
label: '中国地图', label: '中国地图',
icon: 'chinaMapChart', icon: 'iconzhongguoditu',
options: { options: {
setup: [ setup: [
{ {

Loading…
Cancel
Save