Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
8f074d29
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
8f074d29
编写于
9月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!9800 断链修改again
Merge pull request !9800 from LiAn/OpenHarmony-3.1-Release
上级
7be99485
2cbd984e
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
31 addition
and
31 deletion
+31
-31
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md
...ion-dev/reference/arkui-ts/ts-basic-components-divider.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md
...ation-dev/reference/arkui-ts/ts-basic-components-image.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-span.md
...cation-dev/reference/arkui-ts/ts-basic-components-span.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-types.md
zh-cn/application-dev/reference/arkui-ts/ts-types.md
+24
-24
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-overlay.md
...dev/reference/arkui-ts/ts-universal-attributes-overlay.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-universal-events-key.md
...ication-dev/reference/arkui-ts/ts-universal-events-key.md
+1
-1
zh-cn/application-dev/ui/ts-framework-directory.md
zh-cn/application-dev/ui/ts-framework-directory.md
+1
-1
未找到文件。
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md
浏览文件 @
8f074d29
...
...
@@ -25,7 +25,7 @@ Divider()
| vertical | boolean | false | 使用水平分割线还是垂直分割线,false:
水平分割线,
true:垂直分割线。 |
| color |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置分割线颜色。 |
| strokeWidth | number
\|
string | 1 | 设置分割线宽度。 |
| lineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle
枚举说明
)
| LineCapStyle.Butt | 设置分割线条的端点样式。 |
| lineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle
)
| LineCapStyle.Butt | 设置分割线条的端点样式。 |
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md
浏览文件 @
8f074d29
...
...
@@ -31,7 +31,7 @@ Image(src: string | PixelMap | Resource)
| --------------------- | ---------------------------------------- | -------- | ---------------------------------------- |
| alt | string
\|
[
Resource
](
ts-types.md#resource
)
| - | 加载时显示的占位图。仅支持本地图片。 |
| objectFit |
[
ImageFit
](
ts-appendix-enums.md#imagefit
)
| Cover | 设置图片的缩放类型。 |
| objectRepeat |
[
ImageRepeat
](
ts-appendix-enums.md#imagerepeat
枚举说明
)
| NoRepeat | 设置图片的重复样式。
<br/>
>
**说明:**
<br/>
>
-
svg类型图源不支持该属性。 |
| objectRepeat |
[
ImageRepeat
](
ts-appendix-enums.md#imagerepeat
)
| NoRepeat | 设置图片的重复样式。
<br/>
>
**说明:**
<br/>
>
-
svg类型图源不支持该属性。 |
| interpolation | ImageInterpolation | None | 设置图片的插值效果,即减轻低清晰度图片在放大显示的时候出现的锯齿问题,仅针对图片放大插值。
<br/>
>
**说明:**
<br/>
>
-
svg类型图源不支持该属性。
<br/>
>
-
PixelMap资源不支持该属性。 |
| renderMode | ImageRenderMode | Original | 设置图片渲染的模式。
<br/>
>
**说明:**
<br/>
>
-
svg类型图源不支持该属性。 |
| sourceSize | {
<br/>
width:
number,
<br/>
height:
number
<br/>
} | - | 设置图片解码尺寸,将原始图片解码成指定尺寸的图片,number类型单位为px。
<br/>
>
**说明:**
<br/>
>
-
PixelMap资源不支持该属性。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-span.md
浏览文件 @
8f074d29
...
...
@@ -28,9 +28,9 @@ Span(value: string | Resource)
| 名称 | 参数类型 | 描述 |
| ---------- | ---------------------------------------- | -------------- |
| decoration | {
<br/>
type:
[TextDecorationType](ts-appendix-enums.md#textdecorationtype
枚举说明
),
<br/>
color?:
[
ResourceColor
](
ts-types.md#resourcecolor8
)
<br/>
} | 设置文本装饰线样式及其颜色。
<br/>
默认值:{
<br/>
type:
TextDecorationType.None
<br/>
color:Color.Black
<br/>
} |
| decoration | {
<br/>
type:
[TextDecorationType](ts-appendix-enums.md#textdecorationtype),
<br/>
color?:
[
ResourceColor
](
ts-types.md#resourcecolor8
)
<br/>
} | 设置文本装饰线样式及其颜色。
<br/>
默认值:{
<br/>
type:
TextDecorationType.None
<br/>
color:Color.Black
<br/>
} |
| letterSpacing | number
\|
string | 设置文本字符间距。 |
| textCase |
[
TextCase
](
ts-appendix-enums.md#textcase
枚举说明
)
| 设置文本大小写。
<br/>
默认值:Normal |
| textCase |
[
TextCase
](
ts-appendix-enums.md#textcase
)
| 设置文本大小写。
<br/>
默认值:Normal |
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-types.md
浏览文件 @
8f074d29
...
...
@@ -26,7 +26,7 @@
| -------- | ------------------------------------------------------------ |
| string | 需要显式指定像素单位,如'10px',也可设置百分比字符串,如'100%'。 |
| number | 默认单位vp。 |
|
Resource
| 使用引入资源的方式,引入系统资源或者应用资源中的尺寸。 |
|
[
Resource
](
#resource
)
| 使用引入资源的方式,引入系统资源或者应用资源中的尺寸。 |
## ResourceStr<sup>8+</sup>
...
...
@@ -35,7 +35,7 @@
| 类型 | 说明 |
| -------- | --------------------------------------------------- |
| string | 字符串类型。 |
|
Resource
| 使用引入资源的方式,引入系统资源或者应用资源中的字符串。 |
|
[
Resource
](
#resource
)
| 使用引入资源的方式,引入系统资源或者应用资源中的字符串。 |
## Padding
...
...
@@ -43,10 +43,10 @@
| 名称 | 类型 | 必填 | 说明 |
| ------- | ------ | ---- |------------------------ |
| top |
Length
| 否 | 组件内元素距组件顶部的尺寸。 |
| right |
Length
| 否 | 组件内元素距组件右边界的尺寸。 |
| bottom |
Length
| 否 | 组件内元素距组件底部的尺寸。 |
| left |
Length
| 否 | 组件内元素距组件左边界的尺寸。 |
| top |
[
Length
](
#length
)
| 否 | 组件内元素距组件顶部的尺寸。 |
| right |
[
Length
](
#length
)
| 否 | 组件内元素距组件右边界的尺寸。 |
| bottom |
[
Length
](
#length
)
| 否 | 组件内元素距组件底部的尺寸。 |
| left |
[
Length
](
#length
)
| 否 | 组件内元素距组件左边界的尺寸。 |
## Margin
...
...
@@ -54,10 +54,10 @@
| 名称 | 类型 | 必填 | 说明 |
| ------- | ------ | ---- |------------------------ |
| top |
Length
| 否 | 组件外元素距组件顶部的尺寸。 |
| right |
Length
| 否 | 组件外元素距组件右边界的尺寸。 |
| bottom |
Length
| 否 | 组件外元素距组件底部的尺寸。 |
| left |
Length
| 否 | 组件外元素距组件左边界的尺寸。 |
| top |
[
Length
](
#length
)
| 否 | 组件外元素距组件顶部的尺寸。 |
| right |
[
Length
](
#length
)
| 否 | 组件外元素距组件右边界的尺寸。 |
| bottom |
[
Length
](
#length
)
| 否 | 组件外元素距组件底部的尺寸。 |
| left |
[
Length
](
#length
)
| 否 | 组件外元素距组件左边界的尺寸。 |
## Offset
...
...
@@ -65,8 +65,8 @@
| 名称 | 类型 | 必填 | 说明 |
| -------- | ------ | ---- |--------------------- |
| dx |
Length
| 是 | 水平方向偏移量。 |
| dy |
Length
| 是 | 竖直方向偏移量。 |
| dx |
[
Length
](
#length
)
| 是 | 水平方向偏移量。 |
| dy |
[
Length
](
#length
)
| 是 | 竖直方向偏移量。 |
## ResourceColor<sup>8+</sup>
...
...
@@ -77,7 +77,7 @@
|
[
Color
](
ts-appendix-enums.md#color
)
| 颜色枚举值。 |
| number | HEX格式颜色。 |
| string | rgb或者rgba格式颜色。 |
|
Resource
| 使用引入资源的方式,引入系统资源或者应用资源中的颜色。 |
|
[
Resource
](
#resource
)
| 使用引入资源的方式,引入系统资源或者应用资源中的颜色。 |
## Font
...
...
@@ -108,8 +108,8 @@
| 名称 | 类型 | 必填 | 说明 |
| ----- | ------- | ---- | ------------------------------------------- |
| x |
Length
| 否 | x轴坐标,作为返回值时,类型为number,单位vp。 |
| y |
Length
| 否 | y轴坐标,作为返回值时,类型为number,单位vp。 |
| x |
[
Length
](
#length
)
| 否 | x轴坐标,作为返回值时,类型为number,单位vp。 |
| y |
[
Length
](
#length
)
| 否 | y轴坐标,作为返回值时,类型为number,单位vp。 |
## ConstraintSizeOptions
...
...
@@ -117,10 +117,10 @@
| 名称 | 类型 | 必填 | 说明 |
| --------- | -------- | ---- | -------------- |
| minWidth |
Length
| 否 | 元素最小宽度。 |
| maxWidth |
Length
| 否 | 元素最大宽度。 |
| minHeight |
Length
| 否 | 元素最小高度。 |
| maxHeight |
Length
| 否 | 元素最大高度。 |
| minWidth |
[
Length
](
#length
)
| 否 | 元素最小宽度。 |
| maxWidth |
[
Length
](
#length
)
| 否 | 元素最大宽度。 |
| minHeight |
[
Length
](
#length
)
| 否 | 元素最小高度。 |
| maxHeight |
[
Length
](
#length
)
| 否 | 元素最大高度。 |
## SizeOptions
...
...
@@ -128,8 +128,8 @@
| 名称 | 类型 | 必填 | 说明 |
| ------- | -------- | ---- | -------------- |
| width |
Length
| 否 | 元素宽度。 |
| height |
Length
| 否 | 元素高度。 |
| width |
[
Length
](
#length
)
| 否 | 元素宽度。 |
| height |
[
Length
](
#length
)
| 否 | 元素高度。 |
## BorderOptions
...
...
@@ -138,9 +138,9 @@
| 名称 | 类型 | 必填 | 说明 |
| ------ | ------------- | ---- | ----------- |
| width |
Length
| 否 | 边框宽度。 |
| color |
ResourceColor
| 否 | 边框颜色。 |
| radius |
Length
| 否 | 边框圆角半径。 |
| width |
[
Length
](
#length
)
| 否 | 边框宽度。 |
| color |
[
ResourceColor
](
#resourcecolor8
)
| 否 | 边框颜色。 |
| radius |
[
Length
](
#length
)
| 否 | 边框圆角半径。 |
| style |
[
BorderStyle
](
ts-appendix-enums.md#borderstyle
)
| 否 | 边框样式。 |
## CustomBuilder<sup>8+</sup>
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-overlay.md
浏览文件 @
8f074d29
...
...
@@ -15,7 +15,7 @@
| 名称 | 参数类型 | 默认值 | 描述 |
| ------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------ |
| overlay | value:
string,
<br/>
options?:
{
<br/>
align?:
[Alignment](ts-appendix-enums.md#alignment
-enums
),
<br/>
offset?:
{x?:
number, y?:
number}
<br/>
} | {
<br/>
align:
Alignment.Center,
<br/>
offset:
{0,
0}
<br/>
} | 在当前组件上,增加遮罩文本,布局与当前组件相同。 |
| overlay | value:
string,
<br/>
options?:
{
<br/>
align?:
[Alignment](ts-appendix-enums.md#alignment),
<br/>
offset?:
{x?:
number, y?:
number}
<br/>
} | {
<br/>
align:
Alignment.Center,
<br/>
offset:
{0,
0}
<br/>
} | 在当前组件上,增加遮罩文本,布局与当前组件相同。 |
## 示例
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-events-key.md
浏览文件 @
8f074d29
...
...
@@ -24,7 +24,7 @@
| 名称 | 类型 | 描述 |
| ------------------------------------- | --------------------------- | -------------------------- |
| type |
[
KeyType
](
ts-appendix-enums.md#keytype
)
| 按键的类型。 |
|
[
keyCode
](
../apis/js-apis-keycode.md
)
| number | 按键的键码。 |
|
keyCode
| number | 按键的键码。 |
| keyText | string | 按键的键值。 |
| keySource |
[
KeySource
](
ts-appendix-enums.md#keysource
)
| 触发当前按键的输入设备类型。 |
| deviceId | number | 触发当前按键的输入设备ID。 |
...
...
zh-cn/application-dev/ui/ts-framework-directory.md
浏览文件 @
8f074d29
...
...
@@ -26,6 +26,6 @@ FA应用的eTS模块(entry/src/main)的典型开发目录结构如下:
>  **说明:**
>
> - 资源目录resources文件夹位于src/main下,此目录下资源文件的详细规范以及子目录结构规范参看[资源文件的分类](
../quick-start/
basic-resource-file-categories.md)。
> - 资源目录resources文件夹位于src/main下,此目录下资源文件的详细规范以及子目录结构规范参看[资源文件的分类](
ui-ts-
basic-resource-file-categories.md)。
>
> - 页面支持导入TypeScript和JavaScript文件。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录