TDateTime / 日期时间选择器
DateTime picker for selecting both date and time in a single component. Supports min/max range, clearable, minute step, and seconds toggle. / 日期时间选择器在同一组件中选择日期和时间,支持范围限制、可清除、分钟步长和秒数开关。
Props / 属性
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | '选择日期时间' | Placeholder |
disabled | boolean | false | Disabled |
clearable | boolean | false | Clearable |
enableTime | boolean | true | Enable time selection |
min / max | string | — | Range |
minuteStep | number | 1 | Minute step |
showSeconds | boolean | false | Show 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>