fix(core): 统一用户昵称字段名称从 nickName 改为 nick
This commit is contained in:
@@ -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' },
|
||||
],
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user