openharmony 鸿蒙 ts-universal-attributes-use-union-effect-sys

2026-08-25 浏览 (1)

Union Effect (System API)

This section describes how to set the union effect.

NOTE:

  • This parameter is supported since API version 23. Updates will be marked with a superscript to indicate their earliest API version.

  • The APIs provided by this module are system APIs.

useUnionEffect

useUnionEffect(value: boolean|undefined): T;

Whether to use the union effect of the ancestor UnionEffectContainer component as a part of UnionEffectContainer for shape union.

If this attribute is not set, the union effect of the ancestor UnionEffectContainer component is not used by default.

System API: This is a system API.

Model restriction: This API can be used only in the stage model.

System capability: SystemCapability.ArkUI.ArkUI.Full

Parameters

NameTypeMandatoryDescription
valueboolean |undefinedYesWhether to use the union effect of the ancestor UnionEffectContainer component.
When useUnionEffect is set to true, the current component uses the union effect of the ancestor UnionEffectContainer component and is considered as a part of the ancestor during shape calculation for the ancestor component.
When useUnionEffect is set to false, the current component does not use the union effect of the ancestor UnionEffectContainer component.
Setting it to undefined restores the default behavior (that is, not using the union effect of the ancestor UnionEffectContainer component).

Return value

TypeDescription
TCurrent component.

Example

For details, see UnionEffectContainer Example.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 ts-drawing-components-shape

openharmony 鸿蒙 ts-universal-attributes-sharp-clipping

openharmony 鸿蒙 ts-universal-attributes-toolbar

openharmony 鸿蒙 ts-container-lazyvgridlayout

openharmony 鸿蒙 ohos-arkui-advanced-FoldSplitContainer

openharmony 鸿蒙 ts-methods-calendarpicker-dialog

openharmony 鸿蒙 ts-uicommonevent

openharmony 鸿蒙 ts-basic-gestures-tapgesture

openharmony 鸿蒙 ohos-arkui-advanced-DialogV2

openharmony 鸿蒙 ts-components-canvas-canvas

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/Sq7qmbpn