diff --git a/lib/components/nav-item-dropdown.vue b/lib/components/nav-item-dropdown.vue index 4a401bec757..2d4a32eba5b 100644 --- a/lib/components/nav-item-dropdown.vue +++ b/lib/components/nav-item-dropdown.vue @@ -2,12 +2,14 @@
  • diff --git a/lib/directives/index.js b/lib/directives/index.js index ba356ad9833..4ddff49b51c 100755 --- a/lib/directives/index.js +++ b/lib/directives/index.js @@ -1,7 +1,9 @@ import bToggle from './toggle'; import bModal from './modal'; +import bScrollspy from './scrollspy'; export { bToggle, - bModal + bModal, + bScrollspy }; diff --git a/lib/directives/scrollspy.js b/lib/directives/scrollspy.js new file mode 100644 index 00000000000..84c6161ce56 --- /dev/null +++ b/lib/directives/scrollspy.js @@ -0,0 +1,607 @@ +/* + * Directive v-b-scrollspy + * + * Usage: + * Assume body is the scroll element, and use default offset of 10 pixels + *