Skip to content
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
4 changes: 2 additions & 2 deletions src/recycle-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Component({
multipleSlots: true // 在组件定义时的选项中启用多slot支持
},
relations: {
'../recycle-item/recycle-item': {
'./recycle-item': {
type: 'child', // 关联的目标节点应为子节点
linked(target) {
// 检查第一个的尺寸就好了吧
if (!this._hasCheckSize) {
this._hasCheckSize = true
const size = this.boundingClientRect(this._pos.beginIndex)
const size = this._pos && this.boundingClientRect(this._pos.beginIndex)
if (!size) {
return
}
Expand Down