未验证 提交 8155a631 编写于 作者: O openharmony_ci 提交者: Gitee

!12020 敏感词修改

Merge pull request !12020 from LiAn/master
...@@ -12,7 +12,7 @@ On the created page, we use various items to describe food, such as food names, ...@@ -12,7 +12,7 @@ On the created page, we use various items to describe food, such as food names,
![en-us_image_0000001223127760](figures/en-us_image_0000001223127760.png) ![en-us_image_0000001223127760](figures/en-us_image_0000001223127760.png)
2. Define a food data storage model, FoodData, and an enum variable, Category. The FoodData class contains the food ID, name, category, image, calories, protein, fat, carbohydrates, and vitamin C attributes. 2. Define a food data storage model, FoodData, and an enum variable, Category. The FoodData class contains the food ID, name, category, image, calories, protein, fat, carbohydrates, and vitamin C attributes.
The eTS programming language is an extension of the TS language and also supports the TS syntax. The ArkTS programming language is an extension of the TS language and also supports the TS syntax.
``` ```
......
...@@ -202,7 +202,7 @@ struct TimerComponent { ...@@ -202,7 +202,7 @@ struct TimerComponent {
3. Use the parameters provided by the **TimerComponent** constructor to update the values of member variables. 3. Use the parameters provided by the **TimerComponent** constructor to update the values of member variables.
4. Execute the **aboutToAppear** function of **TimerComponent**. 4. Execute the **aboutToAppear** function of **TimerComponent**.
5. Execute the **build** function of **TimerComponent** to create the corresponding UI description structure. 5. Execute the **build** function of **TimerComponent** to create the corresponding UI description structure.
3. Create a preset **<Button>** component and set the corresponding content. 3. Create a preset **\<Button>** component and set the corresponding content.
**Status update:** **Status update:**
......
...@@ -92,7 +92,7 @@ In the food component table on the **FoodDetail** page, each food group is label ...@@ -92,7 +92,7 @@ In the food component table on the **FoodDetail** page, each food group is label
In addition to drawing basic geometric shapes, you can also use the **\<Path>** component to draw a custom path. The following describes how to draw an application logo. In addition to drawing basic geometric shapes, you can also use the **\<Path>** component to draw a custom path. The following describes how to draw an application logo.
1. Create an eTS page **Logo.ets** in the **pages** folder. 1. Create a page **Logo.ets** in the **pages** folder.
![drawing-feature1](figures/drawing-feature1.png) ![drawing-feature1](figures/drawing-feature1.png)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
## 设置静态动画 ## 设置静态动画
创建一个正方形并旋转90°变成菱形,并用下方的长方形把菱形下半部分遮盖形成屋顶,设置长方形translate属性值为(150px,-150px)确定坐标位置形成门,再使用position属性使横纵线跟随父组件(正方形)移动到指定坐标位置,接着设置scale属性使父子组件一起变大形成窗户大小,最后使用skewX属性使组件倾斜后设置坐标translate(200px,-830px)得到烟囱。 创建一个正方形并旋转90°变成菱形,并用下方的长方形把菱形下半部分遮盖形成屋顶,设置长方形translate属性值为(150px,-150px)确定坐标位置形成门,再使用position属性使横纵线跟随父组件(正方形)移动到指定坐标位置,接着设置scale属性使父子组件一起变大形成窗户大小,最后使用skewX属性使组件倾斜后设置坐标translate(200px,-710px)得到烟囱。
```html ```html
<!-- xxx.hml --> <!-- xxx.hml -->
......
...@@ -92,7 +92,7 @@ FoodDetail页面的食物成分表里,给每一项成分名称前都加上一 ...@@ -92,7 +92,7 @@ FoodDetail页面的食物成分表里,给每一项成分名称前都加上一
除绘制基础几何图形,开发者还可以使用Path组件来绘制自定义的路线,下面进行绘制应用的Logo图案。 除绘制基础几何图形,开发者还可以使用Path组件来绘制自定义的路线,下面进行绘制应用的Logo图案。
1. 在pages文件夹下创建新的eTS页面Logo.ets。 1. 在pages文件夹下创建新的页面Logo.ets。
![drawing-feature1](figures/drawing-feature1.png) ![drawing-feature1](figures/drawing-feature1.png)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册