We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hhhs
期望能够自适应由内容撑开
window10
chrome 最新版本
3.2.47
4.1.16
4.7.67
The text was updated successfully, but these errors were encountered:
fix 修复列宽计算逻辑 #2557
af2fb24
No branches or pull requests
可复现的链接(包含复现链接与示例代码):
hhhs
问题描述与截图:
<script> export default { data () { return { tableColumn: [ { width:'auto', field: 'name', title: 'Namesfsfssdfgdg', columnKey: 'name', filters: [{ data: null }], filterRender: { name: 'FilterTable', props: { placeholder: '请输入关键字' }, type: 'input', }, }, { width:'auto', field: 'role', title: 'Role水电费水电费十多个速度高达搜嘎手打干撒个', columnKey: 'role', filters: [{ data: null }], filterRender: { name: 'FilterTable', props: { placeholder: '请输入关键字' }, type: 'input', }, }, { width:'auto', field: 'sex发发的', title: 'Sex', columnKey: 'sex' }, { width:'auto', field: 'address递四方速递', title: 'Address', columnKey: 'address', showOverflow: true }, { width:'auto', field: 'name', title: 'Namesfsfssdfgdg', columnKey: 'name', filters: [{ data: null }], filterRender: { name: 'FilterTable', props: { placeholder: '请输入关键字' }, type: 'input', }, }, { width:'auto', field: 'role', title: 'Role水电费水电费十多个速度高达搜嘎手打干撒个', columnKey: 'role', filters: [{ data: null }], filterRender: { name: 'FilterTable', props: { placeholder: '请输入关键字' }, type: 'input', }, }, { width:'auto', field: 'sex发发的', title: 'Sex', columnKey: 'sex' }, { width:'auto', field: 'address递四方速递', title: 'Address', columnKey: 'address', showOverflow: true }, { width:'auto', field: 'role', title: 'Role水电费水电费十多个速度高达搜嘎手打干撒个', columnKey: 'role', filters: [{ data: null }], filterRender: { name: 'FilterTable', props: { placeholder: '请输入关键字' }, type: 'input', }, }, { field: 'sex发发的', title: 'Sex', columnKey: 'sex' }, { field: 'address递四方速递', title: 'Address', columnKey: 'address', showOverflow: true }, ], tableData: [ { id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', address: '深圳是个好地方深圳是个好地方深圳是个好地方深圳是个好地方深圳是个好地方深圳是个好地方深圳是个好地方深圳是个好地方深圳是个好地方深圳是个好地方深圳是个好地方', index: '0', age: '23', region: ['zhejiang', 'hangzhou', 'xihu'], data: '2021-10-08T16:54:48.257+0800', data1: '2021-10-08T16:54:48.257+0800', flag: false, rate: 2, state: 'START', referenceObject: { id: 10002, name: 'referenceObject1', role: 'Test', sex: 'Man', address: 'Guangzhou', index: '1', age: '24', region: ['zhejiang', 'hangzhou', 'xihu'], data: null, flag: false, rate: 2, // eslint-disable-next-line no-dupe-keys data: '2021-10-09T16:54:48.257+0800', data1: '2021-10-09T16:54:48.257+0800', state: 'NEWITEM', }, children: [ { id: 10002, name: 'Test2', role: 'Test', sex: 'Man', address: 'Guangzhou', index: '1', age: '23', children: [ { id: 10003, name: 'Test3', role: 'PM', sex: 'Man', address: 'Shanghai', index: '2', age: '23', }, { id: 10004, name: 'Test4', role: 'PM', sex: 'Woman', address: 'Shanghai', index: '3', age: '23', }, ], }, { id: 10003, name: 'Test3', role: 'PM', sex: 'Man', address: 'Shanghai', index: '2', age: '23', }, { id: 10004, name: 'Test4', role: 'PM', sex: 'Woman', address: 'Shanghai', index: '3', age: '23', }, ], }, { id: 10002, name: 'Test2', role: 'Test', sex: 'Man', address: 'Guangzhou', index: '1', age: '24', region: ['zhejiang', 'hangzhou', 'xihu'], data: null, flag: false, rate: 2, // eslint-disable-next-line no-dupe-keys data: '2021-10-09T16:54:48.257+0800', data1: '2021-10-09T16:54:48.257+0800', state: 'NEWITEM', referenceObject: { id: 10002, name: 'referenceObject2', role: 'Test', sex: 'Man', address: 'Guangzhou', index: '1', age: '24', region: ['zhejiang', 'hangzhou', 'xihu'], data: null, flag: false, rate: 2, // eslint-disable-next-line no-dupe-keys data: '2021-10-09T16:54:48.257+0800', data1: '2021-10-09T16:54:48.257+0800', state: 'NEWITEM', }, }, { id: 10003, name: 'Test3', role: 'PM', sex: 'Man', address: 'Shanghai', index: '2', age: '25', region: ['zhejiang', 'hangzhou', 'xihu'], data: null, flag: false, rate: 2, // eslint-disable-next-line no-dupe-keys data: '2021-10-10T16:54:48.257+0800', data1: '2021-10-10T16:54:48.257+0800', state: 'REWORK', referenceObject: { id: 10002, name: 'referenceObject3', role: 'Test', sex: 'Man', address: 'Guangzhou', index: '1', age: '24', region: ['zhejiang', 'hangzhou', 'xihu'], data: null, flag: false, rate: 2, // eslint-disable-next-line no-dupe-keys data: '2021-10-09T16:54:48.257+0800', data1: '2021-10-09T16:54:48.257+0800', state: 'NEWITEM', }, }, { id: 10004, name: 'Test4', role: 'PM', sex: 'Woman', address: 'Shanghai', index: '3', age: '25', region: ['zhejiang', 'hangzhou', 'xihu'], data: null, flag: false, rate: 2, // eslint-disable-next-line no-dupe-keys data: '2021-10-11T16:54:48.257+0800', data1: '2021-10-11T16:54:48.257+0800', state: 'PROTOTYPE', referenceObject: { id: 10002, name: 'referenceObject4', role: 'Test', sex: 'Man', address: 'Guangzhou', index: '1', age: '24', region: ['zhejiang', 'hangzhou', 'xihu'], data: null, flag: false, rate: 2, // eslint-disable-next-line no-dupe-keys data: '2021-10-09T16:54:48.257+0800', data1: '2021-10-09T16:54:48.257+0800', state: 'NEWITEM', }, }, ] } } } </script>期望的结果:
期望能够自适应由内容撑开
操作系统:
window10
浏览器版本:
chrome 最新版本
vue 版本:
3.2.47
vxe-pc-ui 版本:
4.1.16
vxe-table 版本:
4.7.67
是否使用当前最新版本?
The text was updated successfully, but these errors were encountered: