【发布时间】:2021-04-06 12:02:07
【问题描述】:
我正在尝试对齐 bootstrap-vue modal 内的页脚范围插槽内的一些项目,但由于某种原因,无论我尝试什么,我都无法将我的内容放在一个列中以向右移动
<template #modal-footer="{ ok, cancel }">
<div class="row w-100">
<div class="col-9 text-right border border-primary">
<b-form inline class="d-flex">
<b-form-select class="justify-content-end"
v-model="perPage"
:options="pagerSelectOptions"
>
</b-form-select>
<b-pagination
v-model="currentPage"
:total-rows="totalRows"
:per-page="perPage"
size="md"
hide-goto-end-buttons
></b-pagination>
</b-form>
</div>
<div class="col-3 text-right border border-primary">
<b-button class="mr-4"
:disabled="restoreButtonDisabled"
dusk="deleted-pursuit-restore-ok-button"
variant="primary"
@click="restore"
>
<b-spinner
v-if="loading"
small
type="grow"
>
</b-spinner>
{{ restoreButtonText }} <b-badge
v-if="selectedPursuits.length > 0"
variant="outline-primary"
>{{ selectedPursuits.length }}
</b-badge>
</b-button>
<b-button
:disabled="loading"
@click="cancelModal"
dusk="deleted-pursuit-restore-cancel-button"
>
Cancel
</b-button>
</div>
</div>
</template>
我想要的只是在左列中居中选择和页面。我已经尝试了每个justify 变体和其他类选项,但我无法让这些项目让步。我需要做什么才能使项目在列中居中?
【问题讨论】:
标签: css vue.js bootstrap-4 bootstrap-modal footer