Match-id-3b7b120ab54faf76b7553ae54f60d9051d419781

This commit is contained in:
* 2022-02-23 15:48:09 +08:00 committed by *
parent 56dd409cbc
commit 0492221e89
1 changed files with 2 additions and 1 deletions

View File

@ -38,14 +38,15 @@ function updateDom(
oldProps,
newProps,
);
processing.changeList = changeList;
// 输入类型的直接标记更新
if (type === 'input' || type === 'textarea' || type === 'select' || type === 'option') {
FlagUtils.markUpdate(processing);
processing.changeList = changeList;
} else {
// 其它的类型,数据有变化才标记更新
if (Object.keys(changeList).length) {
processing.changeList = changeList;
FlagUtils.markUpdate(processing);
}
}