fix(core): 统一用户昵称字段名称从 nickName 改为 nick

This commit is contained in:
dubai
2026-01-11 14:04:57 +08:00
parent bd51228293
commit d12769dd29
19 changed files with 31 additions and 31 deletions

View File

@@ -12,7 +12,7 @@ interface RowType {
age: number;
id: number;
name: string;
nickname: string;
nick: string;
role: string;
}
@@ -21,7 +21,7 @@ const gridOptions: VxeGridProps<RowType> = {
{ title: '序号', type: 'seq', width: 50 },
{ field: 'name', title: 'Name' },
{ field: 'age', sortable: true, title: 'Age' },
{ field: 'nickname', title: 'Nickname' },
{ field: 'nick', title: 'nick' },
{ field: 'role', title: 'Role' },
{ field: 'address', showOverflow: true, title: 'Address' },
],

View File

@@ -3,7 +3,7 @@ interface TableRowData {
age: number;
id: number;
name: string;
nickname: string;
nick: string;
role: string;
}
@@ -17,7 +17,7 @@ export const MOCK_TABLE_DATA: TableRowData[] = (() => {
age: i + 1,
id: i,
name: `Test${i}`,
nickname: `Test${i}`,
nick: `Test${i}`,
role: roles[Math.floor(Math.random() * roles.length)] as string,
});
}