iter: d13 dataTable 列对齐与单元格格式化

This commit is contained in:
ui-arch-bot
2026-10-23 16:55:55 +08:00
parent 9eefdcbd75
commit 730ee1abde
9 changed files with 46 additions and 17 deletions
+2 -2
View File
@@ -366,8 +366,8 @@ const content = h(
loading: tableLoading,
columns: [
{ key: 'name', header: '姓名', sortable: true },
{ key: 'age', header: '年龄', sortable: true },
{ key: 'city', header: '城市' },
{ key: 'age', header: '年龄', sortable: true, align: 'right', format: (v) => `${v} 岁` },
{ key: 'city', header: '城市', align: 'center' },
],
pageSize: 5,
}), h('div', { class: 'row' }, switchButton({ label: '加载态', checked: tableLoading }))),