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 1cc4c8d6ccbc0f0e66fc8cbfbc5cd80cc34ab9c5..3c146b428060c994a83ab00d4c1c6a982690cdfb 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 4d1d8b6e916ef08b49c23e9d3c47d5c353d31ea3..dcd932cc6ebb9e1b16a62ace069fcc04a672cfbb 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 30a091a3a182f65c6b420d3b88d9a4e9cdb93251..1bca6b4bd34d80a83741eb482421cda3d77607b6 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'; }