Project Overview
This is a card component used to display date information (including Gregorian calendar, lunar calendar, and day of the week), developed based on ArkJS/ArkTS, with modular design, processing date logic through the DateTransfer class, and the DateCard struct is responsible for UI display.
Development steps
- Select entry in the empty project, right-click and select Atomic Service (meta service)
Add the card page to the pages folder in the detecard directory
- The date data processing module (DateTransfer) is responsible for processing the date logic, using the third-party library cjcalendar to obtain the lunar calendar, and entering ohpm install cjcalendar in the terminal to download the third-party library. To use it, you can create a date data object new DateTransfer() to get real-time date data.
- Adapt the system color theme in the resource file
Top comments (1)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.