瀏覽代碼

临时解决less编译出错问题

Syntax Error: TypeError: Cannot set properties of undefined (setting 'parent')
yangll 4 年之前
父節點
當前提交
f5ec397f5f
共有 1 個文件被更改,包括 4 次插入2 次删除
  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;
         }
-      }
+      //}
     }
   }
 }