vue.js - Buefy 表未在 nuxt 项目中呈现
问题描述
我使用 nuxt 和 buefy 开箱即用,我只想显示一个带有虚拟数据的表格。但是没有任何东西被渲染。我从 Buefy 文档中复制了代码。
//TableComponent
<template>
<b-table :data="tableData" :columns="columns" />
</template>
<script>
export default {
data() {
return {
tableData: [
{
. . .
}
],
columns: [
{
...
}
]
}
}
}
</script>
//Parent Component
<div>
<TableComponent />
<div>
解决方案
推荐阅读
- java - 更改 Eclipse 中的键绑定以接受代码完成建议
- angular - 错误:未捕获(承诺):NullInjectorError:R3InjectorError(AppModule)[baseURL]
- c++ - 相对简单的自定义容器签名不满足
概念 - python - 如何使用 Python 和 TensorFlow 服务模型调用特定模型版本?
- python - 从行中删除初始空格,在 python/pandas 中保留其他空格
- javascript - 如何仅反映已更改的行
- python - 如何为 django 管理员包含 Parentalkey?
- java - Antlr4 带模式的常用令牌
- r - R 中仅适用于第 n 个单词的正则表达式
- jdbc - Google BigQuery,在准备好的语句中为空值引发异常