| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 22-Oct-2025 | - | 41 | 39 | ||
| entry/ | 22-Oct-2025 | - | 3,673 | 3,394 | ||
| hvigor/ | 22-Oct-2025 | - | 37 | 36 | ||
| screenshots/device/ | 22-Oct-2025 | - | ||||
| .gitignore | D | 22-Oct-2025 | 133 | 12 | 12 | |
| README_zh.md | D | 22-Oct-2025 | 3.8 KiB | 114 | 91 | |
| build-profile.json5 | D | 22-Oct-2025 | 1.3 KiB | 57 | 57 | |
| code-linter.json5 | D | 22-Oct-2025 | 1.4 KiB | 46 | 46 | |
| hvigorfile.ts | D | 22-Oct-2025 | 842 | 21 | 5 | |
| oh-package.json5 | D | 22-Oct-2025 | 808 | 25 | 24 | |
| ohosTest.md | D | 22-Oct-2025 | 937 | 10 | 7 |
README_zh.md
1# ArkUI使用模态组件指南文档示例 2 3### 介绍 4 5本示例通过使用[ArkUI指南文档](https://gitee.com/openharmony/docs/tree/master/zh-cn/application-dev/ui)中各场景的开发示例,展示在工程中,帮助开发者更好地理解ArkUI提供的组件及组件属性并合理使用。该工程中展示的代码详细描述可查如下链接: 6 71. [全模态转场](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-attributes-modal-transition.md)。 82. [半模态转场](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-attributes-sheet-transition.md)。 93. [命令式打开半模态](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkui/js-apis-arkui-UIContext.md#openbindsheet12)。 104. [模态转场](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/ui/arkts-modal-transition.md)。 115. [绑定全模态页面](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/ui/arkts-contentcover-page.md)。 12 13### 效果预览 14 15| 首页 | 16|------------------------------------| 17|  | 18 19### 使用说明 20 211. 在主界面,可以点击对应卡片,选择需要参考的组件示例。 22 232. 在组件目录选择详细的示例参考。 24 253. 进入示例界面,查看参考示例。 26 274. 通过自动测试框架可进行测试及维护。 28 29### 工程目录 30``` 31entry/src/main/ets/ 32|---entryability 33|---pages 34| |---bindContentCover // 全模态转场 35| | |---template1 36| | | |---Index.ets 37| | |---template2 38| | | |---Index.ets 39| | |---template3 40| | | |---Index.ets 41| | |---template4 42| | | |---Index.ets 43| | |---template5 44| | | |---Index.ets 45| | |---template6 46| | | |---Index.ets 47| | |---template7 48| | | |---Index.ets 49| |---bindSheet // 半模态转场 50| | |---template1 51| | | |---Index.ets 52| | |---template2 53| | | |---Index.ets 54| | |---template3 55| | | |---Index.ets 56| | |---template4 57| | | |---Index.ets 58| | |---template5 59| | | |---Index.ets 60| | |---template6 61| | | |---Index.ets 62| | |---template7 63| | | |---Index.ets 64| | |---template8 65| | | |---Index.ets 66| | |---template9 67| | | |---Index.ets 68| | |---template10 69| | | |---Index.ets 70| |---bindSheetCmd // 命令式打开半模态 71| | |---template1 72| | | |---Index.ets 73| | |---template2 74| | | |---Index.ets 75| | |---template3 76| | | |---Index.ets 77|---pages 78| |---Index.ets // 应用主页面 79entry/src/ohosTest/ 80|---ets 81| |---test 82| | |---BindContentCover.test.ets // 全模态转场示例代码测试代码 83| | |---BindSheet.test.ets // 半模态转场示例代码测试代码 84| | |---OpenSheet.test.ets // 命令式打开半模态示例代码测试代码 85 86``` 87 88### 相关权限 89 90不涉及。 91 92### 依赖 93 94不涉及。 95 96### 约束与限制 97 981.本示例仅支持标准系统上运行, 支持设备:RK3568。 99 1002.本示例为Stage模型,支持API20版本SDK,版本号:6.0.0.33,镜像版本号:OpenHarmony_6.0.0.33。 101 1023.本示例需要使用DevEco Studio 6.0.0 Canary1 (Build Version: 6.0.0.270, built on May 9, 2025)及以上版本才可编译运行。 103 104### 下载 105 106如需单独下载本工程,执行如下命令: 107 108```` 109git init 110git config core.sparsecheckout true 111echo code/DocsSample/ArkUIDocSample/BindSheet > .git/info/sparse-checkout 112git remote add origin https://gitee.com/openharmony/applications_app_samples.git 113git pull origin master 114````