lowcode-engine icon indicating copy to clipboard operation
lowcode-engine copied to clipboard

使用antd的menu物料时,有些属性没加,但是组件接收到的时候却出现了

Open wssgchungang opened this issue 1 year ago • 2 comments

Describe the bug (required) / 详细描述 bug(必填)

使用antd的menu物料时,有些属性没加,但是组件接收到的时候却出现了,例如onSelect这个属性在schema中就没有,但是组件接收到的时候确有了,而且值是" {ignore: true}",

image

To Reproduce (required) / 如何复现 bug?(必填,非常重要)

Steps to reproduce the behavior: / 详细复现步骤:


用的工程就是官方的lowcode-materials 中的antd-lowcode-materials工程

wssgchungang avatar Aug 07 '23 06:08 wssgchungang

我也遇到了这个问题,查了下是在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',
            });
          }

flgame avatar Aug 16 '23 09:08 flgame

我就说怎么mode死活改不了,这个有解吗兄弟们?

zr443 avatar Jan 19 '24 07:01 zr443