소스 검색

fix: radius and group typo (#92)

btea 4 년 전
부모
커밋
8c05e210aa

+ 2 - 2
packages/semi-foundation/anchor/anchor.scss

@@ -27,7 +27,7 @@ $module: #{$prefix}-anchor;
             position: absolute;
             top: 0;
             width: $width-anchor_slide_default;
-            border-radius: $radis-anchor_slide;
+            border-radius: $radius-anchor_slide;
 
             &-active {
                 display: inline-block;
@@ -56,7 +56,7 @@ $module: #{$prefix}-anchor;
             width: $width-anchor_slide_default;
             height: 100%;
             background-color: $color-anchor_slide_default-bg-default;
-            border-radius: $radis-anchor_slide;
+            border-radius: $radius-anchor_slide;
             content: ' ';
         }
     }

+ 1 - 1
packages/semi-foundation/anchor/variables.scss

@@ -24,4 +24,4 @@ $height-anchor_slide_default: 20px; // 选项高度 - 默认
 $height-anchor_slide_small: 16px; // 选项高度 - 小尺寸
 
 // Radius
-$radis-anchor_slide: 1px; // 滑轨圆角
+$radius-anchor_slide: 1px; // 滑轨圆角

+ 2 - 2
packages/semi-foundation/checkbox/checkboxFoundation.ts

@@ -57,9 +57,9 @@ class CheckboxFoundation<P = Record<string, any>, S = Record<string, any>> exten
             return;
         }
 
-        const isInGrpoup = this._adapter.getIsInGroup();
+        const isInGroup = this._adapter.getIsInGroup();
 
-        if (isInGrpoup) {
+        if (isInGroup) {
             const groupDisabled = this._adapter.getGroupDisabled();
             if (!groupDisabled) {
                 this.handleChangeInGroup(e);