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