Skip to content

Commit

Permalink
fix(antd/transfer): unified function format of transKeys util file
Browse files Browse the repository at this point in the history
  • Loading branch information
wqs576222103 committed Dec 23, 2022
1 parent a2fa116 commit 10aebbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/_util/transKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const groupKeysMap = (keys: string[]) => {
});
return map;
};
export function groupDisabledKeysMap<RecordType extends any[]>(dataSource: RecordType) {
export const groupDisabledKeysMap = <RecordType extends any[]>(dataSource: RecordType) => {
const map: MapType = {};
dataSource.forEach((d, i) => {
if (d.disabled) {
Expand All @@ -22,4 +22,4 @@ export function groupDisabledKeysMap<RecordType extends any[]>(dataSource: Recor
}
});
return map;
}
};

0 comments on commit 10aebbc

Please sign in to comment.