feat(content, reorder-group, header, footer, infinite-scroll, refresher): add custom scroll target to improve compatibility with virtual scroll (#24883)

Resolves #23437
This commit is contained in:
Sean Perkins
2022-03-15 11:47:46 -04:00
committed by GitHub
parent 171020e9d2
commit 2a438da010
38 changed files with 1303 additions and 176 deletions

View File

@ -299,7 +299,7 @@ Type: `Promise<void>`
This method marks a subset of items as dirty, so they can be re-rendered. Items should be marked as
dirty any time the content or their style changes.
The subset of items to be updated can are specifing by an offset and a length.
The subset of items to be updated can are specifying by an offset and a length.
#### Returns

View File

@ -195,7 +195,7 @@ export class VirtualScroll implements ComponentInterface {
* This method marks a subset of items as dirty, so they can be re-rendered. Items should be marked as
* dirty any time the content or their style changes.
*
* The subset of items to be updated can are specifing by an offset and a length.
* The subset of items to be updated can are specifying by an offset and a length.
*/
@Method()
async checkRange(offset: number, len = -1) {
@ -443,7 +443,7 @@ export class VirtualScroll implements ComponentInterface {
}
}
const VirtualProxy: FunctionalComponent<{dom: VirtualNode[]}> = ({ dom }, children, utils) => {
const VirtualProxy: FunctionalComponent<{ dom: VirtualNode[] }> = ({ dom }, children, utils) => {
return utils.map(children, (child, i) => {
const node = dom[i];
const vattrs = child.vattrs || {};