From 1599903b84fad3567e1856be10b7daec3a5544a5 Mon Sep 17 00:00:00 2001 From: liuhui Date: Sat, 21 Jun 2025 18:19:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=96=99=E9=97=AE=E9=A2=98=E6=8E=92?= =?UTF-8?q?=E6=9F=A5=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuhui --- .../ts-container-isolated-component-sys.md | 3 +-- ...ts-container-ui-extension-component-sys.md | 23 +++++++++---------- .../ts-universal-accessibility-hover-event.md | 13 +++++++---- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-isolated-component-sys.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-isolated-component-sys.md index 1cc4c8d6ccb..3c146b42806 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-isolated-component-sys.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-isolated-component-sys.md @@ -64,9 +64,8 @@ IsolatedComponent(options: IsolatedOptions) **系统能力:** SystemCapability.ArkUI.ArkUI.Full -**参数:** -| 参数名 | 类型 | 必填 | 说明 | +| 名称 | 类型 | 必填 | 说明 | | ---- | ---------------------------------------- | ---- | --------------- | | want | [Want](../../apis-ability-kit/js-apis-app-ability-want.md) | 是 | 要加载的Abc信息。 | | worker | [RestrictedWorker](../../apis-arkts/js-apis-worker-sys.md#restrictedworker11) | 是 | 运行Abc的受限worker。 | diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-ui-extension-component-sys.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-ui-extension-component-sys.md index 4d1d8b6e916..dcd932cc6eb 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-ui-extension-component-sys.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-ui-extension-component-sys.md @@ -209,15 +209,14 @@ type ReceiveCallback = Callback\\> **系统能力:** SystemCapability.ArkUI.ArkUI.Full -**参数:** -| 参数名 | 类型 | 必填 | 说明 | +| 名称 | 类型 | 必填 | 说明 | | ---- | ---------------------------------------- | ---- | --------------- | -| isTransferringCaller | boolean | 否 | 在使用UIExtensionComponent嵌套时,设置当前UIExtensionComponent是否转发上一级的Caller信息。
默认值:false。 | +| isTransferringCaller | boolean | 否 | 在使用UIExtensionComponent嵌套时,设置当前UIExtensionComponent是否转发上一级的Caller信息。
默认值:false | | placeholder12+ | [ComponentContent](../js-apis-arkui-ComponentContent.md) | 否 | 设置占位符,在UIExtensionComponent与UIExtensionAbility建立连接前显示。 | -| dpiFollowStrategy12+ | [DpiFollowStrategy](ts-container-ui-extension-component-sys.md#dpifollowstrategy12) | 否 | 提供接口支持设置DPI跟随宿主或跟随UIExtensionAbility。
默认值:FOLLOW_UI_EXTENSION_ABILITY_DPI。 | +| dpiFollowStrategy12+ | [DpiFollowStrategy](ts-container-ui-extension-component-sys.md#dpifollowstrategy12) | 否 | 提供接口支持设置DPI跟随宿主或跟随UIExtensionAbility。
默认值:FOLLOW_UI_EXTENSION_ABILITY_DPI | | areaChangePlaceholder14+ | Record | 否 | 设置尺寸变化占位符,在UIExtensionComponent尺寸发生变化并且UIExtension内部渲染未完成时显示, key值支持"FOLD_TO_EXPAND"(折叠展开尺寸变化)、"UNDEFINED"(默认尺寸变化)。 | -| windowModeFollowStrategy18+ | [WindowModeFollowStrategy](ts-container-ui-extension-component-sys.md#windowmodefollowstrategy18) | 否 | 提供接口以支持设置窗口Mode,使其能够跟随宿主或UIExtensionAbility。
默认值:FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE。 | +| windowModeFollowStrategy18+ | [WindowModeFollowStrategy](ts-container-ui-extension-component-sys.md#windowmodefollowstrategy18) | 否 | 提供接口以支持设置窗口Mode,使其能够跟随宿主或UIExtensionAbility。
默认值:FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE | ## DpiFollowStrategy12+ @@ -482,23 +481,23 @@ const TAG: string = '[UIExtAbility]' export default class UIExtAbility extends UIExtensionAbility { onCreate() { - console.log(TAG, `UIExtAbility onCreate`); + console.info(TAG, `UIExtAbility onCreate`); } onForeground() { - console.log(TAG, `UIExtAbility onForeground`); + console.info(TAG, `UIExtAbility onForeground`); } onBackground() { - console.log(TAG, `UIExtAbility onBackground`); + console.info(TAG, `UIExtAbility onBackground`); } onDestroy() { - console.log(TAG, `UIExtAbility onDestroy`); + console.info(TAG, `UIExtAbility onDestroy`); } onSessionCreate(want: Want, session: UIExtensionContentSession) { - console.log(TAG, `UIExtAbility onSessionCreate, want: ${JSON.stringify(want)}`); + console.info(TAG, `UIExtAbility onSessionCreate, want: ${JSON.stringify(want)}`); let param: Record = { 'session': session }; @@ -507,7 +506,7 @@ export default class UIExtAbility extends UIExtensionAbility { } onSessionDestroy(session: UIExtensionContentSession) { - console.log(TAG, `UIExtAbility onSessionDestroy`); + console.info(TAG, `UIExtAbility onSessionDestroy`); } } ``` @@ -600,7 +599,7 @@ export struct pageOneTmp { }.title("pageOne") .onBackPressed(() => { const popDestinationInfo = this.pathStack.pop(); // 弹出路由栈栈顶元素 - console.log('pop' + '返回值' + JSON.stringify(popDestinationInfo)); + console.info('pop' + '返回值' + JSON.stringify(popDestinationInfo)); return true; }) .onReady((context: NavDestinationContext) => { diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-accessibility-hover-event.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-accessibility-hover-event.md index 30a091a3a18..1bca6b4bd34 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-accessibility-hover-event.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-accessibility-hover-event.md @@ -154,22 +154,25 @@ struct OnAccessibilityHoverEventExample { 该示例代码会在无障碍模式下捕获无法无障碍聚焦的组件的触摸事件,并将事件信息显示在组件下方的文本中。 ```ts -// xxx.ets @Entry @Component struct TestExample { @State text: string = ''; @State eventType: string = ''; + build() { - Column({space: 50}) { + Column({ space: 50 }) { Column() { Button("Test Button") .accessibilityLevel("no") - }.margin({top: 20}) + }.margin({ top: 20 }) + Text(this.text) - }.width('100%').height('100%') + } + .width('100%') + .height('100%') .onAccessibilityHoverTransparent((event?: TouchEvent) => { - if(event){ + if (event) { if (event.type === TouchType.HOVER_ENTER) { this.eventType = 'HOVER_ENTER'; } -- Gitee