UNPKG

@jecloud/func

Version:

JECloud 功能库

1 lines 293 B
import{useTreeDD as e}from"./use-tree-dd";import{useTreeFunc as r}from"./use-tree-func";import{FuncTreeTypeEnum as t}from"../../../data/enum";export function useTree(o){var p=o.props,n=o.context;switch(p.type){case t.DD:return e({props:p,context:n});case t.FUNC:return r({props:p,context:n})}}