Skip to content
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

feat: 添加无法自定义显示天,时,分,秒 #1716

Merged
merged 3 commits into from
Dec 10, 2023
Merged

feat: 添加无法自定义显示天,时,分,秒 #1716

merged 3 commits into from
Dec 10, 2023

Conversation

P4X666
Copy link
Contributor

@P4X666 P4X666 commented Dec 2, 2023

目前版本只支持自定义显示天、时,没有支持自定义显示分、秒,
而只显示秒在业务场景中十分常见,故添加此修复

@P4X666 P4X666 changed the title fix: 修复无法自定义显示天,时,分,秒 feat: 添加无法自定义显示天,时,分,秒 Dec 3, 2023
@@ -107,8 +109,7 @@ export default class CountdownPage extends Taro.Component {
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| ---------- | ------- | ------- | ----| -------- |
| isCard | 是否显示卡片式样式 | Boolean | - | false |
| isShowDay | 是否显示天数 | Boolean | - | false |
| isShowHour | 是否显示小时 | Boolean | - | true |
| showFieldNames | 自定义显示天,时,分,秒 | Object | - | `isShowDay:false,isShowHour:true,isShowMinute:true,isShowSecond:true` |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处变动可能引起版本兼容性问题,建议增加 isShowMinute 即可

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在已经按照建议改为只添加isShowMinute了

@robinv8 robinv8 merged commit 539a6f7 into NervJS:next Dec 10, 2023
1 check passed
robinv8 pushed a commit that referenced this pull request Dec 11, 2023
* fix: 修复无法自定义显示天,时,分,秒

* fix: 修复calculateTime

* fix: 只添加isShowMinute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants