mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
FAQ: update attribute slot-scope for Vue 2.5.0+
This commit is contained in:
4
FAQ.md
4
FAQ.md
@@ -22,7 +22,7 @@
|
||||
使用 [Scoped slot](https://vuejs.org/v2/guide/components.html#Scoped-Slots) 即可:
|
||||
```html
|
||||
<el-table-column label="操作">
|
||||
<template scope="props">
|
||||
<template slot-scope="props">
|
||||
<el-button @click.native="showDetail(props.row)">查看详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -115,7 +115,7 @@ For other components, the `.native` modifier is still mandatory.
|
||||
Just use [Scoped slot](https://vuejs.org/v2/guide/components.html#Scoped-Slots):
|
||||
```html
|
||||
<el-table-column label="Operations">
|
||||
<template scope="props">
|
||||
<template slot-scope="props">
|
||||
<el-button @click.native="showDetail(props.row)">Details</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
Reference in New Issue
Block a user