未验证 提交 b907336b 编写于 作者: O openharmony_ci 提交者: Gitee

!20130 【轻量级 PR】:统一用词、修改标题与Readme保持一致

Merge pull request !20130 from zengyawen/N/A
# SecLocationButton # SecLocationButton
安全件的位置按钮,用户通过点击该位置按钮,可以临时获取精准定位权限,而不需要权限弹框授权确认。 安全件的位置按钮,用户通过点击该位置按钮,可以临时获取精准定位权限,而不需要权限弹框授权确认。
> **说明:** > **说明:**
> >
......
# SecPasteButton # SecPasteButton
安全件的粘贴按钮,用户通过点击该粘贴按钮,可以临时获取读取剪贴板权限,而不会触发toast提示。 安全件的粘贴按钮,用户通过点击该粘贴按钮,可以临时获取读取剪贴板权限,而不会触发toast提示。
> **说明:** > **说明:**
> >
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
## 属性 ## 属性
不支持通用属性,仅继承[安全件通用属性](ts-universal-attributes-securitycomponent.md#属性) 不支持通用属性,仅继承[安全件通用属性](ts-universal-attributes-securitycomponent.md#属性)
## PasteIconStyle枚举说明 ## PasteIconStyle枚举说明
......
# SecSaveButton # SecSaveButton
安全件的保存按钮,用户通过点击该保存按钮,可以临时获取存储权限,而不需要权限弹框授权确认。 安全件的保存按钮,用户通过点击该保存按钮,可以临时获取存储权限,而不需要权限弹框授权确认。
> **说明:** > **说明:**
> >
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
## 属性 ## 属性
不支持通用属性,仅继承[安全件通用属性](ts-universal-attributes-securitycomponent.md#属性) 不支持通用属性,仅继承[安全件通用属性](ts-universal-attributes-securitycomponent.md#属性)
## 事件 ## 事件
......
# SecurityComponent # 安全组件通用属性
安全控件的基础属性,用于设置安全控件通用的属性。 安全组件的基础属性,用于设置安全组件通用的属性。
> **说明:** > **说明:**
> >
...@@ -10,32 +10,32 @@ ...@@ -10,32 +10,32 @@
| 名称 | 参数类型 | 必填 | 描述 | | 名称 | 参数类型 | 必填 | 描述 |
| ----------- | ------ | ---- | ---------------------------------------- | | ----------- | ------ | ---- | ---------------------------------------- |
| iconSize | [Length](ts-types.md#length) | 否 | 设置安全件上图标的尺寸。<br/> 默认值:16vp | | iconSize | [Length](ts-types.md#length) | 否 | 设置安全件上图标的尺寸。<br/> 默认值:16vp |
| layoutDirection | [SecurityComponentLayoutDirection](#securitycomponentlayoutdirection枚举说明) | 否 | 设置安全件上图标和文字分布的方向。 <br/> 默认值:SecurityComponentLayoutDirection.HORIZONTAL| | layoutDirection | [SecurityComponentLayoutDirection](#securitycomponentlayoutdirection枚举说明) | 否 | 设置安全件上图标和文字分布的方向。 <br/> 默认值:SecurityComponentLayoutDirection.HORIZONTAL|
| layoutOrder | [SecurityComponentLayoutOrder](#securitycomponentlayoutorder枚举说明) | 否 | 设置安全件上图标和文字分布的顺序。 <br/> 默认值:SecurityComponentLayoutOrder.ICON_FIRST| | layoutOrder | [SecurityComponentLayoutOrder](#securitycomponentlayoutorder枚举说明) | 否 | 设置安全件上图标和文字分布的顺序。 <br/> 默认值:SecurityComponentLayoutOrder.ICON_FIRST|
| position | [Position](ts-types.md#position8) | 否 | 设置绝对定位,设置安全件的左上角相对于父容器左上角的偏移位置。<br/> 默认值:<br/>{ <br/>x: 0,<br/>y: 0<br/>} | | position | [Position](ts-types.md#position8) | 否 | 设置绝对定位,设置安全件的左上角相对于父容器左上角的偏移位置。<br/> 默认值:<br/>{ <br/>x: 0,<br/>y: 0<br/>} |
| markAnchor | [Position](ts-types.md#position8) | 否 | 设置绝对定位的锚点,以安全件的左上角作为基准点进行偏移。<br/> 默认值:<br/>{ <br/>x: 0,<br/>y: 0<br/>} | | markAnchor | [Position](ts-types.md#position8) | 否 | 设置绝对定位的锚点,以安全件的左上角作为基准点进行偏移。<br/> 默认值:<br/>{ <br/>x: 0,<br/>y: 0<br/>} |
| offset | [Position](ts-types.md#position8) | 否 | 设置相对定位,安全件相对于自身的偏移量。<br/> 默认值:<br/>{ <br/>x: 0,<br/>y: 0<br/>} | | offset | [Position](ts-types.md#position8) | 否 | 设置相对定位,安全件相对于自身的偏移量。<br/> 默认值:<br/>{ <br/>x: 0,<br/>y: 0<br/>} |
| fontSize | [Length](ts-types.md#length) | 否 | 设置安全件上文字的尺寸。<br/> 默认值:16fp | | fontSize | [Length](ts-types.md#length) | 否 | 设置安全件上文字的尺寸。<br/> 默认值:16fp |
| fontStyle | [FontStyle](ts-appendix-enums.md#fontstyle) | 否 | 设置安全件上文字的样式。<br/> 默认值:FontStyle.Normal | | fontStyle | [FontStyle](ts-appendix-enums.md#fontstyle) | 否 | 设置安全件上文字的样式。<br/> 默认值:FontStyle.Normal |
| fontWeight | number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string | 否 | 设置安全件上文字粗细。 <br/> 默认值:FontWeight.Medium | | fontWeight | number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string | 否 | 设置安全件上文字粗细。 <br/> 默认值:FontWeight.Medium |
| fontFamily | string \| [Resource](ts-types.md#resource类型) | 否 | 设置安全件上文字的字体。 <br/>默认字体:'HarmonyOS Sans' | | fontFamily | string \| [Resource](ts-types.md#resource类型) | 否 | 设置安全件上文字的字体。 <br/>默认字体:'HarmonyOS Sans' |
| fontColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置安全件上文字的颜色。<br/> 默认值:#ffffffff | | fontColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置安全件上文字的颜色。<br/> 默认值:#ffffffff |
| iconColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置安全件上图标的颜色。<br/> 默认值:#ffffffff | | iconColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置安全件上图标的颜色。<br/> 默认值:#ffffffff |
| backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置安全件的背景颜色。 <br/> 默认值:#007dff | | backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置安全件的背景颜色。 <br/> 默认值:#007dff |
| borderStyle | [BorderStyle](ts-appendix-enums.md#borderstyle) | 否 | 设置安全件的边框的样式。 <br/> 默认不设置边框样式 | | borderStyle | [BorderStyle](ts-appendix-enums.md#borderstyle) | 否 | 设置安全件的边框的样式。 <br/> 默认不设置边框样式 |
| borderWidth | [Length](ts-types.md#length) | 否 | 设置安全件的边框的宽度。 <br/> 默认不设置边框宽度 | | borderWidth | [Length](ts-types.md#length) | 否 | 设置安全件的边框的宽度。 <br/> 默认不设置边框宽度 |
| borderColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置安全件的边框的颜色。 <br/> 默认不设置边框颜色 | | borderColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置安全件的边框的颜色。 <br/> 默认不设置边框颜色 |
| borderRadius | [Length](ts-types.md#length) | 否 | 设置安全件的边框圆角半径。<br/> 默认值:1/2 按钮整高 | | borderRadius | [Length](ts-types.md#length) | 否 | 设置安全件的边框圆角半径。<br/> 默认值:1/2 按钮整高 |
| padding | [Padding](ts-types.md#padding) \| [Length](ts-types.md#length) | 否 | 设置安全件的内边距。 <br/> 默认值:上下8vp, 左右24vp | | padding | [Padding](ts-types.md#padding) \| [Length](ts-types.md#length) | 否 | 设置安全件的内边距。 <br/> 默认值:上下8vp, 左右24vp |
| textIconSpace | [Length](ts-types.md#length) | 否 | 设置安全件中图标和文字的间距。 <br/> 默认值:4vp | | textIconSpace | [Length](ts-types.md#length) | 否 | 设置安全件中图标和文字的间距。 <br/> 默认值:4vp |
## SecurityComponentLayoutDirection枚举说明 ## SecurityComponentLayoutDirection枚举说明
| 名称 | 描述 | | 名称 | 描述 |
| ------------------- | ------------------ | | ------------------- | ------------------ |
| HORIZONTAL | 安全件上图标和文字分布的方向为水平排列。 | | HORIZONTAL | 安全件上图标和文字分布的方向为水平排列。 |
| VERTICAL | 安全件上图标和文字分布的方向为垂直排列。 | | VERTICAL | 安全件上图标和文字分布的方向为垂直排列。 |
## SecurityComponentLayoutOrder枚举说明 ## SecurityComponentLayoutOrder枚举说明
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册