vue在render中写jsx slot-scope内的值如何写?-灵析社区

中年复健狗

-1"> {{title.substr(0, title.indexOf(searchValue))}} {{searchValue}} {{title.substr(title.indexOf(searchValue) + searchValue.length)}} {{title}} 例如上面代码事例 由 a-tree组件往slot="title" 向上传了一个title 如果在jsx中 怎么写这个slot-scope 这个slot-scope怎么写 才能获取到组件a-tree得到的title?

阅读量:19

点赞量:0

问AI
你可参考这个文章"https://segmentfault.com/a/1190000044198401" (https://segmentfault.com/a/1190000044198401) 匿名插槽, header: () => 我是头部, main: (mainData) => 作用域插槽:{mainData}, footer: () => 具名插槽 }}>