This commit is contained in:
梁灏 2017-07-18 11:16:34 +08:00
parent f03c4e6409
commit afea484fe3
2 changed files with 11 additions and 2 deletions

View file

@ -1,5 +1,11 @@
<template>
<Table width="550" border highlight-row @on-selection-change="change2" @on-current-change="change1" :columns="columns2" :data="data3"></Table>
<Table
width="550"
border
highlight-row
:columns="columns2"
@on-selection-change="change2"
:data="data3"></Table>
</template>
<script>
export default {

View file

@ -2,7 +2,7 @@
<div :class="classes" ref="cell">
<template v-if="renderType === 'index'">{{naturalIndex + 1}}</template>
<template v-if="renderType === 'selection'">
<Checkbox :value="checked" @on-change="toggleSelect" :disabled="disabled"></Checkbox>
<Checkbox :value="checked" @click.native.stop="handleClick" @on-change="toggleSelect" :disabled="disabled"></Checkbox>
</template>
<template v-if="renderType === 'normal'"><span v-html="row[column.key]"></span></template>
<template v-if="renderType === 'expand' && !row._disableExpand">
@ -73,6 +73,9 @@
},
toggleExpand () {
this.$parent.$parent.$parent.toggleExpand(this.index);
},
handleClick () {
// Checkbox
}
},
created () {