@@ -796,14 +796,28 @@ export const BCalendar = Vue.extend({
796
796
)
797
797
798
798
// 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 })
807
821
808
822
// Utility to create the date navigation buttons
809
823
const makeNavBtn = (content, label, handler, btnDisabled, shortcut) => {
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4