Skip to content

Commit

Permalink
fix: 时间组件一个bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Feb 15, 2024
1 parent 079dc6f commit c9562fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
:placeholder="props.component.formType === 'range' ? ['请选择开始时间', '请选择结束时间'] : `请选择${props.component.title}`"
:time-picker-props="props.component.formType == 'range' ? { defaultValue: ['00:00:00', '23:59:59'] } : {}"
:show-time="props.component.showTime"
:type="props.component.range ? props.component.formType === 'time' ? 'time-range' : 'range' : ''"
:format="props.component.format || ''"
:mode="props.component.mode"
allow-clear
Expand Down
2 changes: 1 addition & 1 deletion src/components/ma-form/formItem/form-picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
:show-time="props.component.showTime"
:preview-shortcut="props.component.previewShortcut"
:show-confirm-btn="props.component.showConfirmBtn"
:type="props.component.range ? 'time-range' : ''"
:type="props.component.range ? props.component.formType === 'time' ? 'time-range' : 'range' : ''"
:time-picker-props="props.component.formType == 'range' ? { defaultValue: ['00:00:00', '23:59:59'] } : {}"
:separator="props.component.separator"
:mode="props.component.mode"
Expand Down

0 comments on commit c9562fc

Please sign in to comment.