Match-id-a6a960bc0ad76d85a4b94b26d6a61c28170ab9a2
This commit is contained in:
commit
7c0fbfd85a
|
@ -126,6 +126,13 @@ function updateDom(
|
|||
);
|
||||
processing.changeList = changeList;
|
||||
|
||||
// 标记为更新
|
||||
// 输入类的直接标记更新
|
||||
if (type === 'input' || type === 'textarea' || type === 'select' || type === 'option') {
|
||||
FlagUtils.markUpdate(processing);
|
||||
} else {
|
||||
// 其它的类型,数据有变化才标记更新
|
||||
if (changeList.length) {
|
||||
FlagUtils.markUpdate(processing);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ const plugins = [
|
|||
new ESLintPlugin({fix: true}),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.NODE_ENV': '"development"',
|
||||
__DEV__: 'true',
|
||||
isDev: 'true',
|
||||
}),
|
||||
];
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ const filename = 'horizon.production.js';
|
|||
const plugins = [
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.NODE_ENV': '"production"',
|
||||
__DEV__: 'false',
|
||||
isDev: 'false',
|
||||
}),
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue