From 3618cdb70dc40c3fcf6309f5306afbddd6d3517a Mon Sep 17 00:00:00 2001 From: gitee-bot Date: Fri, 12 Sep 2025 16:09:06 +0000 Subject: [PATCH] Add README.md --- README.en.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 README.en.md create mode 100644 README.md diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..66a2375 --- /dev/null +++ b/README.en.md @@ -0,0 +1,55 @@ +# HarmonyOS Custom Time Picker + +This is a HarmonyOS application module that implements a reusable time range picker component, suitable for HarmonyOS application development scenarios where time selection interaction is required. + +## Main Features + +- Provides a reusable time selection dialog component `TimeRangeDialog` +- Supports user selection of start and end times +- Provides a unified UI button component `ButtonUI` +- Supports resource management for dark and light modes + +## Project Structure + +``` +entry/ +├── src/ +│ ├── main/ +│ │ ├── ets/ +│ │ │ ├── common/ +│ │ │ │ ├── components/ +│ │ │ │ │ ├── ButtonUI.ets # Common button component +│ │ │ │ │ └── TimeRangeDialog.ets # Time range selection dialog +│ │ │ │ └── entryability/ +│ │ │ │ └── EntryAbility.ets # Application entry ability +│ │ │ └── pages/ +│ │ │ └── Index.ets # Main page +│ │ └── resources/ # Resource files +│ │ ├── base/ +│ │ └── dark/ +│ └── ohosTest/ # Test code +│ └── ets/ +│ └── test/ +│ ├── Ability.test.ets +│ └── List.test.ets +``` + +## Usage Instructions + +1. Integrate the `TimeRangeDialog.ets` and `ButtonUI.ets` components into your HarmonyOS project +2. Import the components in the page where the time picker is needed +3. Call `TimeRangeDialog` to display the time selection dialog +4. Handle the selected time range result from the user + +## Contribution Guide + +Code contributions and improvements are welcome. Please follow these steps: + +1. Fork this repository +2. Create a new branch +3. Submit code changes +4. Create a Pull Request + +## License + +This project uses the Apache-2.0 License. For details, please refer to the LICENSE file in the project root directory. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..b529a7c --- /dev/null +++ b/README.md @@ -0,0 +1,55 @@ +# HarmonyOS 自定义时间选择器 + +这是一个 HarmonyOS 应用程序模块,主要实现了一个可复用的时间范围选择器组件,适用于需要进行时间选择交互的 HarmonyOS 应用开发场景。 + +## 主要功能 + +- 提供了一个可复用的时间选择对话框组件 `TimeRangeDialog` +- 支持用户选择开始时间和结束时间 +- 提供了统一的 UI 按钮组件 `ButtonUI` +- 支持深色和浅色模式的资源管理 + +## 项目结构 + +``` +entry/ +├── src/ +│ ├── main/ +│ │ ├── ets/ +│ │ │ ├── commo/ +│ │ │ │ ├── components/ +│ │ │ │ │ ├── ButtonuUI.ets # 通用按钮组件 +│ │ │ │ │ └── TimeRangeDialog.ets # 时间范围选择对话框 +│ │ │ │ └── entryability/ +│ │ │ │ └── EntryAbility.ets # 应用入口能力 +│ │ │ └── pages/ +│ │ │ └── Index.ets # 主页面 +│ │ └── resources/ # 资源文件 +│ │ ├── base/ +│ │ └── dark/ +│ └── ohosTest/ # 测试代码 +│ └── ets/ +│ └── test/ +│ ├── Ability.test.ets +│ └── List.test.ets +``` + +## 使用说明 + +1. 将 `TimeRangeDialog.ets` 和 `ButtonuUI.ets` 组件集成到您的 HarmonyOS 项目中 +2. 在需要使用时间选择器的页面中引入组件 +3. 调用 `TimeRangeDialog` 显示时间选择对话框 +4. 处理用户选择的时间范围结果 + +## 贡献指南 + +欢迎贡献代码和改进。请遵循以下步骤: + +1. Fork 本仓库 +2. 创建新分支 +3. 提交代码更改 +4. 创建 Pull Request + +## 许可证 + +本项目采用 Apache-2.0 许可证。详情请查看项目根目录的 LICENSE 文件。 \ No newline at end of file -- Gitee