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.
@@ -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.