first commit
This commit is contained in:
19
frontend/node_modules/antd/es/_util/transKeys.js
generated
vendored
Normal file
19
frontend/node_modules/antd/es/_util/transKeys.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
export const groupKeysMap = keys => {
|
||||
const map = new Map();
|
||||
keys.forEach((key, index) => {
|
||||
map.set(key, index);
|
||||
});
|
||||
return map;
|
||||
};
|
||||
export const groupDisabledKeysMap = dataSource => {
|
||||
const map = new Map();
|
||||
dataSource.forEach(({
|
||||
disabled,
|
||||
key
|
||||
}, index) => {
|
||||
if (disabled) {
|
||||
map.set(key, index);
|
||||
}
|
||||
});
|
||||
return map;
|
||||
};
|
||||
Reference in New Issue
Block a user