Skip to content

Commit 17c82ba

Browse files
fix(date-picker): 修复面板页脚显示条件逻辑 (#6055)
* feat(date-picker): 修复面板页脚显示条件逻辑 closed #6054 * chore: stash changelog [ci skip] --------- Co-authored-by: tdesign-bot <tdesign@tencent.com>
1 parent 4a515fd commit 17c82ba

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/components/date-picker/components/panel/ExtraContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default defineComponent({
1616
},
1717
setup(props) {
1818
// 默认为 true
19-
const showPanelFooter = computed(() => props.needConfirm || props.presets);
19+
const showPanelFooter = computed(() => (props.enableTimePicker && props.needConfirm) || props.presets);
2020

2121
return () =>
2222
showPanelFooter.value ? (
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
pr_number: 6055
3+
contributor: huguangju
4+
---
5+
6+
- fix(DatePicker): 修复面板底部内容区域在非需要情况下仍存在的问题 @huguangju ([#6055](https://github.com/Tencent/tdesign-vue-next/pull/6055))

0 commit comments

Comments
 (0)