单选的反选
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="baseTable">
 | 
			
		||||
    <el-table
 | 
			
		||||
      :ref="id"
 | 
			
		||||
      :data="renderData"
 | 
			
		||||
      v-bind="$attrs"
 | 
			
		||||
      @current-change="currentChange"
 | 
			
		||||
@@ -128,6 +129,11 @@ export default {
 | 
			
		||||
        return []
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    id: {
 | 
			
		||||
      type: String,
 | 
			
		||||
      required: false,
 | 
			
		||||
      default: ''
 | 
			
		||||
    },
 | 
			
		||||
    page: {
 | 
			
		||||
      type: Number,
 | 
			
		||||
      required: false,
 | 
			
		||||
@@ -189,6 +195,11 @@ export default {
 | 
			
		||||
    },
 | 
			
		||||
    emitButtonClick() {
 | 
			
		||||
      this.$emit('emitButtonClick')
 | 
			
		||||
    },
 | 
			
		||||
    setCurrent(name, index) {
 | 
			
		||||
      let _this = this
 | 
			
		||||
      let obj = _this.$refs[name].data[index]
 | 
			
		||||
      _this.$refs[name].setCurrentRow(obj)
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user