diff --git a/src/views/inventory/Inventory.data.ts b/src/views/inventory/Inventory.data.ts index 86b1b16..d5dbbc1 100644 --- a/src/views/inventory/Inventory.data.ts +++ b/src/views/inventory/Inventory.data.ts @@ -1,5 +1,6 @@ import { BasicColumn } from '/@/components/Table'; import { render } from '@/utils/common/renderUtils'; +import { h } from 'vue'; //列表数据 export const columns: BasicColumn[] = [ { @@ -61,7 +62,10 @@ export const columns: BasicColumn[] = [ title: '项目号', align: 'center', dataIndex: 'project', - width: 100, + width: 150, + customRender: ({ text }) => { + return h('div', { style: { wordBreak: 'break-all', lineHeight: '1.5' } }, text); + }, }, { title: '任务号',