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(calendar): 日历底部增加插槽 #2550

Merged
merged 2 commits into from
Sep 11, 2023
Merged

feat(calendar): 日历底部增加插槽 #2550

merged 2 commits into from
Sep 11, 2023

Conversation

Arch94
Copy link
Contributor

@Arch94 Arch94 commented Sep 7, 2023

这个 PR 做了什么? (简要描述所做更改)
feat(calendar): 日历底部增加插槽

  1. 这样可以支持自定义底部区域按钮,而非简单的文字替换
  2. 更多样化的确认操作,用户选择日期后可以查接口等等再选择关闭弹窗
  3. 用最小的代码量扩展更多的自由度,而且一点不影响其他功能

这个 PR 是什么类型? (至少选择一个)

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 代码重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他改动(是关于什么的改动?)

这个 PR 涉及以下平台:

  • NutUI 4.0 H5
  • NutUI 4.0 小程序
  • NutUI 3.0 H5
  • NutUI 3.0 小程序

这个 PR 是否已自测:

SHpoi and others added 2 commits September 7, 2023 16:35
1. 这样可以支持自定义底部区域按钮,而非简单的文字替换
2. 更多样化的确认操作,用户选择日期后可以查接口等等再选择关闭弹窗
3. 用最小的代码量扩展更多的自由度,而且一点不影响其他功能
@Arch94 Arch94 changed the title Yourbranch feat(calendar): 日历底部增加插槽 Sep 7, 2023
@eiinu eiinu linked an issue Sep 8, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% 🎉

Comparison is base (5641074) 84.82% compared to head (d12a076) 84.83%.
Report is 3 commits behind head on v4.

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              
Files Changed Coverage Δ
src/packages/__VUE/calendar/index.vue 97.52% <100.00%> (+0.07%) ⬆️
src/packages/__VUE/calendaritem/index.vue 67.25% <100.00%> (+0.19%) ⬆️

☔ 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
Copy link
Member

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 两个文件

Copy link
Contributor Author

Choose a reason for hiding this comment

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

下方是不需要加的,因为这种底部插槽的展示形式需要配合弹窗pop使用,平铺展示一般来说没这种需求

@eiinu eiinu merged commit 10eeae2 into jdf2e:v4 Sep 11, 2023
5 checks passed
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.

[FR]: calendar组件的底部按钮可以提供插槽吗
3 participants