-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Open
Labels
Description
Version
Vben Admin V5
Describe the bug?
在antd-vue表格组件中其他列全部定宽,其中需要EllipsisText那一列不需要定宽(即自适应宽度),设置并不会截断文字,同样当line=2是则能够正常截取。
Reproduction
代码如下:
`<script setup lang="ts">
import { Table } from 'ant-design-vue';
import { EllipsisText, Page } from '@vben/common-ui';
interface AntdTableRow<T = any> {
record: T;
column: any;
index: number;
}
interface ListTest {
id: number;
str: string;
type: 'long' | 'short';
}
const list: ListTest[] = [
{
id: 1,
str: '这是长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长描述',
type: 'long',
},
{ id: 1, str: '这是短描述', type: 'short' },
];
</script>
System Info
AnyRelevant log output
Validations
- Read the docs
- Ensure the code is up to date. (Some issues have been fixed in the latest version)
- I have searched the existing issues and checked that my issue does not duplicate any existing issues.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.