V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
cheneydog
V2EX  ›  问与答

用 vue.ant.design table expandedRowRender 参数怎么写?

  •  
  •   cheneydog · 2019-03-13 22:36:24 +08:00 · 5728 次点击
    这是一个创建于 1842 天前的主题,其中的信息可能已经有所发展或是发生改变。
    expandedRowRender	
    额外的展开行	
    
    Function(record, index, indent, expanded):VNode | slot="expandedRowRender" slot-scope="record, index, indent, expanded"	-
    
    

    VNode 是要返回个啥? 哪个是 h 函数?

    2 条回复    2019-09-16 15:58:09 +08:00
    jackShell
        1
    jackShell  
       2019-09-16 15:52:25 +08:00
    兄嘚,咋写的呀
    jackShell
        2
    jackShell  
       2019-09-16 15:58:09 +08:00
    <a-table :columns="columns"

    :dataSource="data"

    >

    <a-table

    slot="expandedRowRender"

    slot-scope="record"

    :columns="innerColumns"

    :dataSource="record.innerData"

    :rowKey="record.id"

    >

    </a-table>

    </a-table>
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2703 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:38 · PVG 23:38 · LAX 08:38 · JFK 11:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.