Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index-list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Component({
const query = this.createSelectorQuery()
query.selectAll('.index_list_item').boundingClientRect(rects => {
const result: any = rects
data._tops = result.map(item => item.top)
data._tops = result.map(item => Math.floor(item.top))
}).exec()
// 计算右侧字母栏小区块的高度等信息
query.select('.anchor-list').boundingClientRect(rect => {
Expand Down