Match-id-89465c712aa3da33ec2f058bf53f651d7afe3d5c
This commit is contained in:
parent
17cdfd98ca
commit
c5684b6e67
|
@ -126,6 +126,13 @@ function updateDom(
|
||||||
);
|
);
|
||||||
processing.changeList = changeList;
|
processing.changeList = changeList;
|
||||||
|
|
||||||
// 标记为更新
|
// 输入类的直接标记更新
|
||||||
|
if (type === 'input' || type === 'textarea' || type === 'select' || type === 'option') {
|
||||||
FlagUtils.markUpdate(processing);
|
FlagUtils.markUpdate(processing);
|
||||||
|
} else {
|
||||||
|
// 其它的类型,数据有变化才标记更新
|
||||||
|
if (changeList.length) {
|
||||||
|
FlagUtils.markUpdate(processing);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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',
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -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',
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue