| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 12-May-2024 | - | 37 | 34 | ||
| entry/ | 12-May-2024 | - | 949 | 786 | ||
| imagelibrary/ | 12-May-2024 | - | 490 | 434 | ||
| screenshots/devices/ | 12-May-2024 | - | ||||
| .gitignore | D | 12-May-2024 | 56 | 5 | 5 | |
| README.md | D | 12-May-2024 | 1.5 KiB | 36 | 18 | |
| README_zh.md | D | 12-May-2024 | 1.6 KiB | 39 | 20 | |
| build-profile.json5 | D | 12-May-2024 | 1.1 KiB | 46 | 45 | |
| hvigorfile.js | D | 12-May-2024 | 168 | 2 | 1 | |
| package.json | D | 12-May-2024 | 372 | 18 | 18 |
README.md
1# Image Show 2 3### Introduction 4 5In this sample, you can select an image from **Gallery** and display it on the offering review page. 6 7This sample uses the [**\<TextArea>**](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/arkui-ts/ts-basic-components-textarea.md) component to implement multi-line text input and the [mediaLibrary](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-mediaquery.md) class to obtain and select images. 8 9### Usage 10 111. Touch **Add image**. The page for selecting images is displayed. 12 132. Select the images to be displayed. The number of selected images is displayed in the upper right corner, and the selected images are displayed in the lower part. You can select 6 images at most. 14 153. Touch **Next**. The home page is displayed, and the images selected are displayed on the home page. You can touch **Add image** again to select other images. 16 174. Touch the text box to input your comment. 18 195. Touch the back button to exit the app. 20 21### Required Permissions 22 23[ohos.permission.READ_MEDIA](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md), which allows an app to read media files from the user's external storage. 24 25### Dependency 26 27N/A 28 29### Constraints 30 311. This sample can only be run on standard-system devices that use the Rockchip RK3568 chip. 32 332. This sample is based on the stage model, which is supported from API version 9 (SDK version: 3.2.5.5). 34 353. DevEco Studio 3.0 Beta4 (Build version: 3.0.0.991, built on July 6, 2022) must be used. 36
README_zh.md
1# 图片显示 2 3### 介绍 4 5本示例展示从相册选择图片展示在商品评价页面。 6 7本示例使用 [TextArea](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md) 组件实现多文本属于,使用 [mediaLibrary](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-mediaquery.md) 实现图片的获取,选择。 8 9使用说明: 10 111.点击添加图片/照片,页面跳转到图片选择页面。 12 132.进入图片选择页面后,选择需要显示的图片,选择的图片数量会显示在右上方,选择的图片会显示在下方。最多选择6张图片。 14 153.选定图片后点击下一步,页面会跳转回主页面,图片显示在主页。若不确定选择,点击添加图片/照片进行重新选择。 16 174.图片选择后,点击文本输入框,可以对商品进行评价。 18 195.点击返回按钮,退出应用。 20 21### 效果预览 22 23    24 25### 相关权限 26 27允许应用读取用户外部存储中的媒体文件信息:[ohos.permission.READ_MEDIA](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md) 28 29### 依赖 30 31不涉及 32 33### 约束与限制 34 351.本示例仅支持标准系统上运行,支持设备:RK3568。 36 372.本示例为Stage模型,仅支持API9版本SDK,版本号:3.2.5.5。 38 393.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。