Commit e4e8711d0f0d35120c8b04f45bb6c2586110561d
1 parent
f023b8a0
Table support disableExpand
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
examples/routers/table.vue
src/components/table/cell.vue
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | <Checkbox :value="checked" @on-change="toggleSelect" :disabled="disabled"></Checkbox> | 5 | <Checkbox :value="checked" @on-change="toggleSelect" :disabled="disabled"></Checkbox> |
6 | </template> | 6 | </template> |
7 | <template v-if="renderType === 'normal'"><span v-html="row[column.key]"></span></template> | 7 | <template v-if="renderType === 'normal'"><span v-html="row[column.key]"></span></template> |
8 | - <template v-if="renderType === 'expand'"> | 8 | + <template v-if="renderType === 'expand' && !row._disableExpand"> |
9 | <div :class="expandCls" @click="toggleExpand"> | 9 | <div :class="expandCls" @click="toggleExpand"> |
10 | <Icon type="ios-arrow-right"></Icon> | 10 | <Icon type="ios-arrow-right"></Icon> |
11 | </div> | 11 | </div> |