smart-webcomponents icon indicating copy to clipboard operation
smart-webcomponents copied to clipboard

DockingLayout能否支持jsx传递

Open Saitmob opened this issue 1 year ago • 0 comments

目前用起来感觉不太方便,自己封装了自定义的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",
        }
      ],
    },
  ];```

Saitmob avatar Nov 08 '23 09:11 Saitmob