• vue3在父组件的jsx代码中使用具名插槽


    vue3在父组件的jsx代码中使用具名插槽我们可以使用v-slots

    父组件

    1. (h: any, scoped: any) => {
    2. return (
    3. <div class="tdesignbox">
    4. <BasicButton
    5. v-slots={{
    6. mount: () => {
    7. return (
    8. <>
    9. <t-tooltip content="具名插槽绑定">
    10. <t-button
    11. shape="circle"
    12. variant="text"
    13. onClick={() => handleButton('mount', scoped.row)}
    14. >
    15. <MouseIcon />
    16. t-button>
    17. t-tooltip>
    18. )
    19. }
    20. }}
    21. >BasicButton>
  • )
  • 子组件

  • 相关阅读:
    刘畊宏男孩女孩看过来!运动数据分析挖掘!(附全套代码和数据集)
    跟羽夏学 Ghidra ——导航
    c++对类的的详解(2)
    建造者模式/生成器模式
    手机自动化测试:5.模拟相关操作:swipe,scroll,drag_and_dropki
    c语言圣诞树
    [Android] Android CVE search website
    .net core .net6 Form Cookie Login 认证
    微信小程序开发01 双线程模型:为什么小程序不用浏览器的线程模型?
    Rockland丨Rockland单克隆抗体开发流程
  • 原文地址:https://blog.csdn.net/q12as/article/details/132908098