Match-id-10b63a2cc012a3a05fb8c502131856090e0315b4

This commit is contained in:
* 2022-01-26 14:40:54 +08:00 committed by *
parent 3d8502d8cc
commit d074f507fb
1 changed files with 8 additions and 7 deletions

View File

@ -39,14 +39,15 @@ export class FlagUtils {
});
}
static hasAnyFlag(node: VNode) { // 有标志位
let keyFlag = false;
FlagArr.forEach(key => {
if (node.flags[key]) {
keyFlag = true;
return;
const flags = node.flags;
const arrLength = FlagArr.length;
for(let i = 0; i < arrLength; i++) {
const key = FlagArr[i];
if (flags[key]) {
return true;
}
});
return keyFlag;
}
return false;
}
static setNoFlags(node: VNode) {