Guest User

Untitled

a guest
Sep 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Vue.component('accordion-item', {
  2. data () {
  3. return {
  4. sharedState: {
  5. expanded: false
  6. }
  7. }
  8. },
  9.  
  10. provide () {
  11. return {
  12. accordionItemState: this.sharedState
  13. }
  14. },
  15.  
  16. render (createElement) {
  17. return createElement(
  18. 'div',
  19. { class: 'accordion-item' },
  20. this.$slots.default
  21. )
  22. }
  23. })
Add Comment
Please, Sign In to add comment