我在Vuetify.js框架中使用v-simple-table作为Nuxt.js制作了表格。当我单击“ XXX Inc.”时,我希望所有用于HR,业务,HR,销售和业务的表格单元都被标记出来。但是现在只有第一行指向如下。
我的代码如下。谁能告诉我?
<template>
<v-simple-table dense>
<thead>
<tr>
<th>company</th>
<th>division</th>
<th>section</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="3">XX Inc.</td>
<td>H/R</td>
<td>H/R</td>
</tr>
<tr>
<td rowspan="2">business</td>
<td>sales</td>
</tr>
<tr>
<td>marketing</td>
</tr>
</tbody>
</v-simple-table>
</template>
<script lang="ts">
import { Component, Vue } from 'nuxt-property-decorator'
@Component({})
export default class extends Vue {}
</script>
<style lang="scss" scoped>
.v-data-table--dense > .v-data-table__wrapper > table > tbody > tr > td {
border-bottom: thin solid rgba(0, 0, 0, 0.12) !important;
}
</style>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句