【发布时间】:2020-05-03 06:10:11
【问题描述】:
在 vue/cli / "bootstrap-vue": "^2.1.0" 中使用 https://bootstrap-vue.js.org/docs/components/table 我没有找到如何为所有列设置对齐并将其更改为 任何列。我试过:
<b-card-body>
<b-table responsive="sm" striped hover small :items="users" :fields="usersFields" align-v="end">
<template v-slot:cell(id)="data">
<div class="-align-right">{{ data.value }}</div>
</template>
<template v-slot:cell(status)="data" >
<div class="-align-left">{{ getDictionaryLabel( data.value, userStatusLabels ) }}</div>
</template>
但由于所有列都居中而失败。
如何正确?
【问题讨论】:
标签: bootstrap-vue