vue-business-kit 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/utils.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-CnU098lZ.js");exports.add=e.add;exports.after=e.after;exports.ary=e.ary;exports.assign=e.assign;exports.assignIn=e.assignIn;exports.assignInWith=e.assignInWith;exports.assignWith=e.assignWith;exports.at=e.at;exports.attempt=e.attempt;exports.before=e.before;exports.bind=e.bind;exports.bindAll=e.bindAll;exports.bindKey=e.bindKey;exports.camelCase=e.camelCase;exports.capitalize=e.capitalize;exports.castArray=e.castArray;exports.ceil=e.ceil;exports.chain=e.chain;exports.chunk=e.chunk;exports.clamp=e.clamp;exports.clone=e.clone;exports.cloneDeep=e.cloneDeep;exports.cloneDeepWith=e.cloneDeepWith;exports.cloneWith=e.cloneWith;exports.commit=e.wrapperCommit;exports.compact=e.compact;exports.concat=e.concat;exports.cond=e.cond;exports.conforms=e.conforms;exports.conformsTo=e.conformsTo;exports.constant=e.constant;exports.countBy=e.countBy;exports.create=e.create;exports.curry=e.curry;exports.curryRight=e.curryRight;exports.debounce=e.debounce;exports.deburr=e.deburr;exports.defaultTo=e.defaultTo;exports.defaults=e.defaults;exports.defaultsDeep=e.defaultsDeep;exports.defer=e.defer;exports.delay=e.delay;exports.difference=e.difference;exports.differenceBy=e.differenceBy;exports.differenceWith=e.differenceWith;exports.divide=e.divide;exports.drop=e.drop;exports.dropRight=e.dropRight;exports.dropRightWhile=e.dropRightWhile;exports.dropWhile=e.dropWhile;exports.each=e.forEach;exports.eachRight=e.forEachRight;exports.endsWith=e.endsWith;exports.entries=e.toPairs;exports.entriesIn=e.toPairsIn;exports.eq=e.eq;exports.escape=e.escape;exports.escapeRegExp=e.escapeRegExp;exports.every=e.every;exports.extend=e.assignIn;exports.extendWith=e.assignInWith;exports.fill=e.fill;exports.filter=e.filter;exports.find=e.find;exports.findIndex=e.findIndex;exports.findKey=e.findKey;exports.findLast=e.findLast;exports.findLastIndex=e.findLastIndex;exports.findLastKey=e.findLastKey;exports.first=e.head;exports.flatMap=e.flatMap;exports.flatMapDeep=e.flatMapDeep;exports.flatMapDepth=e.flatMapDepth;exports.flatten=e.flatten;exports.flattenDeep=e.flattenDeep;exports.flattenDepth=e.flattenDepth;exports.flip=e.flip;exports.floor=e.floor;exports.flow=e.flow;exports.flowRight=e.flowRight;exports.forEach=e.forEach;exports.forEachRight=e.forEachRight;exports.forIn=e.forIn;exports.forInRight=e.forInRight;exports.forOwn=e.forOwn;exports.forOwnRight=e.forOwnRight;exports.formatNumber=e.formatNumber;exports.fromPairs=e.fromPairs;exports.functions=e.functions;exports.functionsIn=e.functionsIn;exports.get=e.get;exports.groupBy=e.groupBy;exports.gt=e.gt;exports.gte=e.gte;exports.has=e.has;exports.hasIn=e.hasIn;exports.head=e.head;exports.identity=e.identity;exports.inRange=e.inRange;exports.includes=e.includes;exports.indexOf=e.indexOf;exports.initial=e.initial;exports.intersection=e.intersection;exports.intersectionBy=e.intersectionBy;exports.intersectionWith=e.intersectionWith;exports.invert=e.invert;exports.invertBy=e.invertBy;exports.invoke=e.invoke;exports.invokeMap=e.invokeMap;exports.isArguments=e.isArguments;exports.isArray=e.isArray;exports.isArrayBuffer=e.isArrayBuffer;exports.isArrayLike=e.isArrayLike;exports.isArrayLikeObject=e.isArrayLikeObject;exports.isBoolean=e.isBoolean;exports.isBuffer=e.isBuffer;exports.isDate=e.isDate;exports.isElement=e.isElement;exports.isEmpty=e.isEmpty;exports.isEqual=e.isEqual;exports.isEqualWith=e.isEqualWith;exports.isError=e.isError;exports.isFinite=e.isFinite;exports.isFunction=e.isFunction;exports.isInteger=e.isInteger;exports.isLength=e.isLength;exports.isMap=e.isMap;exports.isMatch=e.isMatch;exports.isMatchWith=e.isMatchWith;exports.isNaN=e.isNaN;exports.isNative=e.isNative;exports.isNil=e.isNil;exports.isNull=e.isNull;exports.isNumber=e.isNumber;exports.isObject=e.isObject;exports.isObjectLike=e.isObjectLike;exports.isPlainObject=e.isPlainObject;exports.isRegExp=e.isRegExp;exports.isSafeInteger=e.isSafeInteger;exports.isSet=e.isSet;exports.isString=e.isString;exports.isSymbol=e.isSymbol;exports.isTypedArray=e.isTypedArray;exports.isUndefined=e.isUndefined;exports.isWeakMap=e.isWeakMap;exports.isWeakSet=e.isWeakSet;exports.iteratee=e.iteratee;exports.join=e.join;exports.kebabCase=e.kebabCase;exports.keyBy=e.keyBy;exports.keys=e.keys;exports.keysIn=e.keysIn;exports.last=e.last;exports.lastIndexOf=e.lastIndexOf;exports.lodash=e.lodash;exports.lowerCase=e.lowerCase;exports.lowerFirst=e.lowerFirst;exports.lt=e.lt;exports.lte=e.lte;exports.map=e.map;exports.mapKeys=e.mapKeys;exports.mapValues=e.mapValues;exports.matches=e.matches;exports.matchesProperty=e.matchesProperty;exports.max=e.max;exports.maxBy=e.maxBy;exports.mean=e.mean;exports.meanBy=e.meanBy;exports.memoize=e.memoize;exports.merge=e.merge;exports.mergeWith=e.mergeWith;exports.method=e.method;exports.methodOf=e.methodOf;exports.min=e.min;exports.minBy=e.minBy;exports.mixin=e.mixin;exports.multiply=e.multiply;exports.negate=e.negate;exports.next=e.wrapperNext;exports.noop=e.noop;exports.now=e.now;exports.nth=e.nth;exports.nthArg=e.nthArg;exports.omit=e.omit;exports.omitBy=e.omitBy;exports.once=e.once;exports.orderBy=e.orderBy;exports.over=e.over;exports.overArgs=e.overArgs;exports.overEvery=e.overEvery;exports.overSome=e.overSome;exports.pad=e.pad;exports.padEnd=e.padEnd;exports.padStart=e.padStart;exports.parseInt=e.parseInt;exports.partial=e.partial;exports.partialRight=e.partialRight;exports.partition=e.partition;exports.pick=e.pick;exports.pickBy=e.pickBy;exports.plant=e.wrapperPlant;exports.property=e.property;exports.propertyOf=e.propertyOf;exports.pull=e.pull;exports.pullAll=e.pullAll;exports.pullAllBy=e.pullAllBy;exports.pullAllWith=e.pullAllWith;exports.pullAt=e.pullAt;exports.random=e.random;exports.range=e.range;exports.rangeRight=e.rangeRight;exports.rearg=e.rearg;exports.reduce=e.reduce;exports.reduceRight=e.reduceRight;exports.reject=e.reject;exports.remove=e.remove;exports.repeat=e.repeat;exports.replace=e.replace;exports.rest=e.rest;exports.result=e.result;exports.reverse=e.reverse;exports.round=e.round;exports.sample=e.sample;exports.sampleSize=e.sampleSize;exports.set=e.set;exports.setWith=e.setWith;exports.shuffle=e.shuffle;exports.size=e.size;exports.slice=e.slice;exports.snakeCase=e.snakeCase;exports.some=e.some;exports.sortBy=e.sortBy;exports.sortedIndex=e.sortedIndex;exports.sortedIndexBy=e.sortedIndexBy;exports.sortedIndexOf=e.sortedIndexOf;exports.sortedLastIndex=e.sortedLastIndex;exports.sortedLastIndexBy=e.sortedLastIndexBy;exports.sortedLastIndexOf=e.sortedLastIndexOf;exports.sortedUniq=e.sortedUniq;exports.sortedUniqBy=e.sortedUniqBy;exports.split=e.split;exports.spread=e.spread;exports.startCase=e.startCase;exports.startsWith=e.startsWith;exports.stubArray=e.stubArray;exports.stubFalse=e.stubFalse;exports.stubObject=e.stubObject;exports.stubString=e.stubString;exports.stubTrue=e.stubTrue;exports.subtract=e.subtract;exports.sum=e.sum;exports.sumBy=e.sumBy;exports.tail=e.tail;exports.take=e.take;exports.takeRight=e.takeRight;exports.takeRightWhile=e.takeRightWhile;exports.takeWhile=e.takeWhile;exports.tap=e.tap;exports.template=e.template;exports.templateSettings=e.templateSettings;exports.throttle=e.throttle;exports.thru=e.thru;exports.times=e.times;exports.toArray=e.toArray;exports.toFinite=e.toFinite;exports.toInteger=e.toInteger;exports.toIterator=e.wrapperToIterator;exports.toJSON=e.wrapperValue;exports.toLength=e.toLength;exports.toLower=e.toLower;exports.toNumber=e.toNumber;exports.toPairs=e.toPairs;exports.toPairsIn=e.toPairsIn;exports.toPath=e.toPath;exports.toPlainObject=e.toPlainObject;exports.toSafeInteger=e.toSafeInteger;exports.toString=e.toString;exports.toUpper=e.toUpper;exports.transform=e.transform;exports.trim=e.trim;exports.trimEnd=e.trimEnd;exports.trimStart=e.trimStart;exports.truncate=e.truncate;exports.unary=e.unary;exports.unescape=e.unescape;exports.union=e.union;exports.unionBy=e.unionBy;exports.unionWith=e.unionWith;exports.uniq=e.uniq;exports.uniqBy=e.uniqBy;exports.uniqWith=e.uniqWith;exports.uniqueId=e.uniqueId;exports.unset=e.unset;exports.unzip=e.unzip;exports.unzipWith=e.unzipWith;exports.update=e.update;exports.updateWith=e.updateWith;exports.upperCase=e.upperCase;exports.upperFirst=e.upperFirst;exports.value=e.wrapperValue;exports.valueOf=e.wrapperValue;exports.values=e.values;exports.valuesIn=e.valuesIn;exports.without=e.without;exports.words=e.words;exports.wrap=e.wrap;exports.wrapperAt=e.wrapperAt;exports.wrapperChain=e.wrapperChain;exports.wrapperCommit=e.wrapperCommit;exports.wrapperLodash=e.lodash;exports.wrapperNext=e.wrapperNext;exports.wrapperPlant=e.wrapperPlant;exports.wrapperReverse=e.wrapperReverse;exports.wrapperToIterator=e.wrapperToIterator;exports.wrapperValue=e.wrapperValue;exports.xor=e.xor;exports.xorBy=e.xorBy;exports.xorWith=e.xorWith;exports.zip=e.zip;exports.zipObject=e.zipObject;exports.zipObjectDeep=e.zipObjectDeep;exports.zipWith=e.zipWith;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-DhJjhCTh.js");exports.add=e.add;exports.after=e.after;exports.ary=e.ary;exports.assign=e.assign;exports.assignIn=e.assignIn;exports.assignInWith=e.assignInWith;exports.assignWith=e.assignWith;exports.at=e.at;exports.attempt=e.attempt;exports.before=e.before;exports.bind=e.bind;exports.bindAll=e.bindAll;exports.bindKey=e.bindKey;exports.camelCase=e.camelCase;exports.capitalize=e.capitalize;exports.castArray=e.castArray;exports.ceil=e.ceil;exports.chain=e.chain;exports.chunk=e.chunk;exports.clamp=e.clamp;exports.clone=e.clone;exports.cloneDeep=e.cloneDeep;exports.cloneDeepWith=e.cloneDeepWith;exports.cloneWith=e.cloneWith;exports.commit=e.wrapperCommit;exports.compact=e.compact;exports.concat=e.concat;exports.cond=e.cond;exports.conforms=e.conforms;exports.conformsTo=e.conformsTo;exports.constant=e.constant;exports.countBy=e.countBy;exports.create=e.create;exports.curry=e.curry;exports.curryRight=e.curryRight;exports.debounce=e.debounce;exports.deburr=e.deburr;exports.defaultTo=e.defaultTo;exports.defaults=e.defaults;exports.defaultsDeep=e.defaultsDeep;exports.defer=e.defer;exports.delay=e.delay;exports.difference=e.difference;exports.differenceBy=e.differenceBy;exports.differenceWith=e.differenceWith;exports.divide=e.divide;exports.drop=e.drop;exports.dropRight=e.dropRight;exports.dropRightWhile=e.dropRightWhile;exports.dropWhile=e.dropWhile;exports.each=e.forEach;exports.eachRight=e.forEachRight;exports.endsWith=e.endsWith;exports.entries=e.toPairs;exports.entriesIn=e.toPairsIn;exports.eq=e.eq;exports.escape=e.escape;exports.escapeRegExp=e.escapeRegExp;exports.every=e.every;exports.exportTableToExcel=e.exportTableToExcel;exports.extend=e.assignIn;exports.extendWith=e.assignInWith;exports.fill=e.fill;exports.filter=e.filter;exports.find=e.find;exports.findIndex=e.findIndex;exports.findKey=e.findKey;exports.findLast=e.findLast;exports.findLastIndex=e.findLastIndex;exports.findLastKey=e.findLastKey;exports.first=e.head;exports.flatMap=e.flatMap;exports.flatMapDeep=e.flatMapDeep;exports.flatMapDepth=e.flatMapDepth;exports.flatten=e.flatten;exports.flattenDeep=e.flattenDeep;exports.flattenDepth=e.flattenDepth;exports.flip=e.flip;exports.floor=e.floor;exports.flow=e.flow;exports.flowRight=e.flowRight;exports.forEach=e.forEach;exports.forEachRight=e.forEachRight;exports.forIn=e.forIn;exports.forInRight=e.forInRight;exports.forOwn=e.forOwn;exports.forOwnRight=e.forOwnRight;exports.formatNumber=e.formatNumber;exports.fromPairs=e.fromPairs;exports.functions=e.functions;exports.functionsIn=e.functionsIn;exports.get=e.get;exports.groupBy=e.groupBy;exports.gt=e.gt;exports.gte=e.gte;exports.has=e.has;exports.hasIn=e.hasIn;exports.head=e.head;exports.identity=e.identity;exports.inRange=e.inRange;exports.includes=e.includes;exports.indexOf=e.indexOf;exports.initial=e.initial;exports.intersection=e.intersection;exports.intersectionBy=e.intersectionBy;exports.intersectionWith=e.intersectionWith;exports.invert=e.invert;exports.invertBy=e.invertBy;exports.invoke=e.invoke;exports.invokeMap=e.invokeMap;exports.isArguments=e.isArguments;exports.isArray=e.isArray;exports.isArrayBuffer=e.isArrayBuffer;exports.isArrayLike=e.isArrayLike;exports.isArrayLikeObject=e.isArrayLikeObject;exports.isBoolean=e.isBoolean;exports.isBuffer=e.isBuffer;exports.isDate=e.isDate;exports.isElement=e.isElement;exports.isEmpty=e.isEmpty;exports.isEqual=e.isEqual;exports.isEqualWith=e.isEqualWith;exports.isError=e.isError;exports.isFinite=e.isFinite;exports.isFunction=e.isFunction;exports.isInteger=e.isInteger;exports.isLength=e.isLength;exports.isMap=e.isMap;exports.isMatch=e.isMatch;exports.isMatchWith=e.isMatchWith;exports.isNaN=e.isNaN;exports.isNative=e.isNative;exports.isNil=e.isNil;exports.isNull=e.isNull;exports.isNumber=e.isNumber;exports.isObject=e.isObject;exports.isObjectLike=e.isObjectLike;exports.isPlainObject=e.isPlainObject;exports.isRegExp=e.isRegExp;exports.isSafeInteger=e.isSafeInteger;exports.isSet=e.isSet;exports.isString=e.isString;exports.isSymbol=e.isSymbol;exports.isTypedArray=e.isTypedArray;exports.isUndefined=e.isUndefined;exports.isWeakMap=e.isWeakMap;exports.isWeakSet=e.isWeakSet;exports.iteratee=e.iteratee;exports.join=e.join;exports.kebabCase=e.kebabCase;exports.keyBy=e.keyBy;exports.keys=e.keys;exports.keysIn=e.keysIn;exports.last=e.last;exports.lastIndexOf=e.lastIndexOf;exports.lodash=e.lodash;exports.lowerCase=e.lowerCase;exports.lowerFirst=e.lowerFirst;exports.lt=e.lt;exports.lte=e.lte;exports.map=e.map;exports.mapKeys=e.mapKeys;exports.mapValues=e.mapValues;exports.matches=e.matches;exports.matchesProperty=e.matchesProperty;exports.max=e.max;exports.maxBy=e.maxBy;exports.mean=e.mean;exports.meanBy=e.meanBy;exports.memoize=e.memoize;exports.merge=e.merge;exports.mergeWith=e.mergeWith;exports.method=e.method;exports.methodOf=e.methodOf;exports.min=e.min;exports.minBy=e.minBy;exports.mixin=e.mixin;exports.multiply=e.multiply;exports.negate=e.negate;exports.next=e.wrapperNext;exports.noop=e.noop;exports.now=e.now;exports.nth=e.nth;exports.nthArg=e.nthArg;exports.omit=e.omit;exports.omitBy=e.omitBy;exports.once=e.once;exports.orderBy=e.orderBy;exports.over=e.over;exports.overArgs=e.overArgs;exports.overEvery=e.overEvery;exports.overSome=e.overSome;exports.pad=e.pad;exports.padEnd=e.padEnd;exports.padStart=e.padStart;exports.parseInt=e.parseInt;exports.partial=e.partial;exports.partialRight=e.partialRight;exports.partition=e.partition;exports.pick=e.pick;exports.pickBy=e.pickBy;exports.plant=e.wrapperPlant;exports.property=e.property;exports.propertyOf=e.propertyOf;exports.pull=e.pull;exports.pullAll=e.pullAll;exports.pullAllBy=e.pullAllBy;exports.pullAllWith=e.pullAllWith;exports.pullAt=e.pullAt;exports.random=e.random;exports.range=e.range;exports.rangeRight=e.rangeRight;exports.rearg=e.rearg;exports.reduce=e.reduce;exports.reduceRight=e.reduceRight;exports.reject=e.reject;exports.remove=e.remove;exports.repeat=e.repeat;exports.replace=e.replace;exports.rest=e.rest;exports.result=e.result;exports.reverse=e.reverse;exports.round=e.round;exports.sample=e.sample;exports.sampleSize=e.sampleSize;exports.set=e.set;exports.setWith=e.setWith;exports.shuffle=e.shuffle;exports.size=e.size;exports.slice=e.slice;exports.snakeCase=e.snakeCase;exports.some=e.some;exports.sortBy=e.sortBy;exports.sortedIndex=e.sortedIndex;exports.sortedIndexBy=e.sortedIndexBy;exports.sortedIndexOf=e.sortedIndexOf;exports.sortedLastIndex=e.sortedLastIndex;exports.sortedLastIndexBy=e.sortedLastIndexBy;exports.sortedLastIndexOf=e.sortedLastIndexOf;exports.sortedUniq=e.sortedUniq;exports.sortedUniqBy=e.sortedUniqBy;exports.split=e.split;exports.spread=e.spread;exports.startCase=e.startCase;exports.startsWith=e.startsWith;exports.stubArray=e.stubArray;exports.stubFalse=e.stubFalse;exports.stubObject=e.stubObject;exports.stubString=e.stubString;exports.stubTrue=e.stubTrue;exports.subtract=e.subtract;exports.sum=e.sum;exports.sumBy=e.sumBy;exports.tail=e.tail;exports.take=e.take;exports.takeRight=e.takeRight;exports.takeRightWhile=e.takeRightWhile;exports.takeWhile=e.takeWhile;exports.tap=e.tap;exports.template=e.template;exports.templateSettings=e.templateSettings;exports.throttle=e.throttle;exports.thru=e.thru;exports.times=e.times;exports.toArray=e.toArray;exports.toArrayTree=e.toArrayTree;exports.toFinite=e.toFinite;exports.toInteger=e.toInteger;exports.toIterator=e.wrapperToIterator;exports.toJSON=e.wrapperValue;exports.toLength=e.toLength;exports.toLower=e.toLower;exports.toNumber=e.toNumber;exports.toPairs=e.toPairs;exports.toPairsIn=e.toPairsIn;exports.toPath=e.toPath;exports.toPlainObject=e.toPlainObject;exports.toSafeInteger=e.toSafeInteger;exports.toString=e.toString;exports.toUpper=e.toUpper;exports.transform=e.transform;exports.trim=e.trim;exports.trimEnd=e.trimEnd;exports.trimStart=e.trimStart;exports.truncate=e.truncate;exports.unary=e.unary;exports.unescape=e.unescape;exports.union=e.union;exports.unionBy=e.unionBy;exports.unionWith=e.unionWith;exports.uniq=e.uniq;exports.uniqBy=e.uniqBy;exports.uniqWith=e.uniqWith;exports.uniqueId=e.uniqueId;exports.unset=e.unset;exports.unzip=e.unzip;exports.unzipWith=e.unzipWith;exports.update=e.update;exports.updateWith=e.updateWith;exports.upperCase=e.upperCase;exports.upperFirst=e.upperFirst;exports.value=e.wrapperValue;exports.valueOf=e.wrapperValue;exports.values=e.values;exports.valuesIn=e.valuesIn;exports.without=e.without;exports.words=e.words;exports.wrap=e.wrap;exports.wrapperAt=e.wrapperAt;exports.wrapperChain=e.wrapperChain;exports.wrapperCommit=e.wrapperCommit;exports.wrapperLodash=e.lodash;exports.wrapperNext=e.wrapperNext;exports.wrapperPlant=e.wrapperPlant;exports.wrapperReverse=e.wrapperReverse;exports.wrapperToIterator=e.wrapperToIterator;exports.wrapperValue=e.wrapperValue;exports.xor=e.xor;exports.xorBy=e.xorBy;exports.xorWith=e.xorWith;exports.zip=e.zip;exports.zipObject=e.zipObject;exports.zipObjectDeep=e.zipObjectDeep;exports.zipWith=e.zipWith;
package/dist/utils.d.ts CHANGED
@@ -1,3 +1,15 @@
1
+ import { DefaultRow } from 'element-plus/es/components/table/src/table/defaults.mjs';
2
+ import { FormItemProps } from 'element-plus';
3
+ import { TableColumnCtx as TableColumnCtx_2 } from 'element-plus';
4
+
5
+ /**
6
+ * 将JSON数据导出为XLSX文件
7
+ * @param data 表格数据
8
+ * @param columns 表格列配置
9
+ * @param filename 导出文件名
10
+ */
11
+ export declare function exportTableToExcel(data: any[], columns: TableColumnCtx[], filename: string): void;
12
+
1
13
  /**
2
14
  * 数值格式化函数
3
15
  * @param value 要格式化的数值
@@ -20,7 +32,62 @@ export declare interface FormatNumberOptions {
20
32
  showUnit?: boolean;
21
33
  }
22
34
 
35
+ declare interface FormItemCtx extends Partial<FormItemProps> {
36
+ type: string;
37
+ componentProps?: Record<string, any>;
38
+ children?: Record<string, any>[];
39
+ slot?: boolean | {
40
+ default?: string | boolean;
41
+ label?: string | boolean;
42
+ error?: string | boolean;
43
+ };
44
+ }
45
+
46
+ declare interface TableColumnCtx<T extends DefaultRow = DefaultRow> extends Partial<Omit<TableColumnCtx_2<T>, "children">> {
47
+ slots?: boolean | {
48
+ default?: string | boolean;
49
+ header?: string | boolean;
50
+ filterIcon?: string | boolean;
51
+ expand?: string | boolean;
52
+ };
53
+ numberFormat?: boolean | FormatNumberOptions;
54
+ children?: TableColumnCtx[];
55
+ edit?: FormItemCtx;
56
+ }
57
+
58
+ /**
59
+ * 将一个带层级的数据列表转成树结构
60
+ * @param list 数组
61
+ * @param options {strict: false, parentKey: 'parentId', key: 'id', children: 'children', mapChildren: '', data: 'data'}
62
+ * @returns 树结构数组
63
+ */
64
+ export declare function toArrayTree(array: any, options?: ToArrayTreeOptions): any[];
65
+
66
+ export declare interface ToArrayTreeOptions {
67
+ strict?: boolean;
68
+ key?: string;
69
+ parentKey?: string;
70
+ children?: string;
71
+ mapChildren?: string;
72
+ sortKey?: any;
73
+ data?: string;
74
+ /**
75
+ * 已废弃,被 sortKey: { ...,order: 'desc' } 替换
76
+ * @deprecated
77
+ */
78
+ reverse?: boolean;
79
+ }
80
+
81
+ export declare interface ToTreeArrayOptions {
82
+ key?: string;
83
+ parentKey?: string;
84
+ children?: string;
85
+ data?: string;
86
+ updated?: boolean;
87
+ clear?: boolean;
88
+ }
89
+
23
90
 
24
- export * from "lodash-es";
91
+ export * from "lodash-es";
25
92
 
26
- export { }
93
+ export { }