UNPKG

antd-hz

Version:

华卓科技基于 antd 5.0 定制的组件库

20 lines 386 B
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((_ref, index) => { let { disabled, key } = _ref; if (disabled) { map.set(key, index); } }); return map; };