diff --git a/frameworks/js/src/PhotoPickerComponent.ets b/frameworks/js/src/PhotoPickerComponent.ets index 092c1f12320f0a10ad797043b0990efd96badc0f..294a94cebb9bb150466994b373d9e5dfc47b042c 100644 --- a/frameworks/js/src/PhotoPickerComponent.ets +++ b/frameworks/js/src/PhotoPickerComponent.ets @@ -317,6 +317,10 @@ export struct PhotoPickerComponent { itemInfo.height = wantParam['height'] as number; itemInfo.size = wantParam['size'] as number; itemInfo.duration = wantParam['duration'] as number; + itemInfo.photoSubtype = wantParam['subtype'] as number; + itemInfo.dynamicRangeType = wantParam['dynamicRangeType'] as number; + itemInfo.orientation = wantParam['imageOrientation'] as number; + itemInfo.mirrorInformation = wantParam['mirrorInformation'] as string; let result: boolean = this.onItemClicked(itemInfo, clickType); console.info('PhotoPickerComponent onReceive: onItemClicked = ' + clickType); if (this.proxy) { diff --git a/frameworks/js/src/photopickercomponent.js b/frameworks/js/src/photopickercomponent.js index fe46c7b189f3353cea8dd3ee4804b02becc2251f..7fdc54bbec80647a4268b2c34fbe95468a623cc9 100644 --- a/frameworks/js/src/photopickercomponent.js +++ b/frameworks/js/src/photopickercomponent.js @@ -365,6 +365,10 @@ export class PhotoPickerComponent extends ViewPU { i.height = e.height; i.size = e.size; i.duration = e.duration; + i.photoSubtype = e.subtype; + i.dynamicRangeType = e.dynamicRangeType; + i.orientation = e.imageOrientation; + i.mirrorInformation = e.mirrorInformation; let r = this.onItemClicked(i, o); console.info('PhotoPickerComponent onReceive: onItemClicked = ' + o); if (this.proxy) {