mobile-more
Version:
基于 antd-mobile v5 扩展移动端 UI 组件
13 lines (12 loc) • 402 B
TypeScript
type Keys = {
label?: string;
value?: string;
[key: string]: any;
};
type KeysWithChildren = Keys & {
children?: string;
};
type DateItem = string | Record<string, any>;
declare function transformKeys(data: DateItem[], keys?: Keys): Required<Keys>[];
declare function transformKeys(data: DateItem[], keys?: KeysWithChildren): Required<KeysWithChildren>[];
export default transformKeys;