fix #4258, Table, Cell
This commit is contained in:
Aresn 2018-11-01 11:18:20 +08:00 committed by GitHub
commit f4151cfcc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -18,23 +18,23 @@
<Icon type="ios-arrow-forward"></Icon>
</div>
</template>
<Cell
<table-expand
v-if="renderType === 'render'"
:row="row"
:column="column"
:index="index"
:render="column.render"></Cell>
:render="column.render"></table-expand>
</div>
</template>
<script>
import Cell from './expand';
import TableExpand from './expand';
import Icon from '../icon/icon.vue';
import Checkbox from '../checkbox/checkbox.vue';
import Tooltip from '../tooltip/tooltip.vue';
export default {
name: 'TableCell',
components: { Icon, Checkbox, Cell, Tooltip },
components: { Icon, Checkbox, TableExpand, Tooltip },
props: {
prefixCls: String,
row: Object,

View file

@ -14,7 +14,7 @@
@click.native="clickCurrentRow(row._index)"
@dblclick.native.stop="dblclickCurrentRow(row._index)">
<td v-for="column in columns" :class="alignCls(column, row)">
<Cell
<table-cell
:fixed="fixed"
:prefix-cls="prefixCls"
:row="row"
@ -25,7 +25,7 @@
:checked="rowChecked(row._index)"
:disabled="rowDisabled(row._index)"
:expanded="rowExpanded(row._index)"
></Cell>
></table-cell>
</td>
</table-tr>
<tr v-if="rowExpanded(row._index)" :class="{[prefixCls + '-expanded-hidden']: fixed}">
@ -40,14 +40,14 @@
<script>
// todo :key="row"
import TableTr from './table-tr.vue';
import Cell from './cell.vue';
import TableCell from './cell.vue';
import Expand from './expand.js';
import Mixin from './mixin';
export default {
name: 'TableBody',
mixins: [ Mixin ],
components: { Cell, Expand, TableTr },
components: { TableCell, Expand, TableTr },
props: {
prefixCls: String,
styleObject: Object,