• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ArkTS卡片计算器
2
3### 介绍
4
5本示例展示了使用ArkTS卡片开发的计算器模型。
6
7### 效果预览
8
9| 添加卡片                                         | 卡片预览                                                 | 操作卡片                                         |
10| ------------------------------------------------ | -------------------------------------------------------- | ------------------------------------------------ |
11| ![CalculatorAdd](screenshots/CalculatorAdd.jpeg) | ![CalculatorPreview](screenshots/CalculatorPreview.jpeg) | ![CalculatorUse](screenshots/CalculatorUse.jpeg) |
12
13### 使用说明
14
151.部分设备的桌面不支持卡片,可以通过自己的开发卡片使用方,进行卡片的创建、更新和删除等操作。
16
17### 工程目录
18
19```
20entry/src/main/ets/
21|---entryability
22    |---EntryAbility.ets                    // Ability声明周期处理文件
23|---entryformability
24|   |---EntryFormAbility.ets                // 卡片声明周期处理文件
25|---pages
26|   |---index.ets                           // 首页
27|---calc
28|   |---pages
29|   |   |---CardCalc.ets                    // 计算器卡片页面
30```
31
32### 相关权限
33
34不涉及。
35
36### 约束与限制
37
381.本示例仅支持标准系统上运行,支持设备:RK3568。
39
402.本示例已适配API version 14版本SDK,版本号:5.0.2.123。
41
423.本示例需要使用DevEco Studio NEXT Release (Build Version: 5.0.13.200, built on May 13, 2025)及以上版本才可编译运行。