From 8219dd347687598d5b7a3f90e3f901c4380e121e Mon Sep 17 00:00:00 2001 From: sunwenyu123 Date: Wed, 6 Sep 2023 08:25:52 +0000 Subject: [PATCH] =?UTF-8?q?ArkTS=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sunwenyu123 Change-Id: Id89fe54fba47d33a93400157560237d216f95949 --- .../reference/apis/js-apis-devicestatus-draginteraction.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-devicestatus-draginteraction.md b/zh-cn/application-dev/reference/apis/js-apis-devicestatus-draginteraction.md index 5d1febb092..7bf6376761 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-devicestatus-draginteraction.md +++ b/zh-cn/application-dev/reference/apis/js-apis-devicestatus-draginteraction.md @@ -10,7 +10,7 @@ ## 导入模块 -```js +```ts import dragInteraction from '@ohos.deviceStatus.dragInteraction' ``` @@ -28,7 +28,7 @@ import dragInteraction from '@ohos.deviceStatus.dragInteraction' **示例**: -```js +```ts enum DragState { MSG_DRAG_STATE_START = 1, MSG_DRAG_STATE_STOP = 2, @@ -53,7 +53,7 @@ on(type: 'drag', callback: Callback<DragState>): void; **示例**: -```js +```ts try { dragInteraction.on('drag', (data : DragState) => { console.log(`Drag interaction event: ${JSON.stringify(data)}`); -- GitLab