|
@@ -252,9 +252,9 @@ export default {
|
|
|
},
|
|
|
waterfallImgWidth() {
|
|
|
if (window.innerWidth < this.$oneRemToPx * 40) {
|
|
|
- return (window.innerWidth - this.gutterWidth - this.$oneRemToPx * 0.91 * 2) / 2 - 1 // 考虑到小数取整的误差,最后要-1以保证能放下两列。
|
|
|
+ return (window.innerWidth - this.gutterWidth - this.$oneRemToPx * 0.91 * 2) / 2 - 1 // 考虑到小数计算取整的误差,最后要减去一些宽度以保证能放下两列。
|
|
|
} else {
|
|
|
- return (this.$oneRemToPx * 40 - this.gutterWidth - this.$oneRemToPx * 0.91 * 2) / 2 - 1 // 考虑到小数取整的误差,最后要-1以保证能放下两列。
|
|
|
+ return (this.$oneRemToPx * 40 - this.gutterWidth - this.$oneRemToPx * 0.91 * 2) / 2 - 1 // 考虑到小数取整的误差,最后要减去一些宽度以保证能放下两列。
|
|
|
}
|
|
|
},
|
|
|
gutterWidth() {
|