template el-table data=tableData style=width100 !-- 复选框 -- el-table-column type=selection width=55 !-- 序号 -- el-table-column prop= label=序号 width=55
在 script setup 中的函数定义有语法错误,应该使用箭头函数定义,如下所示:
const fun1 = (i) => {
console.log(i);
}
原文地址: https://www.cveoy.top/t/topic/bo5l 著作权归作者所有。请勿转载和采集!