File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
vue-simulator-renderer/src/utils Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export type ESModule = {
4
4
} ;
5
5
6
6
export function isNil < T > ( val : T | null | undefined ) : val is null | undefined {
7
- return val === null && val === undefined ;
7
+ return val === null || val === undefined ;
8
8
}
9
9
10
10
export function isObject ( val : unknown ) : val is Record < string , unknown > {
Original file line number Diff line number Diff line change 1
1
export function isNil < T = unknown > ( val : T ) : val is NonNullable < T > {
2
- return val !== null && val ! == undefined ;
2
+ return val === null || val = == undefined ;
3
3
}
4
4
5
5
export function isObject ( el : unknown ) : el is Record < string | number | symbol , unknown > {
6
- return isNil ( el ) && typeof el === 'object' ;
6
+ return ! isNil ( el ) && typeof el === 'object' ;
7
7
}
Original file line number Diff line number Diff line change 1
1
import type { ComponentInternalInstance , VNode } from 'vue' ;
2
2
import type { ComponentInstance } from '../interface' ;
3
- import { isNil } from '@knxcloud/lowcode-utils' ;
4
3
import { isProxy } from 'vue' ;
5
- import { isObject } from './check' ;
4
+ import { isObject , isNil } from './check' ;
6
5
7
6
const SYMBOL_VDID = Symbol ( '_LCDocId' ) ;
8
7
const SYMBOL_VNID = Symbol ( '_LCNodeId' ) ;
You can’t perform that action at this time.
0 commit comments