opt: 优化 ItemList 组件样式,调整支付页面布局

This commit is contained in:
RockYang
2023-11-11 22:11:04 +08:00
parent 8a470b1038
commit 51407abe44
4 changed files with 77 additions and 69 deletions

View File

@@ -47,7 +47,7 @@ onMounted(() => {
const computeSize = () => {
const w = container.value.offsetWidth - 8 // 减去滚动条的宽度
let cols = Math.floor(w / props.width)
itemWidth.value = Math.ceil(w / cols) - 1
itemWidth.value = Math.ceil(w / cols)
}
window.onresize = () => {