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

DockingLayout能否支持jsx传递 #121

Open
Saitmob opened this issue Nov 8, 2023 · 0 comments
Open

DockingLayout能否支持jsx传递 #121

Saitmob opened this issue Nov 8, 2023 · 0 comments

Comments

@Saitmob
Copy link

Saitmob commented Nov 8, 2023

目前用起来感觉不太方便,自己封装了自定义的Vue组件后,如果可以直接在content传入jsx就好了,但是目前必须传入HTML字符串

    {
      type: "LayoutGroup",
      orientation: "horizontal",
      items: [
        {
          type: "LayoutGroup",
          items: [
            {
              type: "LayoutPanel",
              id: "tabPanel",
              label: "Input",
              items: [
                {
                  label: "TextBox Tab",
                  content:
                    '<smart-multiline-text-box id="multiLine">Write more text here ...</smart-multiline-text-box>',
                },
                {
                  label: "Slider Tab",
                  content: <CustomComponent />,
                },
              ],
            },
          ],
          orientation: "vertical",
        }
      ],
    },
  ];```
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

1 participant