Merge pull request #8174 from wibetter/master

fix(amis-editor): flex组件「弹性设置」配置项变动时不自动添加overflowY和overflowX
This commit is contained in:
wutong 2023-09-20 10:17:54 +08:00 committed by GitHub
commit 7419cdc0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,10 +581,10 @@ setSchemaTpl(
if (value === '1 1 auto') {
// 弹性
if (config?.isFlexColumnItem) {
form.setValueByName('style.overflowY', 'auto');
// form.setValueByName('style.overflowY', 'auto');
form.setValueByName('style.height', undefined);
} else {
form.setValueByName('style.overflowX', 'auto');
// form.setValueByName('style.overflowX', 'auto');
form.setValueByName('style.width', undefined);
}
} else if (value === '0 0 150px') {