diff --git a/en/application-dev/reference/arkui-js/js-components-container-div.md b/en/application-dev/reference/arkui-js/js-components-container-div.md
index e35eb42639301cfb6ce1a9a45880217ce1daf54b..1cbd9ac9be8e5f4f0dfd3a9db2f91c45d19b10f4 100644
--- a/en/application-dev/reference/arkui-js/js-components-container-div.md
+++ b/en/application-dev/reference/arkui-js/js-components-container-div.md
@@ -275,7 +275,7 @@ In addition to the [universal methods](js-components-common-methods.md), the fol
top:0,
},
dragstart(e){
- prompt.showToast({
+ promptAction.showToast({
message: 'Start to be dragged'
})
},
@@ -385,25 +385,25 @@ In addition to the [universal methods](js-components-common-methods.md), the fol
```js
// xxx.js
- import prompt from '@system.prompt';
+ import promptAction from '@ohos.promptAction';
export default {
pinchstart(e){
- prompt.showToast({
+ promptAction.showToast({
message: 'pinchstart!!!'
})
},
pinchupdate(e){
- prompt.showToast({
+ promptAction.showToast({
message: 'Two-finger pinch update'
})
},
pinchend(e){
- prompt.showToast({
+ promptAction.showToast({
message: 'Finished with two fingers pinching'
})
},
pinchcancel(e){
- prompt.showToast({
+ promptAction.showToast({
message: 'Finger pinching is interrupted'
})
}
diff --git a/en/application-dev/reference/arkui-ts/ts-transition-animation-component.md b/en/application-dev/reference/arkui-ts/ts-transition-animation-component.md
index cd072648a81f68b080ae88b9a90cf6a157376dc6..ff60c8526b70cd848293f696699a6bd5f4fe26c0 100644
--- a/en/application-dev/reference/arkui-ts/ts-transition-animation-component.md
+++ b/en/application-dev/reference/arkui-ts/ts-transition-animation-component.md
@@ -19,10 +19,10 @@ Configure the component transition animations for when a component is inserted o
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| type | [TransitionType](ts-appendix-enums.md#transitiontype) | No| Transition type, which includes component addition and deletion by default. Default value: **TransitionType.All** Since API version 9, this API is supported in ArkTS widgets. **NOTE** If **type** is not specified, insertion and deletion use the same transition type.|
-| opacity | number | No| Opacity of the component during transition, which is the value of the start point of insertion and the end point of deletion. Default value: **1** Value range: [0, 1] Since API version 9, this API is supported in ArkTS widgets. **NOTE** A value less than 0 evaluates to the value **0**. A value greater than 1 evaluates to the value **1**.|
+| opacity | number | No| Opacity of the component during transition, which is the value of the start point of insertion and the end point of deletion. Default value: **1** Value range: [0, 1] Since API version 9, this API is supported in ArkTS widgets. **NOTE** A value less than 0 or greater than 1 evaluates to the value **1**.|
| translate | { x? : number \| string, y? : number \| string, z? : number \| string } | No| Translation of the component during transition, which is the value of the start point of insertion and the end point of deletion. -**x**: distance to translate along the x-axis. -**y**: distance to translate along the y-axis. -**z**: distance to translate along the z-axis. Since API version 9, this API is supported in ArkTS widgets.|
| scale | { x? : number, y? : number, z? : number, centerX? : number \| string, centerY? : number \| string } | No| Scaling of the component during transition, which is the value of the start point of insertion and the end point of deletion. - **x**: scale factor along the x-axis. - **y**: scale factor along the y-axis. - **z**: scale factor along the z-axis. - **centerX** and **centerY**: x coordinate and y coordinate of the scale center, respectively. The default values are both **"50%"**. - If the center point is 0, it indicates the upper left corner of the component. Since API version 9, this API is supported in ArkTS widgets.|
-| rotate | { x?: number, y?: number, z?: number, angle?: number \| string, centerX?: number \| string, centerY?: number \| string } | No| Rotation of the component during transition, which is the value of the start point of insertion and the end point of deletion. - **x**: rotation vector along the x-axis. - **y**: rotation vector along the y-axis. - **z**: rotation vector along the z-axis. - **centerX** and **centerY**: x coordinate and y coordinate of the rotation center, respectively. The default values are both **"50%"**. - If the center point is (0, 0), it indicates the upper left corner of the component. Since API version 9, this API is supported in ArkTS widgets.|
+| rotate | { x?: number, y?: number, z?: number, angle: number \| string, centerX?: number \| string, centerY?: number \| string } | No| Rotation of the component during transition, which is the value of the start point of insertion and the end point of deletion. - **x**: rotation vector along the x-axis. - **y**: rotation vector along the y-axis. - **z**: rotation vector along the z-axis. - **centerX** and **centerY**: x coordinate and y coordinate of the rotation center, respectively. The default values are both **"50%"**. - If the center point is (0, 0), it indicates the upper left corner of the component. Since API version 9, this API is supported in ArkTS widgets.|
## Example
diff --git a/en/application-dev/ui/figures/en-us_image_0000001163531210.gif b/en/application-dev/ui/figures/en-us_image_0000001163531210.gif
index 47730f745cfd341cd6f11c9a3d4ce71d4b2795fb..a645566ffd6152e073bda387a61468d05d0a93da 100644
Binary files a/en/application-dev/ui/figures/en-us_image_0000001163531210.gif and b/en/application-dev/ui/figures/en-us_image_0000001163531210.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001174756580.gif b/en/application-dev/ui/figures/en-us_image_0000001174756580.gif
new file mode 100644
index 0000000000000000000000000000000000000000..d3ad5d5ccc9d68f3f822a20b7fde31b05d4b2892
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001174756580.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001178685854.gif b/en/application-dev/ui/figures/en-us_image_0000001178685854.gif
new file mode 100644
index 0000000000000000000000000000000000000000..7f8c79eb23a72da310d2769746d0a8bde4519bcd
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001178685854.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001181655292.gif b/en/application-dev/ui/figures/en-us_image_0000001181655292.gif
new file mode 100644
index 0000000000000000000000000000000000000000..24dba7afc4830bb8da86f31fe7a2d25092bc4987
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001181655292.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001181823160.gif b/en/application-dev/ui/figures/en-us_image_0000001181823160.gif
new file mode 100644
index 0000000000000000000000000000000000000000..cf8a2ba1b016283dc59117bc853d1348b5016bbe
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001181823160.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001189089950.gif b/en/application-dev/ui/figures/en-us_image_0000001189089950.gif
index 52e27cf794d93927462587c5fe202c1afb344b96..c91f56f31a49756556d6ff61cccda166b33c6371 100644
Binary files a/en/application-dev/ui/figures/en-us_image_0000001189089950.gif and b/en/application-dev/ui/figures/en-us_image_0000001189089950.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001189249862.gif b/en/application-dev/ui/figures/en-us_image_0000001189249862.gif
index a1839308d0fdde50aefd4c818d30ea82c49b6ca6..f541dcffbfdc3712ccb6aaddaa5ab0b5a904f6d9 100644
Binary files a/en/application-dev/ui/figures/en-us_image_0000001189249862.gif and b/en/application-dev/ui/figures/en-us_image_0000001189249862.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001218279600.gif b/en/application-dev/ui/figures/en-us_image_0000001218279600.gif
new file mode 100644
index 0000000000000000000000000000000000000000..af0d82673874b844d27059447b73c5eeff622156
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001218279600.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001220316305.gif b/en/application-dev/ui/figures/en-us_image_0000001220316305.gif
new file mode 100644
index 0000000000000000000000000000000000000000..52486eead5a5d005c46e0eb445954bb41fbc186e
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001220316305.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001220396251.gif b/en/application-dev/ui/figures/en-us_image_0000001220396251.gif
new file mode 100644
index 0000000000000000000000000000000000000000..e7d53872aa36d55697d3fa917ba9ab655c91984e
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001220396251.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001220554911.gif b/en/application-dev/ui/figures/en-us_image_0000001220554911.gif
new file mode 100644
index 0000000000000000000000000000000000000000..f6c0806abfb1bdc742b69592300bc333c590407b
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001220554911.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001220635011.gif b/en/application-dev/ui/figures/en-us_image_0000001220635011.gif
deleted file mode 100644
index 0be34d5b9598c7e03132b08e030fd71d977886b5..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001220635011.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001222807776.gif b/en/application-dev/ui/figures/en-us_image_0000001222807776.gif
deleted file mode 100644
index 365dbc42e583335f32de863120fd80ae0e7d59e5..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001222807776.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001223127712.gif b/en/application-dev/ui/figures/en-us_image_0000001223127712.gif
deleted file mode 100644
index 3fe0cd60d60a0c5d29c2625ebade3d8b0bd0cdf8..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001223127712.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001224086459.gif b/en/application-dev/ui/figures/en-us_image_0000001224086459.gif
new file mode 100644
index 0000000000000000000000000000000000000000..0257ac0a97c7bb8af3431962f41c8d0a62a5351e
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001224086459.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001226815403.gif b/en/application-dev/ui/figures/en-us_image_0000001226815403.gif
new file mode 100644
index 0000000000000000000000000000000000000000..ca4ecc21fe0596f0a644dd619b2d889949d339d1
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001226815403.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001226896657.gif b/en/application-dev/ui/figures/en-us_image_0000001226896657.gif
new file mode 100644
index 0000000000000000000000000000000000000000..5caa616a4867ff14b496363ed522739ed470f873
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001226896657.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001227135613.gif b/en/application-dev/ui/figures/en-us_image_0000001227135613.gif
new file mode 100644
index 0000000000000000000000000000000000000000..25967987fbbada2f179f029578d8f28dfc523d8a
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001227135613.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001227422709.gif b/en/application-dev/ui/figures/en-us_image_0000001227422709.gif
new file mode 100644
index 0000000000000000000000000000000000000000..a89f97cdb43f6527836575768e306a594a76a221
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001227422709.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001227701031.gif b/en/application-dev/ui/figures/en-us_image_0000001227701031.gif
new file mode 100644
index 0000000000000000000000000000000000000000..74e527d7842dcd825a0baf93dbe49cdcc3933a97
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001227701031.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001227701867.gif b/en/application-dev/ui/figures/en-us_image_0000001227701867.gif
index 0cbcaa3ff368a2a2ad63c8729acc0f66ae874437..fac38d519b9b817e2a7dfdc7f26c46b61a7bdb3e 100644
Binary files a/en/application-dev/ui/figures/en-us_image_0000001227701867.gif and b/en/application-dev/ui/figures/en-us_image_0000001227701867.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001231843088.gif b/en/application-dev/ui/figures/en-us_image_0000001231843088.gif
deleted file mode 100644
index f7f05ac39da2bd2f04a7257e1c36eb87ad811783..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001231843088.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001231843116.gif b/en/application-dev/ui/figures/en-us_image_0000001231843116.gif
deleted file mode 100644
index d6a46140a41a112790210c58502fbc3df6e65f20..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001231843116.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001232003008.gif b/en/application-dev/ui/figures/en-us_image_0000001232003008.gif
deleted file mode 100644
index b5bce1b8e09e0c47231c11250c6d676806bcd53c..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001232003008.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001232003012.gif b/en/application-dev/ui/figures/en-us_image_0000001232003012.gif
deleted file mode 100644
index 260966e4fe59e4e6f80b501251f478bbb7126dce..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001232003012.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001234011019.gif b/en/application-dev/ui/figures/en-us_image_0000001234011019.gif
index 7dd539689ac7b81822c934bd3c515e1d4f002d85..f7defcdb55deec4749d8af503dd8314bf6b1521a 100644
Binary files a/en/application-dev/ui/figures/en-us_image_0000001234011019.gif and b/en/application-dev/ui/figures/en-us_image_0000001234011019.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001267607921.gif b/en/application-dev/ui/figures/en-us_image_0000001267607921.gif
deleted file mode 100644
index 90898288928277467db40c5eb11b4ff7ae082e6e..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001267607921.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001267767853.gif b/en/application-dev/ui/figures/en-us_image_0000001267767853.gif
deleted file mode 100644
index 5a297661641d1714ebc95116592a97a693293e0a..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001267767853.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001267887837.gif b/en/application-dev/ui/figures/en-us_image_0000001267887837.gif
deleted file mode 100644
index b7808565202cf12474f1282e67fde3a9c85d0e9c..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001267887837.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001275803173.gif b/en/application-dev/ui/figures/en-us_image_0000001275803173.gif
deleted file mode 100644
index abec4486ad5f444b32aa20b88a3a6d1975254cd0..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001275803173.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001275803189.gif b/en/application-dev/ui/figures/en-us_image_0000001275803189.gif
deleted file mode 100644
index ab6d5e3bde1e3218eaa1156137c7fd6ffc298882..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001275803189.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001275923005.gif b/en/application-dev/ui/figures/en-us_image_0000001275923005.gif
deleted file mode 100644
index 8bd5e2f2f7f60ad28107af3dc67ff5ee75af2b0d..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001275923005.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001275923021.gif b/en/application-dev/ui/figures/en-us_image_0000001275923021.gif
deleted file mode 100644
index 5813dfac315791a87d9bd9c70a9587e6b779614c..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001275923021.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001276003485.gif b/en/application-dev/ui/figures/en-us_image_0000001276003485.gif
deleted file mode 100644
index 28b2a163673a71e95a40284d2b045005594623e6..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001276003485.gif and /dev/null differ
diff --git a/en/application-dev/ui/ui-js-animate-component.md b/en/application-dev/ui/ui-js-animate-component.md
index 9d51f17b287ef56dfc8cea9b880c129fb0fe7bfc..16130a97a98e04b0736e46550aa72607cd1a53be 100644
--- a/en/application-dev/ui/ui-js-animate-component.md
+++ b/en/application-dev/ui/ui-js-animate-component.md
@@ -34,28 +34,28 @@ Call the **animate** method to obtain an animation object, which supports animat
```js
/* xxx.js */
export default {
- data: {
- animation: '',
- },
- onInit() {
- },
- onShow() {
- var options = {
- duration: 1500,
- };
- var frames = [
- {
- width:200,height:200,
- },
- {
- width:300,height:300,
- }
- ];
- this.animation = this.$element('content').animate(frames, options); // Obtain the animation object.
- },
- Show() {
- this.animation.play();
- }
+ data: {
+ animation: '',
+ options: {},
+ frames: {}
+ },
+ onInit() {
+ this.options = {
+ duration: 1500,
+ };
+ this.frames = [
+ {
+ width: 200, height: 200,
+ },
+ {
+ width: 300, height: 300,
+ }
+ ];
+ },
+ Show() {
+ this.animation = this.$element('content').animate(this.frames, this.options); // Obtain the animation object.
+ this.animation.play();
+ }
}
```
@@ -172,297 +172,52 @@ Set the animation attributes by using the **options** parameter.
```js
/* xxx.js */
-export default {
- data: {
- animation: '',
- },
- onInit() {
- },
- onShow() {
- var options = {
- duration: 1500,
- easing: 'ease-in',
- delay: 5,
- iterations: 2,
- direction: 'normal',
- };
- var frames = [
- {
- transform: {
- translate: '-150px -0px'
- }
- },
- {
- transform: {
- translate: '150px 0px'
- }
- }
- ];
- this.animation = this.$element('content').animate(frames, options);
- },
- Show() {
- this.animation.play();
- }
-}
-```
-
-
-
-> **NOTE**
->
-> **direction**: mode of playing the animation.
->
-> **normal**: plays the animation in forward loop mode.
->
-> **reverse**: plays the animation in reverse loop mode.
->
-> **alternate**: plays the animation in alternating loop mode. When the animation is played for an odd number of times, the playback is in forward direction. When the animation is played for an even number of times, the playback is in reverse direction.
->
-> **alternate-reverse**: plays the animation in reverse alternating loop mode. When the animation is played for an odd number of times, the playback is in reverse direction. When the animation is played for an even number of times, the playback is in forward direction.
-
-
-## Adding an Event and Calling a Method
-
-Animation objects support animation events and methods. You can achieve the intended animation by adding start and cancel events and calling the play, pause, rewind, and stop methods.
-
-```html
-
-
-```
-
-
-
-Set the **mode** attribute to enable the child components of the **<tab-bar>** to be evenly distributed. Set the **scrollable** attribute to disable scrolling of the **<tab-content>**.
-
-```html
-
-
-
-
- item1
- item2
-
-
-
-
-
-
-
-
-
-
-
-```
-
-
-
-
## Setting Styles
Set the background color, border, and tab-content layout of the **<tabs>** component.
-
```html
diff --git a/en/application-dev/ui/ui-js-components-canvasrenderingcontext2d.md b/en/application-dev/ui/ui-js-components-canvasrenderingcontext2d.md
index 95a07736c69d3d99d90074bd37da895a5860dad7..06f89b529b1d517e8aad129b386339f1d9284ba0 100644
--- a/en/application-dev/ui/ui-js-components-canvasrenderingcontext2d.md
+++ b/en/application-dev/ui/ui-js-components-canvasrenderingcontext2d.md
@@ -732,7 +732,7 @@ export default {
}
```
-
+
> **NOTE**
> - Unlike the **transform()** function, the **setTransform()** function resets the existing transformation matrix and creates a transformation matrix even if it uses the same parameters.
diff --git a/en/application-dev/ui/ui-js-components-dialog.md b/en/application-dev/ui/ui-js-components-dialog.md
index 67e0601c7694afa618d81c0c6c13f9bebab69d64..0477ac700d6ccf5ee41d8bb2af0f5c5c6452ca6e 100644
--- a/en/application-dev/ui/ui-js-components-dialog.md
+++ b/en/application-dev/ui/ui-js-components-dialog.md
@@ -269,8 +269,7 @@ Use the **<dialog>** component to implement a schedule. When the dialog bo
```js
// xxx.js
var info = null;
-import prompt from '@system.prompt';
-import router from '@system.router';
+import promptAction from '@ohos.promptAction';
export default {
data: {
curYear:'',
@@ -293,7 +292,7 @@ export default {
this.$element('datedialog').show()
},
canceldialog(e) {
- prompt.showToast({
+ promptAction.showToast({
message: 'Event setting canceled.'
})
},
@@ -302,7 +301,7 @@ export default {
},
cancelschedule(e) {
this.$element('datedialog').close()
- prompt.showToast({
+ promptAction.showToast({
message: 'Event setting canceled.'
})
},
diff --git a/en/application-dev/ui/ui-js-components-grid.md b/en/application-dev/ui/ui-js-components-grid.md
index cdb1dbbb4dca0cdb80ec0b49c22879cae4af19e1..9ba4ec977b8b456376e5f891bb4a508e7079cbae 100644
--- a/en/application-dev/ui/ui-js-components-grid.md
+++ b/en/application-dev/ui/ui-js-components-grid.md
@@ -12,7 +12,7 @@ Create a **\** component in the .hml file under **pages/index**
```html
-
+
@@ -27,8 +27,7 @@ Create a **\** component in the .hml file under **pages/index**
.container{
flex-direction: column;
background-color: #F1F3F5;
- width: 100%;
- height: 100%;
+ margin-top: 500px;
justify-content: center;
align-items: center;
}
@@ -49,7 +48,7 @@ Touch the **\** component to call the **getColumns**, **getColum
```html
```
diff --git a/en/application-dev/ui/ui-js-components-menu.md b/en/application-dev/ui/ui-js-components-menu.md
index c30a27a85ccaed2bb8fdd56bbdd243fd2b9b9c67..355c2bf38f2a24669c76415d5a50b8f23b18210b 100644
--- a/en/application-dev/ui/ui-js-components-menu.md
+++ b/en/application-dev/ui/ui-js-components-menu.md
@@ -179,15 +179,15 @@ Click the **<toggle>** component to change the text color and select the *
```html
```
@@ -242,7 +242,6 @@ option{
```js
// xxx.js
-import promptAction from '@ohos.promptAction';
export default {
data:{
fresh: false,
@@ -277,4 +276,4 @@ export default {
}
```
-
+
diff --git a/en/application-dev/ui/ui-js-components-rating.md b/en/application-dev/ui/ui-js-components-rating.md
index b1f78b766f5f3d43c03072be549eecdfe848292f..81af0bd13512b5c837bb6e589b3e394dc5ea7e21 100644
--- a/en/application-dev/ui/ui-js-components-rating.md
+++ b/en/application-dev/ui/ui-js-components-rating.md
@@ -33,7 +33,7 @@ rating {
}
```
-
+
## Setting the Rating Level
@@ -66,7 +66,7 @@ rating {
}
```
-
+
## Setting the Rating Style
@@ -114,7 +114,7 @@ export default {
}
```
-
+
> **NOTE**
> - You must set **star-background**, **star-secondary**, and **star-foreground**. Otherwise, the grey rating star applies, indicating that the image source is incorrectly set.
@@ -154,17 +154,17 @@ rating {
```js
// xxx.js
-import prompt from '@system.prompt';
+import promptAction from '@ohos.promptAction';
export default {
showrating(e) {
- prompt.showToast({
+ promptAction.showToast({
message:'Current Rating' + e.rating
})
}
}
```
-
+
## Example Scenario
@@ -256,4 +256,4 @@ export default {
}
```
-
+
diff --git a/en/application-dev/ui/ui-js-components-swiper.md b/en/application-dev/ui/ui-js-components-swiper.md
index f69ab201ee654e7c71e28b8964c9ab347b490977..1aeeaf850f52ee628b31b88686bd10b5529a6414 100644
--- a/en/application-dev/ui/ui-js-components-swiper.md
+++ b/en/application-dev/ui/ui-js-components-swiper.md
@@ -114,7 +114,7 @@ text{
}
```
-
+
> **NOTE**
> - The **digital** attribute takes effect only when the **indicator** attribute is set to **true**.
@@ -132,17 +132,17 @@ Set the width and height of the **<swiper>** component, the indicator's si
```html
-
-
- item1
-
-
- item2
-
-
- item3
-
-
+
+
+ item1
+
+
+ item2
+
+
+ item3
+
+
```
@@ -180,7 +180,7 @@ text{
}
```
-
+
## Binding Events
diff --git a/en/application-dev/ui/ui-js-components-toolbar.md b/en/application-dev/ui/ui-js-components-toolbar.md
index cd92894b959acf309e96766eb7fceb9ce18726a6..d8da1a6064e7fe575f8d5db36a08e91b3a40450f 100644
--- a/en/application-dev/ui/ui-js-components-toolbar.md
+++ b/en/application-dev/ui/ui-js-components-toolbar.md
@@ -108,10 +108,6 @@ Set the **position** style for the **<toolbar>** component and set the fon
toolbar-item{
font-size: 35px;
}
-.toolbarActive{
- color: red;
- background-color: #daebef;
-}
```
@@ -187,9 +183,8 @@ Use the **for** loop to create a **<toolbar-item>** component and bind a c