zartui 2.1.6 → 2.1.8

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.
Files changed (378) hide show
  1. package/es/action-sheet/index.js +15 -26
  2. package/es/area/index.js +5 -41
  3. package/es/avatar/index.js +3 -16
  4. package/es/back-top/index.js +4 -19
  5. package/es/badge/index.js +4 -12
  6. package/es/button/index.js +20 -40
  7. package/es/calendar/components/Header.js +3 -12
  8. package/es/calendar/components/Month.js +12 -65
  9. package/es/calendar/index.js +23 -94
  10. package/es/calendar/types.js +9 -15
  11. package/es/calendar/utils.js +5 -16
  12. package/es/cascader/index.js +4 -37
  13. package/es/cell/index.js +19 -37
  14. package/es/cell-group/index.js +5 -8
  15. package/es/checkbox/index.js +4 -11
  16. package/es/checkbox-group/index.js +4 -9
  17. package/es/col/index.js +6 -11
  18. package/es/collapse/index.js +2 -5
  19. package/es/collapse-item/index.js +19 -35
  20. package/es/count-down/index.js +2 -15
  21. package/es/count-down/utils.js +3 -10
  22. package/es/datetime-picker/DatePicker.js +12 -70
  23. package/es/datetime-picker/TimePicker.js +10 -23
  24. package/es/datetime-picker/index.js +2 -26
  25. package/es/datetime-picker/shared.js +5 -21
  26. package/es/datetime-picker/utils.js +0 -5
  27. package/es/dialog/Dialog.js +6 -21
  28. package/es/dialog/index.js +0 -16
  29. package/es/divider/index.js +5 -6
  30. package/es/dropdown-item/index.js +13 -39
  31. package/es/dropdown-menu/index.js +4 -9
  32. package/es/empty/images/Developing.js +0 -3
  33. package/es/empty/images/EmptyInterface.js +0 -3
  34. package/es/empty/images/EmptyResult.js +0 -3
  35. package/es/empty/images/FindNull.js +0 -3
  36. package/es/empty/images/NetworkError.js +0 -3
  37. package/es/empty/images/NotFound.js +0 -3
  38. package/es/empty/images/ReportSuccess.js +0 -3
  39. package/es/empty/images/Restricted.js +0 -3
  40. package/es/empty/images/ServerError.js +0 -3
  41. package/es/empty/index.js +3 -11
  42. package/es/field/index.js +21 -86
  43. package/es/fold-dialog/index.js +5 -20
  44. package/es/form/index.js +2 -18
  45. package/es/grid/index.js +2 -6
  46. package/es/grid-item/index.js +18 -30
  47. package/es/hierarchy-select/breadcrumb.js +2 -6
  48. package/es/hierarchy-select/index.js +4 -14
  49. package/es/hierarchy-select/markList.js +5 -30
  50. package/es/hierarchy-select/svg/SubIcon.js +0 -1
  51. package/es/icon/index.js +9 -13
  52. package/es/image/index.js +3 -19
  53. package/es/image-preview/ImagePreview.js +4 -8
  54. package/es/image-preview/ImagePreviewItem.js +14 -30
  55. package/es/image-preview/index.js +0 -12
  56. package/es/image-preview/shared.js +2 -4
  57. package/es/index-anchor/index.js +2 -6
  58. package/es/index-bar/IndexIndicate.js +0 -1
  59. package/es/index-bar/index.js +7 -28
  60. package/es/index.js +1 -4
  61. package/es/info/index.js +6 -8
  62. package/es/list/index.js +11 -27
  63. package/es/loading/index.js +7 -15
  64. package/es/locale/index.js +0 -2
  65. package/es/media-picker/index.js +35 -128
  66. package/es/media-picker/media-util.js +2 -5
  67. package/es/media-picker/type.js +9 -14
  68. package/es/media-picker/wx-util.js +0 -1
  69. package/es/media-player/index.js +7 -19
  70. package/es/mixins/bind-event.js +0 -3
  71. package/es/mixins/checkbox.js +5 -11
  72. package/es/mixins/click-outside.js +0 -2
  73. package/es/mixins/close-on-popstate.js +0 -1
  74. package/es/mixins/field.js +0 -2
  75. package/es/mixins/popup/index.js +12 -28
  76. package/es/mixins/popup/overlay.js +1 -11
  77. package/es/mixins/portal.js +2 -8
  78. package/es/mixins/relation.js +0 -8
  79. package/es/mixins/slots.js +1 -4
  80. package/es/mixins/touch.js +4 -9
  81. package/es/multiple-picker/MultiplePickerOptions.js +3 -20
  82. package/es/multiple-picker/index.js +5 -17
  83. package/es/nav-bar/index.js +4 -12
  84. package/es/notice-bar/index.js +10 -28
  85. package/es/number-keyboard/Key.js +2 -10
  86. package/es/number-keyboard/index.js +4 -19
  87. package/es/overlay/index.js +5 -8
  88. package/es/password-input/index.js +10 -16
  89. package/es/picker/PickerColumn.js +21 -56
  90. package/es/picker/index.js +12 -45
  91. package/es/popover/index.js +65 -90
  92. package/es/popup/index.js +5 -21
  93. package/es/pull-refresh/index.js +10 -29
  94. package/es/radio/index.js +2 -4
  95. package/es/radio-group/index.js +2 -4
  96. package/es/rate/index.js +12 -26
  97. package/es/row/index.js +3 -9
  98. package/es/search/index.js +9 -15
  99. package/es/signature/bezier.js +13 -20
  100. package/es/signature/force-landscape.js +0 -5
  101. package/es/signature/index.js +5 -24
  102. package/es/signature/point.js +1 -6
  103. package/es/signature/throttle.js +1 -10
  104. package/es/skeleton/index.js +5 -15
  105. package/es/slider/index.js +19 -55
  106. package/es/step/index.js +5 -12
  107. package/es/stepper/index.js +11 -39
  108. package/es/steps/index.js +2 -4
  109. package/es/sticky/index.js +8 -50
  110. package/es/swipe/index.js +19 -62
  111. package/es/swipe-cell/index.js +7 -23
  112. package/es/swipe-item/index.js +10 -19
  113. package/es/switch/index.js +8 -10
  114. package/es/switch/shared.js +1 -0
  115. package/es/switch-cell/index.js +7 -7
  116. package/es/tab/index.js +4 -15
  117. package/es/tabbar/index.js +4 -14
  118. package/es/tabbar-item/index.js +7 -15
  119. package/es/table/index.js +5 -28
  120. package/es/table/type.js +3 -4
  121. package/es/tabs/Content.js +5 -9
  122. package/es/tabs/Title.js +11 -20
  123. package/es/tabs/index.js +16 -51
  124. package/es/tabs/utils.js +0 -8
  125. package/es/tag/index.js +13 -17
  126. package/es/text-ellipsis/index.js +25 -42
  127. package/es/timeline/index.js +2 -25
  128. package/es/toast/Toast.js +11 -23
  129. package/es/toast/index.js +6 -33
  130. package/es/toast/lock-click.js +0 -2
  131. package/es/uploader/index.js +11 -62
  132. package/es/uploader/utils.js +0 -10
  133. package/es/utils/constant.js +2 -1
  134. package/es/utils/create/bem.js +1 -5
  135. package/es/utils/create/component.js +4 -8
  136. package/es/utils/create/i18n.js +0 -2
  137. package/es/utils/deep-assign.js +0 -4
  138. package/es/utils/deep-clone.js +0 -3
  139. package/es/utils/dom/event.js +2 -5
  140. package/es/utils/dom/node.js +0 -1
  141. package/es/utils/dom/raf.js +7 -6
  142. package/es/utils/dom/reset-scroll.js +2 -1
  143. package/es/utils/dom/scroll.js +8 -17
  144. package/es/utils/dom/style.js +3 -2
  145. package/es/utils/easings.js +2 -4
  146. package/es/utils/format/date-util.js +54 -122
  147. package/es/utils/format/number.js +2 -11
  148. package/es/utils/format/string.js +0 -3
  149. package/es/utils/format/unit.js +2 -12
  150. package/es/utils/functional.js +6 -9
  151. package/es/utils/getScroll.js +0 -5
  152. package/es/utils/index.js +3 -5
  153. package/es/utils/interceptor.js +2 -4
  154. package/es/utils/media/image-util.js +7 -19
  155. package/es/utils/raf.js +4 -12
  156. package/es/utils/router.js +7 -6
  157. package/es/utils/scrollTo.js +10 -15
  158. package/es/utils/validate/number.js +2 -2
  159. package/es/utils/vnodes.js +2 -8
  160. package/lib/action-sheet/index.js +12 -37
  161. package/lib/area/index.js +7 -48
  162. package/lib/avatar/index.js +5 -21
  163. package/lib/back-top/index.js +6 -28
  164. package/lib/badge/index.js +6 -18
  165. package/lib/button/index.js +20 -52
  166. package/lib/calendar/FastForwardImg.js +2 -3
  167. package/lib/calendar/SlowForwardImg.js +2 -3
  168. package/lib/calendar/components/Header.js +5 -21
  169. package/lib/calendar/components/Month.js +14 -74
  170. package/lib/calendar/index.js +23 -109
  171. package/lib/calendar/types.js +11 -22
  172. package/lib/calendar/utils.js +18 -46
  173. package/lib/cascader/index.js +6 -49
  174. package/lib/cell/index.js +19 -50
  175. package/lib/cell/shared.js +2 -3
  176. package/lib/cell-group/index.js +6 -17
  177. package/lib/checkbox/index.js +6 -17
  178. package/lib/checkbox-group/index.js +6 -16
  179. package/lib/col/index.js +8 -17
  180. package/lib/collapse/index.js +4 -11
  181. package/lib/collapse-item/index.js +20 -46
  182. package/lib/count-down/index.js +4 -22
  183. package/lib/count-down/utils.js +5 -17
  184. package/lib/datetime-picker/DatePicker.js +14 -84
  185. package/lib/datetime-picker/TimePicker.js +12 -33
  186. package/lib/datetime-picker/index.js +7 -41
  187. package/lib/datetime-picker/shared.js +9 -35
  188. package/lib/datetime-picker/utils.js +2 -11
  189. package/lib/dialog/Dialog.js +8 -31
  190. package/lib/dialog/index.js +1 -24
  191. package/lib/divider/index.js +6 -14
  192. package/lib/dropdown-item/index.js +14 -52
  193. package/lib/dropdown-menu/index.js +6 -18
  194. package/lib/empty/context.js +2 -3
  195. package/lib/empty/images/Developing.js +2 -9
  196. package/lib/empty/images/EmptyInterface.js +2 -9
  197. package/lib/empty/images/EmptyResult.js +2 -9
  198. package/lib/empty/images/FindNull.js +2 -9
  199. package/lib/empty/images/NetworkError.js +2 -9
  200. package/lib/empty/images/NotFound.js +2 -9
  201. package/lib/empty/images/ReportSuccess.js +2 -9
  202. package/lib/empty/images/Restricted.js +2 -9
  203. package/lib/empty/images/ServerError.js +2 -9
  204. package/lib/empty/index.js +5 -26
  205. package/lib/field/ClearIcon.js +2 -3
  206. package/lib/field/SearchIcon.js +2 -3
  207. package/lib/field/index.js +22 -99
  208. package/lib/fold-dialog/index.js +7 -25
  209. package/lib/form/index.js +4 -24
  210. package/lib/grid/index.js +4 -13
  211. package/lib/grid-item/index.js +19 -40
  212. package/lib/hierarchy-select/breadcrumb.js +5 -13
  213. package/lib/hierarchy-select/index.js +7 -25
  214. package/lib/hierarchy-select/markList.js +8 -39
  215. package/lib/hierarchy-select/svg/SubIcon.js +2 -4
  216. package/lib/icon/index.js +9 -21
  217. package/lib/image/index.js +4 -25
  218. package/lib/image-preview/ImagePreview.js +2 -19
  219. package/lib/image-preview/ImagePreviewItem.js +15 -39
  220. package/lib/image-preview/index.js +1 -18
  221. package/lib/image-preview/shared.js +3 -8
  222. package/lib/index-anchor/index.js +4 -14
  223. package/lib/index-bar/IndexIndicate.js +2 -4
  224. package/lib/index-bar/index.js +9 -40
  225. package/lib/index.js +5 -164
  226. package/lib/info/index.js +7 -16
  227. package/lib/lazyload/index.js +1 -5
  228. package/lib/list/index.js +12 -36
  229. package/lib/loading/index.js +8 -23
  230. package/lib/locale/index.js +2 -10
  231. package/lib/locale/lang/de-DE-formal.js +2 -3
  232. package/lib/locale/lang/de-DE.js +2 -3
  233. package/lib/locale/lang/en-US.js +2 -3
  234. package/lib/locale/lang/es-ES.js +2 -3
  235. package/lib/locale/lang/fr-FR.js +2 -3
  236. package/lib/locale/lang/ja-JP.js +2 -3
  237. package/lib/locale/lang/nb-NO.js +2 -3
  238. package/lib/locale/lang/ro-RO.js +2 -3
  239. package/lib/locale/lang/th-TH.js +2 -3
  240. package/lib/locale/lang/tr-TR.js +2 -3
  241. package/lib/locale/lang/zh-CN.js +2 -3
  242. package/lib/locale/lang/zh-HK.js +2 -3
  243. package/lib/locale/lang/zh-TW.js +2 -3
  244. package/lib/media-picker/image/DefaultAudioIcon.js +2 -3
  245. package/lib/media-picker/image/DefaultDocIcon.js +2 -3
  246. package/lib/media-picker/image/DefaultExcelIcon.js +2 -3
  247. package/lib/media-picker/image/DefaultFileIcon.js +2 -3
  248. package/lib/media-picker/image/DefaultPdfIcon.js +2 -3
  249. package/lib/media-picker/image/DefaultPptIcon.js +2 -3
  250. package/lib/media-picker/image/DefaultTextIcon.js +2 -3
  251. package/lib/media-picker/image/DefaultVideoIcon.js +2 -3
  252. package/lib/media-picker/image/DeleteIcon.js +2 -3
  253. package/lib/media-picker/image/Img64.js +4 -7
  254. package/lib/media-picker/image/PickFileIcon.js +2 -3
  255. package/lib/media-picker/image/PickPhotoIcon.js +2 -3
  256. package/lib/media-picker/image/ReUpload.js +2 -3
  257. package/lib/media-picker/image/TakeAudioIcon.js +2 -3
  258. package/lib/media-picker/image/TakePhotoIcon.js +2 -3
  259. package/lib/media-picker/image/TakeVideoIcon.js +2 -3
  260. package/lib/media-picker/index.js +33 -172
  261. package/lib/media-picker/media-util.js +9 -22
  262. package/lib/media-picker/type.js +10 -18
  263. package/lib/media-picker/wx-util.js +4 -15
  264. package/lib/media-player/index.js +8 -27
  265. package/lib/mixins/bind-event.js +1 -6
  266. package/lib/mixins/checkbox.js +8 -21
  267. package/lib/mixins/click-outside.js +3 -8
  268. package/lib/mixins/close-on-popstate.js +2 -7
  269. package/lib/mixins/field.js +2 -5
  270. package/lib/mixins/popup/context.js +2 -3
  271. package/lib/mixins/popup/index.js +12 -38
  272. package/lib/mixins/popup/overlay.js +3 -25
  273. package/lib/mixins/portal.js +2 -9
  274. package/lib/mixins/relation.js +0 -11
  275. package/lib/mixins/slots.js +3 -8
  276. package/lib/mixins/touch.js +6 -14
  277. package/lib/multiple-picker/MultiplePickerOptions.js +4 -26
  278. package/lib/multiple-picker/index.js +7 -29
  279. package/lib/multiple-picker/shared.js +3 -5
  280. package/lib/nav-bar/index.js +6 -19
  281. package/lib/notice-bar/CloseIcon.js +2 -3
  282. package/lib/notice-bar/MenuIcon.js +2 -3
  283. package/lib/notice-bar/NoticeIcon.js +2 -3
  284. package/lib/notice-bar/OpenIcon.js +2 -3
  285. package/lib/notice-bar/TipIcon.js +2 -3
  286. package/lib/notice-bar/WarningIcon.js +2 -3
  287. package/lib/notice-bar/index.js +12 -43
  288. package/lib/number-keyboard/CollapseIcon.js +2 -3
  289. package/lib/number-keyboard/DeleteIcon.js +2 -3
  290. package/lib/number-keyboard/Key.js +4 -20
  291. package/lib/number-keyboard/index.js +6 -29
  292. package/lib/overlay/index.js +6 -18
  293. package/lib/password-input/index.js +11 -25
  294. package/lib/picker/PickerColumn.js +24 -71
  295. package/lib/picker/index.js +14 -59
  296. package/lib/picker/shared.js +3 -5
  297. package/lib/popover/index.js +65 -104
  298. package/lib/popup/index.js +7 -30
  299. package/lib/pull-refresh/index.js +11 -38
  300. package/lib/radio/index.js +4 -10
  301. package/lib/radio-group/index.js +4 -11
  302. package/lib/rate/index.js +13 -34
  303. package/lib/row/index.js +5 -15
  304. package/lib/search/index.js +8 -23
  305. package/lib/signature/bezier.js +14 -25
  306. package/lib/signature/force-landscape.js +5 -19
  307. package/lib/signature/index.js +8 -34
  308. package/lib/signature/point.js +2 -11
  309. package/lib/signature/throttle.js +1 -11
  310. package/lib/skeleton/index.js +6 -23
  311. package/lib/slider/index.js +21 -66
  312. package/lib/step/index.js +7 -21
  313. package/lib/stepper/index.js +12 -49
  314. package/lib/steps/index.js +4 -10
  315. package/lib/sticky/index.js +10 -62
  316. package/lib/swipe/index.js +21 -73
  317. package/lib/swipe-cell/index.js +9 -32
  318. package/lib/swipe-item/index.js +12 -27
  319. package/lib/switch/index.js +9 -17
  320. package/lib/switch/shared.js +3 -4
  321. package/lib/switch-cell/index.js +7 -18
  322. package/lib/tab/index.js +6 -24
  323. package/lib/tabbar/index.js +6 -22
  324. package/lib/tabbar-item/index.js +7 -24
  325. package/lib/table/index.js +7 -38
  326. package/lib/table/type.js +3 -5
  327. package/lib/tabs/Content.js +7 -18
  328. package/lib/tabs/Title.js +13 -27
  329. package/lib/tabs/index.js +17 -68
  330. package/lib/tabs/utils.js +0 -13
  331. package/lib/tag/index.js +13 -25
  332. package/lib/text-ellipsis/index.js +27 -49
  333. package/lib/timeline/index.js +4 -35
  334. package/lib/timeline/svg/current.js +2 -3
  335. package/lib/timeline/svg/pass.js +2 -3
  336. package/lib/toast/Toast.js +12 -33
  337. package/lib/toast/index.js +7 -40
  338. package/lib/toast/lock-click.js +0 -3
  339. package/lib/toast/svg/SuccessIcon.js +2 -3
  340. package/lib/toast/svg/WarnIcon.js +2 -3
  341. package/lib/uploader/index.js +12 -75
  342. package/lib/uploader/utils.js +4 -21
  343. package/lib/utils/constant.js +12 -21
  344. package/lib/utils/create/bem.js +1 -6
  345. package/lib/utils/create/component.js +6 -17
  346. package/lib/utils/create/i18n.js +0 -8
  347. package/lib/utils/create/index.js +0 -4
  348. package/lib/utils/deep-assign.js +0 -6
  349. package/lib/utils/deep-clone.js +0 -5
  350. package/lib/utils/device.js +1 -3
  351. package/lib/utils/dom/event.js +5 -14
  352. package/lib/utils/dom/node.js +0 -2
  353. package/lib/utils/dom/raf.js +9 -13
  354. package/lib/utils/dom/reset-scroll.js +2 -4
  355. package/lib/utils/dom/scroll.js +16 -37
  356. package/lib/utils/dom/style.js +3 -3
  357. package/lib/utils/easings.js +2 -5
  358. package/lib/utils/format/date-util.js +88 -203
  359. package/lib/utils/format/number.js +4 -15
  360. package/lib/utils/format/string.js +0 -5
  361. package/lib/utils/format/unit.js +2 -16
  362. package/lib/utils/functional.js +7 -15
  363. package/lib/utils/getScroll.js +1 -8
  364. package/lib/utils/index.js +10 -26
  365. package/lib/utils/interceptor.js +2 -6
  366. package/lib/utils/media/image-util.js +10 -28
  367. package/lib/utils/raf.js +4 -13
  368. package/lib/utils/router.js +10 -13
  369. package/lib/utils/scrollTo.js +12 -24
  370. package/lib/utils/validate/date.js +0 -2
  371. package/lib/utils/validate/email.js +0 -1
  372. package/lib/utils/validate/mobile.js +0 -1
  373. package/lib/utils/validate/number.js +3 -5
  374. package/lib/utils/validate/system.js +0 -3
  375. package/lib/utils/vnodes.js +2 -9
  376. package/lib/zart.js +2325 -4752
  377. package/lib/zart.min.js +7 -1
  378. package/package.json +1 -1
@@ -1,86 +1,54 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  exports.__esModule = true;
6
5
  exports.default = void 0;
7
-
8
6
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
-
10
7
  var _utils = require("../utils");
11
-
12
8
  var _icon = _interopRequireDefault(require("../icon"));
13
-
14
9
  var _loading = _interopRequireDefault(require("../loading"));
15
-
16
10
  var _image = _interopRequireDefault(require("../image"));
17
-
18
11
  var _gridItem = _interopRequireDefault(require("../grid-item"));
19
-
20
12
  var _mediaPlayer = _interopRequireDefault(require("../media-player"));
21
-
22
13
  var _actionSheet = _interopRequireDefault(require("../action-sheet"));
23
-
24
14
  var _grid = _interopRequireDefault(require("../grid"));
25
-
26
15
  var _type = require("./type");
27
-
28
16
  var _appMediaUtils = require("@egova-mobile/app-media-utils");
29
-
30
17
  var _toast = _interopRequireDefault(require("../toast"));
31
-
32
18
  var _imagePreview = _interopRequireDefault(require("../image-preview"));
33
-
34
19
  var _TakePhotoIcon = _interopRequireDefault(require("./image/TakePhotoIcon"));
35
-
36
20
  var _PickPhotoIcon = _interopRequireDefault(require("./image/PickPhotoIcon"));
37
-
38
21
  var _TakeVideoIcon = _interopRequireDefault(require("./image/TakeVideoIcon"));
39
-
40
22
  var _TakeAudioIcon = _interopRequireDefault(require("./image/TakeAudioIcon"));
41
-
42
23
  var _PickFileIcon = _interopRequireDefault(require("./image/PickFileIcon"));
43
-
44
24
  var _DeleteIcon = _interopRequireDefault(require("./image/DeleteIcon"));
45
-
46
25
  var _ReUpload = _interopRequireDefault(require("./image/ReUpload"));
47
-
48
26
  var _DefaultVideoIcon = _interopRequireDefault(require("./image/DefaultVideoIcon"));
49
-
50
27
  var _DefaultAudioIcon = _interopRequireDefault(require("./image/DefaultAudioIcon"));
51
-
52
28
  var _DefaultFileIcon = _interopRequireDefault(require("./image/DefaultFileIcon"));
53
-
54
29
  var _DefaultDocIcon = _interopRequireDefault(require("./image/DefaultDocIcon"));
55
-
56
30
  var _DefaultExcelIcon = _interopRequireDefault(require("./image/DefaultExcelIcon"));
57
-
58
31
  var _DefaultPdfIcon = _interopRequireDefault(require("./image/DefaultPdfIcon"));
59
-
60
32
  var _DefaultPptIcon = _interopRequireDefault(require("./image/DefaultPptIcon"));
61
-
62
33
  var _DefaultTextIcon = _interopRequireDefault(require("./image/DefaultTextIcon"));
63
-
64
34
  var _Img = require("./image/Img64");
65
-
66
35
  var _mediaUtil = require("./media-util");
67
-
68
36
  var _device = require("../utils/device");
69
-
70
37
  var _wxUtil = require("./wx-util");
71
-
72
38
  // Utils
39
+
73
40
  // Types
41
+
74
42
  // import components
43
+
75
44
  // Images
45
+
76
46
  // 单个文件最大限制,单位为M(目前限制是100M)
77
47
  var FILE_SIZE_LIMIT = 100;
78
-
79
48
  var _createNamespace = (0, _utils.createNamespace)('media-picker'),
80
- createComponent = _createNamespace[0],
81
- bem = _createNamespace[1];
82
-
83
- var _default2 = createComponent({
49
+ createComponent = _createNamespace[0],
50
+ bem = _createNamespace[1];
51
+ var _default2 = exports.default = createComponent({
84
52
  props: {
85
53
  disabled: Boolean,
86
54
  title: {
@@ -112,7 +80,6 @@ var _default2 = createComponent({
112
80
  type: Number,
113
81
  default: FILE_SIZE_LIMIT * 1024
114
82
  },
115
-
116
83
  /**
117
84
  * {
118
85
  * maxImageSideLength,
@@ -236,7 +203,6 @@ var _default2 = createComponent({
236
203
  },
237
204
  actionOptions: function actionOptions() {
238
205
  var _this = this;
239
-
240
206
  if (this.videoOptionsVisible) {
241
207
  return [{
242
208
  name: '拍摄',
@@ -267,28 +233,23 @@ var _default2 = createComponent({
267
233
  methods: {
268
234
  mediaPick: function mediaPick(mediaType, mediaAddType) {
269
235
  var _this2 = this;
270
-
271
236
  if (this.disabled) {
272
237
  return;
273
238
  }
274
-
275
239
  if (!this.checkFileCountBeforeAdd(mediaType)) {
276
240
  return;
277
241
  }
278
-
279
242
  if (this.mediaPickAction && this.mediaPickAction(mediaType, mediaAddType)) {
280
243
  return;
281
244
  }
282
-
283
245
  var _this$$refs = this.$refs,
284
- cameraInput = _this$$refs.cameraInput,
285
- imageInput = _this$$refs.imageInput,
286
- camcorderInput = _this$$refs.camcorderInput,
287
- videoFileInput = _this$$refs.videoFileInput,
288
- audioRecorderInput = _this$$refs.audioRecorderInput,
289
- audioFileInput = _this$$refs.audioFileInput,
290
- fileInput = _this$$refs.fileInput;
291
-
246
+ cameraInput = _this$$refs.cameraInput,
247
+ imageInput = _this$$refs.imageInput,
248
+ camcorderInput = _this$$refs.camcorderInput,
249
+ videoFileInput = _this$$refs.videoFileInput,
250
+ audioRecorderInput = _this$$refs.audioRecorderInput,
251
+ audioFileInput = _this$$refs.audioFileInput,
252
+ fileInput = _this$$refs.fileInput;
292
253
  if (mediaType === _type.MediaType.PHOTO) {
293
254
  if (this.useWx && (0, _device.isWeixin)() && window.wx) {
294
255
  var type = mediaAddType === _type.MediaAddType.TAKE ? 'camera' : 'album';
@@ -331,7 +292,6 @@ var _default2 = createComponent({
331
292
  ref.click();
332
293
  }
333
294
  },
334
-
335
295
  /**
336
296
  * 清空value,避免添加相同图片时 change 事件不触发:https://stackoverflow.com/a/54125788/1263423
337
297
  * @param mediaType
@@ -339,14 +299,13 @@ var _default2 = createComponent({
339
299
  */
340
300
  resetInput: function resetInput(mediaType, mediaAddType) {
341
301
  var _this$$refs2 = this.$refs,
342
- cameraInput = _this$$refs2.cameraInput,
343
- imageInput = _this$$refs2.imageInput,
344
- camcorderInput = _this$$refs2.camcorderInput,
345
- videoFileInput = _this$$refs2.videoFileInput,
346
- audioRecorderInput = _this$$refs2.audioRecorderInput,
347
- audioFileInput = _this$$refs2.audioFileInput,
348
- fileInput = _this$$refs2.fileInput;
349
-
302
+ cameraInput = _this$$refs2.cameraInput,
303
+ imageInput = _this$$refs2.imageInput,
304
+ camcorderInput = _this$$refs2.camcorderInput,
305
+ videoFileInput = _this$$refs2.videoFileInput,
306
+ audioRecorderInput = _this$$refs2.audioRecorderInput,
307
+ audioFileInput = _this$$refs2.audioFileInput,
308
+ fileInput = _this$$refs2.fileInput;
350
309
  if (mediaType === _type.MediaType.PHOTO) {
351
310
  if (mediaAddType === _type.MediaAddType.TAKE) {
352
311
  cameraInput.value = '';
@@ -371,34 +330,25 @@ var _default2 = createComponent({
371
330
  },
372
331
  handleInputFiles: function handleInputFiles(event) {
373
332
  var _this3 = this;
374
-
375
333
  var files = event.target.files;
376
-
377
334
  if (!files || files.length === 0) {
378
335
  return;
379
336
  }
380
-
381
337
  if (this.pickerMode === "certificate") {
382
338
  files = [files[0]];
383
339
  }
384
-
385
340
  files = this.filterValidFiles(files);
386
-
387
341
  if (files.length === 0) {
388
342
  return;
389
343
  }
390
-
391
344
  if (!this.checkFileCountAfterAdd(files)) {
392
345
  return;
393
346
  }
394
-
395
347
  if (this.beforeRead) {
396
348
  var response = this.beforeRead(files);
397
-
398
349
  if (!response) {
399
350
  return;
400
351
  }
401
-
402
352
  if ((0, _utils.isPromise)(response)) {
403
353
  response.then(function (data) {
404
354
  if (data) {
@@ -410,12 +360,10 @@ var _default2 = createComponent({
410
360
  return;
411
361
  }
412
362
  }
413
-
414
363
  this.readFiles(files);
415
364
  },
416
365
  readFiles: function readFiles(files) {
417
366
  var _this4 = this;
418
-
419
367
  // 处理非图片
420
368
  var notImages = files.filter(function (f) {
421
369
  return !(0, _mediaUtil.isImageType)(f);
@@ -423,23 +371,19 @@ var _default2 = createComponent({
423
371
  return _this4.transformNotImageFile(f);
424
372
  });
425
373
  var newMedias = [];
426
-
427
374
  if (notImages.length > 0) {
428
375
  newMedias = newMedias.concat(notImages);
429
- } // 处理图片并合并
430
-
431
-
376
+ }
377
+ // 处理图片并合并
432
378
  var imageFiles = files.filter(function (f) {
433
379
  return (0, _mediaUtil.isImageType)(f);
434
380
  });
435
381
  var promise;
436
-
437
382
  if (imageFiles.length === 0) {
438
383
  promise = Promise.resolve();
439
384
  } else {
440
385
  promise = this.transformImageFiles(imageFiles);
441
386
  }
442
-
443
387
  promise.then(function (medias) {
444
388
  if (medias && medias.length > 0) {
445
389
  newMedias = newMedias.concat(medias);
@@ -450,116 +394,89 @@ var _default2 = createComponent({
450
394
  } else {
451
395
  _this4.$emit('input', [].concat(_this4.mediaList, newMedias));
452
396
  }
453
-
454
397
  if (_this4.afterRead) {
455
398
  _this4.afterRead(newMedias);
456
399
  }
457
400
  });
458
401
  },
459
-
460
402
  /**
461
403
  * 选择多媒体前进行数量检查
462
404
  */
463
405
  checkFileCountBeforeAdd: function checkFileCountBeforeAdd(mediaType) {
464
406
  if (this.mediaList.length === this.maxMediaCount) {
465
407
  _toast.default.fail("\u5DF2\u8FBE\u5230\u6587\u4EF6\u6700\u5927\u6570\u91CF\u9650\u5236");
466
-
467
408
  return false;
468
409
  }
469
-
470
410
  if (mediaType === _type.MediaType.PHOTO && this.mediaList.filter(function (media) {
471
411
  return media.type === _type.MediaType.PHOTO;
472
412
  }).length > this.maxImageCount) {
473
413
  _toast.default.fail("\u5DF2\u8FBE\u5230\u56FE\u7247\u6700\u5927\u6570\u91CF\u9650\u5236");
474
-
475
414
  return false;
476
415
  }
477
-
478
416
  if (mediaType === _type.MediaType.VIDEO && this.mediaList.filter(function (media) {
479
417
  return media.type === _type.MediaType.VIDEO;
480
418
  }).length > this.maxVideoCount) {
481
419
  _toast.default.fail("\u5DF2\u8FBE\u5230\u89C6\u9891\u6700\u5927\u6570\u91CF\u9650\u5236");
482
-
483
420
  return false;
484
421
  }
485
-
486
422
  if (mediaType === _type.MediaType.AUDIO && this.mediaList.filter(function (media) {
487
423
  return media.type === _type.MediaType.AUDIO;
488
424
  }).length > this.maxAudioCount) {
489
425
  _toast.default.fail("\u5DF2\u8FBE\u5230\u5F55\u97F3\u6700\u5927\u6570\u91CF\u9650\u5236");
490
-
491
426
  return false;
492
427
  }
493
-
494
428
  return true;
495
429
  },
496
-
497
430
  /**
498
431
  * 选择多媒体后进行数量检查
499
432
  */
500
433
  checkFileCountAfterAdd: function checkFileCountAfterAdd(files) {
501
434
  if (this.mediaList.length + files.length > this.maxMediaCount) {
502
435
  _toast.default.fail("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20" + this.maxMediaCount + "\u4E2A\u6587\u4EF6");
503
-
504
436
  return false;
505
437
  }
506
-
507
438
  if (this.mediaList.filter(function (media) {
508
439
  return media.type === _type.MediaType.PHOTO;
509
440
  }).length + files.filter(function (media) {
510
441
  return (0, _mediaUtil.isImageType)(media);
511
442
  }).length > this.maxImageCount) {
512
443
  _toast.default.fail("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20" + this.maxImageCount + "\u5F20\u56FE\u7247");
513
-
514
444
  return false;
515
445
  }
516
-
517
446
  if (this.mediaList.filter(function (media) {
518
447
  return media.type === _type.MediaType.VIDEO;
519
448
  }).length + files.filter(function (media) {
520
449
  return (0, _mediaUtil.isVideoType)(media);
521
450
  }).length > this.maxVideoCount) {
522
451
  _toast.default.fail("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20" + this.maxVideoCount + "\u4E2A\u89C6\u9891");
523
-
524
452
  return false;
525
453
  }
526
-
527
454
  if (this.mediaList.filter(function (media) {
528
455
  return media.type === _type.MediaType.AUDIO;
529
456
  }).length + files.filter(function (media) {
530
457
  return (0, _mediaUtil.isAudioType)(media);
531
458
  }).length > this.maxAudioCount) {
532
459
  _toast.default.fail("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20" + this.maxAudioCount + "\u4E2A\u5F55\u97F3");
533
-
534
460
  return false;
535
461
  }
536
-
537
462
  return true;
538
463
  },
539
464
  filterValidFiles: function filterValidFiles(files) {
540
465
  var validFiles = [];
541
-
542
466
  for (var i = 0; i < files.length; i++) {
543
467
  var file = files[i];
544
-
545
468
  if (file.size > this.maxFileSize * 1024) {
546
469
  _toast.default.fail("\u8BF7\u52FF\u6DFB\u52A0\u5927\u4E8E" + this.maxFileSize + "K\u7684\u6587\u4EF6");
547
-
548
470
  return validFiles;
549
471
  }
550
-
551
472
  if (this.checkFileExist(file)) {
552
473
  _toast.default.fail('请勿重复添加文件');
553
-
554
474
  return validFiles;
555
475
  }
556
-
557
476
  validFiles.push(file);
558
477
  }
559
-
560
478
  return validFiles;
561
479
  },
562
-
563
480
  /**
564
481
  * 转换图片文件,压缩、加水印,返回Media格式的图片
565
482
  * @param files 图片文件
@@ -567,16 +484,13 @@ var _default2 = createComponent({
567
484
  */
568
485
  transformImageFiles: function transformImageFiles(files) {
569
486
  var _this5 = this;
570
-
571
487
  var promisesTodo = [];
572
488
  var resizeOptions = new _appMediaUtils.ResizeOptions(this.maxImageSideLength);
573
489
  var compressOptions = new _appMediaUtils.CompressOptions(this.maxImageFileSize);
574
-
575
- var _loop = function _loop(i) {
490
+ var _loop = function _loop() {
576
491
  var file = files[i];
577
492
  var watermarkEnabled = _this5.watermarkOptions && _this5.watermarkOptions.watermarkConfigString && (0, _appMediaUtils.checkWatermarkConfigSupported)(_this5.watermarkOptions.watermarkConfigString);
578
- var watermarkOpt = void 0;
579
-
493
+ var watermarkOpt;
580
494
  if (watermarkEnabled) {
581
495
  watermarkOpt = new _appMediaUtils.WatermarkOptions({
582
496
  enabled: true,
@@ -595,12 +509,10 @@ var _default2 = createComponent({
595
509
  enabled: false
596
510
  });
597
511
  }
598
-
599
512
  var promise = new _appMediaUtils.ImageProcessor(file, resizeOptions, watermarkOpt, compressOptions).process().then(function (f) {
600
513
  if (!f) {
601
514
  return Promise.resolve();
602
515
  }
603
-
604
516
  return (0, _appMediaUtils.file2DataURL)(f).then(function (base64) {
605
517
  var uniqueFileName = (0, _mediaUtil.getUniqueFileName)(f, 'jpg');
606
518
  return Promise.resolve({
@@ -624,32 +536,20 @@ var _default2 = createComponent({
624
536
  originalName: file.name,
625
537
  // 原始名称
626
538
  originalSize: file.size // 原始大小
627
-
628
539
  });
629
540
  });
630
541
  });
631
542
  promisesTodo.push(promise);
632
543
  };
633
-
634
544
  for (var i = 0; i < files.length; i++) {
635
- _loop(i);
545
+ _loop();
636
546
  }
637
-
638
- _toast.default.loading({
639
- message: '处理中...',
640
- forbidClick: true,
641
- duration: 0
642
- });
643
-
644
547
  return Promise.all(promisesTodo).then(function (medias) {
645
548
  return medias.filter(function (media) {
646
549
  return !!media;
647
550
  });
648
- }).finally(function () {
649
- _toast.default.clear();
650
- });
551
+ }).finally(function () {});
651
552
  },
652
-
653
553
  /**
654
554
  * 转换非图片文件
655
555
  * @param {File} f 非图片文件
@@ -659,7 +559,6 @@ var _default2 = createComponent({
659
559
  console.warn("type", f.type);
660
560
  var suffix = '';
661
561
  var type = _type.MediaType.FILE;
662
-
663
562
  if ((0, _mediaUtil.isAudioType)(f)) {
664
563
  type = _type.MediaType.AUDIO;
665
564
  suffix = 'mp3';
@@ -679,7 +578,6 @@ var _default2 = createComponent({
679
578
  } else {
680
579
  type = _type.MediaType.FILE;
681
580
  }
682
-
683
581
  var uniqueFileName = (0, _mediaUtil.getUniqueFileName)(f, suffix);
684
582
  return {
685
583
  type: type,
@@ -696,10 +594,8 @@ var _default2 = createComponent({
696
594
  originalName: f.name,
697
595
  // 原始名称
698
596
  originalSize: f.size // 原始大小
699
-
700
597
  };
701
598
  },
702
-
703
599
  /**
704
600
  * 检查文件是否重复添加
705
601
  */
@@ -708,7 +604,6 @@ var _default2 = createComponent({
708
604
  return media.uniqueCode === (0, _mediaUtil.getFileUniqueCode)(file);
709
605
  });
710
606
  },
711
-
712
607
  /**
713
608
  * 点击预览
714
609
  */
@@ -716,7 +611,6 @@ var _default2 = createComponent({
716
611
  if (this.preview && this.preview(media, index)) {
717
612
  return;
718
613
  }
719
-
720
614
  if (media.type === _type.MediaType.PHOTO) {
721
615
  var imageIndex = this.imageList.indexOf(media);
722
616
  (0, _imagePreview.default)({
@@ -733,8 +627,8 @@ var _default2 = createComponent({
733
627
  (0, _toast.default)('文件参数缺失');
734
628
  } else {
735
629
  this.mediaTypeToPlay = media.type;
736
- this.mediaUrlToPlay = media.url || (URL || webkitURL).createObjectURL(media.file); // this.mediaUrlToPlay = 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'
737
-
630
+ this.mediaUrlToPlay = media.url || (URL || webkitURL).createObjectURL(media.file);
631
+ // this.mediaUrlToPlay = 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'
738
632
  this.mediaPlayerVisible = true;
739
633
  }
740
634
  } else {
@@ -743,14 +637,11 @@ var _default2 = createComponent({
743
637
  },
744
638
  onDelete: function onDelete(media, index) {
745
639
  var _this6 = this;
746
-
747
640
  if (this.beforeDelete) {
748
641
  var response = this.beforeDelete(media);
749
-
750
642
  if (!response) {
751
643
  return;
752
644
  }
753
-
754
645
  if ((0, _utils.isPromise)(response)) {
755
646
  response.then(function () {
756
647
  _this6.deleteMedia(media, index);
@@ -758,7 +649,6 @@ var _default2 = createComponent({
758
649
  return;
759
650
  }
760
651
  }
761
-
762
652
  this.deleteMedia(media, index);
763
653
  },
764
654
  deleteMedia: function deleteMedia(media, index) {
@@ -769,7 +659,6 @@ var _default2 = createComponent({
769
659
  },
770
660
  hiddenInput: function hiddenInput() {
771
661
  var _this7 = this;
772
-
773
662
  var h = this.$createElement;
774
663
  return [h("input", {
775
664
  "attrs": {
@@ -871,9 +760,7 @@ var _default2 = createComponent({
871
760
  },
872
761
  renderIcon: function renderIcon(mediaType, mediaAddType) {
873
762
  var _this8 = this;
874
-
875
763
  var h = this.$createElement;
876
-
877
764
  if (mediaType === _type.MediaType.PHOTO) {
878
765
  if (mediaAddType === _type.MediaAddType.TAKE) {
879
766
  return h(_TakePhotoIcon.default, {
@@ -926,7 +813,6 @@ var _default2 = createComponent({
926
813
  renderButton: function renderButton(mediaType, mediaAddType) {
927
814
  var h = this.$createElement;
928
815
  var label = '';
929
-
930
816
  if (mediaType === _type.MediaType.PHOTO) {
931
817
  if (mediaAddType === _type.MediaAddType.TAKE) {
932
818
  label = '拍照';
@@ -940,7 +826,6 @@ var _default2 = createComponent({
940
826
  } else if (mediaType === _type.MediaType.FILE) {
941
827
  label = '文档';
942
828
  }
943
-
944
829
  return h("div", {
945
830
  "class": bem('box')
946
831
  }, [this.renderIcon(mediaType, mediaAddType), h("div", {
@@ -949,9 +834,7 @@ var _default2 = createComponent({
949
834
  },
950
835
  renderCertificates: function renderCertificates() {
951
836
  var _this9 = this;
952
-
953
837
  var h = this.$createElement;
954
-
955
838
  if (this.mediaList && this.mediaList.length) {
956
839
  var media = this.mediaList[0];
957
840
  var showDelete = media.deletable && media.status !== _type.MediaUploadStatus.UPLOADING;
@@ -960,9 +843,7 @@ var _default2 = createComponent({
960
843
  "on": {
961
844
  "click": function click(event) {
962
845
  event.stopPropagation();
963
-
964
846
  _this9.onDelete(media, 0);
965
-
966
847
  _this9.mediaPick(_type.MediaType.PHOTO, _type.MediaAddType.PICK);
967
848
  }
968
849
  }
@@ -979,8 +860,8 @@ var _default2 = createComponent({
979
860
  },
980
861
  "on": {
981
862
  "click": function click(event) {
982
- event.stopPropagation(); // 证件照模式只有一张图片
983
-
863
+ event.stopPropagation();
864
+ // 证件照模式只有一张图片
984
865
  _this9.previewMedia(media, 0);
985
866
  }
986
867
  }
@@ -1008,50 +889,39 @@ var _default2 = createComponent({
1008
889
  },
1009
890
  renderButtons: function renderButtons() {
1010
891
  var buttons = [];
1011
-
1012
892
  if (this.allowTakePhoto) {
1013
893
  buttons.push(this.renderButton(_type.MediaType.PHOTO, _type.MediaAddType.TAKE));
1014
894
  }
1015
-
1016
895
  if (this.allowPickPhoto) {
1017
896
  buttons.push(this.renderButton(_type.MediaType.PHOTO, _type.MediaAddType.PICK));
1018
897
  }
1019
-
1020
898
  if (this.allowTakeVideo || this.allowPickVideo) {
1021
899
  var addType = _type.MediaAddType.TAKE_AND_PICK;
1022
-
1023
900
  if (!this.allowTakeVideo) {
1024
901
  addType = _type.MediaAddType.PICK;
1025
902
  } else if (!this.allowPickVideo) {
1026
903
  addType = _type.MediaAddType.TAKE;
1027
904
  }
1028
-
1029
905
  buttons.push(this.renderButton(_type.MediaType.VIDEO, addType));
1030
906
  }
1031
-
1032
907
  if (this.allowTakeAudio || this.allowPickAudio) {
1033
908
  var _addType = _type.MediaAddType.TAKE_AND_PICK;
1034
-
1035
909
  if (!this.allowTakeAudio) {
1036
910
  _addType = _type.MediaAddType.PICK;
1037
911
  } else if (!this.allowPickAudio) {
1038
912
  _addType = _type.MediaAddType.TAKE;
1039
913
  }
1040
-
1041
914
  buttons.push(this.renderButton(_type.MediaType.AUDIO, _addType));
1042
915
  }
1043
-
1044
916
  if (this.allowPickFile) {
1045
917
  buttons.push(this.renderButton(_type.MediaType.FILE, _type.MediaAddType.PICK));
1046
918
  }
1047
-
1048
919
  return buttons;
1049
920
  },
1050
921
  genThumbnailMask: function genThumbnailMask(media) {
1051
922
  var h = this.$createElement;
1052
923
  var status = media.status,
1053
- message = media.message;
1054
-
924
+ message = media.message;
1055
925
  if (status === _type.MediaUploadStatus.UPLOADING || status === _type.MediaUploadStatus.FAILED) {
1056
926
  var MaskIcon = status === _type.MediaUploadStatus.FAILED ? h(_icon.default, {
1057
927
  "attrs": {
@@ -1071,7 +941,6 @@ var _default2 = createComponent({
1071
941
  },
1072
942
  renderMediaBox: function renderMediaBox(media) {
1073
943
  var h = this.$createElement;
1074
-
1075
944
  if (!this.showFileName) {
1076
945
  return this.renderMediaThumbnail(media);
1077
946
  } else {
@@ -1082,13 +951,11 @@ var _default2 = createComponent({
1082
951
  }, [media.name || media.fileName])]);
1083
952
  }
1084
953
  },
1085
-
1086
954
  /**
1087
955
  * 多媒体对应展示的缩略图
1088
956
  */
1089
957
  renderMediaThumbnail: function renderMediaThumbnail(media) {
1090
958
  var h = this.$createElement;
1091
-
1092
959
  if (media.showSrc) {
1093
960
  return h(_image.default, {
1094
961
  "attrs": {
@@ -1133,7 +1000,6 @@ var _default2 = createComponent({
1133
1000
  },
1134
1001
  renderMediaList: function renderMediaList() {
1135
1002
  var _this10 = this;
1136
-
1137
1003
  var h = this.$createElement;
1138
1004
  return this.mediaList.map(function (media, index) {
1139
1005
  var showDelete = media.deletable && media.status !== _type.MediaUploadStatus.UPLOADING;
@@ -1142,7 +1008,6 @@ var _default2 = createComponent({
1142
1008
  "on": {
1143
1009
  "click": function click(event) {
1144
1010
  event.stopPropagation();
1145
-
1146
1011
  _this10.onDelete(media, index);
1147
1012
  }
1148
1013
  }
@@ -1152,7 +1017,6 @@ var _default2 = createComponent({
1152
1017
  "on": {
1153
1018
  "click": function click(event) {
1154
1019
  event.stopPropagation();
1155
-
1156
1020
  _this10.previewMedia(media, index);
1157
1021
  }
1158
1022
  }
@@ -1166,7 +1030,6 @@ var _default2 = createComponent({
1166
1030
  },
1167
1031
  render: function render() {
1168
1032
  var _this11 = this;
1169
-
1170
1033
  var h = arguments[0];
1171
1034
  var title = this.showTitle && h("div", {
1172
1035
  "class": bem('title')
@@ -1221,6 +1084,4 @@ var _default2 = createComponent({
1221
1084
  "class": bem('grid')
1222
1085
  }, [this.renderMediaList()])]);
1223
1086
  }
1224
- });
1225
-
1226
- exports.default = _default2;
1087
+ });