1.0发布,Fixes Bug,以及新增 ProTable组件

This commit is contained in:
Ah jung committed 2021-07-12 16:16:51 +08:00
1 parent d423f27e94
commit 1e9b7074e5
43 files changed
+1375 -65

No files matched your search

+8
View File
@@ -104,3 +104,11 @@ export const isServer = typeof window === 'undefined'
export function isImageDom(o: Element) {
return o && ['IMAGE', 'IMG'].includes(o.tagName)
}
export function isNull(val: unknown): val is null {
return val === null;
}
export function isNullAndUnDef(val: unknown): val is null | undefined {
return isUnDef(val) && isNull(val);
}