Searched refs:repeatItem (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/partial_update/ |
H A D | pu_repeat_impl.ts | 69 this.initialRenderItem(key, itemInfo.repeatItem); 105 itemInfo.repeatItem = oldItemInfo!.repeatItem!; 107 itemInfo.repeatItem.updateIndex(index); 119 const oldRepeatItem = oldItemInfo!.repeatItem!; 120 itemInfo.repeatItem = oldRepeatItem; 123 itemInfo.repeatItem.updateItem(item); 124 itemInfo.repeatItem.updateIndex(index); 136 itemInfo.repeatItem = this.mkRepeatItem_(item, index); 137 this.initialRenderItem(key, itemInfo.repeatItem); 168 const itemType = this.typeGenFunc_(repeatItem.item, repeatItem.index) ?? ''; [all …]
|
H A D | pu_repeat_virtual_scroll_impl.ts | 94 const repeatItem = this.mkRepeatItem_(this.arr_[forIndex], forIndex); 96 this.repeatItem4Key_.set(forKey, repeatItem); 99 this.initialRenderItem(repeatItem); 112 const repeatItem = this.repeatItem4Key_.get(fromKey); 113 if (!repeatItem) { 123 this.repeatItem4Key_.set(forKey, repeatItem); 125 if (repeatItem.item !== this.arr_[forIndex] || repeatItem.index !== forIndex) { 127 repeatItem.updateItem(this.arr_[forIndex]); 128 repeatItem.updateIndex(forIndex); 267 const itemType = this.typeGenFunc_(repeatItem.item, repeatItem.index); [all …]
|
H A D | pu_repeat.ts | 101 repeatItem?: __RepeatItemFactoryReturn<T>;
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.33/ |
H A D | changelogs-arkui.md | 180 .each((repeatItem) => { 182 Text(`${repeatItem.index! + 1}. Item ${repeatItem.item}`) // repeatItem.index需做判空处理 205 .each((repeatItem) => { 207 Text(`${repeatItem.index + 1}. Item ${repeatItem.item}`) // repeatItem.index可不做判空处理
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-rendering-control-repeat.md | 45 each(itemGenerator: (repeatItem: RepeatItem\<T\>) => void): RepeatAttribute\<T\> 64 | repeatItem | [RepeatItem](#repeatitemt)\<T\> | 是 | repeat数据项 | 226 type RepeatItemBuilder\<T\> = (repeatItem: RepeatItem\<T\>) => void 236 | repeatItem | [RepeatItem](#repeatitemt)\<T\> | 是 | 将item和index结合到一起的一个状态变量。 |
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-rendering-control-repeat.md | 33 each(itemGenerator: (repeatItem: RepeatItem\<T\>) => void): RepeatAttribute\<T\> 52 | repeatItem | [RepeatItem](#repeatitem)\<T\> | Yes| Repeat items.| 162 type RepeatItemBuilder\<T\> = (repeatItem: RepeatItem\<T\>) => void 174 | repeatItem | [RepeatItem](#repeatitem)\<T\> | Yes| A state variable that combines **item** and **…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | stateMgmt.js | 10380 itemInfo.repeatItem = oldItemInfo.repeatItem; 10428 initialRenderItem(key, repeatItem) { argument 10436 …const itemType = (_a = this.typeGenFunc_(repeatItem.item, repeatItem.index)) !== null && _a !== vo… 10438 itemFunc(repeatItem); 10514 this.initialRenderItem(repeatItem); 10527 if (!repeatItem) { 10537 if (repeatItem.item !== this.arr_[forIndex] || repeatItem.index !== forIndex) { 10540 repeatItem.updateIndex(forIndex); 10662 initialRenderItem(repeatItem) { argument 10664 const itemType = this.typeGenFunc_(repeatItem.item, repeatItem.index); [all …]
|