WIP(shop): backgrounds appear

This commit is contained in:
Sabe Jones
2024-02-16 17:58:11 -06:00
parent 63e7ace693
commit cbfeb18517
3 changed files with 65 additions and 7 deletions

View File

@@ -69,6 +69,9 @@ export default {
noItemsLabel: {
type: String,
},
maxItemsPerRow: {
type: Number,
},
},
data () {
return {
@@ -80,6 +83,9 @@ export default {
},
computed: {
itemsPerRow () {
if (this.maxItemsPerRow > 0) {
return this.maxItemsPerRow;
}
return Math.floor(this.currentWidth / (this.itemWidth + this.itemMargin));
},
},