mooho-base-admin-plus 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +5 -0
- package/.env.development +0 -0
- package/.env.production +0 -0
- package/.eslintignore +11 -0
- package/.eslintrc.js +47 -0
- package/.prettierrc +15 -0
- package/README.md +18 -0
- package/dist/favicon.ico +0 -0
- package/dist/mooho-base-admin-plus.min.esm.js +131746 -0
- package/dist/mooho-base-admin-plus.min.js +279 -0
- package/dist/setting.js +31 -0
- package/dist/static/images/app-barcode.png +0 -0
- package/dist/static/images/login/bg.png +0 -0
- package/dist/static/images/login/logo.png +0 -0
- package/dist/static/images/login/password-active.png +0 -0
- package/dist/static/images/login/password-default.png +0 -0
- package/dist/static/images/login/signIn-img.png +0 -0
- package/dist/static/images/login/user-active.png +0 -0
- package/dist/static/images/login/user-default.png +0 -0
- package/dist/static/images/logo-dark.png +0 -0
- package/dist/static/images/logo-small.png +0 -0
- package/dist/static/images/logo.png +0 -0
- package/dist/static/images/logo.svg +510 -0
- package/dist/static/images/no-image.png +0 -0
- package/dist/style.css +4 -0
- package/index.html +18 -0
- package/other/pda.vue +28 -0
- package/package.json +59 -0
- package/public/favicon.ico +0 -0
- package/public/setting.js +31 -0
- package/public/static/images/app-barcode.png +0 -0
- package/public/static/images/login/bg.png +0 -0
- package/public/static/images/login/logo.png +0 -0
- package/public/static/images/login/password-active.png +0 -0
- package/public/static/images/login/password-default.png +0 -0
- package/public/static/images/login/signIn-img.png +0 -0
- package/public/static/images/login/user-active.png +0 -0
- package/public/static/images/login/user-default.png +0 -0
- package/public/static/images/logo-dark.png +0 -0
- package/public/static/images/logo-small.png +0 -0
- package/public/static/images/logo.png +0 -0
- package/public/static/images/logo.svg +510 -0
- package/public/static/images/no-image.png +0 -0
- package/src/App.vue +60 -0
- package/src/api/application.js +35 -0
- package/src/api/customModel.js +187 -0
- package/src/api/customPage.js +15 -0
- package/src/api/customTable.js +24 -0
- package/src/api/dataSource.js +93 -0
- package/src/api/dataView.js +199 -0
- package/src/api/dictType.js +23 -0
- package/src/api/entityView.js +13 -0
- package/src/api/enum.js +15 -0
- package/src/api/filterColumn.js +16 -0
- package/src/api/model.js +244 -0
- package/src/api/movePlan.js +29 -0
- package/src/api/notification.js +28 -0
- package/src/api/openApiPermission.js +25 -0
- package/src/api/permission.js +51 -0
- package/src/api/planJob.js +15 -0
- package/src/api/process.js +23 -0
- package/src/api/processDef.js +36 -0
- package/src/api/processInst.js +16 -0
- package/src/api/rolePermission.js +17 -0
- package/src/api/roleProperty.js +36 -0
- package/src/api/shortcut.js +20 -0
- package/src/api/system.js +23 -0
- package/src/api/task.js +56 -0
- package/src/api/taskQueue.js +24 -0
- package/src/api/user.js +45 -0
- package/src/api/viewColumn.js +16 -0
- package/src/assets/svg/body.svg +17 -0
- package/src/assets/svg/header-theme-dark.svg +40 -0
- package/src/assets/svg/header-theme-primary.svg +40 -0
- package/src/assets/svg/header-top.svg +40 -0
- package/src/assets/svg/icon-happy.svg +1 -0
- package/src/assets/svg/icon-sad.svg +1 -0
- package/src/assets/svg/icon-social-bilibili.svg +1 -0
- package/src/assets/svg/icon-social-dingding.svg +1 -0
- package/src/assets/svg/icon-social-facebook.svg +1 -0
- package/src/assets/svg/icon-social-juejin.svg +1 -0
- package/src/assets/svg/icon-social-qq.svg +1 -0
- package/src/assets/svg/icon-social-twitter.svg +1 -0
- package/src/assets/svg/icon-social-wechat.svg +1 -0
- package/src/assets/svg/icon-social-weibo.svg +1 -0
- package/src/assets/svg/icon-social-zhihu.svg +1 -0
- package/src/assets/svg/nav-theme-dark.svg +40 -0
- package/src/assets/svg/nav-theme-light.svg +40 -0
- package/src/components/copyright/index.vue +28 -0
- package/src/components/home/notice-list.vue +62 -0
- package/src/components/home/shortcut.vue +125 -0
- package/src/components/input/dialog-select.vue +301 -0
- package/src/components/input/item-select.vue +195 -0
- package/src/components/link/index.vue +54 -0
- package/src/components/richEditor/index.vue +86 -0
- package/src/components/upload/file-upload.vue +84 -0
- package/src/components/upload/upload-attachment.vue +119 -0
- package/src/components/upload/upload-image.vue +212 -0
- package/src/components/view/column-check.vue +223 -0
- package/src/components/view/column-edit.vue +850 -0
- package/src/components/view/column-select.vue +206 -0
- package/src/components/view/condition-edit.vue +164 -0
- package/src/components/view/filter-edit.vue +633 -0
- package/src/components/view/filter-setting.vue +126 -0
- package/src/components/view/form-setting-layout.vue +375 -0
- package/src/components/view/form-setting.vue +247 -0
- package/src/components/view/group-column.vue +104 -0
- package/src/components/view/group-method.vue +104 -0
- package/src/components/view/mixin.js +72 -0
- package/src/components/view/modal-form-filter.vue +319 -0
- package/src/components/view/modal-form-sort.vue +248 -0
- package/src/components/view/modal-form.vue +453 -0
- package/src/components/view/modal-table.vue +471 -0
- package/src/components/view/table-filter.vue +702 -0
- package/src/components/view/table-setting.vue +533 -0
- package/src/components/view/view-chart.vue +423 -0
- package/src/components/view/view-form-draggable.vue +837 -0
- package/src/components/view/view-form.vue +1444 -0
- package/src/components/view/view-table.vue +2261 -0
- package/src/components/workflow/flow-chart.vue +846 -0
- package/src/directive/focus.js +10 -0
- package/src/directive/tabHide.js +9 -0
- package/src/i18n/index.js +15 -0
- package/src/i18n/locale/en-US.js +1 -0
- package/src/i18n/locale/lang.js +1 -0
- package/src/i18n/locale/zh-CN.js +1 -0
- package/src/i18n/locale.js +102 -0
- package/src/index.js +222 -0
- package/src/layouts/basic-layout/header-breadcrumb/index.vue +122 -0
- package/src/layouts/basic-layout/header-collapse/index.vue +44 -0
- package/src/layouts/basic-layout/header-fullscreen/index.vue +19 -0
- package/src/layouts/basic-layout/header-i18n/index.vue +45 -0
- package/src/layouts/basic-layout/header-log/index.vue +41 -0
- package/src/layouts/basic-layout/header-logo/index.vue +23 -0
- package/src/layouts/basic-layout/header-notice/index.vue +218 -0
- package/src/layouts/basic-layout/header-reload/index.vue +21 -0
- package/src/layouts/basic-layout/header-search/index.vue +37 -0
- package/src/layouts/basic-layout/header-setting/index.vue +219 -0
- package/src/layouts/basic-layout/header-user/index.vue +175 -0
- package/src/layouts/basic-layout/i18n.js +50 -0
- package/src/layouts/basic-layout/index.vue +280 -0
- package/src/layouts/basic-layout/menu-head/index.vue +120 -0
- package/src/layouts/basic-layout/menu-head/title.vue +48 -0
- package/src/layouts/basic-layout/menu-side/index.vue +113 -0
- package/src/layouts/basic-layout/menu-side/menu-collapse.vue +76 -0
- package/src/layouts/basic-layout/menu-side/menu-item.vue +31 -0
- package/src/layouts/basic-layout/menu-side/menu-title.vue +56 -0
- package/src/layouts/basic-layout/menu-side/submenu.vue +31 -0
- package/src/layouts/basic-layout/mixins/click-item.js +21 -0
- package/src/layouts/basic-layout/mixins/sider-menu-badge.js +13 -0
- package/src/layouts/basic-layout/mixins/translate-title.js +11 -0
- package/src/layouts/basic-layout/tabs/index.vue +192 -0
- package/src/layouts/basic-layout/water-mark/index.vue +29 -0
- package/src/libs/lodop/index.js +145 -0
- package/src/libs/random_str.js +10 -0
- package/src/libs/request/index.js +158 -0
- package/src/libs/system/index.js +234 -0
- package/src/libs/util.cookies.js +44 -0
- package/src/libs/util.db.js +13 -0
- package/src/libs/util.js +55 -0
- package/src/libs/util.log.js +88 -0
- package/src/libs/water-mark.js +44 -0
- package/src/menu/header.js +20 -0
- package/src/menu/modules/dashboard.js +23 -0
- package/src/menu/sider.js +12 -0
- package/src/mixins/app.js +9 -0
- package/src/mixins/page.js +643 -0
- package/src/pages/account/login.vue +101 -0
- package/src/pages/common/home.vue +169 -0
- package/src/pages/common/task-form.vue +350 -0
- package/src/pages/common/todo.vue +31 -0
- package/src/pages/system/apiLog.vue +79 -0
- package/src/pages/system/applicationType.vue +182 -0
- package/src/pages/system/customPage.vue +62 -0
- package/src/pages/system/customTable.vue +98 -0
- package/src/pages/system/dict.vue +36 -0
- package/src/pages/system/dictType.vue +58 -0
- package/src/pages/system/entityView.vue +38 -0
- package/src/pages/system/error/404.vue +6 -0
- package/src/pages/system/extendColumn.vue +99 -0
- package/src/pages/system/formView.vue +136 -0
- package/src/pages/system/log.vue +55 -0
- package/src/pages/system/notice.vue +26 -0
- package/src/pages/system/openApi.vue +26 -0
- package/src/pages/system/openUser.vue +66 -0
- package/src/pages/system/organization.vue +98 -0
- package/src/pages/system/organizationType.vue +26 -0
- package/src/pages/system/permission.vue +175 -0
- package/src/pages/system/planJob.vue +40 -0
- package/src/pages/system/printTemplate.vue +48 -0
- package/src/pages/system/process.vue +79 -0
- package/src/pages/system/processType.vue +26 -0
- package/src/pages/system/role.vue +395 -0
- package/src/pages/system/rolePropertyEdit.vue +480 -0
- package/src/pages/system/sequenceSetting.vue +26 -0
- package/src/pages/system/systemData.vue +52 -0
- package/src/pages/system/tableView.vue +386 -0
- package/src/pages/system/taskQueue.vue +48 -0
- package/src/pages/system/user.vue +250 -0
- package/src/pages/template/processPage.vue +243 -0
- package/src/pages/template/reportPage.vue +66 -0
- package/src/pages/template/viewPage.vue +139 -0
- package/src/plugins/auth/index.js +21 -0
- package/src/plugins/error/index.js +31 -0
- package/src/plugins/index.js +24 -0
- package/src/plugins/sweetalert2/index.js +20 -0
- package/src/router/dynamic.js +183 -0
- package/src/router/index.js +84 -0
- package/src/setting.js +202 -0
- package/src/store/index.js +9 -0
- package/src/store/modules/admin/index.js +16 -0
- package/src/store/modules/admin/modules/account.js +103 -0
- package/src/store/modules/admin/modules/cache.js +119 -0
- package/src/store/modules/admin/modules/dataView.js +112 -0
- package/src/store/modules/admin/modules/db.js +231 -0
- package/src/store/modules/admin/modules/i18n.js +87 -0
- package/src/store/modules/admin/modules/layout.js +115 -0
- package/src/store/modules/admin/modules/loader.js +44 -0
- package/src/store/modules/admin/modules/log.js +77 -0
- package/src/store/modules/admin/modules/menu.js +338 -0
- package/src/store/modules/admin/modules/page.js +466 -0
- package/src/store/modules/admin/modules/user.js +96 -0
- package/src/store/modules/admin/modules/viewPage.js +34 -0
- package/src/styles/common.less +47 -0
- package/src/styles/css/default.css +510 -0
- package/src/styles/css/login.css +1217 -0
- package/src/styles/default/index.less +6 -0
- package/src/styles/font/demo.css +539 -0
- package/src/styles/font/demo_index.html +372 -0
- package/src/styles/font/icon-demo/demo.css +539 -0
- package/src/styles/font/icon-demo/demo_index.html +423 -0
- package/src/styles/font/icon-demo/iconfont.css +61 -0
- package/src/styles/font/icon-demo/iconfont.eot +0 -0
- package/src/styles/font/icon-demo/iconfont.js +1 -0
- package/src/styles/font/icon-demo/iconfont.svg +59 -0
- package/src/styles/font/icon-demo/iconfont.ttf +0 -0
- package/src/styles/font/icon-demo/iconfont.woff +0 -0
- package/src/styles/font/icon-demo/iconfont.woff2 +0 -0
- package/src/styles/font/iconfont.css +47 -0
- package/src/styles/font/iconfont.js +1 -0
- package/src/styles/font/iconfont.json +65 -0
- package/src/styles/font/iconfont.ttf +0 -0
- package/src/styles/font/iconfont.woff +0 -0
- package/src/styles/font/iconfont.woff2 +0 -0
- package/src/styles/font/ionicons.svg +870 -0
- package/src/styles/font/ionicons.ttf +0 -0
- package/src/styles/font/ionicons.woff +0 -0
- package/src/styles/font/ionicons.woff2 +0 -0
- package/src/styles/index.less +7 -0
- package/src/styles/layout/basic-layout/layout.less +527 -0
- package/src/styles/layout/basic-layout/menu.less +274 -0
- package/src/styles/layout/index.less +2 -0
- package/src/styles/setting.less +6 -0
- package/styleguide.config.js +22 -0
- package/test/api/barcode.js +50 -0
- package/test/api/inbound.js +47 -0
- package/test/api/interfaceLog.js +15 -0
- package/test/api/interfaceQueue.js +15 -0
- package/test/api/interfaceServer.js +29 -0
- package/test/api/movePlan.js +50 -0
- package/test/api/movePlanItem.js +13 -0
- package/test/api/moveType.js +22 -0
- package/test/api/openApiPermission.js +25 -0
- package/test/api/outbound.js +40 -0
- package/test/api/permission.js +34 -0
- package/test/api/rolePermission.js +17 -0
- package/test/api/user.js +40 -0
- package/test/api/viewColumn.js +16 -0
- package/test/api/warehouse.js +13 -0
- package/test/api/warehouseMoveType.js +18 -0
- package/test/main.js +55 -0
- package/test/package.js +33 -0
- package/test/pages/home/index.vue +22 -0
- package/test/pages/task/test.vue +28 -0
- package/test/pages/test/dataViewTest.vue +28 -0
- package/test/pages/test/logReport.vue +25 -0
- package/test/pages/test/testPage.vue +38 -0
- package/test/router/routes.js +88 -0
- package/test/setting.env.js +22 -0
- package/test/styles/css/custom.css +0 -0
- package/test/styles/css/login.css +1217 -0
- package/vite.config.js +72 -0
- package/vue.config.js +20 -0
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<title>iconfont Demo</title>
|
|
6
|
+
<link rel="shortcut icon" href="//img.alicdn.com/imgextra/i2/O1CN01ZyAlrn1MwaMhqz36G_!!6000000001499-73-tps-64-64.ico" type="image/x-icon"/>
|
|
7
|
+
<link rel="icon" type="image/svg+xml" href="//img.alicdn.com/imgextra/i4/O1CN01EYTRnJ297D6vehehJ_!!6000000008020-55-tps-64-64.svg"/>
|
|
8
|
+
<link rel="stylesheet" href="https://g.alicdn.com/thx/cube/1.3.2/cube.min.css">
|
|
9
|
+
<link rel="stylesheet" href="demo.css">
|
|
10
|
+
<link rel="stylesheet" href="iconfont.css">
|
|
11
|
+
<script src="iconfont.js"></script>
|
|
12
|
+
<!-- jQuery -->
|
|
13
|
+
<script src="https://a1.alicdn.com/oss/uploads/2018/12/26/7bfddb60-08e8-11e9-9b04-53e73bb6408b.js"></script>
|
|
14
|
+
<!-- 代码高亮 -->
|
|
15
|
+
<script src="https://a1.alicdn.com/oss/uploads/2018/12/26/a3f714d0-08e6-11e9-8a15-ebf944d7534c.js"></script>
|
|
16
|
+
<style>
|
|
17
|
+
.main .logo {
|
|
18
|
+
margin-top: 0;
|
|
19
|
+
height: auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.main .logo a {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.main .logo .sub-title {
|
|
28
|
+
margin-left: 0.5em;
|
|
29
|
+
font-size: 22px;
|
|
30
|
+
color: #fff;
|
|
31
|
+
background: linear-gradient(-45deg, #3967FF, #B500FE);
|
|
32
|
+
-webkit-background-clip: text;
|
|
33
|
+
-webkit-text-fill-color: transparent;
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
36
|
+
</head>
|
|
37
|
+
<body>
|
|
38
|
+
<div class="main">
|
|
39
|
+
<h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" target="_blank">
|
|
40
|
+
<img width="200" src="https://img.alicdn.com/imgextra/i3/O1CN01Mn65HV1FfSEzR6DKv_!!6000000000514-55-tps-228-59.svg">
|
|
41
|
+
|
|
42
|
+
</a></h1>
|
|
43
|
+
<div class="nav-tabs">
|
|
44
|
+
<ul id="tabs" class="dib-box">
|
|
45
|
+
<li class="dib active"><span>Unicode</span></li>
|
|
46
|
+
<li class="dib"><span>Font class</span></li>
|
|
47
|
+
<li class="dib"><span>Symbol</span></li>
|
|
48
|
+
</ul>
|
|
49
|
+
|
|
50
|
+
<a href="https://www.iconfont.cn/manage/index?manage_type=myprojects&projectId=1125611" target="_blank" class="nav-more">查看项目</a>
|
|
51
|
+
|
|
52
|
+
</div>
|
|
53
|
+
<div class="tab-container">
|
|
54
|
+
<div class="content unicode" style="display: block;">
|
|
55
|
+
<ul class="icon_lists dib-box">
|
|
56
|
+
|
|
57
|
+
<li class="dib">
|
|
58
|
+
<span class="icon i-icon"></span>
|
|
59
|
+
<div class="name">i18n</div>
|
|
60
|
+
<div class="code-name">&#xe8e9;</div>
|
|
61
|
+
</li>
|
|
62
|
+
|
|
63
|
+
<li class="dib">
|
|
64
|
+
<span class="icon i-icon"></span>
|
|
65
|
+
<div class="name">refresh</div>
|
|
66
|
+
<div class="code-name">&#xe7d1;</div>
|
|
67
|
+
</li>
|
|
68
|
+
|
|
69
|
+
<li class="dib">
|
|
70
|
+
<span class="icon i-icon"></span>
|
|
71
|
+
<div class="name">iconfont-radiobox</div>
|
|
72
|
+
<div class="code-name">&#xe61f;</div>
|
|
73
|
+
</li>
|
|
74
|
+
|
|
75
|
+
<li class="dib">
|
|
76
|
+
<span class="icon i-icon"></span>
|
|
77
|
+
<div class="name">notification</div>
|
|
78
|
+
<div class="code-name">&#xe69d;</div>
|
|
79
|
+
</li>
|
|
80
|
+
|
|
81
|
+
<li class="dib">
|
|
82
|
+
<span class="icon i-icon"></span>
|
|
83
|
+
<div class="name">full-screen</div>
|
|
84
|
+
<div class="code-name">&#xe743;</div>
|
|
85
|
+
</li>
|
|
86
|
+
|
|
87
|
+
<li class="dib">
|
|
88
|
+
<span class="icon i-icon"></span>
|
|
89
|
+
<div class="name">exit-full-screen</div>
|
|
90
|
+
<div class="code-name">&#xe657;</div>
|
|
91
|
+
</li>
|
|
92
|
+
|
|
93
|
+
<li class="dib">
|
|
94
|
+
<span class="icon i-icon"></span>
|
|
95
|
+
<div class="name">menu-unfold</div>
|
|
96
|
+
<div class="code-name">&#xe68b;</div>
|
|
97
|
+
</li>
|
|
98
|
+
|
|
99
|
+
<li class="dib">
|
|
100
|
+
<span class="icon i-icon"></span>
|
|
101
|
+
<div class="name">menu-fold</div>
|
|
102
|
+
<div class="code-name">&#xe600;</div>
|
|
103
|
+
</li>
|
|
104
|
+
|
|
105
|
+
</ul>
|
|
106
|
+
<div class="article markdown">
|
|
107
|
+
<h2 id="unicode-">Unicode 引用</h2>
|
|
108
|
+
<hr>
|
|
109
|
+
|
|
110
|
+
<p>Unicode 是字体在网页端最原始的应用方式,特点是:</p>
|
|
111
|
+
<ul>
|
|
112
|
+
<li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
|
|
113
|
+
<li>默认情况下不支持多色,直接添加多色图标会自动去色。</li>
|
|
114
|
+
</ul>
|
|
115
|
+
<blockquote>
|
|
116
|
+
<p>注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)</p>
|
|
117
|
+
</blockquote>
|
|
118
|
+
<p>Unicode 使用步骤如下:</p>
|
|
119
|
+
<h3 id="-font-face">第一步:拷贝项目下面生成的 <code>@font-face</code></h3>
|
|
120
|
+
<pre><code class="language-css"
|
|
121
|
+
>@font-face {
|
|
122
|
+
font-family: 'i-icon';
|
|
123
|
+
src: url('iconfont.woff2?t=1651052284018') format('woff2'),
|
|
124
|
+
url('iconfont.woff?t=1651052284018') format('woff'),
|
|
125
|
+
url('iconfont.ttf?t=1651052284018') format('truetype');
|
|
126
|
+
}
|
|
127
|
+
</code></pre>
|
|
128
|
+
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
|
|
129
|
+
<pre><code class="language-css"
|
|
130
|
+
>.i-icon {
|
|
131
|
+
font-family: "i-icon" !important;
|
|
132
|
+
font-size: 16px;
|
|
133
|
+
font-style: normal;
|
|
134
|
+
-webkit-font-smoothing: antialiased;
|
|
135
|
+
-moz-osx-font-smoothing: grayscale;
|
|
136
|
+
}
|
|
137
|
+
</code></pre>
|
|
138
|
+
<h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
|
|
139
|
+
<pre>
|
|
140
|
+
<code class="language-html"
|
|
141
|
+
><span class="i-icon">&#x33;</span>
|
|
142
|
+
</code></pre>
|
|
143
|
+
<blockquote>
|
|
144
|
+
<p>"i-icon" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p>
|
|
145
|
+
</blockquote>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="content font-class">
|
|
149
|
+
<ul class="icon_lists dib-box">
|
|
150
|
+
|
|
151
|
+
<li class="dib">
|
|
152
|
+
<span class="icon i-icon i-icon-i18n"></span>
|
|
153
|
+
<div class="name">
|
|
154
|
+
i18n
|
|
155
|
+
</div>
|
|
156
|
+
<div class="code-name">.i-icon-i18n
|
|
157
|
+
</div>
|
|
158
|
+
</li>
|
|
159
|
+
|
|
160
|
+
<li class="dib">
|
|
161
|
+
<span class="icon i-icon i-icon-refresh"></span>
|
|
162
|
+
<div class="name">
|
|
163
|
+
refresh
|
|
164
|
+
</div>
|
|
165
|
+
<div class="code-name">.i-icon-refresh
|
|
166
|
+
</div>
|
|
167
|
+
</li>
|
|
168
|
+
|
|
169
|
+
<li class="dib">
|
|
170
|
+
<span class="icon i-icon i-icon-record"></span>
|
|
171
|
+
<div class="name">
|
|
172
|
+
iconfont-radiobox
|
|
173
|
+
</div>
|
|
174
|
+
<div class="code-name">.i-icon-record
|
|
175
|
+
</div>
|
|
176
|
+
</li>
|
|
177
|
+
|
|
178
|
+
<li class="dib">
|
|
179
|
+
<span class="icon i-icon i-icon-notification"></span>
|
|
180
|
+
<div class="name">
|
|
181
|
+
notification
|
|
182
|
+
</div>
|
|
183
|
+
<div class="code-name">.i-icon-notification
|
|
184
|
+
</div>
|
|
185
|
+
</li>
|
|
186
|
+
|
|
187
|
+
<li class="dib">
|
|
188
|
+
<span class="icon i-icon i-icon-full-screen"></span>
|
|
189
|
+
<div class="name">
|
|
190
|
+
full-screen
|
|
191
|
+
</div>
|
|
192
|
+
<div class="code-name">.i-icon-full-screen
|
|
193
|
+
</div>
|
|
194
|
+
</li>
|
|
195
|
+
|
|
196
|
+
<li class="dib">
|
|
197
|
+
<span class="icon i-icon i-icon-exit-full-screen"></span>
|
|
198
|
+
<div class="name">
|
|
199
|
+
exit-full-screen
|
|
200
|
+
</div>
|
|
201
|
+
<div class="code-name">.i-icon-exit-full-screen
|
|
202
|
+
</div>
|
|
203
|
+
</li>
|
|
204
|
+
|
|
205
|
+
<li class="dib">
|
|
206
|
+
<span class="icon i-icon i-icon-menu-unfold"></span>
|
|
207
|
+
<div class="name">
|
|
208
|
+
menu-unfold
|
|
209
|
+
</div>
|
|
210
|
+
<div class="code-name">.i-icon-menu-unfold
|
|
211
|
+
</div>
|
|
212
|
+
</li>
|
|
213
|
+
|
|
214
|
+
<li class="dib">
|
|
215
|
+
<span class="icon i-icon i-icon-menu-fold"></span>
|
|
216
|
+
<div class="name">
|
|
217
|
+
menu-fold
|
|
218
|
+
</div>
|
|
219
|
+
<div class="code-name">.i-icon-menu-fold
|
|
220
|
+
</div>
|
|
221
|
+
</li>
|
|
222
|
+
|
|
223
|
+
</ul>
|
|
224
|
+
<div class="article markdown">
|
|
225
|
+
<h2 id="font-class-">font-class 引用</h2>
|
|
226
|
+
<hr>
|
|
227
|
+
|
|
228
|
+
<p>font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。</p>
|
|
229
|
+
<p>与 Unicode 使用方式相比,具有如下特点:</p>
|
|
230
|
+
<ul>
|
|
231
|
+
<li>相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。</li>
|
|
232
|
+
<li>因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。</li>
|
|
233
|
+
</ul>
|
|
234
|
+
<p>使用步骤如下:</p>
|
|
235
|
+
<h3 id="-fontclass-">第一步:引入项目下面生成的 fontclass 代码:</h3>
|
|
236
|
+
<pre><code class="language-html"><link rel="stylesheet" href="./iconfont.css">
|
|
237
|
+
</code></pre>
|
|
238
|
+
<h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
|
|
239
|
+
<pre><code class="language-html"><span class="i-icon i-icon-xxx"></span>
|
|
240
|
+
</code></pre>
|
|
241
|
+
<blockquote>
|
|
242
|
+
<p>"
|
|
243
|
+
i-icon" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p>
|
|
244
|
+
</blockquote>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
<div class="content symbol">
|
|
248
|
+
<ul class="icon_lists dib-box">
|
|
249
|
+
|
|
250
|
+
<li class="dib">
|
|
251
|
+
<svg class="icon svg-icon" aria-hidden="true">
|
|
252
|
+
<use xlink:href="#i-icon-i18n"></use>
|
|
253
|
+
</svg>
|
|
254
|
+
<div class="name">i18n</div>
|
|
255
|
+
<div class="code-name">#i-icon-i18n</div>
|
|
256
|
+
</li>
|
|
257
|
+
|
|
258
|
+
<li class="dib">
|
|
259
|
+
<svg class="icon svg-icon" aria-hidden="true">
|
|
260
|
+
<use xlink:href="#i-icon-refresh"></use>
|
|
261
|
+
</svg>
|
|
262
|
+
<div class="name">refresh</div>
|
|
263
|
+
<div class="code-name">#i-icon-refresh</div>
|
|
264
|
+
</li>
|
|
265
|
+
|
|
266
|
+
<li class="dib">
|
|
267
|
+
<svg class="icon svg-icon" aria-hidden="true">
|
|
268
|
+
<use xlink:href="#i-icon-record"></use>
|
|
269
|
+
</svg>
|
|
270
|
+
<div class="name">iconfont-radiobox</div>
|
|
271
|
+
<div class="code-name">#i-icon-record</div>
|
|
272
|
+
</li>
|
|
273
|
+
|
|
274
|
+
<li class="dib">
|
|
275
|
+
<svg class="icon svg-icon" aria-hidden="true">
|
|
276
|
+
<use xlink:href="#i-icon-notification"></use>
|
|
277
|
+
</svg>
|
|
278
|
+
<div class="name">notification</div>
|
|
279
|
+
<div class="code-name">#i-icon-notification</div>
|
|
280
|
+
</li>
|
|
281
|
+
|
|
282
|
+
<li class="dib">
|
|
283
|
+
<svg class="icon svg-icon" aria-hidden="true">
|
|
284
|
+
<use xlink:href="#i-icon-full-screen"></use>
|
|
285
|
+
</svg>
|
|
286
|
+
<div class="name">full-screen</div>
|
|
287
|
+
<div class="code-name">#i-icon-full-screen</div>
|
|
288
|
+
</li>
|
|
289
|
+
|
|
290
|
+
<li class="dib">
|
|
291
|
+
<svg class="icon svg-icon" aria-hidden="true">
|
|
292
|
+
<use xlink:href="#i-icon-exit-full-screen"></use>
|
|
293
|
+
</svg>
|
|
294
|
+
<div class="name">exit-full-screen</div>
|
|
295
|
+
<div class="code-name">#i-icon-exit-full-screen</div>
|
|
296
|
+
</li>
|
|
297
|
+
|
|
298
|
+
<li class="dib">
|
|
299
|
+
<svg class="icon svg-icon" aria-hidden="true">
|
|
300
|
+
<use xlink:href="#i-icon-menu-unfold"></use>
|
|
301
|
+
</svg>
|
|
302
|
+
<div class="name">menu-unfold</div>
|
|
303
|
+
<div class="code-name">#i-icon-menu-unfold</div>
|
|
304
|
+
</li>
|
|
305
|
+
|
|
306
|
+
<li class="dib">
|
|
307
|
+
<svg class="icon svg-icon" aria-hidden="true">
|
|
308
|
+
<use xlink:href="#i-icon-menu-fold"></use>
|
|
309
|
+
</svg>
|
|
310
|
+
<div class="name">menu-fold</div>
|
|
311
|
+
<div class="code-name">#i-icon-menu-fold</div>
|
|
312
|
+
</li>
|
|
313
|
+
|
|
314
|
+
</ul>
|
|
315
|
+
<div class="article markdown">
|
|
316
|
+
<h2 id="symbol-">Symbol 引用</h2>
|
|
317
|
+
<hr>
|
|
318
|
+
|
|
319
|
+
<p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
|
|
320
|
+
这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:</p>
|
|
321
|
+
<ul>
|
|
322
|
+
<li>支持多色图标了,不再受单色限制。</li>
|
|
323
|
+
<li>通过一些技巧,支持像字体那样,通过 <code>font-size</code>, <code>color</code> 来调整样式。</li>
|
|
324
|
+
<li>兼容性较差,支持 IE9+,及现代浏览器。</li>
|
|
325
|
+
<li>浏览器渲染 SVG 的性能一般,还不如 png。</li>
|
|
326
|
+
</ul>
|
|
327
|
+
<p>使用步骤如下:</p>
|
|
328
|
+
<h3 id="-symbol-">第一步:引入项目下面生成的 symbol 代码:</h3>
|
|
329
|
+
<pre><code class="language-html"><script src="./iconfont.js"></script>
|
|
330
|
+
</code></pre>
|
|
331
|
+
<h3 id="-css-">第二步:加入通用 CSS 代码(引入一次就行):</h3>
|
|
332
|
+
<pre><code class="language-html"><style>
|
|
333
|
+
.icon {
|
|
334
|
+
width: 1em;
|
|
335
|
+
height: 1em;
|
|
336
|
+
vertical-align: -0.15em;
|
|
337
|
+
fill: currentColor;
|
|
338
|
+
overflow: hidden;
|
|
339
|
+
}
|
|
340
|
+
</style>
|
|
341
|
+
</code></pre>
|
|
342
|
+
<h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3>
|
|
343
|
+
<pre><code class="language-html"><svg class="icon" aria-hidden="true">
|
|
344
|
+
<use xlink:href="#icon-xxx"></use>
|
|
345
|
+
</svg>
|
|
346
|
+
</code></pre>
|
|
347
|
+
</div>
|
|
348
|
+
</div>
|
|
349
|
+
|
|
350
|
+
</div>
|
|
351
|
+
</div>
|
|
352
|
+
<script>
|
|
353
|
+
$(document).ready(function () {
|
|
354
|
+
$('.tab-container .content:first').show()
|
|
355
|
+
|
|
356
|
+
$('#tabs li').click(function (e) {
|
|
357
|
+
var tabContent = $('.tab-container .content')
|
|
358
|
+
var index = $(this).index()
|
|
359
|
+
|
|
360
|
+
if ($(this).hasClass('active')) {
|
|
361
|
+
return
|
|
362
|
+
} else {
|
|
363
|
+
$('#tabs li').removeClass('active')
|
|
364
|
+
$(this).addClass('active')
|
|
365
|
+
|
|
366
|
+
tabContent.hide().eq(index).fadeIn()
|
|
367
|
+
}
|
|
368
|
+
})
|
|
369
|
+
})
|
|
370
|
+
</script>
|
|
371
|
+
</body>
|
|
372
|
+
</html>
|