mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
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:
@ -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
|
||||
|
||||
|
@ -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 || {};
|
||||
|
Reference in New Issue
Block a user