const editProject = (project: Project.FProject) => { emit(‘editProject’, project.id) }…
- User
const editProject = (project: Project.FProject) => { emit(‘editProject’, project.id) }
<tanstack-table :defaultTableInfo=“defaultProjectsTableInfo” :tableData=“formatedProjects” @editProject=“editProject” /> нужно передать событие editProject с id на 2 компонента выше
- Assistant
To pass the
editProjectevent with the to two components above in the component hierarchy, you'll need to follow a pattern of emitting the event up through the component chain until it reaches the desired parent component. Here's a step-by-step approach you can use: