Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Coping0606
Docs
提交
7b376491
D
Docs
项目概览
Coping0606
/
Docs
与 Fork 源项目一致
Fork自
OpenHarmony / Docs
通知
1
Star
1
Fork
0
代码
文件
提交
分支
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7b376491
编写于
9月 21, 2022
作者:
H
HelloCrease
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
Signed-off-by:
N
HelloCrease
<
lian15@huawei.com
>
上级
23d820b6
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
20 addition
and
20 deletion
+20
-20
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
...tion-dev/reference/arkui-ts/ts-basic-components-select.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md
...n-dev/reference/arkui-ts/ts-container-sidebarcontainer.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-circle.md
...on-dev/reference/arkui-ts/ts-drawing-components-circle.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md
...n-dev/reference/arkui-ts/ts-drawing-components-ellipse.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md
...tion-dev/reference/arkui-ts/ts-drawing-components-line.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-path.md
...tion-dev/reference/arkui-ts/ts-drawing-components-path.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
...n-dev/reference/arkui-ts/ts-drawing-components-polygon.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polyline.md
...-dev/reference/arkui-ts/ts-drawing-components-polyline.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
...tion-dev/reference/arkui-ts/ts-drawing-components-rect.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md
...ion-dev/reference/arkui-ts/ts-drawing-components-shape.md
+4
-4
未找到文件。
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
浏览文件 @
7b376491
...
...
@@ -32,7 +32,7 @@ Select(options: Array\<SelectOption\>)
| selectedOptionFont |
[
Font
](
ts-types.md#font
)
| 设置下拉菜单选中项的文本样式。 |
| selectedOptionFontColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| 设置下拉菜单选中项的文本颜色。 |
| optionBgColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| 设置下拉菜单项的背景色。 |
| optionFont |
[
Font
](
../../ui/ts-types.md
)
| 设置下拉菜单项的文本样式。 |
| optionFont |
[
Font
](
ts-types.md#font
)
| 设置下拉菜单项的文本样式。 |
| optionFontColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| 设置下拉菜单项的文本颜色。 |
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md
浏览文件 @
7b376491
...
...
@@ -48,7 +48,7 @@ SideBarContainer( type?: SideBarContainerType )
| top | number | 否 | 设置侧边栏控制按钮距离容器上界限的间距。
<br/>
默认值:48,单位vp |
| width | number | 否 | 设置侧边栏控制按钮的宽度。
<br/>
默认值:32,单位vp |
| height | number | 否 | 设置侧边栏控制按钮的高度。
<br/>
默认值:32,单位vp |
| icons | {
<br/>
shown:
string
\|
PixelMap
\|
[
Resource
](
arkui-ts/ts-types.md#resource
)
,
<br/>
hidden:
string
\|
PixelMap
\|
[
Resource
](
arkui-ts/ts-types.md#resource
)
,
<br/>
switching?:
string
\|
PixelMap
\|
[
Resource
](
arkui-ts/
ts-types.md#resource
)
<br/>
} | 否 | 设置侧边栏控制按钮的图标:
<br/>
</p>
- shown: 设置侧边栏显示时控制按钮的图标。
<br>
- hidden: 设置侧边栏隐藏时控制按钮的图标。
<br>
- switching:设置侧边栏显示和隐藏状态切换时控制按钮的图标。 |
| icons | {
<br/>
shown:
string
\|
PixelMap
\|
[
Resource
](
ts-types.md#resource
)
,
<br/>
hidden:
string
\|
PixelMap
\|
[
Resource
](
ts-types.md#resource
)
,
<br/>
switching?:
string
\|
PixelMap
\|
[
Resource
](
ts-types.md#resource
)
<br/>
} | 否 | 设置侧边栏控制按钮的图标:
<br/>
</p>
- shown: 设置侧边栏显示时控制按钮的图标。
<br>
- hidden: 设置侧边栏隐藏时控制按钮的图标。
<br>
- switching:设置侧边栏显示和隐藏状态切换时控制按钮的图标。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-circle.md
浏览文件 @
7b376491
...
...
@@ -34,9 +34,9 @@ Circle(options?: {width?: string | number, height?: string | number})
| 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| fill |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置线条颜色。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置线条颜色。 |
| strokeDashArray | Array
<
Length
>
| [] | 否 | 设置线条间隙。 |
| strokeDashOffset | number
\|
string | 0 | 否 | 线条绘制起点的偏移量。 |
| strokeLineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle
)
| LineCapStyle.Butt | 否 | 设置线条端点绘制样式。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md
浏览文件 @
7b376491
...
...
@@ -35,9 +35,9 @@ ellipse(options?: {width?: string | number, height?: string | number})
| 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| fill |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 |设置线条颜色。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 |设置线条颜色。 |
| strokeDashArray | Array
<
Length
>
| [] | 否 | 设置线条间隙。 |
| strokeDashOffset | number
\|
string | 0 | 否 | 线条绘制起点的偏移量。 |
| strokeLineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle
)
| LineCapStyle.Butt | 否 | 设置线条端点绘制样式。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md
浏览文件 @
7b376491
...
...
@@ -36,9 +36,9 @@ Line(options?: {width?: string | number, height?: string | number})
| -------- | -------- | -------- | -------- | -------- |
| startPoint | Array | [0,
0] | 是 | 直线起点坐标点(相对坐标)。 |
| endPoint | Array | [0,
0] | 是 | 直线终点坐标点(相对坐标)。 |
| fill |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置线条颜色。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置线条颜色。 |
| strokeDashArray | Array
<
Length
>
| [] | 否 | 设置线条间隙。 |
| strokeDashOffset | number
\|
string | 0 | 否 | 线条绘制起点的偏移量。 |
| strokeLineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle
)
| LineCapStyle.Butt | 否 | 设置线条端点绘制样式。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-path.md
浏览文件 @
7b376491
...
...
@@ -33,9 +33,9 @@ Path(value?: { width?: number | string; height?: number | string; commands?: str
| 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 |
| -------- | ----------------------------------- | ---- | ---- | ---------------------------------------- |
| commands | string | '' | 否 | 路径绘制的命令字符串,单位为px。像素单位转换方法请参考
[
像素单位转换
](
../../ui/ts-pixel-units.md
)
。 |
| fill |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置线条颜色。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置线条颜色。 |
| strokeDashArray | Array
<
Length
>
| [] | 否 | 设置线条间隙。 |
| strokeDashOffset | number
\|
string | 0 | 否 | 线条绘制起点的偏移量。 |
| strokeLineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle
)
| LineCapStyle.Butt | 否 | 设置线条端点绘制样式。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
浏览文件 @
7b376491
...
...
@@ -35,9 +35,9 @@ Polygon(options?: {width?: string | number, height?: string | number})
| 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| points | Array
<
Point
>
| [] | 否 | 多边形的顶点坐标列表。 |
| fill |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置线条颜色。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置线条颜色。 |
| strokeDashArray | Array
<
Length
>
| [] | 否 | 设置线条间隙。 |
| strokeDashOffset | number
\|
string | 0 | 否 | 线条绘制起点的偏移量。 |
| strokeLineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle
)
| LineCapStyle.Butt | 否 | 设置线条端点绘制样式。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polyline.md
浏览文件 @
7b376491
...
...
@@ -36,9 +36,9 @@ Polyline(options?: {width?: string | number, height?: string | number})
| 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| points | Array
<
Point
>
| [] | 否 | 折线经过坐标点列表。 |
| fill |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置线条颜色。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置线条颜色。 |
| strokeDashArray | Array
<
Length
>
| [] | 否 | 设置线条间隙。 |
| strokeDashOffset | number
\|
string | 0 | 否 | 线条绘制起点的偏移量。 |
| strokeLineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle
)
| LineCapStyle.Butt | 否 | 设置线条端点绘制样式。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
浏览文件 @
7b376491
...
...
@@ -42,9 +42,9 @@ Rect(options?: {width?: string | number,height?: string | number,radius?: string
| radiusWidth | string
\|
number | 0 | 否 | 圆角的宽度,仅设置宽时宽高一致。 |
| radiusHeight | string
\|
number | 0 | 否 | 圆角的高度,仅设置高时宽高一致。 |
| radius | string
\|
number
\|
Array
<
string
\|
number
>
| 0 | 否 | 圆角半径大小。 |
| fill |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置线条颜色。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置线条颜色。 |
| strokeDashArray | Array
<
Length
>
| [] | 否 | 设置线条间隙。 |
| strokeDashOffset | number
\|
string | 0 | 否 | 线条绘制起点的偏移量。 |
| strokeLineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle
)
| LineCapStyle.Butt | 否 | 设置线条端点绘制样式。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md
浏览文件 @
7b376491
...
...
@@ -38,15 +38,15 @@ Shape(value?: PixelMap)
| 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| viewPort | {
<br/>
x?:
number
\|
string,
<br/>
y?:
number
\|
string,
<br/>
width?:
number
\|
string,
<br/>
height?:
number
\|
string
<br/>
} | { x:0, y:0, width:0, height:0 } | 否 | 形状的视口。 |
| fill |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
../../ui/ts-types.md
)
| Color.Black | 否 | 设置线条颜色。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置线条颜色。 |
| strokeDashArray | Array
<
Length
>
| [] | 否 | 设置线条间隙。 |
| strokeDashOffset | number
\|
string | 0 | 否 | 线条绘制起点的偏移量。 |
| strokeLineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle
)
| LineCapStyle.Butt | 否 | 设置线条端点绘制样式。 |
| strokeLineJoin |
[
LineJoinStyle
](
ts-appendix-enums.md#linejoinstyle
)
| LineJoinStyle.Miter | 否 | 设置线条拐角绘制样式。 |
| strokeMiterLimit | number
\|
string | 4 | 否 | 设置锐角绘制成斜角的极限值。 |
| strokeOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置线条透明度。 |
| strokeOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource
)
| 1 | 否 | 设置线条透明度。 |
| strokeWidth | number
\|
string | 1 | 否 | 设置线条宽度。 |
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
| mesh
<sup>
8+
</sup>
| Array
<
number
>
,number,number | [],0,0 | 否 | 设置mesh效果。第一个参数为长度(column + 1)
* (row + 1)*
2的数组,它记录了扭曲后的位图各个顶点位置,第二个参数为mesh矩阵列数column,第三个参数为mesh矩阵行数row。 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录