diff --git a/routes/_components/pseudoVirtualList/PseudoVirtualListLazyItem.html b/routes/_components/pseudoVirtualList/PseudoVirtualListLazyItem.html index 0e3046f..7b6a6ac 100644 --- a/routes/_components/pseudoVirtualList/PseudoVirtualListLazyItem.html +++ b/routes/_components/pseudoVirtualList/PseudoVirtualListLazyItem.html @@ -17,8 +17,10 @@ async oncreate() { let makeProps = this.get('makeProps') let key = this.get('key') - let props = await makeProps(key) - this.set({ props: props }) + if (makeProps) { + let props = await makeProps(key) + this.set({props: props}) + } }, components: { PseudoVirtualListItem diff --git a/routes/_components/virtualList/VirtualListLazyItem.html b/routes/_components/virtualList/VirtualListLazyItem.html index a649bff..b01231a 100644 --- a/routes/_components/virtualList/VirtualListLazyItem.html +++ b/routes/_components/virtualList/VirtualListLazyItem.html @@ -12,8 +12,10 @@ async oncreate() { let makeProps = this.get('makeProps') let key = this.get('key') - let props = await makeProps(key) - this.set({ props: props }) + if (makeProps) { + let props = await makeProps(key) + this.set({props: props}) + } }, components: { VirtualListItem