-
Notifications
You must be signed in to change notification settings - Fork 287
fix(countdown): 修改实现逻辑适配v13和四端 #2316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(countdown): 修改实现逻辑适配v13和四端 #2316
Conversation
| }) | ||
|
|
||
| // TODO: 后期统一替换 | ||
| const harmonyAndRn = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以合并下代码,直接把这里替换一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以合并下代码,直接把这里替换一下
已修改
| height: pxTransform(25), | ||
| fontSize: pxTransform(14), | ||
| borderRadius: pxTransform(6), | ||
| height: pxTransform(20), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
代码可以合并一下 dev-harmony , 使用 uitls 中的 pxTransform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
代码可以合并一下 dev-harmony , 使用 uitls 中的 pxTransform
已修改
|
Warning Rate limit exceeded@irisSong has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 36 minutes and 22 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. Walkthrough此次更新主要集中在NutUI的倒计时组件和构建配置文件。这次更新包括对倒计时组件的样式进行优化,引入新的属性以增强自定义能力,同时更新了构建文件以标准化配置格式。 Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
| $countdown-color: var(--nutui-countdown-color, $color-primary) !default; | ||
| $countdown-font-size: var(--nutui-countdown-font-size, 10px) !default; | ||
| $coutdown-font-weight: var(--nutui-countdown-font-weight, 400) !default; | ||
| $countdown-height: var(--nutui-countdown-height, 14px) !default; | ||
| $countdown-width: var(--nutui-countdown-width, 14px) !default; | ||
| $countdown-number-padding: var( | ||
| --nutui-countdown-number-padding, | ||
| 0 1px | ||
| ) !default; | ||
| $countdown-number-border-radius: var( | ||
| --nutui-countdown-number-border-radius, | ||
| 2px | ||
| ) !default; | ||
| $countdown-number-margin: var(--nutui-countdown-number-margin, 0 2px) !default; | ||
| $countdown-number-border-color: var( | ||
| --nutui-countdown-number-border-color, | ||
| $color-primary-light | ||
| ) !default; | ||
| $countdown-number-color: var( | ||
| --nutui-countdown-number-color, | ||
| $color-primary | ||
| ) !default; | ||
| $countdown-number-background-color: var( | ||
| --nutui-countdown-number-background-color, | ||
| transparent | ||
| ) !default; | ||
| $countdown-number-primary-border-color: var( | ||
| --nutui-countdown-number-primary-border-color, | ||
| $color-primary | ||
| ) !default; | ||
| $countdown-number-primary-color: var( | ||
| --nutui-countdown-number-primary-color, | ||
| #ffffff | ||
| ) !default; | ||
| $countdown-number-primary-background-color: var( | ||
| --nutui-countdown-number-primary-background-color, | ||
| $color-primary | ||
| ) !default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
变量 $coutdown-font-weight 名称拼写错误,应为 $countdown-font-weight。
- $coutdown-font-weight: var(--nutui-countdown-font-weight, 400) !default;
+ $countdown-font-weight: var(--nutui-countdown-font-weight, 400) !default;Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| $countdown-color: var(--nutui-countdown-color, $color-primary) !default; | |
| $countdown-font-size: var(--nutui-countdown-font-size, 10px) !default; | |
| $coutdown-font-weight: var(--nutui-countdown-font-weight, 400) !default; | |
| $countdown-height: var(--nutui-countdown-height, 14px) !default; | |
| $countdown-width: var(--nutui-countdown-width, 14px) !default; | |
| $countdown-number-padding: var( | |
| --nutui-countdown-number-padding, | |
| 0 1px | |
| ) !default; | |
| $countdown-number-border-radius: var( | |
| --nutui-countdown-number-border-radius, | |
| 2px | |
| ) !default; | |
| $countdown-number-margin: var(--nutui-countdown-number-margin, 0 2px) !default; | |
| $countdown-number-border-color: var( | |
| --nutui-countdown-number-border-color, | |
| $color-primary-light | |
| ) !default; | |
| $countdown-number-color: var( | |
| --nutui-countdown-number-color, | |
| $color-primary | |
| ) !default; | |
| $countdown-number-background-color: var( | |
| --nutui-countdown-number-background-color, | |
| transparent | |
| ) !default; | |
| $countdown-number-primary-border-color: var( | |
| --nutui-countdown-number-primary-border-color, | |
| $color-primary | |
| ) !default; | |
| $countdown-number-primary-color: var( | |
| --nutui-countdown-number-primary-color, | |
| #ffffff | |
| ) !default; | |
| $countdown-number-primary-background-color: var( | |
| --nutui-countdown-number-primary-background-color, | |
| $color-primary | |
| ) !default; | |
| $countdown-color: var(--nutui-countdown-color, $color-primary) !default; | |
| $countdown-font-size: var(--nutui-countdown-font-size, 10px) !default; | |
| $countdown-font-weight: var(--nutui-countdown-font-weight, 400) !default; | |
| $countdown-height: var(--nutui-countdown-height, 14px) !default; | |
| $countdown-width: var(--nutui-countdown-width, 14px) !default; | |
| $countdown-number-padding: var( | |
| --nutui-countdown-number-padding, | |
| 0 1px | |
| ) !default; | |
| $countdown-number-border-radius: var( | |
| --nutui-countdown-number-border-radius, | |
| 2px | |
| ) !default; | |
| $countdown-number-margin: var(--nutui-countdown-number-margin, 0 2px) !default; | |
| $countdown-number-border-color: var( | |
| --nutui-countdown-number-border-color, | |
| $color-primary-light | |
| ) !default; | |
| $countdown-number-color: var( | |
| --nutui-countdown-number-color, | |
| $color-primary | |
| ) !default; | |
| $countdown-number-background-color: var( | |
| --nutui-countdown-number-background-color, | |
| transparent | |
| ) !default; | |
| $countdown-number-primary-border-color: var( | |
| --nutui-countdown-number-primary-border-color, | |
| $color-primary | |
| ) !default; | |
| $countdown-number-primary-color: var( | |
| --nutui-countdown-number-primary-color, | |
| #ffffff | |
| ) !default; | |
| $countdown-number-primary-background-color: var( | |
| --nutui-countdown-number-primary-background-color, | |
| $color-primary | |
| ) !default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
| | \--nutui-countdown-color | 倒計時的文字顔色 | `$color-primary` | | ||
| | \--nutui-countdown-font-size | 倒計時的字體大小 | `10px` | | ||
| | \--nutui-countdown-font-weight | 倒計時的字體粗細 | `400` | | ||
| | \--nutui-countdown-width | 倒計時的時間區域寬度 | `20px` | | ||
| | \--nutui-countdown-height | 倒計時的時間區域高度 | `14px` | | ||
| | \--nutui-countdown-number-padding | 倒計時的時間區域padding | `0 1px` | | ||
| | \--nutui-countdown-number-margin | 倒計時的時間區域margin | `0 2px` | | ||
| | \countdown-number-border-radius | 倒計時的時間區域圓角大小 | `2px` | | ||
| | \--nutui-countdown-color | 倒計時的時間區域的文字顔色 | `$color-primary-light` | | ||
| | \--nutui-countdown-background-color | 倒計時的時間區域的背景顔色 | `$color-primary` | | ||
| | \--nutui-countdown-border-color | 倒計時的時間區域的邊框顔色顔色 | `$color-primary` | | ||
| | \--nutui-countdown-primary-color | type爲`primary`時,倒計時的時間區域的文字顔色 | `#FFFFFF` | | ||
| | \--nutui-countdown-primary-background-color | type爲`primary`時,倒計時的時間區域的背景顔色 | `$color-primary` | | ||
| | \--nutui-countdown-primary-border-color | type爲`primary`時,倒計時的時間區域的邊框顔色顔色 | `$color-primary` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请注意,CSS变量名应以双破折号(--)开头。在第145行,CSS变量名缺少了这个前缀。
- | \countdown-number-border-radius | 倒計時的時間區域圓角大小 | `2px` |
+ | \--countdown-number-border-radius | 倒計時的時間區域圓角大小 | `2px` |Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| | \--nutui-countdown-color | 倒計時的文字顔色 | `$color-primary` | | |
| | \--nutui-countdown-font-size | 倒計時的字體大小 | `10px` | | |
| | \--nutui-countdown-font-weight | 倒計時的字體粗細 | `400` | | |
| | \--nutui-countdown-width | 倒計時的時間區域寬度 | `20px` | | |
| | \--nutui-countdown-height | 倒計時的時間區域高度 | `14px` | | |
| | \--nutui-countdown-number-padding | 倒計時的時間區域padding | `0 1px` | | |
| | \--nutui-countdown-number-margin | 倒計時的時間區域margin | `0 2px` | | |
| | \countdown-number-border-radius | 倒計時的時間區域圓角大小 | `2px` | | |
| | \--nutui-countdown-color | 倒計時的時間區域的文字顔色 | `$color-primary-light` | | |
| | \--nutui-countdown-background-color | 倒計時的時間區域的背景顔色 | `$color-primary` | | |
| | \--nutui-countdown-border-color | 倒計時的時間區域的邊框顔色顔色 | `$color-primary` | | |
| | \--nutui-countdown-primary-color | type爲`primary`時,倒計時的時間區域的文字顔色 | `#FFFFFF` | | |
| | \--nutui-countdown-primary-background-color | type爲`primary`時,倒計時的時間區域的背景顔色 | `$color-primary` | | |
| | \--nutui-countdown-primary-border-color | type爲`primary`時,倒計時的時間區域的邊框顔色顔色 | `$color-primary` | | |
| | \--nutui-countdown-color | 倒計時的文字顔色 | `$color-primary` | | |
| | \--nutui-countdown-font-size | 倒計時的字體大小 | `10px` | | |
| | \--nutui-countdown-font-weight | 倒計時的字體粗細 | `400` | | |
| | \--nutui-countdown-width | 倒計時的時間區域寬度 | `20px` | | |
| | \--nutui-countdown-height | 倒計時的時間區域高度 | `14px` | | |
| | \--nutui-countdown-number-padding | 倒計時的時間區域padding | `0 1px` | | |
| | \--nutui-countdown-number-margin | 倒計時的時間區域margin | `0 2px` | | |
| | \--countdown-number-border-radius | 倒計時的時間區域圓角大小 | `2px` | | |
| | \--nutui-countdown-color | 倒計時的時間區域的文字顔色 | `$color-primary-light` | | |
| | \--nutui-countdown-background-color | 倒計時的時間區域的背景顔色 | `$color-primary` | | |
| | \--nutui-countdown-border-color | 倒計時的時間區域的邊框顔色顔色 | `$color-primary` | | |
| | \--nutui-countdown-primary-color | type爲`primary`時,倒計時的時間區域的文字顔色 | `#FFFFFF` | | |
| | \--nutui-countdown-primary-background-color | type爲`primary`時,倒計時的時間區域的背景顔色 | `$color-primary` | | |
| | \--nutui-countdown-primary-border-color | type爲`primary`時,倒計時的時間區域的邊框顔色顔色 | `$color-primary` | |
Tools
LanguageTool
[locale-violation] ~146-~146: 'light' é un xenismo. É preferíbel dicir "leve" ou "de baixo valor calórico" (GL_BARBARISM_REPLACE)
Context: ...nutui-countdown-color | 倒計時的時間區域的文字顔色 |$color-primary-light| | --nutui-countdown-background-colo...
[locale-violation] ~147-~147: 'background' é un xenismo. É preferíbel dicir "formación de base" (GL_BARBARISM_REPLACE)
Context: ...r-primary-light| | \--nutui-countdown-background-color | 倒計時的時間區域的背景顔色 |$color-primary...
[locale-violation] ~150-~150: 'background' é un xenismo. É preferíbel dicir "formación de base" (GL_BARBARISM_REPLACE)
Context: ...#FFFFFF| | \--nutui-countdown-primary-background-color | type爲primary`時,倒計時的時間區域的背景顔色 |...
Markdownlint
151-151: null (MD047, single-trailing-newline)
Files should end with a single newline character
| | \--nutui-countdown-color | 倒计时的文字颜色 | `$color-primary` | | ||
| | \--nutui-countdown-font-size | 倒计时的字体大小 | `10px` | | ||
| | \--nutui-countdown-font-weight | 倒计时的字体粗细 | `400` | | ||
| | \--nutui-countdown-width | 倒计时的时间区域宽度 | `20px` | | ||
| | \--nutui-countdown-height | 倒计时的时间区域高度 | `14px` | | ||
| | \--nutui-countdown-number-padding | 倒计时的时间区域padding | `0 1px` | | ||
| | \--nutui-countdown-number-margin | 倒计时的时间区域margin | `0 2px` | | ||
| | \countdown-number-border-radius | 倒计时的时间区域圆角大小 | `2px` | | ||
| | \--nutui-countdown-color | 倒计时的时间区域的文字颜色 | `$color-primary-light` | | ||
| | \--nutui-countdown-background-color | 倒计时的时间区域的背景颜色 | `$color-primary` | | ||
| | \--nutui-countdown-border-color | 倒计时的时间区域的边框颜色颜色 | `$color-primary` | | ||
| | \--nutui-countdown-primary-color | type为`primary`时,倒计时的时间区域的文字颜色 | `#FFFFFF` | | ||
| | \--nutui-countdown-primary-background-color | type为`primary`时,倒计时的时间区域的背景颜色 | `$color-primary` | | ||
| | \--nutui-countdown-primary-border-color | type为`primary`时,倒计时的时间区域的边框颜色颜色 | `$color-primary` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请注意,CSS变量名应以双破折号(--)开头。在第145行,CSS变量名缺少了这个前缀。
- | \countdown-number-border-radius | 倒计时的时间区域圆角大小 | `2px` |
+ | \--countdown-number-border-radius | 倒计时的时间区域圆角大小 | `2px` |Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| | \--nutui-countdown-color | 倒计时的文字颜色 | `$color-primary` | | |
| | \--nutui-countdown-font-size | 倒计时的字体大小 | `10px` | | |
| | \--nutui-countdown-font-weight | 倒计时的字体粗细 | `400` | | |
| | \--nutui-countdown-width | 倒计时的时间区域宽度 | `20px` | | |
| | \--nutui-countdown-height | 倒计时的时间区域高度 | `14px` | | |
| | \--nutui-countdown-number-padding | 倒计时的时间区域padding | `0 1px` | | |
| | \--nutui-countdown-number-margin | 倒计时的时间区域margin | `0 2px` | | |
| | \countdown-number-border-radius | 倒计时的时间区域圆角大小 | `2px` | | |
| | \--nutui-countdown-color | 倒计时的时间区域的文字颜色 | `$color-primary-light` | | |
| | \--nutui-countdown-background-color | 倒计时的时间区域的背景颜色 | `$color-primary` | | |
| | \--nutui-countdown-border-color | 倒计时的时间区域的边框颜色颜色 | `$color-primary` | | |
| | \--nutui-countdown-primary-color | type为`primary`时,倒计时的时间区域的文字颜色 | `#FFFFFF` | | |
| | \--nutui-countdown-primary-background-color | type为`primary`时,倒计时的时间区域的背景颜色 | `$color-primary` | | |
| | \--nutui-countdown-primary-border-color | type为`primary`时,倒计时的时间区域的边框颜色颜色 | `$color-primary` | | |
| | \--nutui-countdown-color | 倒计时的文字颜色 | `$color-primary` | | |
| | \--nutui-countdown-font-size | 倒计时的字体大小 | `10px` | | |
| | \--nutui-countdown-font-weight | 倒计时的字体粗细 | `400` | | |
| | \--nutui-countdown-width | 倒计时的时间区域宽度 | `20px` | | |
| | \--nutui-countdown-height | 倒计时的时间区域高度 | `14px` | | |
| | \--nutui-countdown-number-padding | 倒计时的时间区域padding | `0 1px` | | |
| | \--nutui-countdown-number-margin | 倒计时的时间区域margin | `0 2px` | | |
| | \--countdown-number-border-radius | 倒计时的时间区域圆角大小 | `2px` | | |
| | \--nutui-countdown-color | 倒计时的时间区域的文字颜色 | `$color-primary-light` | | |
| | \--nutui-countdown-background-color | 倒计时的时间区域的背景颜色 | `$color-primary` | | |
| | \--nutui-countdown-border-color | 倒计时的时间区域的边框颜色颜色 | `$color-primary` | | |
| | \--nutui-countdown-primary-color | type为`primary`时,倒计时的时间区域的文字颜色 | `#FFFFFF` | | |
| | \--nutui-countdown-primary-background-color | type为`primary`时,倒计时的时间区域的背景颜色 | `$color-primary` | | |
| | \--nutui-countdown-primary-border-color | type为`primary`时,倒计时的时间区域的边框颜色颜色 | `$color-primary` | |
Tools
LanguageTool
[locale-violation] ~146-~146: 'light' é un xenismo. É preferíbel dicir "leve" ou "de baixo valor calórico" (GL_BARBARISM_REPLACE)
Context: ...nutui-countdown-color | 倒计时的时间区域的文字颜色 |$color-primary-light| | --nutui-countdown-background-colo...
[locale-violation] ~147-~147: 'background' é un xenismo. É preferíbel dicir "formación de base" (GL_BARBARISM_REPLACE)
Context: ...r-primary-light| | \--nutui-countdown-background-color | 倒计时的时间区域的背景颜色 |$color-primary...
[locale-violation] ~150-~150: 'background' é un xenismo. É preferíbel dicir "formación de base" (GL_BARBARISM_REPLACE)
Context: ...#FFFFFF| | \--nutui-countdown-primary-background-color | type为primary`时,倒计时的时间区域的背景颜色 |...
Markdownlint
151-151: null (MD047, single-trailing-newline)
Files should end with a single newline character
| | \--nutui-countdown-color | 倒计时的文字颜色 | `$color-primary` | | ||
| | \--nutui-countdown-font-size | 倒计时的字体大小 | `10px` | | ||
| | \--nutui-countdown-font-weight | 倒计时的字体粗细 | `400` | | ||
| | \--nutui-countdown-width | 倒计时的时间区域宽度 | `20px` | | ||
| | \--nutui-countdown-height | 倒计时的时间区域高度 | `14px` | | ||
| | \--nutui-countdown-number-padding | 倒计时的时间区域padding | `0 1px` | | ||
| | \--nutui-countdown-number-margin | 倒计时的时间区域margin | `0 2px` | | ||
| | \countdown-number-border-radius | 倒计时的时间区域圆角大小 | `2px` | | ||
| | \--nutui-countdown-color | 倒计时的时间区域的文字颜色 | `$color-primary-light` | | ||
| | \--nutui-countdown-background-color | 倒计时的时间区域的背景颜色 | `$color-primary` | | ||
| | \--nutui-countdown-border-color | 倒计时的时间区域的边框颜色颜色 | `$color-primary` | | ||
| | \--nutui-countdown-primary-color | type为`primary`时,倒计时的时间区域的文字颜色 | `#FFFFFF` | | ||
| | \--nutui-countdown-primary-background-color | type为`primary`时,倒计时的时间区域的背景颜色 | `$color-primary` | | ||
| | \--nutui-countdown-primary-border-color | type为`primary`时,倒计时的时间区域的边框颜色颜色 | `$color-primary` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请注意,CSS变量名应以双破折号(--)开头。在第146行,CSS变量名缺少了这个前缀。
- | \countdown-number-border-radius | 倒计时的时间区域圆角大小 | `2px` |
+ | \--countdown-number-border-radius | 倒计时的时间区域圆角大小 | `2px` |Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| | \--nutui-countdown-color | 倒计时的文字颜色 | `$color-primary` | | |
| | \--nutui-countdown-font-size | 倒计时的字体大小 | `10px` | | |
| | \--nutui-countdown-font-weight | 倒计时的字体粗细 | `400` | | |
| | \--nutui-countdown-width | 倒计时的时间区域宽度 | `20px` | | |
| | \--nutui-countdown-height | 倒计时的时间区域高度 | `14px` | | |
| | \--nutui-countdown-number-padding | 倒计时的时间区域padding | `0 1px` | | |
| | \--nutui-countdown-number-margin | 倒计时的时间区域margin | `0 2px` | | |
| | \countdown-number-border-radius | 倒计时的时间区域圆角大小 | `2px` | | |
| | \--nutui-countdown-color | 倒计时的时间区域的文字颜色 | `$color-primary-light` | | |
| | \--nutui-countdown-background-color | 倒计时的时间区域的背景颜色 | `$color-primary` | | |
| | \--nutui-countdown-border-color | 倒计时的时间区域的边框颜色颜色 | `$color-primary` | | |
| | \--nutui-countdown-primary-color | type为`primary`时,倒计时的时间区域的文字颜色 | `#FFFFFF` | | |
| | \--nutui-countdown-primary-background-color | type为`primary`时,倒计时的时间区域的背景颜色 | `$color-primary` | | |
| | \--nutui-countdown-primary-border-color | type为`primary`时,倒计时的时间区域的边框颜色颜色 | `$color-primary` | | |
| | \--nutui-countdown-color | 倒计时的文字颜色 | `$color-primary` | | |
| | \--nutui-countdown-font-size | 倒计时的字体大小 | `10px` | | |
| | \--nutui-countdown-font-weight | 倒计时的字体粗细 | `400` | | |
| | \--nutui-countdown-width | 倒计时的时间区域宽度 | `20px` | | |
| | \--nutui-countdown-height | 倒计时的时间区域高度 | `14px` | | |
| | \--nutui-countdown-number-padding | 倒计时的时间区域padding | `0 1px` | | |
| | \--nutui-countdown-number-margin | 倒计时的时间区域margin | `0 2px` | | |
| | \--countdown-number-border-radius | 倒计时的时间区域圆角大小 | `2px` | | |
| | \--nutui-countdown-color | 倒计时的时间区域的文字颜色 | `$color-primary-light` | | |
| | \--nutui-countdown-background-color | 倒计时的时间区域的背景颜色 | `$color-primary` | | |
| | \--nutui-countdown-border-color | 倒计时的时间区域的边框颜色颜色 | `$color-primary` | | |
| | \--nutui-countdown-primary-color | type为`primary`时,倒计时的时间区域的文字颜色 | `#FFFFFF` | | |
| | \--nutui-countdown-primary-background-color | type为`primary`时,倒计时的时间区域的背景颜色 | `$color-primary` | | |
| | \--nutui-countdown-primary-border-color | type为`primary`时,倒计时的时间区域的边框颜色颜色 | `$color-primary` | |
Tools
LanguageTool
[locale-violation] ~147-~147: 'light' é un xenismo. É preferíbel dicir "leve" ou "de baixo valor calórico" (GL_BARBARISM_REPLACE)
Context: ...nutui-countdown-color | 倒计时的时间区域的文字颜色 |$color-primary-light| | --nutui-countdown-background-colo...
[locale-violation] ~148-~148: 'background' é un xenismo. É preferíbel dicir "formación de base" (GL_BARBARISM_REPLACE)
Context: ...r-primary-light| | \--nutui-countdown-background-color | 倒计时的时间区域的背景颜色 |$color-primary...
[locale-violation] ~151-~151: 'background' é un xenismo. É preferíbel dicir "formación de base" (GL_BARBARISM_REPLACE)
Context: ...#FFFFFF| | \--nutui-countdown-primary-background-color | type为primary`时,倒计时的时间区域的背景颜色 |...
Markdownlint
152-152: null (MD047, single-trailing-newline)
Files should end with a single newline character
| | \--nutui-countdown-display | 倒计时的布局方式 | `flex` | | ||
| | \--nutui-countdown-color | Countdown text color | `$color-primary` | | ||
| | \--nutui-countdown-font-size | Countdown font size | `10px` | | ||
| | \--nutui-countdown-font-weight | Countdown font weight | `400` | | ||
| | \--nutui-countdown-width | Time area width of the countdown | `20px` | | ||
| | \--nutui-countdown-height | Time area height of the countdown | `14px` | | ||
| | \--nutui-countdown-number-padding | Countdown time area padding | `0 1px` | | ||
| | \--nutui-countdown-number-margin | Countdown time area margin | `0 2px` | | ||
| | \countdown-number-border-radius | Countdown time area border radius | `2px` | | ||
| | \--nutui-countdown-color | Countdown time area text color | `$color-primary-light` | | ||
| | \--nutui-countdown-background-color | Countdown time area background color | `$color-primary` | | ||
| | \--nutui-countdown-border-color | Countdown time area border color color | `$color-primary` | | ||
| | \--nutui-countdown-primary-color | When type is primary, the text color of the countdown time area | `#FFFFFF` | | ||
| | \--nutui-countdown-primary-background-color | When type is primary, the background color of the countdown time area | `$color-primary` | | ||
| | \--nutui-countdown-primary-border-color | When type is primary, the border color of the countdown time area is the color | `$color-primary` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ensure all CSS variable names start with two hyphens (--). On line 144, the CSS variable name is missing this prefix.
- | \countdown-number-border-radius | Countdown time area border radius | `2px` |
+ | \--countdown-number-border-radius | Countdown time area border radius | `2px` |Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| | \--nutui-countdown-display | 倒计时的布局方式 | `flex` | | |
| | \--nutui-countdown-color | Countdown text color | `$color-primary` | | |
| | \--nutui-countdown-font-size | Countdown font size | `10px` | | |
| | \--nutui-countdown-font-weight | Countdown font weight | `400` | | |
| | \--nutui-countdown-width | Time area width of the countdown | `20px` | | |
| | \--nutui-countdown-height | Time area height of the countdown | `14px` | | |
| | \--nutui-countdown-number-padding | Countdown time area padding | `0 1px` | | |
| | \--nutui-countdown-number-margin | Countdown time area margin | `0 2px` | | |
| | \countdown-number-border-radius | Countdown time area border radius | `2px` | | |
| | \--nutui-countdown-color | Countdown time area text color | `$color-primary-light` | | |
| | \--nutui-countdown-background-color | Countdown time area background color | `$color-primary` | | |
| | \--nutui-countdown-border-color | Countdown time area border color color | `$color-primary` | | |
| | \--nutui-countdown-primary-color | When type is primary, the text color of the countdown time area | `#FFFFFF` | | |
| | \--nutui-countdown-primary-background-color | When type is primary, the background color of the countdown time area | `$color-primary` | | |
| | \--nutui-countdown-primary-border-color | When type is primary, the border color of the countdown time area is the color | `$color-primary` | | |
| | \--nutui-countdown-display | 倒计时的布局方式 | `flex` | | |
| | \--nutui-countdown-color | Countdown text color | `$color-primary` | | |
| | \--nutui-countdown-font-size | Countdown font size | `10px` | | |
| | \--nutui-countdown-font-weight | Countdown font weight | `400` | | |
| | \--nutui-countdown-width | Time area width of the countdown | `20px` | | |
| | \--nutui-countdown-height | Time area height of the countdown | `14px` | | |
| | \--nutui-countdown-number-padding | Countdown time area padding | `0 1px` | | |
| | \--nutui-countdown-number-margin | Countdown time area margin | `0 2px` | | |
| | \--countdown-number-border-radius | Countdown time area border radius | `2px` | | |
| | \--nutui-countdown-color | Countdown time area text color | `$color-primary-light` | | |
| | \--nutui-countdown-background-color | Countdown time area background color | `$color-primary` | | |
| | \--nutui-countdown-border-color | Countdown time area border color color | `$color-primary` | | |
| | \--nutui-countdown-primary-color | When type is primary, the text color of the countdown time area | `#FFFFFF` | | |
| | \--nutui-countdown-primary-background-color | When type is primary, the background color of the countdown time area | `$color-primary` | | |
| | \--nutui-countdown-primary-border-color | When type is primary, the border color of the countdown time area is the color | `$color-primary` | |
Tools
LanguageTool
[duplication] ~147-~147: Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Context: ...rder-color | Countdown time area border color color |$color-primary| | --nutui-countdo...
Markdownlint
150-150: null (MD047, single-trailing-newline)
Files should end with a single newline character


🤔 这个变动的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
☑️ 请求合并前的自查清单
Summary by CodeRabbit
新功能
CountDown组件添加了新的type属性,支持default和primary类型。CountDown组件中添加了CountDownType枚举和相关逻辑。样式
CountDown组件的颜色、字体大小、对齐和布局属性。文档
type属性说明和相关样式变量的描述。