lowcode-engine
lowcode-engine copied to clipboard
使用antd的menu物料时,有些属性没加,但是组件接收到的时候却出现了
Describe the bug (required) / 详细描述 bug(必填)
使用antd的menu物料时,有些属性没加,但是组件接收到的时候却出现了,例如onSelect这个属性在schema中就没有,但是组件接收到的时候确有了,而且值是" {ignore: true}",
To Reproduce (required) / 如何复现 bug?(必填,非常重要)
Steps to reproduce the behavior: / 详细复现步骤:
用的工程就是官方的lowcode-materials 中的antd-lowcode-materials工程
我也遇到了这个问题,查了下是在render里写死了,o(╯□╰)o: /packages/react-simulator-renderer/src/renderer-view.tsx
// FIXME: 渲染仍有问题
if (viewProps._componentName === 'Menu') {
Object.assign(viewProps, {
_componentName: 'Menu',
className: '_css_pesudo_menu_kbrzyh0f',
context: { VE: (window as any).VisualEngine },
direction: undefined,
events: { ignored: true },
fieldId: 'menu_kbrzyh0f',
footer: '',
header: '',
mode: 'inline',
onItemClick: { ignored: true },
onSelect: { ignored: true },
popupAlign: 'follow',
selectMode: false,
triggerType: 'click',
});
}
我就说怎么mode死活改不了,这个有解吗兄弟们?