update product/phone/src/main/ets/pages/index.ets.

Signed-off-by: 吕布布的耳朵 <shengli9@huawei.com>
This commit is contained in:
吕布布的耳朵 2023-05-23 08:12:50 +00:00 committed by Gitee
parent b3279f6527
commit 11b824d9ee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -21,8 +21,8 @@ const TAG = 'ScreenShot-Index';
@Entry
@Component
struct Index {
@StorageLink("captureImage") captureImage: any = '';
@StorageLink("imageFilename") imageFilename: string = "";
@StorageLink('captureImage') captureImage: string = '';
@StorageLink('imageFilename') imageFilename: string = '';
build() {
Stack({ alignContent: Alignment.Bottom }) {
@ -33,7 +33,7 @@ struct Index {
.width(Constants.FULL_CONTAINER_WIDTH)
.height(Constants.FULL_CONTAINER_HEIGHT)
.onClick(() => {
ViewModel.StartPhotosAbility(this.imageFilename)
ViewModel.StartPhotosAbility(this.imageFilename);
})
}
.width(Constants.FULL_CONTAINER_WIDTH)
@ -41,7 +41,7 @@ struct Index {
}
aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear`)
Log.showInfo(TAG, 'aboutToAppear');
setTimeout(ViewModel.CloseShotScreen, Constants.interval);
}
}