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 на компонент еще выше
- Assistant
To propagate the
editProjectevent to a higher-level component, you need to emit the event from your current component up to the parent component. Here's a step-by-step guide to achieving this: