<template slot-scope="scope">
<div :name="getFirstName(scope.row.firstName)"></div>
<div :name="getAllName(scope.row.firstName, scope.row.lastName)"></div>
</template>
computed:{
getFirstName(){
return firstName => {
console.log(firstName)
return firstName
}
},
getAllName(){
return (firstName, lastName)=> {
console.log(firstName, lastName)
return `${firstName}${lastName}`
}
}
}
网友评论