Skip to content

calendarcomponent Calendar

Basic Usage

A simple calendar component for decorating pages

2026年 5月
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
<template>
  <b-calendar></b-calendar>
</template>

miniShow

A simple calendar component for decorating pages

2026年 5月
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
2026年 5月
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
<template>
  <div flex>
    <div style="width: 300px">
      <b-calendar mini></b-calendar>
    </div>
    <div style="width: 300px">
      <b-calendar
        mini
        :body-style="{ border: 'none' }"
        :day-style="{ border: 'none', borderRadius: '4px' }"
      ></b-calendar>
    </div>
  </div>
</template>

Props

ParameterDescriptionTypeOptionsDefault
grid-heightDate cell height, default 80 if not setString80px
text-alignDate text alignmentStringleft center rightleft
miniMini modeBoolean
body-styleDate table body styleObject
day-stylePer-day styleObject

Events

Event NameDescriptionReturn Value
prevPrevious month button event
nextNext month button event
todayToday button event
selectedEvent when a day is selectedday