table responsive not work
See original GitHub issueIn my table ,responsive not work
<b-table
fixed
ref="selectableTable"
selectable
select-mode="multi"
:items="items"
:fields="fields"
@row-selected="onRowSelected"
responsive
outlined
:busy="isBusy"
striped
bordered
hover
small
show-empty
empty-text="空空如也"
stacked="md"
>
<!-- Example scoped slot for select state illustrative purposes -->
<template v-slot:table-busy>
<div class="text-center text-danger my-2">
<b-spinner class="align-middle"></b-spinner>
<strong> 正在努力加载数据</strong>
</div>
</template>
<template v-slot:cell(IsSelected)="{ rowSelected }">
<template v-if="rowSelected">
<b-icon icon="lock"></b-icon>
<span class="sr-only">Selected</span>
</template>
<template v-else>
<b-icon icon="unlock"></b-icon>
<span class="sr-only">Not selected</span>
</template>
</template>
<template v-slot:cell(index)="data">
{{ data.index + 1 }}
</template>
<template v-slot:cell(is_survey)="data">
<a :class="data.item.is_survey ? 'text-success' : 'text-danger'">{{
data.item.is_survey ? "是" : "否"
}}</a>
</template>
<template v-slot:cell(progress)="data">
<a
:class="
parseInt(data.item.progress) == 100
? 'text-success'
: parseInt(data.item.progress) < 100 &&
parseInt(data.item.progress) > 90
? 'text-info'
: parseInt(data.item.progress) < 90 &&
parseInt(data.item.progress) > 80
? 'text-warning'
: parseInt(data.item.progress) < 80 &&
parseInt(data.item.progress) > 60
? 'text-primary'
: parseInt(data.item.progress) == 0
? 'text-danger'
: 'text-dark'
"
>{{ data.item.progress }}</a
>
</template>
</b-table>
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
bootstrap table is not responsive - css - Stack Overflow
Make sure you checked you have inserted enough data in table. Sometimes there is just not enough data to trigger 'table-responsive' property.
Read more >table-responsive class does not take full width #24638 - GitHub
A table with the table-responsive class will not render at full width. I'm not sure why it works in the example in the...
Read more >Tables · Bootstrap v5.0
Responsive tables allow tables to be scrolled horizontally with ease. Make any table responsive across all viewports by wrapping a .table with .table-responsive...
Read more >Why is the scroll in bootstrap table-responsive does not work ...
I am using bootstrap and i have very long table and in any browser, it shows part of this table and i can...
Read more >How to Make a Table Responsive in a Few Easy Steps
What can you do? You can make tables responsive. Responsive tables will become smaller when possible. If not possible, they can read just...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am sorry!In my project, this work perfect!
We can dosomething: add
add table-class=“text-nowrap” in < b-table >。horizontal scrollbar works!