From 7422ae8eb7887ee41e02d798189ad641026ec753 Mon Sep 17 00:00:00 2001 From: zhangkai Date: Sat, 13 May 2023 02:58:15 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A7=A6=E5=B1=8F=E4=BA=8B=E4=BB=B6-=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E4=BA=8B=E4=BB=B6-=E8=B7=A8=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E6=8B=96=E6=8B=BD=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81-?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E6=95=88=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangkai Change-Id: I523ef58b22b41665dd29261f48b9b689deea85d6 --- .../ui/arkts-common-events-touch-screen-event.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/zh-cn/application-dev/ui/arkts-common-events-touch-screen-event.md b/zh-cn/application-dev/ui/arkts-common-events-touch-screen-event.md index 0675d83fb4..f1dcb94d55 100644 --- a/zh-cn/application-dev/ui/arkts-common-events-touch-screen-event.md +++ b/zh-cn/application-dev/ui/arkts-common-events-touch-screen-event.md @@ -87,11 +87,7 @@ import image from '@ohos.multimedia.image'; @Entry @Component struct Index { - @State text: string = '' - @State bool1: boolean = false - @State bool2: boolean = false @State visible: Visibility = Visibility.Visible - @State pixelMap: PixelMap = undefined private pixelMapReader = undefined aboutToAppear() { @@ -115,7 +111,6 @@ struct Index { const promise = image.createPixelMap(color, opts); promise.then((data) => { console.info('create pixmap has info message: ' + JSON.stringify(data)) - this.pixelMap = data; this.pixelMapReader = data; }) } @@ -151,8 +146,6 @@ struct Index { .visibility(this.visible) .onDragStart(() => { //启动跨窗口拖拽 console.info('Text onDrag start') - this.bool1 = true - this.text = 'TextDrag' return { pixelMap: this.pixelMapReader, extraInfo: 'custom extra info.' } }) .onDrop((event: DragEvent, extraParams: string) => { -- GitLab