Problems encountered in using el-table in ElementUI components in vue

1. When you click on a row in the table, get the data of the current row, the row-click event that comes with the official document, the parameter has row
Insert picture description here
2. When @row-click="rowPosition()", the data in the row cannot be obtained

Insert picture description here
3. Cannot put parentheses after the function

   <el-table :data="advertiseList" :show-row-hover="false" @row-click="roWPosition">
            <el-table-column prop="title" label="职位名称"></el-table-column>
            <el-table-column prop="address" label="工作地点"></el-table-column>
            <el-table-column prop="num" label="招聘人数"></el-table-column>
            <el-table-column prop="updateTime" label="更新时间"></el-table-column>
            <el-table-column prop="email" label="简历投送"></el-table-column>
          </el-table>

4.Insert picture description here

Guess you like

Origin blog.csdn.net/qq_45894929/article/details/109490919