vue.js - 在 Vue.js 中添加单元格不起作用
问题描述
我对在 Vue.js 3 + Vite + VueGoodTable 中添加新字段进行了完整搜索,但它不起作用!它看起来是空的。
我使用了来自指南的代码: https ://xaksis.github.io/vue-good-table/guide/advanced/#adding-custom-columns和来自这个https://jsfiddle.net/marekfilip/jm4ywzor/
使用来自 jsfiddles 的片段,它只显示:[![在此处输入图像描述][1]][1] [1]:https://i.stack.imgur.com/S8xv4.png
对于 jsfiddle,我只更改了新的 Vue:
<script>
import { VueGoodTable } from 'vue-good-table-next';
export default({
components: {
VueGoodTable
},
有任何想法吗?
解决方案
经过广泛搜索后回到 vue-good-table-next 指南并更改
<template slot="table-row" slot-scope="props">
为
<template #table-row="props">
有效!
我想这与 tu Vue 3 和 vue-good-table-next 的新版本有关。
抱歉,添麻烦了。
推荐阅读
- php - 从多个表中获取数据——单个数据库
- python - 能够抓取静态网站但不能抓取动态网站
- java - JLayer 播放时改变音量 (JavaZoom)
- sql-server - SSIS 动态文件路径
- google-apps-script - 使用 GAS 将表格中列出的查看者和编辑者添加到共享云端硬盘中的文件夹和文件中
- android - Android Retorifit - 读取列表中每个项目的事件
- audio - 在three.js中手动平移音频
- sql - 具有 Null 值和 Integer 的 case 语句
- javascript - 替换字符的第一个重复实例
- r - 从数据框中绘制字符和数字并在 r 中映射