mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-14 13:03:07 +00:00
fix: 兼容 setters 为空的情况
This commit is contained in:
parent
a76618c858
commit
56b459a017
@ -113,7 +113,8 @@ class SettingFieldView extends Component<SettingFieldViewProps, SettingFieldView
|
|||||||
const supportVariableGlobally = engineConfig.get('supportVariableGlobally', false) && isStandardComponent(componentMeta);
|
const supportVariableGlobally = engineConfig.get('supportVariableGlobally', false) && isStandardComponent(componentMeta);
|
||||||
if (supportVariable || supportVariableGlobally) {
|
if (supportVariable || supportVariableGlobally) {
|
||||||
if (setterType === 'MixedSetter') {
|
if (setterType === 'MixedSetter') {
|
||||||
if (!setterProps.setters.includes('VariableSetter')) {
|
// VariableSetter 不单独使用
|
||||||
|
if (Array.isArray(setterProps.setters) && !setterProps.setters.includes('VariableSetter')) {
|
||||||
setterProps.setters.push('VariableSetter');
|
setterProps.setters.push('VariableSetter');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user