Commit e4e8711d0f0d35120c8b04f45bb6c2586110561d

Authored by Aresn
1 parent f023b8a0

Table support disableExpand

examples/routers/table.vue
... ... @@ -84,7 +84,8 @@
84 84 {
85 85 name: '张小刚',
86 86 age: 25,
87   - address: '北京市海淀区西二旗'
  87 + address: '北京市海淀区西二旗',
  88 + _disableExpand: true
88 89 },
89 90 {
90 91 name: '李小红',
... ...
src/components/table/cell.vue
... ... @@ -5,7 +5,7 @@
5 5 <Checkbox :value="checked" @on-change="toggleSelect" :disabled="disabled"></Checkbox>
6 6 </template>
7 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 9 <div :class="expandCls" @click="toggleExpand">
10 10 <Icon type="ios-arrow-right"></Icon>
11 11 </div>
... ...