Explorar el Código

临时解决less编译出错问题

Syntax Error: TypeError: Cannot set properties of undefined (setting 'parent')
yangll hace 4 años
padre
commit
f5ec397f5f
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  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;
         }
-      }
+      //}
     }
   }
 }