feat(projects): update

This commit is contained in:
Soybean
2024-03-21 08:29:15 +08:00
parent 8630175a3f
commit 4158a72bd8
2 changed files with 2 additions and 11 deletions

View File

@ -221,10 +221,6 @@ export function getNaiveTableIndex(pagination: PaginationProps, index: number) {
return (page - 1) * pageSize + index + 1;
}
export function getNaiveTableRowKey<T extends TableData>(row: T) {
return row.id;
}
function isTableColumnHasKey<T>(column: TableColumn<T>): column is NaiveUI.TableColumnWithKey<T> {
return Boolean((column as NaiveUI.TableColumnWithKey<T>).key);
}