Skip to content
目录

Date Picker Panel

A single-date picker panel with month navigation and a calendar table.

Basic

2026 年 1 月
html
<template>
  <dk-date-picker-panel v-model="value" />
</template>

<script setup>
import { ref } from 'vue'

const value = ref('2026-01-29')
</script>
展开

First day of week

2026 年 1 月
html
<template>
  <dk-date-picker-panel v-model="value" :first-day-of-week="1" />
</template>
展开

Disabled

2026 年 1 月
html
<template>
  <dk-date-picker-panel v-model="value" disabled />
</template>
展开

Props

NameDescriptionTypeDefault
model-value / v-modelbinding value (YYYY-MM-DD)string''
disableddisabled statebooleanfalse
widthpanel widthstring'320px'
first-day-of-weekfirst day of week (0-6)number0

Events

NameDescriptionParams
update:modelValuev-model update(value: string)
changeemitted after pick(value: string)

Contributors

Mr.Fan