wuyuedefeng / vue-sortable-tree

vue tree draggable, drag item sort
90 stars 21 forks source link

¿what function do I use to add a new item? #13

Closed ernestodgr closed 6 years ago

wuyuedefeng commented 6 years ago

you can add a item into tree data. eg: your data is below

 treeData: {
        name: 'root',
        children: [
          {
            name: '2',
            children: [
              { name: '2-1' }
            ]
          }
      ]     
}

push your item to children which you want add!