mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(Col): remove unnecessary ternary operator (#6232)
This commit is contained in:
parent
14530f3709
commit
3e231f1ab5
@ -48,7 +48,7 @@ export default createComponent({
|
||||
|
||||
group.forEach((item, index) => {
|
||||
if (index === 0) {
|
||||
spaces.push({ right: group.length > 1 ? averagePadding : 0 });
|
||||
spaces.push({ right: averagePadding });
|
||||
} else {
|
||||
const left = gutter - spaces[item - 1].right;
|
||||
const right = averagePadding - left;
|
||||
|
Loading…
x
Reference in New Issue
Block a user