Match-id-89465c712aa3da33ec2f058bf53f651d7afe3d5c

This commit is contained in:
* 2021-12-30 14:47:12 +08:00 committed by *
parent 17cdfd98ca
commit c5684b6e67
3 changed files with 11 additions and 4 deletions

View File

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

View File

@ -11,7 +11,7 @@ const plugins = [
new ESLintPlugin({fix: true}), new ESLintPlugin({fix: true}),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env.NODE_ENV': '"development"', 'process.env.NODE_ENV': '"development"',
__DEV__: 'true', isDev: 'true',
}), }),
]; ];

View File

@ -10,7 +10,7 @@ const filename = 'horizon.production.js';
const plugins = [ const plugins = [
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env.NODE_ENV': '"production"', 'process.env.NODE_ENV': '"production"',
__DEV__: 'false', isDev: 'false',
}), }),
]; ];