Skip to content

Commit

Permalink
dev:源代码二次开发
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrow-js committed Jan 21, 2021
1 parent 0b8e254 commit ef665d2
Show file tree
Hide file tree
Showing 13 changed files with 376 additions and 73 deletions.
184 changes: 184 additions & 0 deletions packages/sparrow-client/src/assets/icon/demo_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,54 @@ <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" targ
<div class="content unicode" style="display: block;">
<ul class="icon_lists dib-box">

<li class="dib">
<span class="icon iconfont">&#xe636;</span>
<div class="name">实验</div>
<div class="code-name">&amp;#xe636;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe613;</span>
<div class="name">实验</div>
<div class="code-name">&amp;#xe613;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe602;</span>
<div class="name">Search</div>
<div class="code-name">&amp;#xe602;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe854;</span>
<div class="name">search</div>
<div class="code-name">&amp;#xe854;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe623;</span>
<div class="name">code</div>
<div class="code-name">&amp;#xe623;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe6da;</span>
<div class="name">符号-测试</div>
<div class="code-name">&amp;#xe6da;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe648;</span>
<div class="name">展开</div>
<div class="code-name">&amp;#xe648;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe60c;</span>
<div class="name">列表</div>
<div class="code-name">&amp;#xe60c;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe69c;</span>
<div class="name">插件</div>
Expand Down Expand Up @@ -344,6 +392,78 @@ <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面
<div class="content font-class">
<ul class="icon_lists dib-box">

<li class="dib">
<span class="icon iconfont icon-shiyan"></span>
<div class="name">
实验
</div>
<div class="code-name">.icon-shiyan
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-shiyan1"></span>
<div class="name">
实验
</div>
<div class="code-name">.icon-shiyan1
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-search"></span>
<div class="name">
Search
</div>
<div class="code-name">.icon-search
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-search1"></span>
<div class="name">
search
</div>
<div class="code-name">.icon-search1
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-code"></span>
<div class="name">
code
</div>
<div class="code-name">.icon-code
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-ceshi"></span>
<div class="name">
符号-测试
</div>
<div class="code-name">.icon-ceshi
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-icon_xinyong_xianxing_jijin-135"></span>
<div class="name">
展开
</div>
<div class="code-name">.icon-icon_xinyong_xianxing_jijin-135
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-liebiao"></span>
<div class="name">
列表
</div>
<div class="code-name">.icon-liebiao
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-chajian"></span>
<div class="name">
Expand Down Expand Up @@ -769,6 +889,70 @@ <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h
<div class="content symbol">
<ul class="icon_lists dib-box">

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-shiyan"></use>
</svg>
<div class="name">实验</div>
<div class="code-name">#icon-shiyan</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-shiyan1"></use>
</svg>
<div class="name">实验</div>
<div class="code-name">#icon-shiyan1</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-search"></use>
</svg>
<div class="name">Search</div>
<div class="code-name">#icon-search</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-search1"></use>
</svg>
<div class="name">search</div>
<div class="code-name">#icon-search1</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-code"></use>
</svg>
<div class="name">code</div>
<div class="code-name">#icon-code</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-ceshi"></use>
</svg>
<div class="name">符号-测试</div>
<div class="code-name">#icon-ceshi</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-icon_xinyong_xianxing_jijin-135"></use>
</svg>
<div class="name">展开</div>
<div class="code-name">#icon-icon_xinyong_xianxing_jijin-135</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-liebiao"></use>
</svg>
<div class="name">列表</div>
<div class="code-name">#icon-liebiao</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-chajian"></use>
Expand Down
44 changes: 38 additions & 6 deletions packages/sparrow-client/src/assets/icon/iconfont.css

Large diffs are not rendered by default.

Binary file modified packages/sparrow-client/src/assets/icon/iconfont.eot
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/sparrow-client/src/assets/icon/iconfont.js

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions packages/sparrow-client/src/assets/icon/iconfont.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,62 @@
"css_prefix_text": "icon-",
"description": "",
"glyphs": [
{
"icon_id": "13673272",
"name": "实验",
"font_class": "shiyan",
"unicode": "e636",
"unicode_decimal": 58934
},
{
"icon_id": "14135882",
"name": "实验",
"font_class": "shiyan1",
"unicode": "e613",
"unicode_decimal": 58899
},
{
"icon_id": "88081",
"name": "Search",
"font_class": "search",
"unicode": "e602",
"unicode_decimal": 58882
},
{
"icon_id": "129158",
"name": "search",
"font_class": "search1",
"unicode": "e854",
"unicode_decimal": 59476
},
{
"icon_id": "6145482",
"name": "code",
"font_class": "code",
"unicode": "e623",
"unicode_decimal": 58915
},
{
"icon_id": "2334449",
"name": "符号-测试",
"font_class": "ceshi",
"unicode": "e6da",
"unicode_decimal": 59098
},
{
"icon_id": "16483269",
"name": "展开",
"font_class": "icon_xinyong_xianxing_jijin-135",
"unicode": "e648",
"unicode_decimal": 58952
},
{
"icon_id": "11697853",
"name": "列表",
"font_class": "liebiao",
"unicode": "e60c",
"unicode_decimal": 58892
},
{
"icon_id": "5243982",
"name": "插件",
Expand Down
Loading

0 comments on commit ef665d2

Please sign in to comment.