瀏覽代碼

Merge pull request #14184 from ohhoney1/cnjs-branch

Radio: refine style
Zhi Cun 6 年之前
父節點
當前提交
653f0d4c0d
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      packages/theme-chalk/src/radio.scss

+ 3 - 2
packages/theme-chalk/src/radio.scss

@@ -13,6 +13,7 @@
   white-space: nowrap;
   outline: none;
   font-size: $--font-size-base;
+  margin-right: 30px;
   @include utils-user-select(none);
 
   @include when(bordered) {
@@ -79,8 +80,8 @@
     }
   }
 
-  & + .el-radio {
-    margin-left: 30px;
+  &:last-child {
+    margin-right: 0;
   }
 
   @include e(input) {