Skip to content

TDateTime / 日期时间选择器

DateTime picker for selecting both date and time in a single component. Supports min/max range, clearable, minute step, and seconds toggle. / 日期时间选择器在同一组件中选择日期和时间,支持范围限制、可清除、分钟步长和秒数开关。

Props / 属性

PropTypeDefaultDescription
placeholderstring'选择日期时间'Placeholder
disabledbooleanfalseDisabled
clearablebooleanfalseClearable
enableTimebooleantrueEnable time selection
min / maxstringRange
minuteStepnumber1Minute step
showSecondsbooleanfalseShow seconds

Basic Usage / 基础用法

vue
<script setup lang="ts">
import { TDateTime } from '@gulcc/tabler-vue'
const dt = ref('2026-06-25 14:30')
</script>
<template>
  <TDateTime v-model="dt" />
</template>