Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

弹框的逻辑能否处理一下 #137

Open
wangminqinag opened this issue Apr 23, 2024 · 1 comment
Open

弹框的逻辑能否处理一下 #137

wangminqinag opened this issue Apr 23, 2024 · 1 comment

Comments

@wangminqinag
Copy link

1、项目中没有看到弹框的处理逻辑
2、能否把弹框的逻辑梳理一下, 就算是不能运行的, 能把思路介绍一下吗

@wwsun
Copy link
Contributor

wwsun commented May 9, 2024

可以通过自定义 Modal 的设计器渲染形态来解决, Boot 提供了设计形态的自定义能力

export default defineComponent(AntModal, {
  name: 'Modal',
  designerConfig: {
    render: ({ originalProps, designerProps, children }) => (
      <YourCustomModalDesigner {...designerProps} {...originalProps} />
    ),
  },
});

参考:https://github.com/NetEase/tango-boot/blob/main/packages/boot/src/defineComponent.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants