Skip to content

Props与事件

Props

Prop类型默认值描述
modelValuestring''选中值(ISO格式)
type'date' | 'datetime-local' | 'time''date'选择器模式
displayFormatstring--显示格式
langstring'tr'语言代码
minstring--最小日期
maxstring--最大日期
rangebooleanfalse启用范围选择
hourFormat'24' | '12''24'时间格式

CSS变量

css
:root {
  --bt-primary: #8b5cf6;
  --bt-text: #f8fafc;
  --bt-bg: #1e1e2e;
}
[data-theme="light"] {
  --bt-text: #1e293b;
  --bt-bg: #ffffff;
}

Released under the MIT License.