@@ -292,7 +292,7 @@ export struct OfficePreviewView {
292292 this.childSetZoom = setZoom;
293293 }
294294 })
295- .key (`doc-${this.docRevision}-${this.rawDocument?.kind ?? ''}`)
295+ .id (`doc-${this.docRevision}-${this.rawDocument?.kind ?? ''}`)
296296 .width('100%')
297297 .height('100%')
298298 } else if (this.rawDocument.kind === 'PPTX') {
@@ -312,7 +312,7 @@ export struct OfficePreviewView {
312312 this.childSetZoom = setZoom;
313313 }
314314 })
315- .key (`doc-${this.docRevision}-${this.rawDocument?.kind ?? ''}`)
315+ .id (`doc-${this.docRevision}-${this.rawDocument?.kind ?? ''}`)
316316 .width('100%')
317317 .height('100%')
318318 } else if (this.rawDocument.kind === 'XLSX') {
@@ -331,7 +331,7 @@ export struct OfficePreviewView {
331331 this.childSetZoom = setZoom;
332332 }
333333 })
334- .key (`doc-${this.docRevision}-${this.rawDocument?.kind ?? ''}`)
334+ .id (`doc-${this.docRevision}-${this.rawDocument?.kind ?? ''}`)
335335 .width('100%')
336336 .height('100%')
337337 }
@@ -821,7 +821,7 @@ struct DocxShapeView {
821821 this.drawShape();
822822 })
823823 }
824- .key (`shape-${this.reuseVersion}`)
824+ .id (`shape-${this.reuseVersion}`)
825825 .width('100%')
826826 .justifyContent(FlexAlign.Center)
827827 .margin({ top: 4, bottom: 6 })
@@ -1456,7 +1456,7 @@ struct PptxSlideCanvas {
14561456 this.drawSlide(false);
14571457 })
14581458 }
1459- .key (`slide-canvas-${this.reuseVersion}`)
1459+ .id (`slide-canvas-${this.reuseVersion}`)
14601460 .width('100%')
14611461 .accessibilityText(buildSlideAccessibilityLabel(this.page, this.slideNumber, this.slideCount))
14621462 .accessibilityGroup(true)
0 commit comments