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 = {
44} ;
55
66export function isNil < T > ( val : T | null | undefined ) : val is null | undefined {
7- return val === null && val === undefined ;
7+ return val === null || val === undefined ;
88}
99
1010export function isObject ( val : unknown ) : val is Record < string , unknown > {
Original file line number Diff line number Diff line change 11export function isNil < T = unknown > ( val : T ) : val is NonNullable < T > {
2- return val !== null && val ! == undefined ;
2+ return val === null || val = == undefined ;
33}
44
55export 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' ;
77}
Original file line number Diff line number Diff line change 11import type { ComponentInternalInstance , VNode } from 'vue' ;
22import type { ComponentInstance } from '../interface' ;
3- import { isNil } from '@knxcloud/lowcode-utils' ;
43import { isProxy } from 'vue' ;
5- import { isObject } from './check' ;
4+ import { isObject , isNil } from './check' ;
65
76const SYMBOL_VDID = Symbol ( '_LCDocId' ) ;
87const SYMBOL_VNID = Symbol ( '_LCNodeId' ) ;
You can’t perform that action at this time.
0 commit comments