mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-26 11:36:33 +08:00
fix(checkbox): set a 12px icon size style bug (#2105)
This commit is contained in:
parent
1a3332d36c
commit
602fbfb7b4
@ -16,7 +16,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__icon {
|
&__icon {
|
||||||
display: block;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
|
@ -24,7 +24,7 @@ VantComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted: function() {
|
mounted() {
|
||||||
this.updateStyle();
|
this.updateStyle();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -34,12 +34,13 @@ VantComponent({
|
|||||||
this.jumpLink();
|
this.jumpLink();
|
||||||
},
|
},
|
||||||
updateStyle() {
|
updateStyle() {
|
||||||
const parent = this.parent;
|
const { parent } = this;
|
||||||
const { children = [] } = parent;
|
const { children = [] } = parent;
|
||||||
const index = children.indexOf(this);
|
const index = children.indexOf(this);
|
||||||
const length = children.length;
|
const { length } = children;
|
||||||
let isFirst = false, isLast = false;
|
let isFirst = false;
|
||||||
if ( index === 0 ) {
|
let isLast = false;
|
||||||
|
if (index === 0) {
|
||||||
isFirst = true;
|
isFirst = true;
|
||||||
}
|
}
|
||||||
if (index === length - 1) {
|
if (index === length - 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user