From ade0f6745efa532d9055d6b849d246d18d389698 Mon Sep 17 00:00:00 2001 From: lb Date: Mon, 19 Feb 2024 09:41:10 +0800 Subject: [PATCH] update special equipment basic pages --- .../specialEquipment/basic/FireFighthing.vue | 2 +- src/views/specialEquipment/basic/Manage.vue | 2 +- src/views/specialEquipment/basic/Safety.vue | 4 +- .../components/EquipmentDrawer copy.vue | 0 .../components/firefightingDrawer.vue | 508 +++++++++++++++++ .../components/manageDrawer.vue | 509 ++++++++++++++++++ .../components/manageDrawerForm.vue | 228 ++++++++ .../components/safetyDrawer.vue | 509 ++++++++++++++++++ .../maintain/iconfont/demo_index.html | 306 ----------- 9 files changed, 1757 insertions(+), 311 deletions(-) delete mode 100644 src/views/specialEquipment/components/EquipmentDrawer copy.vue create mode 100644 src/views/specialEquipment/components/firefightingDrawer.vue create mode 100644 src/views/specialEquipment/components/manageDrawer.vue create mode 100644 src/views/specialEquipment/components/manageDrawerForm.vue create mode 100644 src/views/specialEquipment/components/safetyDrawer.vue delete mode 100644 src/views/specialEquipment/maintain/iconfont/demo_index.html diff --git a/src/views/specialEquipment/basic/FireFighthing.vue b/src/views/specialEquipment/basic/FireFighthing.vue index 28cc03c4..e7cf21db 100644 --- a/src/views/specialEquipment/basic/FireFighthing.vue +++ b/src/views/specialEquipment/basic/FireFighthing.vue @@ -116,7 +116,7 @@ + + diff --git a/src/views/specialEquipment/components/manageDrawer.vue b/src/views/specialEquipment/components/manageDrawer.vue new file mode 100644 index 00000000..b43981b0 --- /dev/null +++ b/src/views/specialEquipment/components/manageDrawer.vue @@ -0,0 +1,509 @@ + + + + + + + + diff --git a/src/views/specialEquipment/components/manageDrawerForm.vue b/src/views/specialEquipment/components/manageDrawerForm.vue new file mode 100644 index 00000000..13eac654 --- /dev/null +++ b/src/views/specialEquipment/components/manageDrawerForm.vue @@ -0,0 +1,228 @@ + + + + + + + diff --git a/src/views/specialEquipment/components/safetyDrawer.vue b/src/views/specialEquipment/components/safetyDrawer.vue new file mode 100644 index 00000000..55cfb3ce --- /dev/null +++ b/src/views/specialEquipment/components/safetyDrawer.vue @@ -0,0 +1,509 @@ + + + + + + + + diff --git a/src/views/specialEquipment/maintain/iconfont/demo_index.html b/src/views/specialEquipment/maintain/iconfont/demo_index.html deleted file mode 100644 index 348d9b91..00000000 --- a/src/views/specialEquipment/maintain/iconfont/demo_index.html +++ /dev/null @@ -1,306 +0,0 @@ - - - - - iconfont Demo - - - - - - - - - - - - - -
-

- - -

- -
-
-
    - -
  • - -
    downward
    -
    
    -
  • - -
  • - -
    upward
    -
    
    -
  • - -
  • - -
    detail
    -
    
    -
  • - -
  • - -
    edit
    -
    
    -
  • - -
  • - -
    delete
    -
    
    -
  • - -
-
-

Unicode 引用

-
- -

Unicode 是字体在网页端最原始的应用方式,特点是:

-
    -
  • 支持按字体的方式去动态调整图标大小,颜色等等。
  • -
  • 默认情况下不支持多色,直接添加多色图标会自动去色。
  • -
-
-

注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)

-
-

Unicode 使用步骤如下:

-

第一步:拷贝项目下面生成的 @font-face

