Skip to content

Date Range Picker ​

Vue 已实现 · 还原验收 0/1 · 上游演示 · 固定版本源码

预览 ​

用法 ​

vue
<script setup lang="ts">
import { DateRangePicker, type DateRange } from 'beui-vue'
import { ref } from 'vue'
const range = ref<DateRange | null>({ from: '2026-10-12', to: '2026-10-18' })
</script>
<template><DateRangePicker v-model="range" label="Reporting period" default-month="2026-10-18" max="2026-10-31" /></template>

API ​

v-model 的值为 { from, to? } 或 null,日期格式为 YYYY-MM-DD。支持 inline、v-model:open、presets、min、max、locale 和 isDateDisabled。

还原验收 ​

基于 beUI 的独立 Vue 移植,依 MIT 许可证分发。