mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
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:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user