feat: 🎸 增加icon相关的判断函数

康师傅后期会改造这块,临时方案。
This commit is contained in:
凤矗 2020-05-05 14:35:22 +08:00
parent e945d79364
commit 89064f5c29

View File

@ -13,3 +13,6 @@ export interface TitleConfig {
export type TitleContent = string | I18nData | ReactElement | TitleConfig;
export function isTitleConfig(obj: any): obj is TitleConfig {
return obj && (obj.label || obj.tip || obj.icon);
}