javascript - 使用 vuetify 格式化表头中的指数数
问题描述
我想用 html 中的自定义标题替换标题“数字”。我使用 vuetify 来显示数据表。
实际上我有:
headers: [
{text: 'number', value: 'number'},
{text: 'car', value: 'car'},
{text: 'Total ', value: 'total'},
{text: 'Actions', value: 'actions'}
],
我想,我必须使用模板和插槽,但我完全迷失了。
解决方案
我找到了解决方案
<template v-slot:header.number>
Here My custom header
</template>
这很好用!
推荐阅读
- node.js - 浏览器外的AngularJS单元测试
- python - 你如何修复这个for循环来验证用户名?
- java - 如何编写为所有参数添加 esapi 过滤器的 slf4j 记录器
- javascript - HTML Canvas - 无法获取未定义或空引用的属性“getElementById”
- intellij-idea - Alt+Enter 在 IntelliJ 社区版中停止显示创建方法
- ionic-framework - 输入字段中的值不会显示在离子中
- r - R语言中带有拟合回归3D平面的3D散点图
- javascript - 在 Rails 6 中测试 jquery
- javascript - javascript简单循环计算
- nestjs - 从 NestJs 后端加载 WebAssembly 文件时出错