Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Coping0606
Docs
提交
00c093be
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,发现更多精彩内容 >>
未验证
提交
00c093be
编写于
3月 11, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 11, 2022
浏览文件
操作
浏览文件
下载
差异文件
!1959 自动化测试问题修改
Merge pull request !1959 from LiAn/master
上级
343f7042
d362cbc5
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
21 addition
and
24 deletion
+21
-24
zh-cn/application-dev/reference/arkui-js/js-components-common-transition.md
...dev/reference/arkui-js/js-components-common-transition.md
+4
-2
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
+0
-1
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkbox.md
...on-dev/reference/arkui-ts/ts-basic-components-checkbox.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richtext.md
...on-dev/reference/arkui-ts/ts-basic-components-richtext.md
+10
-11
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-image-effect.md
...eference/arkui-ts/ts-universal-attributes-image-effect.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-size.md
...on-dev/reference/arkui-ts/ts-universal-attributes-size.md
+2
-5
zh-cn/application-dev/reference/arkui-ts/ts-universal-events-click.md
...ation-dev/reference/arkui-ts/ts-universal-events-click.md
+3
-3
未找到文件。
zh-cn/application-dev/reference/arkui-js/js-components-common-transition.md
浏览文件 @
00c093be
...
...
@@ -48,8 +48,10 @@ PageA跳转到PageB,跳转的共享元素为image, shareid为“shareImage
<div>
<list>
<list-item type="description">
<image src="item.jpg" shareid="shareImage" onclick="jump" class="shared-transition-style"></image>
<text onclick="jump">Click on picture to Jump to ths details</text>
<div>
<image src="item.jpg" shareid="shareImage" onclick="jump" class="shared-transition-style"></image>
<text onclick="jump">Click on picture to Jump to ths details</text>
</div>
</list-item>
</list>
</div>
...
...
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
浏览文件 @
00c093be
...
...
@@ -97,7 +97,6 @@
-
[
Swiper
](
ts-container-swiper.md
)
-
[
Tabs
](
ts-container-tabs.md
)
-
[
TabContent
](
ts-container-tabcontent.md
)
-
[
SideBarContainer
](
ts-container-sidebarcontainer.md
)
-
[
Refresh
](
ts-container-refresh.md
)
-
媒体组件
-
[
Video
](
ts-media-components-video.md
)
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkbox.md
浏览文件 @
00c093be
...
...
@@ -42,7 +42,7 @@ Checkbox( name?: string, group?: string )
## 示例
```
@Entry
‘
@Entry
@Component
struct CheckboxExample {
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richtext.md
浏览文件 @
00c093be
...
...
@@ -53,17 +53,16 @@ RichText\(content:string\)
@Entry
@Component
struct RichTextExample {
@State data: string = '<h1 style='text-align: center;'>h1标题</h1>
<h1 style='text-align: center;'><i>h1斜体</i></h1>
<h1 style='text-align: center;'><u>h1下划线</u></h1>
<h2 style='text-align: center;'>h2标题</h2>
<h3 style='text-align: center;'>h3标题</h3>
<p style='text-align: center;'>p常规</p><hr/>
<div style='width: 500px;height: 500px;border: 1px solid;margin: 0auto;'>
<p style='font-size: 35px;text-align: center;font-weight: bold; color: rgb(24,78,228)'>字体大小35px,行高45px</p>
<p style='background-color: #e5e5e5;line-height: 45px;font-size: 35px;text-indent: 2em;'>
这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字
这是一段文字</p></div>'
@State data: string = "<h1 style='text-align: center;'>h1标题</h1>" +
"<h1 style='text-align: center;'><i>h1斜体</i></h1>" +
"<h1 style='text-align: center;'><u>h1下划线</u></h1>" +
"<h2 style='text-align: center;'>h2标题</h2>" +
"<h3 style='text-align: center;'>h3标题</h3>" +
"<p style='text-align: center;'>p常规</p><hr/>" +
"<div style='width: 500px;height: 500px;border: 1px solid;margin: 0auto;'>" +
"<p style='font-size: 35px;text-align: center;font-weight: bold; color: rgb(24,78,228)'>字体大小35px,行高45px</p>" +
"<p style='background-color: #e5e5e5;line-height: 45px;font-size: 35px;text-indent: 2em;'>" +
"<p>这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字这是一段文字</p>"
build() {
Flex({direction: FlexDirection.Column,alignItems: ItemAlign.Center,
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-image-effect.md
浏览文件 @
00c093be
...
...
@@ -34,7 +34,7 @@
@Component
struct ImageEffectsExample {
build() {
Column({space
:
10}) {
Column({space
:
10}) {
// 对字体进行模糊
Text('font blur').fontSize(15).fontColor(0xCCCCCC).width('90%')
Text('text').blur(3).width('90%').height(40)
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-size.md
浏览文件 @
00c093be
...
...
@@ -19,7 +19,7 @@
| size | {
<br/>
width?:
Length,
<br/>
height?:
Length
<br/>
} | - | 设置高宽尺寸。 |
| padding | {
<br/>
top?:
Length,
<br/>
right?:
Length,
<br/>
bottom?:
Length,
<br/>
left?:
Length
<br/>
}
\|
Length | 0 | 设置内边距属性。
<br/>
参数为Length类型时,四个方向内边距同时生效。 |
| margin | {
<br/>
top?:
Length,
<br/>
right?:
Length,
<br/>
bottom?:
Length,
<br/>
left?:
Length
<br/>
}
<br/>
\|
Length | 0 | 设置外边距属性。
<br/>
参数为Length类型时,四个方向外边距同时生效。 |
| constraintSize | {
<br/>
minWidth?:
Length,
<br/>
maxWidth?:
Length,
<br/>
minHeight?:
Length,
<br/>
maxHeight?:
Leng
ht
<br/>
} | {
<br/>
minWidth:
0,
<br/>
maxWidth:
Infinity,
<br/>
minHeight:
0,
<br/>
maxHeight:
Infinity
<br/>
} | 设置约束尺寸,组件布局时,进行尺寸范围限制。 |
| constraintSize | {
<br/>
minWidth?:
Length,
<br/>
maxWidth?:
Length,
<br/>
minHeight?:
Length,
<br/>
maxHeight?:
Leng
th
<br/>
} | {
<br/>
minWidth:
0,
<br/>
maxWidth:
Infinity,
<br/>
minHeight:
0,
<br/>
maxHeight:
Infinity
<br/>
} | 设置约束尺寸,组件布局时,进行尺寸范围限制。 |
| layoutWeight | number | 0 | 容器尺寸确定时,元素与兄弟节点主轴布局尺寸按照权重进行分配,忽略本身尺寸设置。
<br/>
>
![icon-note.gif](public_sys-resources/icon-note.gif)
**说明:**
<br/>
>
仅在Row/Column/Flex布局中生效。 |
...
...
@@ -29,7 +29,6 @@
@Entry
@Component
struct SizeExample {
@StateitemWidth : number = 0 @StateitemHeight : number = 0
build() {
Column({ space: 10 }) {
Text('margin and padding:').fontSize(12).fontColor(0xCCCCCC).width('90%')
...
...
@@ -55,10 +54,8 @@ struct SizeExample {
Text('no layoutWeight')
.size({ width: '30%', height: 110 }).backgroundColor(0xD2B48C).textAlign(TextAlign.Center)
}.size({ width: '90%', height: 140 }).backgroundColor(0xAFEEEE)
List() { ListItem() { Image('/resources/rawfile/seaman.png') .alt('/resources/rawfile/seaman2.png') .objectFit(ImageFit.Fill) .padding('100vp') .margin('40vp') .opacity(0.5) .measure('image_1') // 获取id=image_1的Image组件尺寸信息 } .onMeasure((Array<MeasureRuler> ruler) => { // 在布局之前回调,返回已测量的子组件尺寸信息 console.log(ruler[0].id, ruler[0].screenX, ruler[0].screenY, ruler[0].offsetX, ruler[0].offsetY, ruler[0].width, ruler[0].height) this.itemWidth = ruler[0].width this.itemHeight = ruler[0].height }) .width(this.itemWidth) .height(this.itemHeight) }
}.width('100%').margin({ top: 5 })
}
}
}}
```
![
zh-cn_image_0000001174264384
](
figures/zh-cn_image_0000001174264384.gif
)
zh-cn/application-dev/reference/arkui-ts/ts-universal-events-click.md
浏览文件 @
00c093be
...
...
@@ -25,12 +25,12 @@
| target
<sup>
8+
</sup>
| EventTarget | 被点击元素对象。 |
| timestamp | number | 事件时间戳。 |
-
EventTarget
对象说明
<sup>
8+
</sup>
-
EventTarget
<sup>
8+
</sup>
对象说明
| 名称 | 参数类型 | 描述 |
| -------- | -------- | -------- |
| area | Area | 目标元素的区域信息。 |
-
Area
对象说明
<sup>
8+
</sup>
-
Area
<sup>
8+
</sup>
对象说明
| 属性名称 | 类型 | 描述 |
| -------- | -------- | -------- |
| width | number | 目标元素的宽度,单位为vp。 |
...
...
@@ -38,7 +38,7 @@
| pos | Position | 目标元素左上角相对父元素左上角的位置。 |
| globalPos | Position | 目标元素左上角相对页面左上角的位置。 |
-
Position
对象说明
<sup>
8+
</sup>
-
Position
<sup>
8+
</sup>
对象说明
| 属性名称 | 参数类型 | 描述 |
| -------- | -------- | -------- |
| x | number | x轴坐标,单位为vp。 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录