mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 21:20:28 +00:00
Merge branch 'hotfix/has_key_by_condition_loop' into 'release/0.9.6'
Hotfix/has key by condition loop See merge request !939647
This commit is contained in:
commit
0139a3dee8
@ -135,7 +135,7 @@ export default function(metadata: TransformedComponentMetadata): TransformedComp
|
||||
// if (item.type === 'group' && (item.title === '高级' || item.title?.label === '高级')) {
|
||||
// advanceGroup = item.items || [];
|
||||
// propsGroup.splice(l, 1);
|
||||
// }
|
||||
// }
|
||||
if (item.name === '__style__' || item.name === 'containerStyle' || item.name === 'pageStyle') {
|
||||
propsGroup.splice(l, 1);
|
||||
stylesGroup.push(item);
|
||||
@ -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