diff --git a/en/application-dev/reference/arkui-js/figures/2.png b/en/application-dev/reference/arkui-js/figures/2.png
deleted file mode 100644
index e506fd8f37b0e522d5925b509def595e5db653c3..0000000000000000000000000000000000000000
Binary files a/en/application-dev/reference/arkui-js/figures/2.png and /dev/null differ
diff --git a/en/application-dev/reference/arkui-js/figures/3.png b/en/application-dev/reference/arkui-js/figures/3.png
deleted file mode 100644
index 495f967777f91ce6e654c278683807ef6560809c..0000000000000000000000000000000000000000
Binary files a/en/application-dev/reference/arkui-js/figures/3.png and /dev/null differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001127125114.gif b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001127125114.gif
deleted file mode 100644
index f4d097a34aef9e583651d11133dff575345f0272..0000000000000000000000000000000000000000
Binary files a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001127125114.gif and /dev/null differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001152610806.png b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001152610806.png
index b3a47a84d8086ca0806bc958f745f29821c47cc2..30ab31575654579e9a00a64d3d67f7420662f203 100644
Binary files a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001152610806.png and b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001152610806.png differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001152862510.gif b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001152862510.gif
deleted file mode 100644
index 6641ac7b1a0108d46bed16e64d65369c3515e8fb..0000000000000000000000000000000000000000
Binary files a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001152862510.gif and /dev/null differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001176075554.gif b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001176075554.gif
new file mode 100644
index 0000000000000000000000000000000000000000..16e7ff213bd5caf5a9802001d3ced2996c66e0bc
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001176075554.gif differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214619417.png b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214619417.png
index 5da42e3e14d601745274cb62d914c6600620bb25..4f6c19892155444ecf63dab3ca80575a8046cc1b 100644
Binary files a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214619417.png and b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214619417.png differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214704759.png b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214704759.png
index 6afdd1b39e4bcb3664c7664a55b47b8537f4aeaa..0b4837fc44abc0e1005de3d1259ed924f2969806 100644
Binary files a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214704759.png and b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214704759.png differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214811029.png b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214811029.png
index 1d71cee4618f1f2822cea1031c9b0e5d602e0a9b..447e5b819bdddc57b98ccf7629d612eb499aec8b 100644
Binary files a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214811029.png and b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001214811029.png differ
diff --git a/en/application-dev/reference/arkui-js/figures/pickerview1.gif b/en/application-dev/reference/arkui-js/figures/pickerview1.gif
new file mode 100644
index 0000000000000000000000000000000000000000..e255be05356073aa2cd2a8cf1fe9080da0cce7bf
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/pickerview1.gif differ
diff --git a/en/application-dev/reference/arkui-js/figures/pickerview2.gif b/en/application-dev/reference/arkui-js/figures/pickerview2.gif
new file mode 100644
index 0000000000000000000000000000000000000000..ab30fdac7ab76ea4759a61c52cb326b53396d1dc
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/pickerview2.gif differ
diff --git a/en/application-dev/reference/arkui-js/figures/pickerview5.gif b/en/application-dev/reference/arkui-js/figures/pickerview5.gif
new file mode 100644
index 0000000000000000000000000000000000000000..fd3a65d962df54eca02bd0a30c06bc1254c11df7
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/pickerview5.gif differ
diff --git a/en/application-dev/reference/arkui-js/figures/rainbow.gif b/en/application-dev/reference/arkui-js/figures/rainbow.gif
new file mode 100644
index 0000000000000000000000000000000000000000..2dd14c106005c014e3daa8b6132f610280d06516
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/rainbow.gif differ
diff --git a/en/application-dev/reference/arkui-js/figures/slider.png b/en/application-dev/reference/arkui-js/figures/slider.png
index d0167fe6773371fa70d8bf32c3a3953ed1e1455b..be1ee572a931ec2f06614e5f17c5616eba462e85 100644
Binary files a/en/application-dev/reference/arkui-js/figures/slider.png and b/en/application-dev/reference/arkui-js/figures/slider.png differ
diff --git a/en/application-dev/reference/arkui-js/figures/stepper.gif b/en/application-dev/reference/arkui-js/figures/stepper.gif
new file mode 100644
index 0000000000000000000000000000000000000000..cfaa06512dacaa75acbc26a65f040c1b1caf32ff
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/stepper.gif differ
diff --git a/en/application-dev/reference/arkui-js/figures/switch.gif b/en/application-dev/reference/arkui-js/figures/switch.gif
new file mode 100644
index 0000000000000000000000000000000000000000..1ba8e3e6401faf9c70fe97e4a2eac2181eeec974
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/switch.gif differ
diff --git a/en/application-dev/reference/arkui-js/figures/text.png b/en/application-dev/reference/arkui-js/figures/text.png
new file mode 100644
index 0000000000000000000000000000000000000000..65f36bddf4015f870e67edf7a96d1457014d1b3c
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/text.png differ
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-button.md b/en/application-dev/reference/arkui-js/js-components-basic-button.md
index 29061668cc3ddd2c59a2b057a97bb09970807693..bec475bb4689aea314bb6e251e3d270da78000f2 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-button.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-button.md
@@ -18,7 +18,7 @@ In addition to the [universal attributes](../arkui-js/js-components-common-attri
| Name | Type | Default Value | Mandatory | Description |
| ---------------------- | ------- | ----- | ---- | ---------------------------------------- |
-| type | string | - | No | Button type. The value cannot be dynamically updated. If this attribute is not set, a capsule-like button is displayed. Unlike the capsule button, the capsule-like button allows its corners to be configured using **border-radius**. Available button types are as follows: - **capsule**: capsule button with fillets, background color, and text. - **circle**: circle button that can accommodate icons. - **text**: text button, which displays only text. - **arc**: arc button. This value is applicable to wearables only. - **download**: download button, with an extra download progress bar.|
+| type | string | - | No | Button type. The value cannot be dynamically updated. By default, a capsule-like button is displayed. Unlike the capsule button, the capsule-like button allows its corners to be configured using **border-radius**. The options are as follows: - **capsule**: capsule button with fillets, background color, and text. - **circle**: circle button that can accommodate icons. - **text**: text button, which displays only text. - **arc**: arc button. This value is applicable to wearables only. - **download**: download button, with an extra download progress bar.|
| value | string | - | No | Text value of the button. |
| icon | string | - | No | Path of the button icon. The supported icon formats are JPG, PNG, and SVG. |
| placement5+ | string | end | No | Position of the button icon in text. This attribute is valid only when **type** is not set. Available values are as follows: - **start**: The button icon is at the beginning of the text. - **end**: The button icon is at the end of the text. - **top**: The button icon is at the top of the text. - **bottom**: The button icon is at the bottom of the text.|
@@ -39,7 +39,7 @@ In addition to the [universal styles](../arkui-js/js-components-common-styles.md
| allow-scale | boolean | true | No | Whether the font size changes with the system's font size settings. If the **config-changes** tag of **fontSize** is configured for abilities in the **config.json** file, the setting takes effect without application restart.|
| font-style | string | normal | No | Font style of the button. |
| font-weight | number \| string | normal | No | Font weight of the button. For details, see **font-weight** of the [**\** component](../arkui-js/js-components-basic-text.md#styles).|
-| font-family | <string> | sans-serif | No | Font family, in which fonts are separated by commas (,). Each font is set using a font name or font family name. The first font in the family or the specified [custom font](../arkui-js/js-components-common-customizing-font.md) is used for the text. |
+| font-family | <string> | sans-serif | No | Font family, in which fonts are separated by commas (,). Each font is set using a font name or font family name. The first font in the family or the specified [custom font](../arkui-js/js-components-common-customizing-font.md) is used for the text.|
| icon-width | <length> | - | No | Width of the internal icon of a circle button. The entire circle button is filled by default. This style must be set when the icon uses the SVG image.|
| icon-height | <length> | - | No | Height of the internal icon of a circle button. The entire circle button is filled by default. This style must be set when the icon uses the SVG image.|
| radius | <length> | - | No | Corner radius of the button. For a circle button, this style takes precedence over **width** and **height** in the universal styles.|
@@ -55,8 +55,8 @@ In addition to the **background-color**, **opacity**, **display**, **visibility*
| font-size | <length> | 37.5px | No | Font size of the arc button. |
| allow-scale | boolean | true | No | Whether the font size changes with the system's font size settings. |
| font-style | string | normal | No | Font style of the arc button. |
-| font-weight | number \| string | normal | No | Font weight of the arc button. For details, see **font-weight** of the [**\** component](../arkui-js/js-components-basic-text.md#styles).|
-| font-family | <string> | sans-serif | No | Font family, in which fonts are separated by commas (,). Each font is set using a font name or font family name. The first font in the family or the specified [custom font](../arkui-js/js-components-common-customizing-font.md) is used for the text. |
+| font-weight | number \| string | normal | No | Font weight of the arc button. For details, see **font-weight** of the [**\**](../arkui-js/js-components-basic-text.md#styles) component. |
+| font-family | <string> | sans-serif | No | Font family, in which fonts are separated by commas (,). Each font is set using a font name or font family name. The first font in the family or the specified [custom font](../arkui-js/js-components-common-customizing-font.md) is used for the text.|
## Events
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-chart.md b/en/application-dev/reference/arkui-js/js-components-basic-chart.md
index 26ac1ef03d97536474103465f8f61cc5108ab126..a11c5aaabf8fa65f15399d5e8b13d9e040e77397 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-chart.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-chart.md
@@ -22,7 +22,7 @@ In addition to the [universal attributes](../arkui-js/js-components-common-attri
| Name | Type | Default Value | Mandatory | Description |
| ------------------------------ | ---------------------------------------- | ---- | ---- | ---------------------------------------- |
-| type | string | line | No | Chart type. Dynamic modification is not supported. Available values include: - **bar**: bar chart. - **line**: line chart. - **gauge**: gauge chart. - **progress**5+: circle chart of progresses. - **loading**5+: circle chart of loading processes. - **rainbow**5+: circle chart of proportions.|
+| type | string | line | No | Chart type. Dynamic modification is not supported. Available values include: - **bar**: bar chart - **line**: line chart - **gauge**: gauge chart - **progress**5+: circle chart of progresses - **loading**5+: circle chart of loading processes - **rainbow**5+: circle chart of proportions|
| options | ChartOptions | - | No | Chart parameters. You must set parameters for bar charts and line charts. Parameter settings for gauge charts do not take effect. You can set the minimum value, maximum value, scale, and line width of the x-axis or y-axis, whether to display the x-axis and y-axis, and whether the line is smooth. Dynamic modification is not supported.|
| datasets | Array<ChartDataset> | - | No | Data sets. You must set data sets for bar charts and line charts. Data sets for a gauge chart do not take effect. You can set multiple datasets and their background colors.|
| segments5+ | DataSegment \| Array<DataSegment> | - | No | Data structures used by **progress**, **loading**, and **rainbow** charts. **DataSegment** is available for **progress** and **loading** charts. **Array<DataSegment>** is available for **rainbow** charts. A maximum of nine **DataSegment**s are supported in the array.|
@@ -99,7 +99,7 @@ In addition to the [universal attributes](../arkui-js/js-components-common-attri
| description | string | - | No | Description text of the point. |
| textLocation | string | - | No | Position of the description text relative to the point. Available values are as follows: **top**: above the point **bottom**: below the point **none**: not displayed|
| textColor | <color> | \#000000 | No | Color of the description text. |
-| lineDash | string | solid | No | Dashed line pattern. You can set the dash length and space length between the dashes. For example, **"dashed, 5, 5"** indicates a dashed line with each dash in 5 px and a 5 px space between each two dashes. Default value **"solid"** indicates a solid line.|
+| lineDash | string | solid | No | Dashed line pattern. You can set the dash length and space length between the dashes. - **"dashed, 5, 5"**: dashed line with each dash in 5 px and a 5 px space between each two dashes. Default value **"solid"** indicates a solid line.|
| lineColor | <color> | \#000000 | No | Line color. If this attribute is not set, the value of **strokeColor** is used. |
**Table 9** DataSegment5+
@@ -144,7 +144,7 @@ In addition to the [universal styles](../arkui-js/js-components-common-styles.md
| center-x | <length> | - | No | Center of the scale bar of the gauge component. This style is supported by the gauge chart only. This style takes precedence over the **position** style in the common styles, and must be used together with **center-y** and **radius**. This style is supported by the gauge chart only.|
| center-y | <length> | - | No | Center of the scale bar of the gauge component. This style is supported by the gauge chart only. This style takes precedence over the **position** style in the common styles, and must be used together with **center-x** and **radius**. This style is supported by the gauge chart only.|
| radius | <length> | - | No | Radius of the scale bar of the gauge component. This style is supported by the gauge chart only. This style takes precedence over the **width** and **height** in the common styles, and must be used together with **center-x** and **center-y**. This style is supported by the gauge chart only.|
-| colors | Array | - | No | Color of each section for the scale bar of the gauge component. For example, **colors: \#ff0000, #00ff00**. This style is supported by the gauge chart only.|
+| colors | Array | - | No | Color of each section for the scale bar of the gauge component. For example, **colors: \#ff0000, \#00ff00**. This style is supported by the gauge chart only.|
| weights | Array | - | No | Weight of each section for the scale bar of the gauge component. For example, **weights: 2, 2**. This style is supported by the gauge chart only.|
| font-family5+ | Array | - | No | Font style of the description text. You can use a [custom font](../arkui-js/js-components-common-customizing-font.md).|
| font-size5+ | <length> | - | No | Font size of the description text. |
@@ -161,7 +161,7 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
| Name | Parameter | Description |
| ------ | ---------------------------------------- | ---------------------------------------- |
-| append | { serial: number, // Set the data subscript of the line chart to be updated. data: Array<number>, // Set the new data. } | Data is dynamically added to an existing data sequence. The target sequence is specified based on **serial**, which is the subscript of the datasets array and starts from 0. **datasets[index].data** is not updated. Only line charts support this attribute. The value is incremented by 1 based on the horizontal coordinate and is related to the **xAxis min/max** setting.|
+| append | { serial: number, data: Array<number>, } | Data is dynamically added to an existing data sequence. The target sequence is specified based on **serial**, which is the subscript of the datasets array and starts from 0. For example, if the value of **serial** is **index**, use **data** to update **datasets[index].data**. Only line charts support this attribute. The value is incremented by 1 based on the horizontal coordinate and is related to the **xAxis min/max** setting.|
## Example
@@ -212,24 +212,24 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
strokeColor: '#0081ff',
fillColor: '#cce5ff',
data: [763, 550, 551, 554, 731, 654, 525, 696, 595, 628, 791, 505, 613, 575, 475, 553, 491, 680, 657, 716],
- gradient: true,
+ gradient: true
}
],
lineOps: {
xAxis: {
min: 0,
max: 20,
- display: false,
+ display: false
},
yAxis: {
min: 0,
max: 1000,
- display: false,
+ display: false
},
series: {
lineStyle: {
width: "5px",
- smooth: true,
+ smooth: true
},
headPoint: {
shape: "circle",
@@ -237,14 +237,14 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
strokeWidth: 5,
fillColor: '#ffffff',
strokeColor: '#007aff',
- display: true,
+ display: true
},
loop: {
margin: 2,
- gradient: true,
+ gradient: true
}
}
- },
+ }
},
addData() {
this.$refs.linechart.append({
@@ -295,15 +295,15 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
barData: [
{
fillColor: '#f07826',
- data: [763, 550, 551, 554, 731, 654, 525, 696, 595, 628],
+ data: [763, 550, 551, 554, 731, 654, 525, 696, 595, 628]
},
{
fillColor: '#cce5ff',
- data: [535, 776, 615, 444, 694, 785, 677, 609, 562, 410],
+ data: [535, 776, 615, 444, 694, 785, 677, 609, 562, 410]
},
{
fillColor: '#ff88bb',
- data: [673, 500, 574, 483, 702, 583, 437, 506, 693, 657],
+ data: [673, 500, 574, 483, 702, 583, 437, 506, 693, 657]
},
],
barOps: {
@@ -311,14 +311,14 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
min: 0,
max: 20,
display: false,
- axisTick: 10,
+ axisTick: 10
},
yAxis: {
min: 0,
max: 1000,
- display: false,
- },
- },
+ display: false
+ }
+ }
}
}
```
@@ -353,3 +353,76 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
```
![en-us_image_0000001127125264](figures/en-us_image_0000001127125264.png)
+
+4. Circle chart of progresses, loading progresses, or proportions
+ ```html
+
+
+ progress Example
+
+
+
+ loading Example
+
+
+
+ rainbow Example
+
+
+
+
+ ```
+ ```css
+ /* xxx.css */
+ .container {
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ }
+ .chart-region {
+ height: 400px;
+ width: 700px;
+ margin-top: 10px;
+ }
+ .text {
+ margin-top: 30px;
+ }
+ ```
+ ```js
+ // xxx.js
+ export default {
+ data: {
+ progressdata: {
+ value: 50,
+ name: 'progress'
+ },
+ loadingdata: {
+ startColor: "#ffc0cb",
+ endColor: "#00bfff",
+ },
+ rainbowdata: [
+ {
+ value: 50,
+ name: 'item1'
+ },
+ {
+ value: 10,
+ name: 'item2'
+ },
+ {
+ value: 20,
+ name: 'item3'
+ },
+ {
+ value: 10,
+ name: 'item4'
+ },
+ {
+ value: 10,
+ name: 'item5'
+ }
+ ]
+ }
+ }
+ ```
+ ![rainbow](figures/rainbow.gif)
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-image.md b/en/application-dev/reference/arkui-js/js-components-basic-image.md
index 53b335e34c30317f99f789bd22358bad5d8ad279..89643b3aaa104e4f15b91db6098e74611c1aa42d 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-image.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-image.md
@@ -31,7 +31,7 @@ In addition to the [universal styles](../arkui-js/js-components-common-styles.md
| object-fit | string | cover | No | Image scale type. This style is not supported for SVG images. For details about available values, see **object-fit**.|
| match-text-direction | boolean | false | No | Whether image orientation changes with the text direction. This style is not supported for SVG images. |
| fit-original-size | boolean | false | No | Whether the **\** component adapts to the image source size when its width and height are not set. If this style is set to **true**, **object-fit** will not take effect. This style is not supported for SVG images.|
-| object-position7+ | string | 0px 0px | No | Position of an image in the component. The options are as follows: 1. Pixels. For example, **15px 15px** indicates the moving position along the x-axis or y-axis. 2. Characters. Optional values are as follows: - **left**: The image is displayed on the left of the component. - **top** The image is displayed on the top of the component. - **right** The image is displayed on the right of the component. - **bottom** The image is displayed at the bottom of the component.|
+| object-position7+ | string | 0px 0px | No | Position of the image in the component. The options are as follows: 1. Pixels, in px. For example, **15px 15px** indicates the position to move along the x-axis or y-axis. 2. Characters. Optional values are as follows: - **left**: The image is displayed on the left of the component.< - **top**: The image is displayed on the top of the component. - **right**: The image is displayed on the right of the component. - **bottom**: The image is displayed at the bottom of the component.|
**Table 1** object-fit
@@ -56,16 +56,18 @@ In addition to the [universal styles](../arkui-js/js-components-common-styles.md
> 1. If the **\** component is too small to afford the SVG image, the SVG image is cropped and only its upper left part is displayed in the component.
>
> 2. If the **\** component is big enough to afford the SVG image, this SVG image is displayed in the upper left corner of the component.
+>
+> - For SVG images, only the following tags are included in the supported list: **svg**, **rect**, **circle**, **ellipse**, **path**, **line**, **polyline**, **polygon**, **animate**, **animateMotion**, and **animateTransform**.
## Events
In addition to the [universal events](../arkui-js/js-components-common-events.md), the following events are supported.
-| Name | Parameter | Description |
-| -------------- | ---------------------------------------- | ------------------------- |
-| complete(Rich) | { width: width, height: height } | Triggered when an image is successfully loaded. The loaded image size is returned.|
-| error(Rich) | { width: width, height: height } | Triggered when an exception occurs during image loading. In this case, the width and height are **0**. |
+| Name | Parameter | Description |
+| -------- | ---------------------------------------- | ------------------------- |
+| complete | { width: width, height: height } | Triggered when an image is successfully loaded. The loaded image size is returned.|
+| error | { width: width, height: height } | Triggered when an exception occurs during image loading. In this case, the width and height are **0**. |
## Methods
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-marquee.md b/en/application-dev/reference/arkui-js/js-components-basic-marquee.md
index 9f13895436ce5f1104994f9d6956deba5e04a928..a1072111daa65e9eab0e528e086b8955efa66e09 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-marquee.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-marquee.md
@@ -37,7 +37,7 @@ In addition to the [universal styles](../arkui-js/js-components-common-styles.md
| color | <color> | \#e5000000 | No | Font color of the scrolling text. |
| font-size | <length> | 37.5 | No | Font size of the scrolling text. |
| allow-scale | boolean | true | No | Whether the font size changes with the system's font size settings. If the **config-changes** tag of **fontSize** is configured for abilities in the **config.json** file, the setting takes effect without application restart.|
-| font-weight | number \| string | normal | No | Font weight of the scrolling text. For details, see **font-weight** of the **[\ component](../arkui-js/js-components-basic-text.md#styles)**.|
+| font-weight | number \| string | normal | No | Font weight of the scrolling text. For details, see **font-weight** of the **[\ component](../arkui-js/js-components-basic-text.md#styles)**.|
| font-family | string | sans-serif | No | Font family, in which fonts are separated by commas (,). Each font is set using a font name or font family name. The first font in the family or the specified [custom font](../arkui-js/js-components-common-customizing-font.md) is used for the text.|
@@ -45,17 +45,17 @@ In addition to the [universal styles](../arkui-js/js-components-common-styles.md
In addition to the [universal events](../arkui-js/js-components-common-events.md), the following events are supported.
-| Name | Parameter | Description |
-| ------------ | ---- | ---------------------------------------- |
-| bounce(Rich) | - | Triggered when the marquee scrolls to the end. |
-| finish(Rich) | - | Triggered when the marquee finishes the specified number of scrollings (value of the **loop** attribute). It can be triggered only when the **loop** attribute is set to a number greater than 0.|
-| start(Rich) | - | Triggered when the marquee starts to scroll. |
+| Name | Parameter | Description |
+| ------ | ---- | ---------------------------------------- |
+| bounce | - | Triggered when the marquee scrolls to the end. |
+| finish | - | Triggered when the marquee finishes the specified number of scrollings (value of the **loop** attribute). It can be triggered only when the **loop** attribute is set to a number greater than 0.|
+| start | - | Triggered when the marquee starts to scroll. |
## Methods
In addition to the [universal methods](../arkui-js/js-components-common-methods.md), the following methods are supported.
-| Name | Parameter | Description |
+| Name | Parameter | Description |
| ----- | ---- | ----- |
| start | - | Starts scrolling.|
| stop | - | Stops scrolling.|
@@ -65,72 +65,75 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
```html
-
-
-
-
-
+
+
+
+
+
+
+
```
```css
/* xxx.css */
-.container {
+.tutorial-page {
+ width: 750px;
+ height: 100%;
flex-direction: column;
- justify-content: center;
align-items: center;
- background-color: #ffffff;
+ justify-content: center;
}
-.customMarquee {
- width: 100%;
- height: 80px;
- padding: 10px;
- margin: 20px;
- border: 4px solid #ff8888;
- border-radius: 20px;
- font-size: 40px;
- color: #ff8888;
- font-weight: bolder;
- font-family: serif;
- background-color: #ffdddd;
+.marqueetext {
+ font-size: 37px;
}
-.content {
- flex-direction: row;
+.mymarquee {
+ margin-top: 20px;
+ width:100%;
+ height: 100px;
+ margin-left: 50px;
+ margin-right: 50px;
+ border: 1px solid #dc0f27;
+ border-radius: 15px;
+ align-items: center;
}
-.controlButton {
- flex-grow: 1;
- background-color: #F2F2F2;
- text-color: #0D81F2;
+button{
+ width: 200px;
+ height: 80px;
+ margin-top: 100px;
}
```
```js
// xxx.js
export default {
- data: {
- scrollAmount: 30,
- loop: 3,
- marqueeDir: 'left',
- marqueeCustomData: 'Custom marquee',
- },
- onMarqueeBounce: function() {
- console.log("onMarqueeBounce");
+ private: {
+ loopval: 1,
+ scroll: 8,
+ color1: 'red'
},
- onMarqueeStart: function() {
- console.log("onMarqueeStart");
+ onInit(){
},
- onMarqueeFinish: function() {
- console.log("onMarqueeFinish");
+ setfinish(e) {
+ this.loopval= this.loopval + 1,
+ this.r = Math.floor(Math.random()*255),
+ this.g = Math.floor(Math.random()*255),
+ this.b = Math.floor(Math.random()*255),
+ this.color1 = 'rgba('+ this.r +','+ this.g +','+ this.b +',0.8)',
+ this.$element('testmarquee').start(),
+ this.loopval= this.loopval - 1
},
- onStartClick (evt) {
- this.$element('customMarquee').start();
+ makestart(e) {
+ this.$element('testmarquee').start()
},
- onStopClick (evt) {
- this.$element('customMarquee').stop();
+ makestop(e) {
+ this.$element('testmarquee').stop()
}
}
```
-![lite_bar](figures/lite_bar.gif)
+![zh-cn_image_0000001176075554](figures/zh-cn_image_0000001176075554.gif)
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-picker-view.md b/en/application-dev/reference/arkui-js/js-components-basic-picker-view.md
index 426e227f9009c06b9e6c82f3344719c9d988e948..3f1ac6a278adeaea3059c930e3e5098fa8392374 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-picker-view.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-picker-view.md
@@ -20,7 +20,7 @@ In addition to the [universal attributes](../arkui-js/js-components-common-attri
| ---- | ------ | ---- | ---- | ---------------------------------------- |
| type | string | text | No | Type of the scrollable selector, which cannot be changed dynamically. Available values are as follows: - **text**: text selector. - **time**: time selector. - **date**: date selector. - **datetime**: date and time selector. - **multi-text**: multi-column text selector.|
-Text selector (**type** is **text**)
+### Text Selector
| Name | Type | Default Value | Mandatory | Description |
| --------------- | ------ | ---- | ---- | ---------------------------------------- |
@@ -29,15 +29,15 @@ Text selector (**type** is **text**)
| indicatorprefix | string | - | No | Prefix field added when a value is specified for the text selector. |
| indicatorsuffix | string | - | No | Suffix field added when a value is specified for the text selector. |
-Time selector (**type** is **time**)
+### Time Selector
| Name | Type | Default Value | Mandatory | Description |
| ------------- | ------- | ----------------------------------- | ---- | ---------------------------------------- |
| containsecond | boolean | false | No | Whether seconds are contained. |
| selected | string | Current time | No | Default value of the time selector, in the format of HH:mm. If seconds are contained, the format is HH:mm:ss.|
-| hours | number | 241-4 | No | Time format used by the time selector. Available values are as follows: - **12**: displayed in 12-hour format and distinguished by a.m. and p.m. - **24**: displayed in 24-hour format. Since API version 5, the default value is the most commonly-used hour format in the current locale.|
+| hours | number | 241-4 -5+ | No | Time format used by the time selector. Available values are as follows: - **12**: displayed in 12-hour format and distinguished by a.m. and p.m. - **24**: displayed in 24-hour format. Since API version 5, the default value is the most commonly-used hour format in the current locale.|
-Date selector (**type** is **date**)
+### Date Selector
| Name | Type | Default Value | Mandatory | Description |
| ------------------ | ------------ | ---------- | ---- | ---------------------------------------- |
@@ -47,16 +47,16 @@ Date selector (**type** is **date**)
| lunar5+ | boolean | false | No | Whether the pop-up window displays the lunar calendar. |
| lunarswitch | boolean | false | No | Whether to display the lunar calendar switch in the date selector. When this switch is displayed, the user can switch between the lunar calendar and Gregorian calendar. Turn on the switch to display the lunar calendar, and turn off the switch to hide the lunar calendar.|
-Date and time selector (**type** is **datetime**)
+### Date and Time Selector
| Name | Type | Default Value | Mandatory | Description |
| ------------------ | ------- | ----------------------------------- | ---- | ---------------------------------------- |
| selected | string | Current date and time | No | Default value of the date and time selector. The value can be in the format of MM-DD-HH-mm or YYYY-MM-DD-HH-mm. If the year is not set, the current year is used by default. The value you set is the date selected by default in the pop-up window.|
-| hours | number | 241-4 | No | Time format used by the date and time selector. Available values are as follows: - **12**: displayed in 12-hour format and distinguished by a.m. and p.m. - **24**: displayed in 24-hour format. Since API version 5, the default value is the most commonly-used hour format in the current locale.|
+| hours | number | 241-4 -5+ | No | Time format used by the date and time selector. Available values are as follows: - **12**: displayed in 12-hour format and distinguished by a.m. and p.m. - **24**: displayed in 24-hour format. Since API version 5, the default value is the most commonly-used hour format in the current locale.|
| lunar5+ | boolean | false | No | Whether the pop-up window displays the lunar calendar. |
| lunarswitch | boolean | false | No | Whether to display the lunar calendar switch in the date and time selector. When this switch is displayed, the user can switch between the lunar calendar and Gregorian calendar. Turn on the switch to display the lunar calendar, and turn off the switch to hide the lunar calendar.|
-Multi-column text selector (**type** is **multi-text**)
+### Multi-Column Text Selector
| Name | Type | Default Value | Mandatory | Description |
| -------- | ------- | --------- | ---- | ---------------------------------------- |
@@ -77,42 +77,42 @@ In addition to the [universal styles](../arkui-js/js-components-common-styles.md
| selected-font-size | <length> | 20px | No | Font size of the selected item. The value is of the length type, in pixels. |
| disappear-color5+ | <color> | \#ffffff | No | Font color of the items that gradually disappear. Disappearing items are the top option and bottom option of a column containing five options in total. |
| disappear-font-size5+ | <length> | 14px | No | Font size of the items that gradually disappear. Disappearing items are the top option and bottom option of a column containing five options in total. |
-| font-family | string | sans-serif | No | Font family of the selector, in which fonts are separated by commas (,). Each font is set using a font name or font family name. The first font in the family or the specified [custom font](../arkui-js/js-components-common-customizing-font.md) is used for the text.|
+| font-family | string | sans-serif | No | Font family of the selector, in which fonts are separated by commas (,). Each font is set using a font name or font family name. The first font in the family or the specified [custom font](../arkui-js/js-components-common-customizing-font.md) is used for the text. |
## Events
The following events are supported.
-Text selector (**type** is **text**)
+### Text Selector
| Name | Parameter | Description |
| ------ | ---------------------------------------- | --------------- |
-| change | { newValue: newValue, newSelected: newSelected } | Triggered when a value is specified for the text selector.|
+| change | { newValue: newValue, newSelected: newSelected } | Triggered when a value is specified for the text selector.|
-Time selector (**type** is **time**)
+### Time Selector
| Name | Parameter | Description |
| ------ | ---------------------------------------- | ------------------------------- |
-| change | { hour: hour, minute: minute, [second:second]} | Triggered when a value is specified for the time selector. If seconds are contained, the value contains hour, minute, and second.|
+| change | { hour: hour, minute: minute, [second:second]} | Triggered when a value is specified for the time selector. If seconds are contained, the value contains hour, minute, and second.|
-Date selector (**type** is **date**)
+### Date Selector
| Name | Parameter | Description |
| ------ | ---------------------------------------- | --------------- |
-| change | { year:year, month:month, day:day } | Triggered when a value is specified for the date selector.|
+| change | { year:year, month:month, day:day } | Triggered when a value is specified for the date selector.|
-Date and time selector (**type** is **datetime**)
+### Date and Time Selector
| Name | Parameter | Description |
| ------ | ---------------------------------------- | ----------------- |
-| change | { year:year, month:month, day:day, hour:hour, minute:minute } | Triggered when a value is specified for the date and time selector.|
+| change | { year:year, month:month, day:day, hour:hour, minute:minute } | Triggered when a value is specified for the date and time selector.|
-Multi-text selector (**type** is **multi-text**)
+### Multi-Column Text Selector
| Name | Parameter | Description |
| ------------ | ---------------------------------------- | ---------------------------------------- |
-| columnchange | { column:column, newValue:newValue, newSelected:newSelected } | Triggered when the value of a column in the multi-column selector changes. **column**: column whose value has changed. **newValue**: selected value. **newSelected**: index of the selected value.|
+| columnchange | { column:column, newValue:newValue, newSelected:newSelected } | Triggered when the value of a column in the multi-column selector changes. **column**: column whose value has changed. **newValue**: selected value. **newSelected**: index of the selected value.|
## Methods
@@ -121,67 +121,252 @@ Not supported
## Example
-
-```html
-
-
+ ```
+
+ ```css
+ /* xxx.css */
+ .container {
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ left: 0px;
+ top: 0px;
+ width: 500px;
+ height: 454px;
+ }
+ .title {
+ font-size: 30px;
+ text-align: center;
+ margin-top: 20px;
+ }
+ ```
+
+ ```js
+ /* xxx.js */
+ export default {
+ data: {
+ multitext: [
+ [1, 2, 3],
+ [4, 5, 6],
+ [7, 8, 9],
+ ],
+ value: ""
+ },
+ handleChange(data) {
+ this.value = "Column: " + data.column + "," + "Value: " + data.newValue + ", Index:" + data.newSelected;
+ },
+ }
+ ```
+ ![](figures/pickerview5.gif)
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-picker.md b/en/application-dev/reference/arkui-js/js-components-basic-picker.md
index f6425d937129086d130562d8454da03bcaef3c87..5a9ace889f60ae6f6c0c891e8d0a8d55b3dadfd1 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-picker.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-picker.md
@@ -58,7 +58,7 @@ When **type** is set to **time**, a time selector is used.
| Name | Type | Default Value | Mandatory | Description |
| ------------- | ------- | ----------------------------------- | ---- | ---------------------------------------- |
| containsecond | boolean | false | No | Whether seconds are contained. |
-| selected | string | Current time | No | Default value of the time selector, in format of HH:mm. If seconds are contained, the format is HH:mm:ss. |
+| selected | string | Current time | No | Default value of the time selector, in format of HH:mm. If seconds are contained, the format is HH:mm:ss. |
| value | string | - | No | Value of the time selector. |
| hours | number | 241-4 -5+ | No | Time format used by the time selector. Available values are as follows: - **12**: displayed in 12-hour format and distinguished by a.m. and p.m. - **24**: displayed in 24-hour format. Since API version 5, the default value is the most commonly-used hour format in the current locale.|
@@ -166,52 +166,59 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
```html
-
+
+
+
+
+
+
+
+
+
```
```css
/* xxx.css */
-.container {
- flex-direction: column;
- justify-content: center;
- align-items: center;
+.container {
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
}
- picker{
- width:60%;
- height:80px;
- border-radius:20px;
- text-color:white;
- font-size:15px;
- background-color:#4747e3;
- margin-left:20%;
+
+picker {
+ width: 60%;
+ height: 80px;
+ border-radius: 20px;
+ text-color: white;
+ font-size: 15px;
+ background-color: #4747e3;
+ margin-left: 20%;
}
- select{
- background-color: #efecec;
- height: 50px;
- width: 60%;
- margin-left: 20%;
- margin-top: 300px;
- margin-bottom: 50px;
- font-size: 22px;
+
+select {
+ background-color: #efecec;
+ height: 50px;
+ width: 60%;
+ margin-left: 20%;
+ margin-top: 300px;
+ margin-bottom: 50px;
+ font-size: 22px;
}
```
@@ -219,72 +226,96 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
// xxx.js
import router from '@system.router';
import prompt from '@system.prompt';
+
export default {
- data: {
- selectList:["text","data","time","datetime","multitext"],
- rangetext:['15', "20", "25"],
- multitext:[["a", "b", "c"], ["e", "f", "g"], ["h", "i"], ["k", "l", "m"]],
- textvalue:'default textvalue',
- datevalue:'default datevalue',
- timevalue:'default timevalue',
- datetimevalue:'default datetimevalue',
- multitextvalue:'default multitextvalue',
- containsecond:true,
- multitextselect:[1,2,0],
- datetimeselect:'2012-5-6-11-25',
- timeselect:'11:22:30',
- dateselect:'2021-3-2',
- textselect:'2'
- },
- selectChange(e){
- for(let i = 0;i **NOTE**
->
> This component is supported since API version 4. Updates will be marked with a superscript to indicate their earliest API version.
-The **\** component provides an input area for users to search.
+The **\** component provides an input area for users to search.
## Child Components
@@ -42,7 +41,7 @@ In addition to the [universal styles](../arkui-js/js-components-common-styles.md
| font-size | <length> | 16px | No | Font size of the search box. |
| allow-scale | boolean | true | No | Whether the font size changes with the system's font size settings. If the **config-changes** tag of **fontSize** is configured for abilities in the **config.json** file, the setting takes effect without application restart.|
| placeholder-color | <color> | \#99000000 | No | Color of the hint text. |
-| font-weight | number \| string | normal | No | Font weight. For details, see **font-weight** of the **[\](../arkui-js/js-components-basic-text.md#styles)** component.|
+| font-weight | number \| string | normal | No | Font weight. For details, see [font-weight](../arkui-js/js-components-basic-text.md#styles) of the **\** component.|
| font-family | string | sans-serif | No | Font family, in which fonts are separated by commas (,). Each font is set using a font name or font family name. The first font in the family or the specified [custom font](../arkui-js/js-components-common-customizing-font.md) is used for the text.|
| caret-color6+ | <color> | - | No | Color of the caret. |
diff --git a/en/application-dev/reference/arkui-js/js-components-basic-slider.md b/en/application-dev/reference/arkui-js/js-components-basic-slider.md
index 08099a0bf8999752bba1fec21d227b5c710bbae0..e4351b95ac820b6acbeb624e83abe60d4fc113fe 100644
--- a/en/application-dev/reference/arkui-js/js-components-basic-slider.md
+++ b/en/application-dev/reference/arkui-js/js-components-basic-slider.md
@@ -2,9 +2,9 @@
> **NOTE**
>
-> This component is supported since API version 4. Updates will be marked with a superscript to indicate their earliest API version.
+> This component is supported since API version 4. Updates will be marked with a superscript to indicate their earliest API version.
-The **\** component is used to quickly adjust settings, such as the volume and brightness.
+The **\** component is used to quickly adjust settings, such as the volume and brightness.
## Child Components
@@ -22,7 +22,7 @@ In addition to the [universal attributes](../arkui-js/js-components-common-attri
| max | number | 100 | No| Maximum value of the slider.|
| step | number | 1 | No| Step of each slide.|
| value | number | 0 | No| Initial value of the slider.|
-| mode5+ | string | outset | No| Slider style. Available values are as follows: - **outset**: The slider is on the sliding bar. - **inset**: The slider is inside the sliding bar.|
+| mode5+ | string | outset | No| Slider style. Available values are as follows: - **outset**: The slider is on the slider track. - **inset**: The slider is in the slider track.|
| showsteps5+ | boolean | false | No| Whether to display slider scales.|
| showtips5+ | boolean | false | No| Whether a tooltip is displayed to show the percentage value on the slider.|
@@ -51,7 +51,7 @@ In addition to the [universal events](../arkui-js/js-components-common-events.md
| Attribute| Type| Description|
| -------- | -------- | -------- |
| value5+ | number | Current value of the slider.|
-| mode5+ | string | Type of the change event. Available values are as follows: - **start**: The **value** starts to change. - **move**: The **value** is changing with users' dragging. - **end**: The **value** stops changing.|
+| mode5+ | string | Type of the change event. Available values are as follows: - **start**: The **value** starts to change. - **move**: The **value** is changing with users' dragging. - **end**: The **value** stops changing. - **click**: The **value** changes upon a touch on the slider.|
## Example
@@ -59,48 +59,23 @@ In addition to the [universal events](../arkui-js/js-components-common-events.md
```html
```
```css
/* xxx.css */
.doc-page {
- flex-direction: column;
- justify-content: center;
- align-items: center;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
}
+
.btn-div {
- width: 100%;
- height: 200px;
- flex-direction: column;
- align-items: center;
- justify-content: center;
+ width: 100%;
+ height: 200px;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
}
+
.txt {
- color: #000000;
- font-weight: bold;
- font-size: 39px;
+ color: #000000;
+ font-weight: bold;
+ font-size: 39px;
}
+
.panel-div {
- width: 100%;
- flex-direction: column;
- align-items: center;
+ width: 100%;
+ flex-direction: column;
+ align-items: center;
}
+
.inner-txt {
- width: 100%;
- height: 160px;
- flex-direction: column;
- align-items: center;
- justify-content: center;
+ width: 100%;
+ height: 160px;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
}
+
.inner-btn {
- width: 100%;
- height: 120px;
- justify-content: center;
- align-items: center;
+ width: 100%;
+ height: 120px;
+ justify-content: center;
+ align-items: center;
}
```
diff --git a/en/application-dev/reference/arkui-js/js-components-container-popup.md b/en/application-dev/reference/arkui-js/js-components-container-popup.md
index ef1cf3c658d395c64808eb9a1743c8d67b76bd81..46d661972f887b2ed6601523198618d7a831d380 100644
--- a/en/application-dev/reference/arkui-js/js-components-container-popup.md
+++ b/en/application-dev/reference/arkui-js/js-components-container-popup.md
@@ -4,7 +4,7 @@
>
> This component is supported since API version 4. Updates will be marked with a superscript to indicate their earliest API version.
-Bubble indication. The **\** component is used to display a pop-up to offer instructions after a user clicks a bound control.
+The **\** component is used to display a pop-up to offer instructions after a user clicks a bound component.
## Required Permissions
@@ -116,7 +116,7 @@ export default {
visibilitychange(e) {
prompt.showToast({
message: 'visibility change visibility: ' + e.visibility,
- duration: 3000,
+ duration: 3000
});
},
showpopup() {
@@ -124,7 +124,7 @@ export default {
},
hidepopup() {
this.$element("popup").hide();
- },
+ }
}
```
diff --git a/en/application-dev/reference/arkui-js/js-components-container-refresh.md b/en/application-dev/reference/arkui-js/js-components-container-refresh.md
index 8c3d8c5f42dfeb9721e0c00b1b7a7dbb31187241..fb9bf04be32e5c4612afd0a955810bfec050ae8d 100644
--- a/en/application-dev/reference/arkui-js/js-components-container-refresh.md
+++ b/en/application-dev/reference/arkui-js/js-components-container-refresh.md
@@ -4,7 +4,7 @@
>
> This component is supported since API version 4. Updates will be marked with a superscript to indicate their earliest API version.
-The **** component is used to refresh a page through a pull-down gesture.
+The **** component is used to refresh a page through a pull-down gesture.
## Required Permissions
@@ -22,7 +22,7 @@ In addition to the [universal attributes](../arkui-js/js-components-common-attri
| Name| Type| Default Value| Mandatory| Description|
| -------- | -------- | -------- | -------- | -------- |
-| offset | <length> | - | No| Distance to the top of the parent component from the **** component that comes to rest after a successful pull-down gesture.|
+| offset | <length> | - | No| Distance to the top of the parent component from the **** component that comes to rest after a successful pull-down gesture.|
| refreshing | boolean | false | No| Whether the **\** component is being used for refreshing.|
| type | string | auto | No| Dynamic effect when the component is refreshed. Two options are available and cannot be modified dynamically. - **auto**: default effect. When the list is pulled to the top, the list does not move. When the list is pulled to the bottom, a circle is displayed. - **pulldown**: When the list is pulled to the top, users can continue to pull down to trigger a refresh. The rebound effect will appear after the refresh. If the child component contains a list, set **scrolleffect** of the list to **no** to prevent drop-down effect conflicts.|
| lasttime | boolean | false | No| Whether to display the last update time. The character string format is **last update time: XXXX**, where **XXXX** is displayed based on the certain time and date formats and cannot be dynamically modified. (It is recommended that this attribute be used when **type** is set to **pulldown**. The fixed distance is at the bottom of the content drop-down area. Pay attention to the **offset** attribute setting to prevent overlapping.)|
@@ -36,8 +36,8 @@ In addition to the [universal styles](../arkui-js/js-components-common-styles.md
| Name| Type| Default Value| Mandatory| Description|
| -------- | -------- | -------- | -------- | -------- |
-| background-color | <color> | white | No| Background color of the **\** component.|
-| progress-color | <color> | black | No| Loading color of the **\** component.|
+| background-color | <color> | white | No| Background color of the **\** component.|
+| progress-color | <color> | black | No| Color of the loading icon of the **\** component.|
## Events
@@ -107,7 +107,7 @@ The [universal methods](../arkui-js/js-components-common-methods.md) are not sup
```js
// xxx.js
-import prompt from '@system.prompt';
+import promptAction from '@ohos.promptAction';
export default {
data: {
list:[],
@@ -121,7 +121,7 @@ export default {
}
},
refresh: function (e) {
- prompt.showToast({
+ promptAction.showToast({
message: 'Refreshing...'
})
var that = this;
@@ -130,7 +130,7 @@ export default {
that.fresh = false;
var addItem ='Refresh element';
that.list.unshift(addItem);
- prompt.showToast({
+ promptAction.showToast({
message: 'Refreshed.'
})
}, 2000)
diff --git a/en/application-dev/reference/arkui-js/js-components-container-stepper.md b/en/application-dev/reference/arkui-js/js-components-container-stepper.md
index 6a666a454cd424e1b3daf67fcae1c4a4e08f67a6..09bd2f3fce15f326b1d8f06832d3ea0c4319e234 100644
--- a/en/application-dev/reference/arkui-js/js-components-container-stepper.md
+++ b/en/application-dev/reference/arkui-js/js-components-container-stepper.md
@@ -27,7 +27,7 @@ In addition to the [universal attributes](../arkui-js/js-components-common-attri
| Name | Type | Default Value | Description |
| ----- | ------ | ---- | ------------------------------ |
-| index | number | - | Index of the **\** child component that is currently displayed.|
+| index | number | 0 | Index of the **\** child component to display. By default, the first one is displayed.|
## Styles
@@ -46,10 +46,10 @@ In addition to the [universal events](../arkui-js/js-components-common-events.md
| Name | Parameter | Description |
| ------ | ---------------------------------------- | ---------------------------------------- |
| finish | - | Triggered when the last step on the navigator is complete. |
-| skip | - | Triggered when users click the skip button, which works only if you have called **setNextButtonStatus** method to allow users to skip all steps.|
+| skip | - | Triggered when users click the skip button to skip steps.|
| change | { prevIndex: prevIndex, index: index} | Triggered when users click the left or right (text) button of the step navigator to switch between steps. **prevIndex** indicates the index of the previous step, and **index** indicates that of the current step.|
-| next | { index: index, pendingIndex: pendingIndex } | Triggered when users click the next (text) button. **index** indicates the index of the current step, and **pendingIndex** indicates that of the step to go. The return value is in **{pendingIndex:*** pendingIndex***}** format. You can use **pendingIndex** to specify a **\** child component as the next step to go.|
-| back | { index: index, pendingIndex: pendingIndex } | Triggered when users click the previous (text) button. **index** indicates the index of the current step, and **pendingIndex** indicates that of the step to go. The return value is in Object:{ **{pendingIndex:*** pendingIndex***}** format. You can use **pendingIndex** to specify a **\** child component as the previous step.|
+| next | { index: index, pendingIndex: pendingIndex } | Triggered when users click the next (text) button. **index** indicates the index of the current step, and **pendingIndex** indicates that of the step to go. The return value is in **{pendingIndex:*** pendingIndex***}** format. You can use **pendingIndex** to specify a **** child component as the next step to go.|
+| back | { index: index, pendingIndex: pendingIndex } | Triggered when users click the previous (text) button. **index** indicates the index of the current step, and **pendingIndex** indicates that of the step to go. The return value is in Object:{ **{pendingIndex:*** pendingIndex***}** format. You can use **pendingIndex** to specify a **** child component as the previous step.|
## Methods
@@ -58,101 +58,137 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
| Name | Parameter | Description |
| ------------------- | ---------------------------------------- | ---------------------------------------- |
-| setNextButtonStatus | { status: string, label: label } | Sets the status of the next (text) button in this step navigator. Available **status** values are as follows: - **normal**: The next button is displayed normally and can navigate users to the next step when it is clicked. - **disabled**: The next button is grayed out and unavailable. - **waiting**: The next button is not displayed, and a process bar is displayed instead. - **skip**: The skip button is displayed to allow users to skip all remaining steps.|
+| setNextButtonStatus | { status: string, label: label } | Sets the text and status of the next button in the step navigator. **label** indicates the button text, and **status** indicates the button status. Available **status** values are as follows: - **normal**: The next button is displayed normally and can navigate users to the next step when it is clicked. - **disabled**: The next button is grayed out and unavailable. - **waiting**: The next button is not displayed, and a process bar is displayed instead. - **skip**: The skip button is displayed to allow users to skip all remaining steps.|
## Example
```html
-