mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-08-01 10:55:52 +00:00
fix: 🐛 添加 loop 和 condition 的判断
This commit is contained in:
parent
a01e4b1963
commit
b521ebead1
@ -262,22 +262,26 @@ export default function(metadata: TransformedComponentMetadata): TransformedComp
|
||||
},
|
||||
})
|
||||
}
|
||||
advanceGroup.push({
|
||||
name: 'key',
|
||||
title: {
|
||||
label: '渲染唯一标识(key)',
|
||||
tip: '搭配「条件渲染」或「循环渲染」时使用,和 react 组件中的 key 原理相同,点击查看帮助',
|
||||
docUrl: 'https://yuque.antfin-inc.com/legao/help3.0/ca5in7',
|
||||
},
|
||||
setter: [{
|
||||
componentName: 'StringSetter',
|
||||
}, {
|
||||
componentName: 'VariableSetter'
|
||||
}],
|
||||
extraProps: {
|
||||
display: 'block',
|
||||
},
|
||||
},)
|
||||
|
||||
if(supports.condition !== false || supports.loop !== false) {
|
||||
advanceGroup.push({
|
||||
name: 'key',
|
||||
title: {
|
||||
label: '渲染唯一标识(key)',
|
||||
tip: '搭配「条件渲染」或「循环渲染」时使用,和 react 组件中的 key 原理相同,点击查看帮助',
|
||||
docUrl: 'https://yuque.antfin-inc.com/legao/help3.0/ca5in7',
|
||||
},
|
||||
setter: [{
|
||||
componentName: 'StringSetter',
|
||||
}, {
|
||||
componentName: 'VariableSetter'
|
||||
}],
|
||||
extraProps: {
|
||||
display: 'block',
|
||||
},
|
||||
},)
|
||||
}
|
||||
|
||||
}
|
||||
if (advanceGroup.length > 0) {
|
||||
combined.push({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user