-
@font-face {
-  font-family: 'iconfont';
-  src: url('iconfont.eot?t=1689233106339'); /* IE9 */
-  src: url('iconfont.eot?t=1689233106339#iefix') format('embedded-opentype'), /* IE6-IE8 */
-       url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAARgAAsAAAAACcAAAAQUAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDKAqGSIUsATYCJAMYCw4ABCAFhGcHVBtUCMiuMG7hiaIkox1FaBhxvd1fpwAN4YKo1v7tWTr8hBRkBQgO7yqKUJKPUKzDjkixjn7/q0vlANCkEHCJtsMvx2eQn04h5rHEE8593TK2y1SC5nbvNG5gqgZBNEWTqFUQLGVFNnVu1TjyMm3SafEsC3y0myW12KdEh2x+deP/zzHTJeG3AVBm4lrnAxpQN0US7s3ijuSE6Jbh1U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3IxhKhdWpMqCYDgrTy7vZAAsuTUsLm65IOlWIQBlp47PUS9wAhBgHOFGixYgVJx7+dtqutZuY1eXTvXYncJOkOF1Wicd+CnBACA==') format('woff2'),
-       url('iconfont.woff?t=1689233106339') format('woff'),
-       url('iconfont.ttf?t=1689233106339') format('truetype'),
-       url('iconfont.svg?t=1689233106339#iconfont') format('svg');
-}
-
-

第二步:定义使用 iconfont 的样式

-
.iconfont {
-  font-family: "iconfont" !important;
-  font-size: 16px;
-  font-style: normal;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-

第三步:挑选相应图标并获取字体编码,应用于页面

-
-<span class="iconfont">&#x33;</span>
-
-
-

"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

-
-
-
-
-
    - -
  • - -
    - downward -
    -
    .icon-downward -
    -
  • - -
  • - -
    - upward -
    -
    .icon-upward -
    -
  • - -
  • - -
    - detail -
    -
    .icon-detail -
    -
  • - -
  • - -
    - edit -
    -
    .icon-edit -
    -
  • - -
  • - -
    - delete -
    -
    .icon-delete -
    -
  • - -
-
-

font-class 引用

-
- -

font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。

-

与 Unicode 使用方式相比,具有如下特点:

-
    -
  • 相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。
  • -
  • 因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。
  • -
-

使用步骤如下:

-

第一步:引入项目下面生成的 fontclass 代码:

-
<link rel="stylesheet" href="./iconfont.css">
-
-

第二步:挑选相应图标并获取类名,应用于页面:

-
<span class="iconfont icon-xxx"></span>
-
-
-

" - iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

-
-
-
-
-
    - -
  • - -
    downward
    -
    #icon-downward
    -
  • - -
  • - -
    upward
    -
    #icon-upward
    -
  • - -
  • - -
    detail
    -
    #icon-detail
    -
  • - -
  • - -
    edit
    -
    #icon-edit
    -
  • - -
  • - -
    delete
    -
    #icon-delete
    -
  • - -
-
-

Symbol 引用

-
- -

这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章 - 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:

-
    -
  • 支持多色图标了,不再受单色限制。
  • -
  • 通过一些技巧,支持像字体那样,通过 font-size, color 来调整样式。
  • -
  • 兼容性较差,支持 IE9+,及现代浏览器。
  • -
  • 浏览器渲染 SVG 的性能一般,还不如 png。
  • -
-

使用步骤如下:

-

第一步:引入项目下面生成的 symbol 代码:

-
<script src="./iconfont.js"></script>
-
-

第二步:加入通用 CSS 代码(引入一次就行):

-
<style>
-.icon {
-  width: 1em;
-  height: 1em;
-  vertical-align: -0.15em;
-  fill: currentColor;
-  overflow: hidden;
-}
-</style>
-
-

第三步:挑选相应图标并获取类名,应用于页面:

-
<svg class="icon" aria-hidden="true">
-  <use xlink:href="#icon-xxx"></use>
-</svg>
-
-
-
- -
-
- - -