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

!18253 翻译完成 17276+17465+16753+17766:fix docs error+更新span继承text属性需求的说明文档

Merge pull request !18253 from ester.zhou/TR-17276
......@@ -203,7 +203,7 @@ Curves.responsiveSpringMotion() // Create a responsive spring animation curve wi
```
## Curves.interpolatingSpringCurve<sup>10+</sup>
## Curves.interpolatingSpring<sup>10+</sup>
interpolatingSpring(velocity: number, mass: number, stiffness: number, damping: number): ICurve
......
......@@ -15,7 +15,7 @@ import measure from '@ohos.measure'
## measure.measureText
measureText(options: MeasureOptions): double
measureText(options: MeasureOptions): number
Measures the width of the given single-line text.
......@@ -31,7 +31,7 @@ Measures the width of the given single-line text.
| Type | Description |
| ------------ | --------- |
| double | Text width.<br>The unit is px.|
| number | Text width.<br>The unit is px.|
**Example**
......
......@@ -20,18 +20,16 @@ Functions of the files are as follows:
Functions of the folders are as follows:
- The **app.js** file manages global JS logics and application lifecycle.
- The **pages** directory stores all component pages.
- The **common** directory stores public resource files, such as media resources and JavaScript files.
- The **common** directory stores public resource files, such as media resources and **.js** files.
- The **i18n** folder stores resources in different languages, for example, UI strings and image paths.
> **NOTE**
> - The following reserved folders cannot be renamed:
>
> - The **i18n** folder is a reserved one and cannot be renamed.
>
>
>
> - The folders marked as optional in the directory structure can be created as needed after you create the project in DevEco Studio.
> - The folders marked as optional in the directory structure can be created as needed after you create the project in DevEco Studio.
## File Access Rules
......@@ -60,8 +58,16 @@ Application resources can be accessed via an absolute or relative path. In this
**Table 1** Supported image formats
| Format| Supported Version| File Name Extension|
| -------- | -------- | -------- |
| BMP | API Version 3+ | .bmp |
| JPEG | API Version 3+ | .jpg |
| PNG | API Version 3+ | .png |
| Format | Supported Version | File Name Extension|
| ---- | ------------------------ | ------- |
| BMP | API version 4+ | .bmp |
| JPEG | API version 4+ | .jpg |
| PNG | API version 4+ | .png |
## Storage Directory
Since API version 5, the [\<image>](js-components-basic-image.md) component supports access to images in the private directory of an application.
| Directory Type | Prefix | Access Visibility | Description |
| ------ | --------------- | ------ | --------------------------- |
| Private directory of the application| internal://app/ | Current application only| The directory is deleted when the application is uninstalled. Access to the parent directory using **../** is prohibited.|
......@@ -5,6 +5,8 @@ The **\<Span>** component is used to display inline text in the **\<Text>** comp
> **NOTE**
>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
>
> Since API version 10, this component can inherit the attributes of the **\<Text>** parent component. That is, if no attribute is set for this component, it inherits the attributes (if set) of its parent component. The following attributes can be inherited: **fontColor**, **fontSize**, **fontStyle**, **fontWeight**, **decoration**, **letterSpacing**, **textCase**, **lineHeight**, and **fontfamily**.
## Child Components
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册