-
Notifications
You must be signed in to change notification settings - Fork 835
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(calendar): 日历底部增加插槽 #2550
feat(calendar): 日历底部增加插槽 #2550
Conversation
1. 这样可以支持自定义底部区域按钮,而非简单的文字替换 2. 更多样化的确认操作,用户选择日期后可以查接口等等再选择关闭弹窗 3. 用最小的代码量扩展更多的自由度,而且一点不影响其他功能
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## v4 #2550 +/- ##
==========================================
+ Coverage 84.82% 84.83% +0.01%
==========================================
Files 150 150
Lines 20508 20517 +9
Branches 2280 2284 +4
==========================================
+ Hits 17396 17406 +10
+ Misses 3107 3106 -1
Partials 5 5
☔ View full report in Codecov by Sentry. 📢 Have feedback on the report? Share it here. |
@@ -46,6 +46,9 @@ | |||
<template v-if="bottomInfo" #bottom-info="date"> | |||
<slot name="bottom-info" :date="date.date"> </slot> | |||
</template> | |||
<template v-if="footerInfo" #footer-info="date"> | |||
<slot name="footer-info" :date="date.date"> </slot> | |||
</template> | |||
</nut-calendar-item> | |||
</nut-popup> | |||
<nut-calendar-item |
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.
下面有另一种方式使用的 calendar-item,也需要增加同样的逻辑
涉及 index.vue/index.taro.vue 两个文件
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.
下方是不需要加的,因为这种底部插槽的展示形式需要配合弹窗pop使用,平铺展示一般来说没这种需求
这个 PR 做了什么? (简要描述所做更改)
feat(calendar): 日历底部增加插槽
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
这个 PR 是否已自测: