Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
952d27f7
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看板
未验证
提交
952d27f7
编写于
11月 17, 2022
作者:
O
openharmony_ci
提交者:
Gitee
11月 17, 2022
浏览文件
操作
浏览文件
下载
差异文件
!11508 3.1 断链修改
Merge pull request !11508 from LiAn/OpenHarmony-3.1-Release
上级
9fa935b8
2728736d
变更
12
显示空白变更内容
内联
并排
Showing
12 changed file
with
20 addition
and
25 deletion
+20
-25
zh-cn/application-dev/reference/arkui-js/js-components-svg.md
...n/application-dev/reference/arkui-js/js-components-svg.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-container-navigator.md
...lication-dev/reference/arkui-ts/ts-container-navigator.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-methods-action-sheet.md
...ication-dev/reference/arkui-ts/ts-methods-action-sheet.md
+2
-7
zh-cn/application-dev/ui/ts-pixel-units.md
zh-cn/application-dev/ui/ts-pixel-units.md
+1
-1
zh-cn/application-dev/ui/ui-js-components-button.md
zh-cn/application-dev/ui/ui-js-components-button.md
+1
-1
未找到文件。
zh-cn/application-dev/reference/arkui-js/js-components-svg.md
浏览文件 @
952d27f7
...
...
@@ -15,7 +15,7 @@
## 子组件
支持
[
svg
](
js-components-svg.md
)
、
[
rect
](
js-components-svg-rect.md
)
、
[
circle
](
js-components-svg-circle.md
)
、
[
ellipse
](
../arkui-js/js-components-svg-ellipse.md
)
、
[
path
](
js-components-svg-path.md
)
、
[
line
](
../arkui-js/js-components-svg-line.md
)
、
[
polygon
](
../arkui-js/js-components-svg-polygon.md
)
、
[
polyline
](
js-components-svg-polyline.md
)
、
[
text
](
js-components-svg-text.md
)
、
[
animate
](
js-components-svg-animate.md
)
、
[
animateTransform
](
js-components-svg-animate
T
ransform.md
)
。
支持
[
svg
](
js-components-svg.md
)
、
[
rect
](
js-components-svg-rect.md
)
、
[
circle
](
js-components-svg-circle.md
)
、
[
ellipse
](
../arkui-js/js-components-svg-ellipse.md
)
、
[
path
](
js-components-svg-path.md
)
、
[
line
](
../arkui-js/js-components-svg-line.md
)
、
[
polygon
](
../arkui-js/js-components-svg-polygon.md
)
、
[
polyline
](
js-components-svg-polyline.md
)
、
[
text
](
js-components-svg-text.md
)
、
[
animate
](
js-components-svg-animate.md
)
、
[
animateTransform
](
js-components-svg-animate
t
ransform.md
)
。
## 属性
...
...
zh-cn/application-dev/reference/arkui-ts/ts-container-navigator.md
浏览文件 @
952d27f7
...
...
@@ -37,7 +37,7 @@ Navigator(value?: {target: string, type?: NavigationType})
| 名称 | 参数 | 描述 |
| ------ | ------- | ------------------------------------------------------------ |
| active | boolean | 当前路由组件是否处于激活状态,处于激活状态时,会生效相应的路由操作。 |
| params | object | 跳转时要同时传递到目标页面的数据,可在目标页面使用
[
router.getParams()
](
../apis/js-api-router.md#routergetparams
)
获得。 |
| params | object | 跳转时要同时传递到目标页面的数据,可在目标页面使用
[
router.getParams()
](
../apis/js-api
s
-router.md#routergetparams
)
获得。 |
| target | string | 设置跳转目标页面的路径。 目标页面需加入main_pages.json文件中。 |
| type |
[
NavigationType
](
#navigationtype枚举说明
)
| 设置路由方式。
<br/>
默认值:NavigationType.Push |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-circle.md
浏览文件 @
952d27f7
...
...
@@ -35,14 +35,14 @@ Circle(options?: {width?: string | number, height?: string | number})
| 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 否 | 设置边框颜色,不设置时,默认没有边框。 |
| 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 | Length | 1 | 否 | 设置边框宽度。 |
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-ellipse.md
浏览文件 @
952d27f7
...
...
@@ -36,14 +36,14 @@ ellipse(options?: {width?: string | number, height?: string | number})
| 参数名称 | 参数类型 | 默认值 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 否 |设置边框颜色,不设置时,默认没有边框。 |
| 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 | Length | 1 | 否 | 设置边框宽度。 |
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-line.md
浏览文件 @
952d27f7
...
...
@@ -37,14 +37,14 @@ Line(options?: {width?: string | number, height?: string | number})
| startPoint | Array | [0,
0] | 是 | 直线起点坐标点(相对坐标)。 |
| endPoint | Array | [0,
0] | 是 | 直线终点坐标点(相对坐标)。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| 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 | Length | 1 | 否 | 设置线条宽度。 |
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-path.md
浏览文件 @
952d27f7
...
...
@@ -34,14 +34,14 @@ Path(value?: { width?: number | string; height?: number | string; commands?: str
| -------- | ----------------------------------- | ---- | ---- | ---------------------------------------- |
| commands | string | '' | 否 | 路径绘制的命令字符串,单位为px。像素单位转换方法请参考
[
像素单位转换
](
../../ui/ts-pixel-units.md
)
。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 否 | 设置线条颜色。 |
| 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 | Length | 1 | 否 | 设置线条宽度。 |
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
浏览文件 @
952d27f7
...
...
@@ -36,14 +36,14 @@ Polygon(options?: {width?: string | number, height?: string | number})
| -------- | -------- | -------- | -------- | -------- |
| points | Array
<
Point
>
| [] | 否 | 多边形的顶点坐标列表。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 否 | 设置边框颜色,不设置时,默认没有边框线条。 |
| 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 | Length | 1 | 否 | 设置边框宽度。 |
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polyline.md
浏览文件 @
952d27f7
...
...
@@ -37,14 +37,14 @@ Polyline(options?: {width?: string | number, height?: string | number})
| -------- | -------- | -------- | -------- | -------- |
| points | Array
<
Point
>
| [] | 否 | 折线经过坐标点列表。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 否 | 设置线条颜色。 |
| 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 | Length | 1 | 否 | 设置线条宽度。 |
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
浏览文件 @
952d27f7
...
...
@@ -43,14 +43,14 @@ Rect(options?: {width?: string | number,height?: string | number,radius?: string
| radiusHeight | string
\|
number | 0 | 否 | 圆角的高度,仅设置高时宽高一致。 |
| radius | string
\|
number
\|
Array
<
string
\|
number
>
| 0 | 否 | 圆角半径大小。 |
| fill |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Color.Black | 否 | 设置填充区域颜色。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 1 | 否 | 设置填充区域透明度。 |
| fillOpacity | number
\|
string
\|
[
Resource
](
ts-types.md#resource
)
| 1 | 否 | 设置填充区域透明度。 |
| stroke |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 否 | 设置边框颜色,不设置时,默认没有边框线条。 |
| 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 | Length | 1 | 否 | 设置边框宽度。 |
| antiAlias | boolean | true | 否 | 是否开启抗锯齿效果。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-methods-action-sheet.md
浏览文件 @
952d27f7
...
...
@@ -7,11 +7,6 @@
列表弹窗。
## 权限
无
## ActionSheet.show
show(value: {
title: string
|
Resource,
message: string
|
Resource,
confirm?: {value: string
|
Resource,
action:() => void},
cancel?:()=>void,
sheets: Array
<
SheetInfo
>
,
autoCancel?:boolean,
alignment?: DialogAlignment,
offset?: { dx: number | string | Resource; dy: number | string | Resource } })
...
...
@@ -34,8 +29,8 @@ show(value: { title: string | Resource, message: string 
| 参数名 | 参数类型 | 必填 | 参数描述 |
| ------ | ------------------------------------------------------------ | ---- | ----------------- |
| title | string
\|
[
Resource
](
../../ui/
ts-types.md#resource
)
| 是 | 选项的文本内容。 |
| icon | string
\|
[
Resource
](
../../ui/
ts-types.md#resource
)
| 否 | 选项的图标,默认无图标显示。 |
| title | string
\|
[
Resource
](
ts-types.md#resource
)
| 是 | 选项的文本内容。 |
| icon | string
\|
[
Resource
](
ts-types.md#resource
)
| 否 | 选项的图标,默认无图标显示。 |
| action | ()=
>
void | 是 | 选项选中的回调。 |
...
...
zh-cn/application-dev/ui/ts-pixel-units.md
浏览文件 @
952d27f7
...
...
@@ -8,7 +8,7 @@
| px | 屏幕物理像素单位。 |
| vp | 屏幕密度相关像素,根据屏幕像素密度转换为屏幕物理像素。 |
| fp | 字体像素,与vp类似适用屏幕密度变化,随系统字体大小设置变化。 |
| lpx | 视窗逻辑像素单位,lpx单位为实际屏幕宽度与逻辑宽度(通过
[
designWidth
](
../
ui/ts-framework-js-tag
.md
)
配置)的比值。如配置designWidth为720时,在实际宽度为1440物理像素的屏幕上,1lpx为2px大小。 |
| lpx | 视窗逻辑像素单位,lpx单位为实际屏幕宽度与逻辑宽度(通过
[
designWidth
](
../
quick-start/package-structure
.md
)
配置)的比值。如配置designWidth为720时,在实际宽度为1440物理像素的屏幕上,1lpx为2px大小。 |
## 像素单位转换
...
...
zh-cn/application-dev/ui/ui-js-components-button.md
浏览文件 @
952d27f7
...
...
@@ -74,7 +74,7 @@ Button是按钮组件,其类型包括胶囊按钮、圆形按钮、文本按
>  **说明:**
> - Button组件使用的icon图标如果来自云端路径,需要添加网络访问权限 ohos.permission.INTERNET。具体申请方式请参考[权限申请声明](../
../
security/accesstoken-guidelines.md)。
> - Button组件使用的icon图标如果来自云端路径,需要添加网络访问权限 ohos.permission.INTERNET。具体申请方式请参考[权限申请声明](../security/accesstoken-guidelines.md)。
如果需要添加ohos.permission.INTERNET权限,则在resources文件夹下的config.json文件里进行权限配置。
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录