ソースを参照

fix: css丢失

lanjianrong 5 年 前
コミット
1245f71f71
3 ファイル変更11 行追加11 行削除
  1. 0 5
      src/global.less
  2. 5 0
      src/layouts/BasicLayout.less
  3. 6 6
      src/pages/Customer/Company/index.jsx

+ 0 - 5
src/global.less

@@ -104,8 +104,3 @@ input:-webkit-autofill:active {
 .card-group {
   box-shadow: 0 0 13px 0 rgba(74, 53, 107, 8%);
 }
-
-.ant-pro-top-nav-header-logo h1{
-  font-size: 18px !important;
-  font-weight: 600 !important;
-}

+ 5 - 0
src/layouts/BasicLayout.less

@@ -8,6 +8,11 @@
     padding: 0;
   }
 
+  :global(.ant-pro-top-nav-header-logo h1) {
+    font-weight: 600;
+    font-size: 18px;
+  }
+
   // :global(.ant-pro-basicLayout .ant-layout-header.ant-pro-fixed-header) {
   //   background-color: linear-gradient(to right, #584475 0%, #7c62a4 50%, #7c62a4 50%, #584475 100%);
   // }

+ 6 - 6
src/pages/Customer/Company/index.jsx

@@ -188,7 +188,7 @@ const Company = props => {
           {record.tagIds.map(item => (
             <Tooltip title={personTags.find(i => i.id === item)?.name} key={record.id + item}>
               <span
-                className="w-12px h-12px inline-block rounded-1/2 zh-mg-right-3"
+                className="w-12px h-12px inline-block rounded-1/2 mr-1"
                 style={{ backgroundColor: personTagColorMap[item] }}
               />
             </Tooltip>
@@ -200,7 +200,7 @@ const Company = props => {
             tagColumn={TagDataTypeEnum.COMPANY}
             checkCallBack={refreshData}
             modeType={LabelModeType.column}>
-            <Add size="20" fill="#868e96" className="zh-pointer" />
+            <Add theme="filled" size="20" fill="#868e96" className="cursor-pointer" />
           </PersonLabel>
         </div>
       )
@@ -219,12 +219,12 @@ const Company = props => {
         showArrow: true
       },
       render: (_, record) => (
-        <div className="zh-align-center zh-flex-wrap">
+        <div className="flex items-center flex-wrap">
           {record.tagCooperationIds.map(item => (
             <Tooltip title={teamTags.find(i => i.id === item)?.name} key={record.id + item}>
               <span
                 key={record.id + item}
-                className="w-12px h-12px inline-block zh-mg-right-3"
+                className="w-12px h-12px inline-block mr-1"
                 style={{ backgroundColor: teamTagColorMap[item] }}
               />
             </Tooltip>
@@ -236,7 +236,7 @@ const Company = props => {
             tagColumn={TagDataTypeEnum.COMPANY}
             checkCallBack={refreshData}
             modeType={LabelModeType.column}>
-            <Add theme="filled" size="20" fill="#868e96" className="zh-pointer" />
+            <Add theme="filled" size="20" fill="#868e96" className="cursor-pointer" />
           </PersonLabel>
         </div>
       )
@@ -402,7 +402,7 @@ const Company = props => {
                 {tagState.tagCooperationIds.map(item => (
                   <span
                     key={item}
-                    className="w-12px h-12px inline-block zh-mg-right-3"
+                    className="w-12px h-12px inline-block mr-1"
                     style={{ backgroundColor: teamTagColorMap[item] }}
                   />
                 ))}