把操作列表变成下拉框要加点击事件是什么

 element-ui中的:
 
                <el-table-column label="操作" width="200px">
                  <template slot-scope="scope">
                    <el-select placeholder="选择">
                      <el-option
                        label="编辑"
                        value="shanghai"
                        @click.native="handleEdit(scope.row)"
                      ></el-option>
                      <el-option
                        label="删除"
                        value="shanghai"
                        @click.native="
                          handleDelete(scope.row.gridTeamGridPersonnelId)
                        "
                      ></el-option>
                    </el-select>
                  </template>
                </el-table-column>
加上点击事件 @click.native=“”就可以了
posted @ 2023-07-28 21:12  想睡觉的小坤  阅读(33)  评论(0)    收藏  举报