Skip to content

vue3+vite项目,使用veaury直接桥接react组件@antv/gpt-vis,直接传入字符串默认插槽,但是识别不了 #182

@Xiaoling9

Description

@Xiaoling9

`
import { GPTVis, Pie} from "@antv/gpt-vis"; //react组件
import { applyPureReactInVue } from "veaury";

const GPTVisReact = applyPureReactInVue(GPTVis);
const GPTVIsReactPie = applyPureReactInVue(Pie);

const mdString = # hello;
//使用默认children这种方式传入不会渲染
return (<>
{mdString}
<>)

//使用props传参会正常渲染
return (<>
<GPTVIsReactPie data=[{category:'1",value:1}]/>
<>)
`
我写了一个代码大概,就是通过props传参会正常渲染,但是通过children这种方式传入字符串不会渲染,请问我是写错了吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions