Skip to content
目录

Date Picker Panel 日期选择器面板

用于在面板中选择日期(单选),包含月份切换与日期表格。

基础用法

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>
展开

禁用

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

属性

属性名说明类型默认值
model-value / v-model绑定值(YYYY-MM-DD)string''
disabled是否禁用booleanfalse
width面板宽度string'320px'
first-day-of-week一周起始日(0-6)number0

事件

事件名说明回调参数
update:modelValuev-model 更新(value: string)
change选择日期后触发(value: string)

Contributors

Mr.Fan