SOURCE

console 命令行工具 X clear

                    
>
console
var Main = {
  data() {
    return {
      isNameDisabled: false,
      tableData: []
    }
  },
  created () {
    var list = []
    for(var index = 0; index <5; index++){
      list.push({
        id: index + 10000,
        name: 'test' + index,
        role: 'developer',
        sex: '1',
        date: '2019-05-01',
        time: 1556677810888 + index * 500,
        region: 'ShenZhen',
        address: 'address abc' + index
      })
    }
    this.tableData = list
  },
  methods: {
    editActivedEvent({ row }){
      let isDisabled = false
      if (row.name === 'test2') {
        isDisabled = true
      }
      this.isNameDisabled = isDisabled
    }
  }
};
var Ctor = Vue.extend(Main);
new Ctor().$mount('#app')
<script src="//unpkg.com/vue"></script>
<script src="//unpkg.com/xe-utils"></script>
<script src="//unpkg.com/vxe-table/lib/index.js"></script>
<script src="//unpkg.com/element-ui">
</script>
<script src="//unpkg.com/vxe-table-plugin-element">
</script>
<div id="app">
  <template>
    <div>
      <vxe-table border height="500" :data.sync="tableData" :edit-config="{trigger: 'click', mode: 'row'}" @edit-actived="editActivedEvent">
        <vxe-table-column type="selection" width="60">
        </vxe-table-column>
        <vxe-table-column field="name" title="Name" :edit-render="{name: 'ElInput', props:{disabled: isNameDisabled} }">
        </vxe-table-column>
        <vxe-table-column field="sex" title="Sex" :edit-render="{name: 'ElSelect', options: [{label: '男',value: '1'},{label: '女',value:'2'}],props:{ multiple: true, clearable: true} }">
        </vxe-table-column>
        <vxe-table-column field="address" title="Address" :edit-render="{name: 'ElInput'}">
        </vxe-table-column>
      </vxe-table>
    </div>
  </template>
</div>
@import url("//unpkg.com/vxe-table/lib/index.css");
@import url("//unpkg.com/element-ui/lib/theme-chalk/index.css");