veaury
veaury copied to clipboard
vue3+vite项目,使用veaury直接桥接react组件@antv/gpt-vis,直接传入字符串默认插槽,但是识别不了
` 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 (<>
<GPTVisReact>{mdString}</GPTVisReact>
<>)
//使用props传参会正常渲染 return (<> <GPTVIsReactPie data=[{category:'1",value:1}]/> <>) ` 我写了一个代码大概,就是通过props传参会正常渲染,但是通过children这种方式传入字符串不会渲染,请问我是写错了吗?
@Xiaoling9 你这个例子是vue的jsx?