el-tree改变默认渲染的label和children字段

  • Post author:
  • Post category:其他


<el-tree :props="treeProps"/>
  
data:{
      treeProps: {
        children: 'children',
        label: 'name'
      }
}



版权声明:本文为m0_46581222原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。