1.编辑表格
vue+vue-cli3.0+element 记录

<el-table-column prop="sort" label="排序" align="center">
  <template slot-scope="scope">
    <span v-show="NoEdit != scope.row.relationshipId">{{scope.row.sort}}<i class="el-icon-edit ml10 cursor" @click="NoEdit=scope.row.relationshipId"></i></span>
    <span v-show="NoEdit == scope.row.relationshipId">
      <el-input-number size='mini' :min='1' v-model="sort"></el-input-number>
      <i class="cursor ml10 colorblue" @click="savaSort(scope.row)">保存</i>
      <i class="cursor ml10 colorblue" @click="NoEdit=''">取消</i>
    </span>
  </template>
</el-table-column>

相关文章:

  • 2021-07-15
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-05-19
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2021-11-14
  • 2021-05-19
  • 2021-05-23
  • 2021-08-10
  • 2022-12-23
相关资源
相似解决方案