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:
高凯 2020-08-19 10:23:30 +08:00
commit 0139a3dee8

View File

@ -262,22 +262,26 @@ export default function(metadata: TransformedComponentMetadata): TransformedComp
}, },
}) })
} }
advanceGroup.push({
name: 'key', if(supports.condition !== false || supports.loop !== false) {
title: { advanceGroup.push({
label: '渲染唯一标识key', name: 'key',
tip: '搭配「条件渲染」或「循环渲染」时使用,和 react 组件中的 key 原理相同,点击查看帮助', title: {
docUrl: 'https://yuque.antfin-inc.com/legao/help3.0/ca5in7', label: '渲染唯一标识key',
}, tip: '搭配「条件渲染」或「循环渲染」时使用,和 react 组件中的 key 原理相同,点击查看帮助',
setter: [{ docUrl: 'https://yuque.antfin-inc.com/legao/help3.0/ca5in7',
componentName: 'StringSetter', },
}, { setter: [{
componentName: 'VariableSetter' componentName: 'StringSetter',
}], }, {
extraProps: { componentName: 'VariableSetter'
display: 'block', }],
}, extraProps: {
},) display: 'block',
},
},)
}
} }
if (advanceGroup.length > 0) { if (advanceGroup.length > 0) {
combined.push({ combined.push({