UNPKG

xe-utils

Version:

JavaScript 函数库、工具类

10 lines (8 loc) • 352 B
import staticChildren from './staticChildren.js';function helperCreateTreeFunc (handle) { return function (obj, iterate, options, context) { var opts = options || {} var optChildren = opts.children || staticChildren return handle(null, obj, iterate, context, [], [], optChildren, opts) } } export default helperCreateTreeFunc