diff --git a/en/application-dev/ui/js-framework-resource-restriction.md b/en/application-dev/ui/js-framework-resource-restriction.md index c428d4437d23fdc1082302f6e25f0c5a6594a7f2..ac354320d00180ec887ec33261bd89103d2b68ab 100644 --- a/en/application-dev/ui/js-framework-resource-restriction.md +++ b/en/application-dev/ui/js-framework-resource-restriction.md @@ -25,7 +25,7 @@ The name of a resource qualifier consists of one or more qualifiers that represe | Data Type | Description and Value Range | | -------- | -------- | -| Screen density | Indicates the screen density of the device, in dpi. The value can be:
- ldpi: low-density screen (~120 dpi) (0.75 x Reference density)
- mdpi: medium-density screen (~160 dpi) (reference density)
- hdpi: high-density screen (~240 dpi) (1.5 x Reference density)
- xhdpi: extra high-density screen (~320 dpi) (2.0 x Reference density)
- xxhdpi: extra extra high-density screen (~480 dpi) (3.0 x Reference density)
- xxxhdpi: extra extra extra high-density screen (~640 dpi) (4.0 x Reference density) | +| Screen density | Indicates the screen density of the device, in dpi. The value can be:
- ldpi: low-density screen (\~120 dpi) (0.75 x Reference density)
- mdpi: medium-density screen (\~160 dpi) (reference density)
- hdpi: high-density screen (\~240 dpi) (1.5 x Reference density)
- xhdpi: extra high-density screen (\~320 dpi) (2.0 x Reference density)
- xxhdpi: extra extra high-density screen (\~480 dpi) (3.0 x Reference density)
- xxxhdpi: extra extra extra high-density screen (\~640 dpi) (4.0 x Reference density) | ## Rules for Matching Qualifiers Files and Device Resources @@ -41,7 +41,7 @@ You can use the $r syntax in the application development files .hml and .js to f | Attribute | Type | Description | | -------- | -------- | -------- | -| $r | (key: string) => string | Obtains the resource content that matches the specific qualifiers, for example, this.$r('strings.hello loaded).
Parameter description:
- key: key value defined in the resource qualifier file, for example, strings.hello. | +| $r | (key: string) => string | Obtains the resource content that matches the specific qualifiers, for example, this.$r('strings.hello loaded).
Parameter description:
- key: key value defined in the resource qualifier file, for example, strings.hello.
| Example of res-defaults.json:
diff --git a/en/application-dev/ui/ts-component-based-styles.md b/en/application-dev/ui/ts-component-based-styles.md index 33ed37a07a5bb089bcff39f38d4456f6149b646f..a680933d6524893024b09fe4cbdec54a6b43e9f3 100644 --- a/en/application-dev/ui/ts-component-based-styles.md +++ b/en/application-dev/ui/ts-component-based-styles.md @@ -1,10 +1,9 @@ # @Styles -The @Styles decorator adds new attribute functions to basic components, such as <Text>, <Column>, and <Button>. Currently, @Styles supports only universal attributes. You can use the @Styles decorator to quickly define and reuse the custom styles of a component. +The **@Styles** decorator adds new attribute functions to basic components, such as **\**, **\**, and **\