From 3a415703d4fa33541b4ddb1fc2409e484bfc01d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Sat, 27 Aug 2022 10:36:07 +0800 Subject: [PATCH] perf: table demo --- src/views/examples/table/post/usePostTable.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/examples/table/post/usePostTable.js b/src/views/examples/table/post/usePostTable.js index feb1361..b051d30 100644 --- a/src/views/examples/table/post/usePostTable.js +++ b/src/views/examples/table/post/usePostTable.js @@ -56,12 +56,13 @@ export const usePostTable = () => { function initColumns() { columns.value = [ { type: 'selection' }, - { title: '标题', key: 'title', width: 150 }, - { title: '分类', key: 'category', width: 80 }, + { title: '标题', key: 'title', width: 150, ellipsis: { tooltip: true } }, + { title: '分类', key: 'category', width: 80, ellipsis: { tooltip: true } }, { title: '描述', key: 'description', width: 200, + ellipsis: { tooltip: true }, }, { title: '创建人', key: 'author', width: 80 }, {