Comments (2)
当表格列的宽度之和小于表格宽度时,列宽会压缩。你可以尝试给表格最小宽度避免列宽压缩。形如:
<ve-table
style="min-width:800px;"
:columns="columns"
:table-data="tableData"
/>
from vue-easytable.
当表格列的宽度之和小于表格宽度时,列宽会压缩。你可以尝试给表格最小宽度避免列宽压缩。形如:
<ve-table style="min-width:800px;" :columns="columns" :table-data="tableData" />
额,我的业务场景是:表格在一个右侧展开的抽屉弹框中展示,抽屉弹框的宽度是固定的,表格的宽度也就固定了(450px)
然后表格有蛮多列的,第一列的title就“日期”2个字,设置了word-break: keep-all;
,然后出了横向滚动条,但是第一列显示的日期(yyyy-mm-dd这种格式)还是会换行,所以就想能不能有个最小宽度给第一列,让它宽度足够不用换行
目前是用
renderHeaderCell: ({ column }, h) => {
return h('div', { style: { minWidth: '110px' } }, '日期')
},
和word-break: keep-all;
来给第一列的表头的样式设置了个最小宽度,从而实现了最小宽度的效果,暂时先这么解决吧,如果有更好的方法也可以交流下~
from vue-easytable.
Related Issues (20)
- [Bug Report] IE11浏览器下contextmenu菜单为空
- [Feature Request] 没有横屏全屏展示表格功能
- [Feature Request] 能否支持撤销和重做? HOT 1
- [Feature Request] 希望可以增加表格数据导出功能
- [Feature Request] 希望增加行固定功能
- [Bug Report] 使用单元格选择组件后,合并某两行单元格,点击单元格会重复渲染 HOT 1
- ⚠ 🔴☘️Vue3版本的有吗 HOT 3
- [Bug Report] 选中合并的单元格出现样式异常 HOT 3
- [Feature Request] 能否支持vue3
- [Bug Report] 开始虚拟滑动,点击滑动图标,快速滑动,会出现白屏
- [Feature Request] Drag/Drop Columns
- [Bug Report] 快速滚动时会白屏
- [Feature Request] 自定义右键菜单
- [Feature Request] 支持tree
- [Feature Request] 为什么右键菜单没有粘贴呢?
- [Feature Request] 因为我个人项目上需要用到 excel,所以将该应用适配到 vue3 HOT 4
- [Feature Request] 有没有办法修改或者禁用键盘的某些键位的操作
- [Feature Request] 支持自定义复制 粘贴 撤销 恢复 功能方法
- [Feature Request] 基于 vue-easytable + Typescript,适配该组件库到 Vue3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-easytable.