Ver código fonte

fix: 排行榜原引用iconfont的icon现迁移至iconpark

lanjianrong 4 anos atrás
pai
commit
ff943a3ec5

+ 1 - 1
config/defaultSettings.js

@@ -8,7 +8,7 @@ const proSettings = {
   colorWeak: false,
   title: 'CLD.V2',
   pwa: false,
-  iconfontUrl: '//at.alicdn.com/t/font_2486255_t3rd4sro9z.js',
+  iconfontUrl: '//at.alicdn.com/t/font_2486255_ue9i7q0sf5e.js',
   splitMenus: true
 }
 export default proSettings

+ 5 - 1
src/global.less

@@ -13,7 +13,11 @@ body,
   max-height: 100vh;
   overflow-y: hidden;
 }
-
+.ant-pro-basicLayout-content {
+  max-height: 100%;
+  overscroll-behavior: none;
+  overflow: hidden;
+}
 // .ant-menu-submenu-selected .ant-menu-submenu-title {
 //   background: #595284;
 //   border-left: 3px solid #886ab5;

+ 3 - 4
src/pages/Workbench/Dashboard/components/LeaderBoard.jsx

@@ -1,7 +1,7 @@
 import ProTable from '@ant-design/pro-table'
 import { Select, Card } from 'antd'
-import Iconfont from '@/components/SvgIcon'
 import React, { useState, useMemo } from 'react'
+import { Trophy } from '@icon-park/react'
 
 const { Option } = Select
 
@@ -31,7 +31,7 @@ const LeaderBoard = ({ loading = false, dataList = [] }) => {
         render: (_, __, index) =>
           index + 1 <= 3 ? (
             <span className={colorMap[index + 1]}>
-              <Iconfont type="icon-trophy" />
+              <Trophy />
             </span>
           ) : null
       },
@@ -115,8 +115,7 @@ const LeaderBoard = ({ loading = false, dataList = [] }) => {
       <Option value="回款金额">回款金额</Option> */}
           </Select>
         </div>
-      }
-    >
+      }>
       <div className="text-center border border-x-0 p-2">{opMap[activeOp]}排行榜</div>
       <ProTable
         border={true}

+ 3 - 4
src/pages/Workbench/Dashboard/components/SoftLeaderboard.jsx

@@ -1,7 +1,7 @@
 import ProTable from '@ant-design/pro-table'
 import { Select, Card } from 'antd'
-import Iconfont from '@/components/SvgIcon'
 import React, { useState, useMemo } from 'react'
+import { Trophy } from '@icon-park/react'
 
 const { Option } = Select
 
@@ -26,7 +26,7 @@ const SoftLeaderboard = ({ loading = false, productLeaderBoard = [] }) => {
         render: (_, __, index) =>
           index + 1 <= 3 ? (
             <span className={colorMap[index + 1]}>
-              <Iconfont type="icon-trophy" />
+              <Trophy />
             </span>
           ) : null
       },
@@ -85,8 +85,7 @@ const SoftLeaderboard = ({ loading = false, productLeaderBoard = [] }) => {
             <Option value="soft">软件锁</Option>
           </Select>
         </div>
-      }
-    >
+      }>
       <div className="text-center border border-x-0 p-2">{opMap[activeOp]}排行榜</div>
       <div className="">
         <ProTable