VUE-002-el-table-column两种赋值方式
VUE-002-el-table-column两种赋值方式
·
赋值方法1. 使用prop
<el-table :data="tableData">
<el-table-column prop="date" width="200" label="日期"></el-table-column>
</el-table>
赋值方法2. 嵌套一个template
<el-table :data="tableData">
<el-table-column label="日期" width="200">
<template slot-scope="scope">
{{ scope.row.date }}
</template>
</el-table-column>
</el-table>
————————————————
版权声明:本文为CSDN博主「lemon_tree1002」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_39568072/article/details/122057309
更多推荐
已为社区贡献2条内容
所有评论(0)