From 0e989ae1c31ffb044b965b6862f906efc807bf6e Mon Sep 17 00:00:00 2001 From: li-li-wang Date: Sat, 21 Jun 2025 20:19:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=96=99=E5=AE=8C=E6=95=B4=E6=80=A7?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li-li-wang --- .../arkui-ts/ts-securitycomponent-attributes.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-securitycomponent-attributes.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-securitycomponent-attributes.md index a6bf104c7e6..4d81b85cacd 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-securitycomponent-attributes.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-securitycomponent-attributes.md @@ -460,7 +460,7 @@ width(value: Length): T | 参数名 | 类型 | 必填 | 说明 | |------------|------|-------|---------| -|value | [Length](ts-types.md#length) |是 |安全控件自身的宽度,缺省时将根据元素内容自适配宽度。若设置宽度小于当前属性组合下允许的最小宽度时,宽度会调整为设置值,此时按钮文本信息会自动换行,以保证安全控件显示的完整性。| +|value | [Length](ts-types.md#length) |是 |安全控件自身的宽度,缺省时将根据元素内容自适配宽度。| **返回值:** @@ -482,7 +482,7 @@ height(value: Length): T | 参数名 | 类型 | 必填 | 说明 | |------------|------|-------|---------| -| value | [Length](ts-types.md#length) |是|安全控件自身的高度,缺省时将根据元素内容自适配高度。若设置高度小于当前属性组合下允许的最小高度时,高度不会缩减到设置值,此时高度会大于设置高度,以保证安全控件显示的完整性。| +| value | [Length](ts-types.md#length) |是|安全控件自身的高度,缺省时将根据元素内容自适配高度。| **返回值:** @@ -494,7 +494,7 @@ height(value: Length): T size(value: SizeOptions): T -设置高宽尺寸,缺省时将根据元素内容自适配高宽尺寸。 +设置宽高尺寸,缺省时将根据元素内容自适配高宽尺寸。 **原子化服务API:** 从API version 12开始,该接口支持在原子化服务中使用。 @@ -504,7 +504,7 @@ size(value: SizeOptions): T | 参数名 | 类型 | 必填 | 说明 | |------------|------|-------|---------| -| value | [SizeOptions](ts-types.md#sizeoptions) |是 |高宽尺寸,缺省时将根据元素内容自适配高宽尺寸。若设置尺寸小于当前属性组合下允许的最小尺寸时,高度不会缩减到设置值,宽度会调整到设置值,此时按钮文本信息会自动换行,以保证安全控件显示的完整性。| +| value | [SizeOptions](ts-types.md#sizeoptions) |是 |宽高尺寸,缺省时将根据元素内容自适配高宽尺寸。| **返回值:** @@ -526,7 +526,7 @@ constraintSize(value: ConstraintSizeOptions): T | 参数名 | 类型 | 必填 | 说明 | |------------|------|-------|---------| -| value | [ConstraintSizeOptions](ts-types.md#constraintsizeoptions) |是 |约束尺寸,组件布局时,进行尺寸范围限制。constraintSize的优先级高于Width和Height。取值结果参考[constraintSize取值对width/height影响](ts-universal-attributes-size.md#constraintsize)。
同width/height一样,若设置尺寸小于当前属性组合下允许的最小尺寸时,高度不会缩减到设置值,宽度会调整到设置值,此时按钮文本信息会自动换行,以保证安全控件显示的完整性。
默认值:
{
minWidth: 0,
maxWidth: Infinity,
minHeight: 0,
maxHeight: Infinity
}。| +| value | [ConstraintSizeOptions](ts-types.md#constraintsizeoptions) |是 |约束尺寸,组件布局时,进行尺寸范围限制。constraintSize的优先级高于Width和Height。取值结果参考[constraintSize取值对width/height影响](ts-universal-attributes-size.md#constraintsize)。
默认值:
{
minWidth: 0,
maxWidth: Infinity,
minHeight: 0,
maxHeight: Infinity
}。| **返回值:** -- Gitee