@@ -796,14 +796,28 @@ export const BCalendar = Vue.extend({
796796 )
797797
798798 // Content for the date navigation buttons
799- // TODO: add slots for the nav button content
800- const $prevDecadeIcon = h ( BIconChevronBarLeft , { props : { shiftV : 0.5 , flipH : isRTL } } )
801- const $prevYearIcon = h ( BIconChevronDoubleLeft , { props : { shiftV : 0.5 , flipH : isRTL } } )
802- const $prevMonthIcon = h ( BIconChevronLeft , { props : { shiftV : 0.5 , flipH : isRTL } } )
803- const $thisMonthIcon = h ( BIconCircleFill , { props : { shiftV : 0.5 } } )
804- const $nextMonthIcon = h ( BIconChevronLeft , { props : { shiftV : 0.5 , flipH : ! isRTL } } )
805- const $nextYearIcon = h ( BIconChevronDoubleLeft , { props : { shiftV : 0.5 , flipH : ! isRTL } } )
806- const $nextDecadeIcon = h ( BIconChevronBarLeft , { props : { shiftV : 0.5 , flipH : ! isRTL } } )
799+ const navScope = { isRTL }
800+ const navProps = { shiftV : 0.5 }
801+ const navPrevProps = { ...navProps , flipH : isRTL }
802+ const navNextProps = { ...navProps , flipH : ! isRTL }
803+ const $prevDecadeIcon =
804+ this . normalizeSlot ( 'nav-prev-decade' , navScope ) ||
805+ h ( BIconChevronBarLeft , { props : navPrevProps } )
806+ const $prevYearIcon =
807+ this . normalizeSlot ( 'nav-prev-year' , navScope ) ||
808+ h ( BIconChevronDoubleLeft , { props : navPrevProps } )
809+ const $prevMonthIcon =
810+ this . normalizeSlot ( 'nav-prev-month' , navScope ) || h ( BIconChevronLeft , { props : navPrevProps } )
811+ const $thisMonthIcon =
812+ this . normalizeSlot ( 'nav-this-month' , navScope ) || h ( BIconCircleFill , { props : navProps } )
813+ const $nextMonthIcon =
814+ this . normalizeSlot ( 'nav-next-month' , navScope ) || h ( BIconChevronLeft , { props : navNextProps } )
815+ const $nextYearIcon =
816+ this . normalizeSlot ( 'nav-next-year' , navScope ) ||
817+ h ( BIconChevronDoubleLeft , { props : navNextProps } )
818+ const $nextDecadeIcon =
819+ this . normalizeSlot ( 'nav-next-decade' , navScope ) ||
820+ h ( BIconChevronBarLeft , { props : navNextProps } )
807821
808822 // Utility to create the date navigation buttons
809823 const makeNavBtn = ( content , label , handler , btnDisabled , shortcut ) => {
0 commit comments