IterableChanges
本对象描述自上次调用 IterableDiffer#diff()
以来 Iterable
集合中的变更。
An object describing the changes in the Iterable
collection since last time IterableDiffer#diff()
was invoked.
interface IterableChanges<V> {
forEachItem(fn: (record: IterableChangeRecord<V>) => void): void
forEachOperation(fn: (record: IterableChangeRecord<V>, previousIndex: number, currentIndex: number) => void): void
forEachPreviousItem(fn: (record: IterableChangeRecord<V>) => void): void
forEachAddedItem(fn: (record: IterableChangeRecord<V>) => void): void
forEachMovedItem(fn: (record: IterableChangeRecord<V>) => void): void
forEachRemovedItem(fn: (record: IterableChangeRecord<V>) => void): void
forEachIdentityChange(fn: (record: IterableChangeRecord<V>) => void): void
}
方法
遍历所有更改。 Iterate over all changes. | |||
参数
返回值
|
遍历一组操作,将这些操作应用于原始 Iterate over a set of operations which when applied to the original | |||
参数
返回值
| |||
注意:这些不一定是应用于原始 NOTE: These are not necessarily the actual operations which were applied to the original |
按原始 Iterate over changes in the order of original | |||
参数
返回值
|
遍历所有添加的条目。 Iterate over all added items. | |||
参数
返回值
|
遍历所有移动过的条目。 Iterate over all moved items. | |||
参数
返回值
|
遍历所有已删除的条目。 Iterate over all removed items. | |||
参数
返回值
|
遍历所有更改过标识(由 Iterate over all items which had their identity (as computed by the | |||
参数
返回值
|