Merge pull request #2045 from QingWei-Li/feat/table-expand-scoped-slot

Table: expand row feature only supports scoped slot.
This commit is contained in:
baiyaaaaa
2016-12-29 00:07:11 +08:00
committed by GitHub
6 changed files with 26 additions and 33 deletions

View File

@@ -1002,8 +1002,10 @@ describe('Table', () => {
return createVue({
template: `
<el-table row-key="id" :data="testData" @expand="handleExpand" ${extra}>
<el-table-column type="expand" inline-template>
<div>{{row.name}}</div>
<el-table-column type="expand">
<template scope="props">
<div>{{props.row.name}}</div>
</template>
</el-table-column>
<el-table-column prop="release" label="release" />
<el-table-column prop="director" label="director" />