nsn-util
Version:
NSN工具辅助组件
20 lines (19 loc) • 418 B
TypeScript
import { CSSProperties, ReactNode } from 'react';
/**
* 图标键值对
*/
declare const ALL: {
[key: string]: any;
};
/**
* 获取图标
* @param name 图标名称
* @param def 获取不到图标时,默认返回的对象
* @param style 图标样式
*/
declare const get: (props: {
name: string;
def?: string | ReactNode;
style?: CSSProperties;
} | string) => {} | null;
export { get, ALL };