skip to Main Content

Javascript – How to send variable from Parent to Child component when I use "click" at Vue.js?

I have two components, TimeLine.vue(Parent) and SuspendedMemo.vue(Child) TimeLine.vue(Parent) computed: { optionsData () { groupTemplate: (item, element, data) => { if (!item) return var container = document.createElement('div') if (item.isDisable !== true) container.setAttribute('class', 'enable') var i = document.createElement('i') // click i.addEventListener('click', ()…

VIEW QUESTION
Back To Top
Search