ソースを参照

fix(rate): props allow-half bug

richard1015 4 年 前
コミット
73da64e08e
1 ファイル変更7 行追加1 行削除
  1. 7 1
      src/packages/__VUE/rate/index.scss

+ 7 - 1
src/packages/__VUE/rate/index.scss

@@ -16,10 +16,16 @@
       }
       &--half {
         position: absolute;
-        width: 50%;
+        width: 50% !important;
         left: 0;
         top: 0;
         overflow: hidden;
+
+        &::before {
+          top: 0;
+          left: 0;
+          transform: translate(0, 0);
+        }
       }
     }
   }