@moonwane/vue3-org-chart v1.0.0
Vue3 Org Chart
Forked from n1crack/vue3-org-chart. Please refer to its README for original usage.
Breaking Changes
The OrgChart component is now a generic component. It now infers the type of data, which determines the type of
itemprop of thenodeslot. So you don't need to type castitemfromanyto the type of data you are passing to the component now.
The component no longer returns an
apiobject through theon-readyevent. It now directly expose the following methods:resetZoom,zoomIn,zoomOut,expandAll, andcollapseAll. The originalminimap.togglemethod is removed. You can just manipulate the value of minimap you pass to the component to toggle the minimap.You can no longer use
app.use()to globally register the component because it's now a generic component. Just import the component and use it directly. Don't forget to import the stylesheet.The
jsonprop is deprecated. Please fetch the data first, type it, and then pass it to the component.