mirror of
https://gitee.com/openharmony/applications_screenshot
synced 2024-11-26 16:50:22 +00:00
update product/phone/src/main/ets/pages/index.ets.
Signed-off-by: 吕布布的耳朵 <shengli9@huawei.com>
This commit is contained in:
parent
b3279f6527
commit
11b824d9ee
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user