iview table expand the current line, click Control

 
  
  <Table :columns="thList" :data="list" @on-row-click="toggleTableExpand" ref="tableExpand"></Table>
 
 // There toggleExpand source method can be used directly
  methods:{
    toggleTableExpand(row, index) {
      this.$refs.tableExpand.toggleExpand(index);
    },
 }

 

 

Guess you like

Origin www.cnblogs.com/Doduo/p/10936404.html