Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vue.component('accordion-item', {
- data () {
- return {
- sharedState: {
- expanded: false
- }
- }
- },
- provide () {
- return {
- accordionItemState: this.sharedState
- }
- },
- render (createElement) {
- return createElement(
- 'div',
- { class: 'accordion-item' },
- this.$slots.default
- )
- }
- })
Add Comment
Please, Sign In to add comment