mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-12-04 05:11:16 +00:00
Signed-off-by: liujuan <liujuan76@h-partners.com>
Changes to be committed:
This commit is contained in:
parent
cf8fed90a4
commit
341845880a
@ -848,7 +848,7 @@ export struct ThirdSelectPhotoBrowserBase {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let uriArray: Array<string>;
|
let uriArray: string[] = [];
|
||||||
let mediaType: number;
|
let mediaType: number;
|
||||||
if (this.isMultiPick) {
|
if (this.isMultiPick) {
|
||||||
if (this.selectManager === null) {
|
if (this.selectManager === null) {
|
||||||
|
@ -69,7 +69,7 @@ struct FormEditorPage {
|
|||||||
|
|
||||||
async getItems(albumUri?: string, startIndex?: number, count?: number, filterMediaType?: string):
|
async getItems(albumUri?: string, startIndex?: number, count?: number, filterMediaType?: string):
|
||||||
Promise<Array<userFileManager.FileAsset>> {
|
Promise<Array<userFileManager.FileAsset>> {
|
||||||
let result: Array<userFileManager.FileAsset> = [];
|
let result: userFileManager.FileAsset[] = [];
|
||||||
|
|
||||||
// Get from target album if albumUri is not undefined, otherwise getAllObject
|
// Get from target album if albumUri is not undefined, otherwise getAllObject
|
||||||
if (albumUri) {
|
if (albumUri) {
|
||||||
|
@ -378,7 +378,7 @@ struct IndexPage {
|
|||||||
}
|
}
|
||||||
Log.info(TAG, `Has permission been requested? ${isRequested}`);
|
Log.info(TAG, `Has permission been requested? ${isRequested}`);
|
||||||
if (!isRequested) {
|
if (!isRequested) {
|
||||||
let permissionList: Array<string> = [
|
let permissionList: string[] = [
|
||||||
'ohos.permission.READ_IMAGEVIDEO',
|
'ohos.permission.READ_IMAGEVIDEO',
|
||||||
'ohos.permission.WRITE_IMAGEVIDEO',
|
'ohos.permission.WRITE_IMAGEVIDEO',
|
||||||
'ohos.permission.MEDIA_LOCATION'
|
'ohos.permission.MEDIA_LOCATION'
|
||||||
|
@ -516,7 +516,7 @@ export struct PhotoBrowserComponent {
|
|||||||
this.toolMenuList = [];
|
this.toolMenuList = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let menuTempList: Array<Action>;
|
let menuTempList: Action[] = [];
|
||||||
if (!this.albumInfo) {
|
if (!this.albumInfo) {
|
||||||
// 照片页
|
// 照片页
|
||||||
menuTempList = [Action.ADD, Action.RENAME];
|
menuTempList = [Action.ADD, Action.RENAME];
|
||||||
|
Loading…
Reference in New Issue
Block a user