Open letsky opened 4 years ago
Translation of this issue:
yes
El-table
Hi, I found that some documents are still using slot and slot-scope. In Vue 2.6.0, it is use v-slot, your can see vue document here https://vuejs.org/v2/guide/components-slots.html.
Example:
`
`
<el-table-column fixed="right"
Label = "operation" Width= "100" >
< El button @ Click = "handleclick (scope. Row)" type = "text" size = "small" > View < / El button > < El button type = "text" size = "small" > Edit < / El button >
`
`
Now can be replaced:
`
`
<el-table-column fixed="right"
Label = "operation" Width= "100" >
< El button @ Click = "handleclick (scope. Row)" type = "text" size = "small" > View < / El button > < El button type = "text" size = "small" > Edit < / El button >
`
`
Or
`
`
<el-table-column fixed="right"
Label = "operation" Width= "100" >
<template #default="scope"> < El button @ Click = "handleclick (scope. Row)" type = "text" size = "small" > View < / El button >
< El button type = "text" size = "small" > Edit < / El button >
`
`
Maybe there are many more places like this in the documentation, they need to change it together.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Existing Component
是
Component Name
el-table
Description
Hi, I found that some documents are still using slot and slot-scope. In Vue 2.6.0, it is use v-slot, your can see vue document here https://vuejs.org/v2/guide/components-slots.html.
Example:
Now can be replaced:
or
Maybe there are many more places like this in the documentation, they need to change it together.