iter: d13 dataTable 列对齐与单元格格式化
This commit is contained in:
+2
-2
@@ -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 }))),
|
||||
|
||||
Reference in New Issue
Block a user