瀏覽代碼

feat: 修改顶部搜索图标为字体图标

zhouyuhao 1 年之前
父節點
當前提交
ef7f633074
共有 2 個文件被更改,包括 5 次插入4 次删除
  1. 0 1
      package.json
  2. 5 3
      src/views/Layout/src/components/Header/HeaderView.vue

+ 0 - 1
package.json

@@ -27,7 +27,6 @@
     "echarts": "^5.5.1",
     "element-plus": "^2.8.1",
     "exceljs": "^4.4.0",
-    "js-md5": "^0.8.3",
     "leaflet": "^1.9.4",
     "lodash": "^4.17.21",
     "mitt": "^3.0.1",

+ 5 - 3
src/views/Layout/src/components/Header/HeaderView.vue

@@ -1,5 +1,4 @@
 <script setup lang="ts">
-import { Search } from '@element-plus/icons-vue'
 import DownloadKLNPortal from './components/DownloadKLNPortal.vue'
 import ChangePasswordDialog from './components/ChangePasswordDialog.vue'
 import LogoutDialog from './components/LogoutDialog.vue'
@@ -118,8 +117,11 @@ const handleLogin = () => {
         size="large"
         @keyup.enter="handleSearch"
         placeholder="Search a reference number to see shipment details"
-        :prefix-icon="Search"
-      />
+      >
+        <template #prefix>
+          <span style="margin-top: -1px" class="font_family icon-icon_search_b"></span>
+        </template>
+      </el-input>
       <!-- <span class="font_family icon-icon_notice_b" style="font-size: 18px"></span>
       <span class="font_family icon-icon_language_b" style="font-size: 16px"></span> -->