diff --git a/zh-cn/application-dev/reference/apis/figures/zh-cn_image_0000001219864133.PNG b/zh-cn/application-dev/reference/apis/figures/zh-cn_image_0000001219864133.PNG
index eababe89d532f5e3f2bdd2e8d6449782054dc348..07ac9bc91d11e50df13af4f435305a4fc62db013 100644
Binary files a/zh-cn/application-dev/reference/apis/figures/zh-cn_image_0000001219864133.PNG and b/zh-cn/application-dev/reference/apis/figures/zh-cn_image_0000001219864133.PNG differ
diff --git a/zh-cn/application-dev/reference/apis/js-apis-matrix4.md b/zh-cn/application-dev/reference/apis/js-apis-matrix4.md
index bd45815101ffa3a86a7f6645e0d5ce59b1563ba4..e5b5be56efe03b57f0c799ed806d7810809f1735 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-matrix4.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-matrix4.md
@@ -453,7 +453,7 @@ struct Test {
.width('600px')
.height('300px')
.margin({ top: 50 })
- Text(`矩阵变换前的坐标:[${this.transformPoint}]`)
+ Text(`矩阵变换后的坐标:[${this.transformPoint}]`)
.fontSize(16)
.margin({ top: 100 })
Image($r("app.media.image"))
diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127125192.gif b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127125192.gif
index 3c65871bb208133129e46956ecee119276a390a5..3c5b1fa0343c2e6ec1ebf8592ed769e25fc5b2c4 100644
Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127125192.gif and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127125192.gif differ
diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127285004.gif b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127285004.gif
index e83e2ce11234a97242e1f57204b96568ad248d3d..dcb1ff67a62b1053d3e1c392bbe0535e81771c54 100644
Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127285004.gif and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001127285004.gif differ
diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167823326.gif b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167823326.gif
index 1589d8650fa225626fb8dadf085732f92170e40f..78a6830c434d54aab7beba2f171edfb2f8b4e7d9 100644
Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167823326.gif and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001167823326.gif differ
diff --git a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001229677045.gif b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001229677045.gif
index 294687cdfb0cf7f2ea34f91c87d0a6394b32bff0..eaf9944676873d49c6ca1ac7110a48413583821c 100644
Binary files a/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001229677045.gif and b/zh-cn/application-dev/reference/arkui-js/figures/zh-cn_image_0000001229677045.gif differ
diff --git a/zh-cn/application-dev/reference/arkui-js/js-components-common-methods.md b/zh-cn/application-dev/reference/arkui-js/js-components-common-methods.md
index 3d7409df287240e3358c69d842b635dfad2346e1..fc4057a506525cbb98c611a973089923f306db93 100644
--- a/zh-cn/application-dev/reference/arkui-js/js-components-common-methods.md
+++ b/zh-cn/application-dev/reference/arkui-js/js-components-common-methods.md
@@ -138,52 +138,42 @@ button{
```js
// xxx.js
-import promptAction from '@ohos.promptAction';
-export default{
- data:{
- animation:'',
- },
- onInit(){
- },
- onShow(){
- var options = {
- duration: 1500,
- easing: 'friction',
- delay: 500,
- fill: 'forwards',
- iterations: 2,
- direction: 'normal',
- };
- var frames = [
- {transform: {translate: '-120px -0px'}, opacity: 0.1, offset: 0.0},
- {transform: {translate: '120px 0px'}, opacity: 1.0, offset: 1.0}
- ];
- this.animation = this.$element('idName').animate(frames, options);
- // handle finish event
- this.animation.onfinish = function(){
- promptAction.showToast({
- message: "The animation is finished."
- });
- };
- // handle cancel event
- this.animation.oncancel = function(){
- promptAction.showToast({
- message: "The animation is canceled."
- });
- };
- // handle repeat event
- this.animation.onrepeat = function(){
- promptAction.showToast({
- message: "The animation is repeated."
- });
- };
- },
- start(){
- this.animation.play();
- },
- cancel(){
- this.animation.cancel();
- }
+export default {
+ data: {
+ animation: '',
+ options: {},
+ frames: {}
+ },
+ onInit() {
+ this.options = {
+ duration: 1500,
+ easing: 'friction',
+ delay: 500,
+ fill: 'forwards',
+ iterations: 2,
+ direction: 'normal',
+ };
+ this.frames = [
+ {
+ transform: {
+ translate: '-120px -0px'
+ }, opacity: 0.1, offset: 0.0
+ },
+ {
+ transform: {
+ translate: '120px 0px'
+ }, opacity: 1.0, offset: 1.0
+ }
+ ];
+ },
+
+ start() {
+ this.animation = this.$element('idName').animate(this.frames, this.options);
+ this.animation.play();
+ },
+ cancel() {
+ this.animation.cancel();
+ }
}
```
diff --git a/zh-cn/application-dev/reference/arkui-js/js-components-container-swiper.md b/zh-cn/application-dev/reference/arkui-js/js-components-container-swiper.md
index c0db6e8c9ce3668558a09d4c6ffbc888d1b5d769..d01d5628e943b96315a417708508aac9087e061c 100644
--- a/zh-cn/application-dev/reference/arkui-js/js-components-container-swiper.md
+++ b/zh-cn/application-dev/reference/arkui-js/js-components-container-swiper.md
@@ -117,16 +117,19 @@
}
.swiperContent1{
height: 100%;
+ width: 100%;
justify-content: center;
background-color: #007dff;
}
.swiperContent2{
height: 100%;
+ width: 100%;
justify-content: center;
background-color: #ff7500;
}
.swiperContent3{
height: 100%;
+ width: 100%;
justify-content: center;
background-color: #41ba41;
}
diff --git a/zh-cn/application-dev/reference/arkui-js/js-components-svg-animate.md b/zh-cn/application-dev/reference/arkui-js/js-components-svg-animate.md
index 2e9f3063b51fe8bb7e97235f9503984ac6c11b1e..704cd76d5bcfd906b8ed6fe2d94c5d017316a890 100644
--- a/zh-cn/application-dev/reference/arkui-js/js-components-svg-animate.md
+++ b/zh-cn/application-dev/reference/arkui-js/js-components-svg-animate.md
@@ -75,7 +75,7 @@
diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/borderImageGradient.png b/zh-cn/application-dev/reference/arkui-ts/figures/borderImageGradient.png
index edf91d4844deeee4f997f65d2d88b45bf7ff7f1d..0cf19ef4273d18c84b86582543129906e8720142 100644
Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/borderImageGradient.png and b/zh-cn/application-dev/reference/arkui-ts/figures/borderImageGradient.png differ
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md
index 0d48c2619b8708a403f0efdaa82f313fef35dd72..29575ae02c8eae383bd8005984e8c75c89ba450c 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md
@@ -99,21 +99,21 @@ struct ImageExample1 {
Text('default').fontSize(16).fontColor(0xcccccc).height(30)
Row({ space: 5 }) {
Image($r('app.media.ic_png'))
- .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(110).border({ width: 1 })
.overlay('png', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.ic_gif'))
- .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(110).border({ width: 1 })
.overlay('gif', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.ic_svg'))
- .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(110).border({ width: 1 })
.overlay('svg', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}
Row({ space: 5 }) {
Image($r('app.media.img_example'))
- .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(110).border({ width: 1 })
.overlay('jpg', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image(this.src)
- .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(110).border({ width: 1 })
.overlay('network', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}.margin({ top: 25, bottom: 10 })
}
@@ -122,25 +122,25 @@ struct ImageExample1 {
Text('objectFit').fontSize(16).fontColor(0xcccccc).height(30)
Row({ space: 5 }) {
Image($r('app.media.img_example'))
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.objectFit(ImageFit.None).width(110).height(110)
.overlay('None', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.img_example'))
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.objectFit(ImageFit.Fill).width(110).height(110)
.overlay('Fill', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.img_example'))
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.objectFit(ImageFit.Cover).width(110).height(110)
.overlay('Cover', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}
Row({ space: 5 }) {
Image($r('app.media.img_example_w250'))
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.objectFit(ImageFit.Contain).width(110).height(110)
.overlay('Contain', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.img_example_w250'))
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.objectFit(ImageFit.ScaleDown).width(110).height(110)
.overlay('ScaleDown', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}.margin({ top: 25 })
@@ -231,18 +231,18 @@ struct ImageExample2 {
Row({ space: 50 }) {
Image($r('app.media.img_example'))
.renderMode(ImageRenderMode.Original).width(100).height(100)
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.overlay('Original', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.img_example'))
.renderMode(ImageRenderMode.Template).width(100).height(100)
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.overlay('Template', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}
Text('alt').fontSize(12).fontColor(0xcccccc).width('96%').height(30)
Image('')
.alt($r('app.media.Image_none'))
- .width(100).height(100).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(100).height(100).border({ width: 1 })
Text('sourceSize').fontSize(12).fontColor(0xcccccc).width('96%')
Row({ space: 50 }) {
@@ -252,7 +252,7 @@ struct ImageExample2 {
height: 150
})
.objectFit(ImageFit.ScaleDown).width('25%').aspectRatio(1)
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.overlay('w:150 h:150', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.img_example'))
.sourceSize({
@@ -260,22 +260,22 @@ struct ImageExample2 {
height: 200
})
.objectFit(ImageFit.ScaleDown).width('25%').aspectRatio(1)
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.overlay('w:200 h:200', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}
Text('objectRepeat').fontSize(12).fontColor(0xcccccc).width('96%').height(30)
Row({ space: 5 }) {
Image($r('app.media.ic_health_heart'))
- .width(120).height(125).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(120).height(125).border({ width: 1 })
.objectRepeat(ImageRepeat.XY).objectFit(ImageFit.ScaleDown)
.overlay('ImageRepeat.XY', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.ic_health_heart'))
- .width(110).height(125).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(125).border({ width: 1 })
.objectRepeat(ImageRepeat.Y).objectFit(ImageFit.ScaleDown)
.overlay('ImageRepeat.Y', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.ic_health_heart'))
- .width(110).height(125).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(125).border({ width: 1 })
.objectRepeat(ImageRepeat.X).objectFit(ImageFit.ScaleDown)
.overlay('ImageRepeat.X', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md
index 388a78aad718f534728d8ade84fb8e0fdf9434a9..1d88e4f31832c2d009b9405f1526a06a2b669643 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-waterflow.md
@@ -289,3 +289,4 @@ struct WaterflowDemo {
```

+
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
index 5ec83e3c362a6b4b9038e353633f9018c256af46..687754f921ef7200cbeb8f13d8a150dd4e0af4a6 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
@@ -65,6 +65,7 @@ struct PolygonExample {
Polygon({ width: 100, height: 100 })
.points([[0, 0], [50, 100], [100, 0]])
.fill(Color.Green)
+ .stroke(Color.Transparent)
// 在 100 * 100 的矩形框中绘制一个四边形,起点(0, 0),经过(0, 100)和(100, 100),终点(100, 0)
Polygon().width(100).height(100)
.points([[0, 0], [0, 100], [100, 100], [100, 0]])
@@ -76,6 +77,7 @@ struct PolygonExample {
.points([[50, 0], [0, 50], [20, 100], [80, 100], [100, 50]])
.fill(Color.Red)
.fillOpacity(0.6)
+ .stroke(Color.Transparent)
}.width('100%').margin({ top: 10 })
}
}
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
index d455b7d6be8fb885fb29d23d369a25274cd44481..dbddfaf03fa31c54f880521a47d37a1c56f423c7 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
@@ -66,6 +66,7 @@ struct RectExample {
// 绘制90% * 50矩形
Rect({ width: '90%', height: 50 })
.fill(Color.Pink)
+ .stroke(Color.Transparent)
// 绘制90% * 50的矩形框
Rect()
.width('90%')
@@ -80,15 +81,18 @@ struct RectExample {
.radiusHeight(20)
.radiusWidth(40)
.fill(Color.Pink)
+ .stroke(Color.Transparent)
// 绘制90% * 80的矩形, 圆角宽高为20
Rect({ width: '90%', height: 80 })
.radius(20)
.fill(Color.Pink)
+ .stroke(Color.Transparent)
}.width('100%').margin({ top: 10 })
// 绘制90% * 50矩形, 左上圆角宽高40,右上圆角宽高20,右下圆角宽高40,左下圆角宽高20
Rect({ width: '90%', height: 80 })
.radius([[40, 40], [20, 20], [40, 40], [20, 20]])
.fill(Color.Pink)
+ .stroke(Color.Transparent)
}.width('100%').margin({ top: 5 })
}
}
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md
index bc7115c31ae1c215eb12669c0b8ccc875cbdd78e..1cfe679cdcba097c9b691ee208483f018a8c009e 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md
@@ -85,7 +85,7 @@ struct Index {
build() {
Row() {
Column() {
- Text('This is gradient color.').textAlign(TextAlign.Center).width(68)
+ Text('This is gradient color.').textAlign(TextAlign.Center).height(50).width(200)
.borderImage({
source: {
angle: 90,
diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001163531210.gif b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001163531210.gif
index 8d5a07d1ff67011de5d0ec6bc0c2e552db9e5cd0..47730f745cfd341cd6f11c9a3d4ce71d4b2795fb 100644
Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001163531210.gif and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001163531210.gif differ
diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001189089950.gif b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001189089950.gif
index eb0c760faaf917a6935af461e0094fd8e7b8e85b..903db10d6d7916f42ae2100403e02da2b2cf0fa2 100644
Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001189089950.gif and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001189089950.gif differ
diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234011019.gif b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234011019.gif
index 24f00c9f1aa6ec431a355f5dd2d88b920607cd05..ab13d6f819a666ded9ffffac99168beafacd97ae 100644
Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234011019.gif and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234011019.gif differ
diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234130975.png b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234130975.png
index 21d56ef14b92d136e304c4bae6ab8b1f447557bb..6b9e3cb7527e8f1415fd2d32cbc3cb5e12edb241 100644
Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234130975.png and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234130975.png differ
diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234289455.gif b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234289455.gif
index a6296483cbe2994e36e97d422588f3a9156b56eb..960772dc9536a9e103125503bbb7d4723a6f8c49 100644
Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234289455.gif and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001234289455.gif differ
diff --git a/zh-cn/application-dev/ui/ui-js-components-stepper.md b/zh-cn/application-dev/ui/ui-js-components-stepper.md
index 0c26fd3b45929d7eb47e09180f86f673937e1359..205a71260fe7214b2ccfeeca86855a064d00a668 100644
--- a/zh-cn/application-dev/ui/ui-js-components-stepper.md
+++ b/zh-cn/application-dev/ui/ui-js-components-stepper.md
@@ -186,7 +186,7 @@ text{
}
```
-
+
## 添加事件