perf: table demo

This commit is contained in:
张传龙 2022-08-27 10:36:07 +08:00
parent 006f730457
commit 3a415703d4

View File

@ -56,12 +56,13 @@ export const usePostTable = () => {
function initColumns() { function initColumns() {
columns.value = [ columns.value = [
{ type: 'selection' }, { type: 'selection' },
{ title: '标题', key: 'title', width: 150 }, { title: '标题', key: 'title', width: 150, ellipsis: { tooltip: true } },
{ title: '分类', key: 'category', width: 80 }, { title: '分类', key: 'category', width: 80, ellipsis: { tooltip: true } },
{ {
title: '描述', title: '描述',
key: 'description', key: 'description',
width: 200, width: 200,
ellipsis: { tooltip: true },
}, },
{ title: '创建人', key: 'author', width: 80 }, { title: '创建人', key: 'author', width: 80 },
{ {