Procházet zdrojové kódy

临时解决less编译出错问题

Syntax Error: TypeError: Cannot set properties of undefined (setting 'parent')
yangll před 4 roky
rodič
revize
f5ec397f5f
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4 2
      src/components/NumberInfo/index.less

+ 4 - 2
src/components/NumberInfo/index.less

@@ -42,14 +42,16 @@
         transform: scale(0.82);
         margin-left: 4px;
       }
-      :global {
+      // FIXME 添加 global会导致编译失败
+      // Syntax Error: TypeError: Cannot set properties of undefined (setting 'parent')
+      //:global {
         .anticon-caret-up {
           color: @red-6;
         }
         .anticon-caret-down {
           color: @green-6;
         }
-      }
+      //}
     }
   }
 }