add hover-highlight prop in Table

This commit is contained in:
Lawrence Lee 2017-06-07 14:19:31 +08:00
parent af43876007
commit 2474ee5929
6 changed files with 7596 additions and 9 deletions

View file

@ -1,5 +1,7 @@
<template>
<Table border :columns="columns7" :data="data6" @on-expand="expand"></Table>
<div>
<Table border :columns="columns7" :data="data6" :hover-highlight="false"></Table>
</div>
</template>
<script>
import etable from '../components/table.vue';
@ -8,17 +10,18 @@
data () {
return {
columns7: [
{
type: 'expand',
width: 50,
render: (h, params) => {
// return h(etable);
return h('div', params.row.name)
}
},
// {
// type: 'expand',
// width: 50,
// render: (h, params) => {
// // return h(etable);
// return h('div', params.row.name)
// }
// },
{
title: '姓名',
key: 'name',
fixed: 'left',
render: (h, params) => {
return h('div', [
h('Icon', {