Skip to content

Commit 4f9b87b

Browse files
author
黄书伟
committed
fixed bug
1 parent 2be1a2e commit 4f9b87b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

packages/v-table/src/body-cell-merge-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default {
9797

9898
let setting = this.cellMerge && this.cellMerge(rowIndex,rowData,field);
9999

100-
if (setting && ((setting.colSpan && setting.colSpan > 1) || (setting.rowSpan && setting.rowSpan > 1))) {
100+
if (setting && ((setting.colSpan && setting.colSpan > 0) || (setting.rowSpan && setting.rowSpan > 0))) {
101101

102102
return true;
103103
}

packages/v-table/src/table.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,15 @@
186186
<div :class="['v-table-title-cell',showVerticalBorder?'vertical-border':'',showHorizontalBorder?'horizontal-border':'']"
187187
:style="{'width':titleColumnWidth(col.fields)+'px','height':titleColumnHeight(col.rowspan)+'px','text-align':col.titleAlign}">
188188
<span class="table-title">
189-
<span v-if="col.type === 'selection'"></span>
189+
<span v-if="isSelectionCol(col.fields)">
190+
<v-checkbox
191+
@change="handleCheckAll"
192+
:indeterminate="indeterminate"
193+
v-model="isAllChecked"
194+
:show-slot="false"
195+
label="check-all"
196+
></v-checkbox>
197+
</span>
190198
<span v-else v-html="col.title"></span>
191199
<span @click.stop="sortControl(col.fields[0])"
192200
class="v-table-sort-icon" v-if="enableSort(col.orderBy)">

0 commit comments

Comments
 (0)