Browse Source

Pull request #3042: BI-112711 fix:单选按钮的选中视觉不对

Merge in VISUAL/fineui from ~TREECAT/fineui:master to master

* commit '6f1a24f3a301c2e6de7c8deded23c333bffb4f32':
  BI-112711 fix:单选按钮的选中视觉不对
es6
treecat-罗群 2 years ago
parent
commit
4cc16f5675
  1. 8
      src/base/single/input/radio/radio.js
  2. 6
      src/less/base/single/input/radio.less

8
src/base/single/input/radio/radio.js

@ -9,10 +9,10 @@ BI.Radio = BI.inherit(BI.BasicButton, {
baseCls: "bi-radio",
selected: false,
handler: BI.emptyFn,
width: 14,
height: 14,
iconWidth: 14,
iconHeight: 14,
width: 16,
height: 16,
iconWidth: 16,
iconHeight: 16,
},
render: function () {

6
src/less/base/single/input/radio.less

@ -18,13 +18,13 @@
border-color: @color-bi-border-hover-active-radio;
background-color: @color-bi-background-active-radio;
&:after {
width: 6px;
height: 6px;
width: 8px;
height: 8px;
display: table;
position: absolute;
top: 50%;
left: 50%;
.border-radius(3px);
.border-radius(4px);
background-color: @color-bi-background-active-radio-content;
.transform(translate(-50%, -50%));
@transition: all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;

Loading…
Cancel
Save