mirror of
https://github.com/youzan/vant.git
synced 2026-03-02 02:04:16 +08:00
chore(Col): remove unnecessary ternary operator (#6232)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user