简体   繁体   English

如何在单击表格行时将数据传递给其他组件?

[英]How to pass data through a table row on clicking it to other component?

Im creating a email inbox component for a system, and the list of emails are disposed as a table, so on click it calls to other component.我为系统创建了一个电子邮件收件箱组件,并且电子邮件列表作为表格处理,因此单击它会调用其他组件。 I need to show the infos of the email of the selected row on other component, since it dont render on each other, im just calling using router-link.我需要在其他组件上显示所选行的电子邮件信息,因为它不会相互呈现,我只是使用路由器链接调用。 How is the basic idea to do this?这样做的基本思想是什么? I dont need the final answer, just what i need to do or use to make this kind of task.我不需要最终的答案,只需要我需要做什么或使用什么来完成这种任务。

User props for communication between the child component and the parent.用于子组件和父组件之间通信的用户道具 Use [events] 2 to send data from child to parent.使用 [events] 2将数据从子级发送到父级。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过Vue将数据从表组件传递到另一个表组件,并使用编辑按钮传递表中的每一行 - how pass data from a table component in vue to another table component passing each row in the table with an edit button 如何从表格行传递数据并在呈现时将其传递给另一个组件? - How to pass data from a table row and pass it to another component when it renders? 如何仅使用jQuery将行传递到其他表? - How pass row to other table with only jquery? 如何将数据从一个组件传递到另一个 - How to pass data from One component to other 如何访问插槽 object 属性以传递给 Vuetify 中给定数据表行的组件? - How to access slot object property to pass into component for a given data table row in Vuetify? 如何通过Ajax调用将动态ceated表行列的数据值从JSP传递到Spring控制器 - How to Pass dynamic ceated table row column Data values from JSP to Spring controller through ajax call 如何捕获输入表行组件的数据 - How to capture data entered into table row component 如何迭代数据并将它们传递到 reactjs 中的组件 - how to Iterate through data and pass them into a component in reactjs 如何通过模块将数据从 vuex store 传递到 vue 组件? - How to pass data from vuex store through module to vue component? Vue JS 3:如何将数据从一个组件传递到另一个组件? - Vue JS 3: How to pass data from one component to another other?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM