Skip to content

CalendarDatePicker-DEMO


vue
<fv-CalendarDatePicker v-model="value" style="z-index: 5"></fv-CalendarDatePicker>

CalendarDatePicker-Multiple


vue
<fv-CalendarDatePicker v-model="value" multiple="range" style="z-index: 3"></fv-CalendarDatePicker>

CalendarDatePicker-Disabled


vue
<fv-CalendarDatePicker v-model="value" multiple="range" disabled style="z-index: 2"></fv-CalendarDatePicker>

CalendarDatePicker-Dark Theme


vue
<fv-CalendarDatePicker v-model="value" theme="dark" style="z-index: 2"></fv-CalendarDatePicker>

Propoties


属性(attr)类型(type)必填(required)默认值(default)说明(statement)
value/v-model[date]NoCurrentDate
startNumberNo1900最小年份, 尽量不要设置过小防止性能消耗
endNumberNo3000最大年份, 尽量不要设置过大防止性能消耗
borderWidthNumberNo2CalendarDatePicker border width
borderRadiusNumberNo3CalendarDatePicker border radius
placeholderStringNoPick a dayCalendarDatePicker placeholder
inputForeground[string(color)]NoN/A输入框文字前景色
inputBackground[string(color)]NoN/A输入框背景色
dropDownIconStringNoCalendarDayIcon with Fabric-Icon
disabledBooleanNofalse
multiple['single', 'multiple', 'range']Nosingle多选模式, 有单选、多选和范围日期选择
lan['en', 'zh']NoenCalendarDatePicker language.
themeStringNosystem主题样式, 包含light, dark, system, custom几种样式

Events


事件名(Name)参数类型(args)说明(statement)
choosen-datesarray返回[{year, month, no}]类型的数组

MIT Licensed