Skip to content

Commit

Permalink
fix(DatePicker): 修复时间戳模式下props类型检测报错问题 (Tencent#2328)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericleungs authored and methodchen committed Aug 25, 2023
1 parent 39d0309 commit f2cf724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/date-picker/panel/ExtraContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default defineComponent({
presetsPlacement: String as PropType<TdDatePickerProps['presetsPlacement']>,
onPresetClick: Function,
onConfirmClick: Function,
selectedValue: String as PropType<DateValue>,
// 支持时间戳模式:时间戳为Number类型
selectedValue: [String, Number] as PropType<DateValue>,
},
setup(props) {
const showPanelFooter = computed(() => props.enableTimePicker || props.presets);
Expand Down

0 comments on commit f2cf724

Please sign in to comment.