fixed #1271
This commit is contained in:
parent
f03c4e6409
commit
afea484fe3
2 changed files with 11 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue