Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

How to make table horizontally scrollable with a lot of columns? #188

Open
JiPolik opened this issue Sep 21, 2020 · 5 comments
Open

How to make table horizontally scrollable with a lot of columns? #188

JiPolik opened this issue Sep 21, 2020 · 5 comments

Comments

@JiPolik
Copy link

JiPolik commented Sep 21, 2020

No description provided.

@Messilimeng
Copy link

hello can you tell me how to do it, i want use it in mobile website,with lot of columns ,want it scrollable when i move it to left or right,thanks

@kenberkeley
Copy link
Collaborator

@Messilimeng

data: () => ({
fixHeaderAndSetBodyMaxHeight: 200,
tblStyle: 'table-layout: fixed', // must
tblClass: 'table-bordered',
columns: [
{ title: 'User ID', field: 'uid', sortable: true, fixed: true },
{ title: 'Username', field: 'name' },
{ title: 'Age', field: 'age', sortable: true },
{ title: 'Email', field: 'email' },
{ title: 'Country', field: 'country', fixed: 'right' }
].map(col => (col.colStyle = { width: '200px' }, col)),
data: [],
summary: {},
total: 0,
query: {}
}),

@Messilimeng
Copy link

@kenberkeley 你好 我用的是移动端vant 能不能不用bootstrap样式呢?

@kenberkeley
Copy link
Collaborator

Unfortunately nope

@Messilimeng
Copy link

不可以啊?好的那只能换一种方式了 谢谢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants