dependencies.js 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. // 按需加载依赖
  2. // object
  3. import assign from 'xe-utils/assign'
  4. import objectEach from 'xe-utils/objectEach'
  5. // import lastObjectEach from 'xe-utils/lastObjectEach'
  6. import objectMap from 'xe-utils/objectMap'
  7. import merge from 'xe-utils/merge'
  8. // array
  9. import map from 'xe-utils/map'
  10. import some from 'xe-utils/some'
  11. // import every from 'xe-utils/every'
  12. import includeArrays from 'xe-utils/includeArrays'
  13. import arrayEach from 'xe-utils/arrayEach'
  14. // import lastArrayEach from 'xe-utils/lastArrayEach'
  15. // import uniq from 'xe-utils/uniq'
  16. // import union from 'xe-utils/union'
  17. // import toArray from 'xe-utils/toArray'
  18. import orderBy from 'xe-utils/orderBy'
  19. // import shuffle from 'xe-utils/shuffle'
  20. // import sample from 'xe-utils/sample'
  21. import slice from 'xe-utils/slice'
  22. import filter from 'xe-utils/filter'
  23. // import findKey from 'xe-utils/findKey'
  24. // import includes from 'xe-utils/includes'
  25. import find from 'xe-utils/find'
  26. // import reduce from 'xe-utils/reduce'
  27. // import copyWithin from 'xe-utils/copyWithin'
  28. import chunk from 'xe-utils/chunk'
  29. // import zip from 'xe-utils/zip'
  30. // import unzip from 'xe-utils/unzip'
  31. // import zipObject from 'xe-utils/zipObject'
  32. // import pluck from 'xe-utils/pluck'
  33. // import invoke from 'xe-utils/invoke'
  34. import toArrayTree from 'xe-utils/toArrayTree'
  35. import toTreeArray from 'xe-utils/toTreeArray'
  36. import findTree from 'xe-utils/findTree'
  37. import eachTree from 'xe-utils/eachTree'
  38. import mapTree from 'xe-utils/mapTree'
  39. import filterTree from 'xe-utils/filterTree'
  40. import searchTree from 'xe-utils/searchTree'
  41. // import arrayIndexOf from 'xe-utils/arrayIndexOf'
  42. // import arrayLastIndexOf from 'xe-utils/arrayLastIndexOf'
  43. // base
  44. // import hasOwnProp from 'xe-utils/hasOwnProp'
  45. import isArray from 'xe-utils/isArray'
  46. import isNull from 'xe-utils/isNull'
  47. // import isNumberNaN from 'xe-utils/isNaN'
  48. import isUndefined from 'xe-utils/isUndefined'
  49. import isFunction from 'xe-utils/isFunction'
  50. import isObject from 'xe-utils/isObject'
  51. import isString from 'xe-utils/isString'
  52. import isPlainObject from 'xe-utils/isPlainObject'
  53. // import isLeapYear from 'xe-utils/isLeapYear'
  54. import isDate from 'xe-utils/isDate'
  55. import eqNull from 'xe-utils/eqNull'
  56. import each from 'xe-utils/each'
  57. // import forOf from 'xe-utils/forOf'
  58. // import lastForOf from 'xe-utils/lastForOf'
  59. import indexOf from 'xe-utils/indexOf'
  60. // import lastIndexOf from 'xe-utils/lastIndexOf'
  61. // import keys from 'xe-utils/keys'
  62. // import values from 'xe-utils/values'
  63. import clone from 'xe-utils/clone'
  64. import getSize from 'xe-utils/getSize'
  65. // import lastEach from 'xe-utils/lastEach'
  66. import remove from 'xe-utils/remove'
  67. import clear from 'xe-utils/clear'
  68. // import isNumberFinite from 'xe-utils/isFinite'
  69. // import isFloat from 'xe-utils/isFloat'
  70. // import isInteger from 'xe-utils/isInteger'
  71. import isBoolean from 'xe-utils/isBoolean'
  72. import isNumber from 'xe-utils/isNumber'
  73. import isRegExp from 'xe-utils/isRegExp'
  74. import isError from 'xe-utils/isError'
  75. // import isTypeError from 'xe-utils/isTypeError'
  76. import isEmpty from 'xe-utils/isEmpty'
  77. // import isSymbol from 'xe-utils/isSymbol'
  78. // import isArguments from 'xe-utils/isArguments'
  79. // import isElement from 'xe-utils/isElement'
  80. // import isDocument from 'xe-utils/isDocument'
  81. // import isWindow from 'xe-utils/isWindow'
  82. // import isFormData from 'xe-utils/isFormData'
  83. // import isMap from 'xe-utils/isMap'
  84. // import isWeakMap from 'xe-utils/isWeakMap'
  85. // import isSet from 'xe-utils/isSet'
  86. // import isWeakSet from 'xe-utils/isWeakSet'
  87. // import isMatch from 'xe-utils/isMatch'
  88. import isEqual from 'xe-utils/isEqual'
  89. import isEqualWith from 'xe-utils/isEqualWith'
  90. // import getType from 'xe-utils/getType'
  91. import uniqueId from 'xe-utils/uniqueId'
  92. import findIndexOf from 'xe-utils/findIndexOf'
  93. // import findLastIndexOf from 'xe-utils/findLastIndexOf'
  94. import toStringJSON from 'xe-utils/toStringJSON'
  95. import toJSONString from 'xe-utils/toJSONString'
  96. // import entries from 'xe-utils/entries'
  97. // import pick from 'xe-utils/pick'
  98. // import omit from 'xe-utils/omit'
  99. // import first from 'xe-utils/first'
  100. // import last from 'xe-utils/last'
  101. import has from 'xe-utils/has'
  102. import get from 'xe-utils/get'
  103. import set from 'xe-utils/set'
  104. // import groupBy from 'xe-utils/groupBy'
  105. // import countBy from 'xe-utils/countBy'
  106. // import range from 'xe-utils/range'
  107. import destructuring from 'xe-utils/destructuring'
  108. // number
  109. // import random from 'xe-utils/random'
  110. // import max from 'xe-utils/max'
  111. // import min from 'xe-utils/min'
  112. // import commafy from 'xe-utils/commafy'
  113. import round from 'xe-utils/round'
  114. import ceil from 'xe-utils/ceil'
  115. import floor from 'xe-utils/floor'
  116. import toFixed from 'xe-utils/toFixed'
  117. import toInteger from 'xe-utils/toInteger'
  118. import toNumber from 'xe-utils/toNumber'
  119. import add from 'xe-utils/add'
  120. import subtract from 'xe-utils/subtract'
  121. // import multiply from 'xe-utils/multiply'
  122. // import divide from 'xe-utils/divide'
  123. // import sum from 'xe-utils/sum'
  124. // import mean from 'xe-utils/mean'
  125. // date
  126. import getWhatYear from 'xe-utils/getWhatYear'
  127. import getWhatMonth from 'xe-utils/getWhatMonth'
  128. import getWhatDay from 'xe-utils/getWhatDay'
  129. import toStringDate from 'xe-utils/toStringDate'
  130. import toDateString from 'xe-utils/toDateString'
  131. // import now from 'xe-utils/now'
  132. // import timestamp from 'xe-utils/timestamp'
  133. import isDateSame from 'xe-utils/isDateSame'
  134. import getWhatWeek from 'xe-utils/getWhatWeek'
  135. // import getYearDay from 'xe-utils/getYearDay'
  136. import getYearWeek from 'xe-utils/getYearWeek'
  137. // import getMonthWeek from 'xe-utils/getMonthWeek'
  138. // import getDayOfYear from 'xe-utils/getDayOfYear'
  139. // import getDayOfMonth from 'xe-utils/getDayOfMonth'
  140. // import getDateDiff from 'xe-utils/getDateDiff'
  141. // string
  142. // import padEnd from 'xe-utils/padEnd'
  143. // import padStart from 'xe-utils/padStart'
  144. // import repeat from 'xe-utils/repeat'
  145. // import trim from 'xe-utils/trim'
  146. // import trimRight from 'xe-utils/trimRight'
  147. // import trimLeft from 'xe-utils/trimLeft'
  148. import escape from 'xe-utils/escape'
  149. // import unescape from 'xe-utils/unescape'
  150. import camelCase from 'xe-utils/camelCase'
  151. import kebabCase from 'xe-utils/kebabCase'
  152. // import startsWith from 'xe-utils/startsWith'
  153. // import endsWith from 'xe-utils/endsWith'
  154. import template from 'xe-utils/template'
  155. import toValueString from 'xe-utils/toValueString'
  156. // function
  157. // import property from 'xe-utils/property'
  158. // import bind from 'xe-utils/bind'
  159. // import once from 'xe-utils/once'
  160. // import after from 'xe-utils/after'
  161. // import before from 'xe-utils/before'
  162. import throttle from 'xe-utils/throttle'
  163. import debounce from 'xe-utils/debounce'
  164. // import delay from 'xe-utils/delay'
  165. // url
  166. // import unserialize from 'xe-utils/unserialize'
  167. // import serialize from 'xe-utils/serialize'
  168. // import parseUrl from 'xe-utils/parseUrl'
  169. // browse
  170. // import getBaseURL from 'xe-utils/getBaseURL'
  171. // import locat from 'xe-utils/locat'
  172. // import cookie from 'xe-utils/cookie'
  173. import browse from 'xe-utils/browse'
  174. export default {
  175. // object
  176. assign,
  177. objectEach,
  178. // lastObjectEach,
  179. objectMap,
  180. merge,
  181. // array
  182. map,
  183. some,
  184. // every,
  185. includeArrays,
  186. arrayEach,
  187. // lastArrayEach,
  188. // uniq,
  189. // union,
  190. // toArray,
  191. orderBy,
  192. // shuffle,
  193. // sample,
  194. slice,
  195. filter,
  196. // findKey,
  197. // includes,
  198. find,
  199. // sum,
  200. // mean,
  201. // reduce,
  202. // copyWithin,
  203. chunk,
  204. // zip,
  205. // unzip,
  206. // zipObject,
  207. // pluck,
  208. // invoke,
  209. toArrayTree,
  210. toTreeArray,
  211. findTree,
  212. eachTree,
  213. mapTree,
  214. filterTree,
  215. searchTree,
  216. // arrayIndexOf,
  217. // arrayLastIndexOf,
  218. // base
  219. // hasOwnProp,
  220. isArray,
  221. isNull,
  222. // isNaN: isNumberNaN,
  223. isUndefined,
  224. isFunction,
  225. isObject,
  226. isString,
  227. isPlainObject,
  228. // isLeapYear,
  229. isDate,
  230. eqNull,
  231. each,
  232. // forOf,
  233. // lastForOf,
  234. indexOf,
  235. // lastIndexOf,
  236. // keys,
  237. // values,
  238. clone,
  239. getSize,
  240. // lastEach,
  241. remove,
  242. clear,
  243. // isFinite: isNumberFinite,
  244. // isFloat,
  245. // isInteger,
  246. isBoolean,
  247. isNumber,
  248. isRegExp,
  249. isError,
  250. // isTypeError,
  251. isEmpty,
  252. // isSymbol,
  253. // isArguments,
  254. // isElement,
  255. // isDocument,
  256. // isWindow,
  257. // isFormData,
  258. // isMap,
  259. // isWeakMap,
  260. // isSet,
  261. // isWeakSet,
  262. // isMatch,
  263. isEqual,
  264. isEqualWith,
  265. // getType,
  266. uniqueId,
  267. findIndexOf,
  268. // findLastIndexOf,
  269. toStringJSON,
  270. toJSONString,
  271. // entries,
  272. // pick,
  273. // omit,
  274. // first,
  275. // last,
  276. has,
  277. get,
  278. set,
  279. // groupBy,
  280. // countBy,
  281. // range,
  282. destructuring,
  283. // number
  284. // random,
  285. // max,
  286. // min,
  287. // commafy,
  288. round,
  289. ceil,
  290. floor,
  291. toFixed,
  292. toInteger,
  293. toNumber,
  294. add,
  295. subtract,
  296. // multiply,
  297. // divide,
  298. // date
  299. getWhatYear,
  300. getWhatMonth,
  301. getWhatDay,
  302. toStringDate,
  303. toDateString,
  304. // now,
  305. // timestamp,
  306. isDateSame,
  307. getWhatWeek,
  308. // getYearDay,
  309. getYearWeek,
  310. // getMonthWeek,
  311. // getDayOfYear,
  312. // getDayOfMonth,
  313. // getDateDiff,
  314. // string
  315. // padEnd,
  316. // padStart,
  317. // repeat,
  318. // trim,
  319. // trimRight,
  320. // trimLeft,
  321. escape,
  322. // unescape,
  323. camelCase,
  324. kebabCase,
  325. // startsWith,
  326. // endsWith,
  327. template,
  328. toValueString,
  329. // function
  330. // property,
  331. // bind,
  332. // once,
  333. // after,
  334. // before,
  335. throttle,
  336. debounce,
  337. // delay,
  338. // url
  339. // unserialize,
  340. // serialize,
  341. // parseUrl,
  342. // browse
  343. // getBaseURL,
  344. // locat,
  345. // cookie,
  346. browse
  347. }