<template> <el-table :data="tableData" style="width: 100%"> <el-table-column prop="date" label="参数" width="180"> </el-table-column> <el-table-column prop="name" label="参数值" width="180"> </el-table-column> </el-table> </template> <script setup> const tableData = []; tableData.push({date:'2016-05-02'}); </script>
【vue3】el-table,script setup中直接赋值表数据
最新推荐文章于 2024-07-04 22:27:10 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)