From 344dfc6d5b52655206f5540c4255e4ed67a8efef Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Mon, 29 Aug 2022 17:08:57 +0800 Subject: [PATCH] update ts-basic-components-qrcode.md (8506) Signed-off-by: ester.zhou --- .../arkui-ts/ts-basic-components-qrcode.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-qrcode.md b/en/application-dev/reference/arkui-ts/ts-basic-components-qrcode.md index 72b505c484..c11131b008 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-qrcode.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-qrcode.md @@ -1,11 +1,10 @@ # QRCode +The **\** component is used to display a QR code. -> **NOTE**
-> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. - - -The **<QRCode>** component is used to display QR code information. +> **NOTE** +> +> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. ## Required Permissions @@ -15,7 +14,7 @@ None ## Child Components -None +Not supported ## APIs @@ -23,16 +22,17 @@ None QRCode(value: string) - Parameters - | Name | Type | Mandatory | Default Value | Description | + | Name| Type| Mandatory| Default Value| Description| | -------- | -------- | -------- | -------- | -------- | - | value | string | Yes | - | QR code content string. | + | value | string | Yes| - | Content of the QR code.| ## Attributes -| Name | Type | Default Value | Description | +| Name| Type| Default Value| Description| | -------- | -------- | -------- | -------- | -| color | Color | Black | QR code color. | +| color | [ResourceColor](../../ui/ts-types.md) | Black | Color of the QR code.| +| backgroundColor | [ResourceColor](../../ui/ts-types.md) | - | Background color of the QR code.| ## Events @@ -42,8 +42,8 @@ Among all the universal events, only the click event is supported. ## Example - -``` +```ts +// xxx.ets @Entry @Component struct QRCodeExample { -- GitLab