TDate / 日期选择器
Date picker for selecting a single date with a popup calendar. Supports min/max, disabled dates, clearable, and week select mode. / 日期选择器通过弹出日历选择单个日期,支持最大/最小日期、禁用日期、可清除和周选择模式。
Props / 属性
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | '选择日期' | Placeholder |
disabled | boolean | false | Disabled |
clearable | boolean | false | Show clear button |
min / max | string | — | Date range (YYYY-MM-DD) |
weekSelect | boolean | false | Week select mode |
Basic Usage / 基础用法
vue
<script setup lang="ts">
import { TDate } from '@gulcc/tabler-vue'
const date = ref('2026-06-25')
</script>
<template>
<TDate v-model="date" />
</template>