taro-ui 3.0.0-alpha.7 → 3.1.0-beta.1
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/index.esm.js +283 -219
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +718 -652
- package/dist/index.js.map +1 -1
- package/dist/style/components/accordion.rn.scss +79 -0
- package/dist/style/components/action-sheet.rn.scss +80 -0
- package/dist/style/components/activity-indicator.rn.scss +30 -0
- package/dist/style/components/article.rn.scss +59 -0
- package/dist/style/components/avatar.rn.scss +45 -0
- package/dist/style/components/badge.rn.scss +51 -0
- package/dist/style/components/button.rn.scss +79 -0
- package/dist/style/components/calendar.rn.scss +182 -0
- package/dist/style/components/card.rn.scss +88 -0
- package/dist/style/components/checkbox.rn.scss +107 -0
- package/dist/style/components/countdown.rn.scss +82 -0
- package/dist/style/components/curtain.rn.scss +128 -0
- package/dist/style/components/divider.rn.scss +33 -0
- package/dist/style/components/drawer.rn.scss +72 -0
- package/dist/style/components/drawer.scss +1 -1
- package/dist/style/components/fab.rn.scss +37 -0
- package/dist/style/components/flex.rn.scss +158 -0
- package/dist/style/components/float-layout.rn.scss +119 -0
- package/dist/style/components/form.rn.scss +12 -0
- package/dist/style/components/grid.rn.scss +104 -0
- package/dist/style/components/icon.rn.scss +221 -0
- package/dist/style/components/image-picker.rn.scss +108 -0
- package/dist/style/components/index.rn.scss +51 -0
- package/dist/style/components/indexes.rn.scss +53 -0
- package/dist/style/components/input-number.rn.scss +82 -0
- package/dist/style/components/input.rn.scss +149 -0
- package/dist/style/components/list.rn.scss +107 -0
- package/dist/style/components/load-more.rn.scss +28 -0
- package/dist/style/components/loading.rn.scss +45 -0
- package/dist/style/components/message.rn.scss +57 -0
- package/dist/style/components/modal.rn.scss +136 -0
- package/dist/style/components/nav-bar.rn.scss +123 -0
- package/dist/style/components/noticebar.rn.scss +111 -0
- package/dist/style/components/pagination.rn.scss +43 -0
- package/dist/style/components/progress.rn.scss +104 -0
- package/dist/style/components/radio.rn.scss +94 -0
- package/dist/style/components/range.rn.scss +51 -0
- package/dist/style/components/rate.rn.scss +48 -0
- package/dist/style/components/search-bar.rn.scss +133 -0
- package/dist/style/components/segmented-control.rn.scss +44 -0
- package/dist/style/components/slider.rn.scss +33 -0
- package/dist/style/components/steps.rn.scss +130 -0
- package/dist/style/components/swipe-action.rn.scss +53 -0
- package/dist/style/components/switch.rn.scss +61 -0
- package/dist/style/components/tab-bar.rn.scss +74 -0
- package/dist/style/components/tabs.rn.scss +205 -0
- package/dist/style/components/tag.rn.scss +73 -0
- package/dist/style/components/textarea.rn.scss +57 -0
- package/dist/style/components/timeline.rn.scss +88 -0
- package/dist/style/components/toast.rn.scss +112 -0
- package/dist/style/index.rn.scss +14 -0
- package/dist/style/mixins/index.rn.scss +18 -0
- package/dist/style/mixins/libs/absolute-center.rn.scss +9 -0
- package/dist/style/mixins/libs/active.rn.scss +10 -0
- package/dist/style/mixins/libs/alignhack.rn.scss +11 -0
- package/dist/style/mixins/libs/border.rn.scss +48 -0
- package/dist/style/mixins/libs/clearfix.rn.scss +21 -0
- package/dist/style/mixins/libs/disabled.rn.scss +6 -0
- package/dist/style/mixins/libs/flex.rn.scss +49 -0
- package/dist/style/mixins/libs/hairline.rn.scss +209 -0
- package/dist/style/mixins/libs/line.rn.scss +14 -0
- package/dist/style/mixins/libs/overlay.rn.scss +11 -0
- package/dist/style/mixins/libs/placeholder.rn.scss +12 -0
- package/dist/style/mixins/libs/shade.rn.scss +23 -0
- package/dist/style/mixins/libs/tint.rn.scss +23 -0
- package/dist/style/themes/purple.rn.scss +44 -0
- package/dist/style/themes/red.rn.scss +45 -0
- package/dist/style/variables/default.rn.scss +461 -0
- package/lib/components/calendar/body/index.js +1 -1
- package/lib/components/calendar/body/index.js.map +1 -1
- package/lib/components/calendar/common/helper.js +5 -0
- package/lib/components/calendar/common/helper.js.map +1 -1
- package/lib/components/calendar/ui/date-list/index.js +1 -1
- package/lib/components/calendar/ui/date-list/index.js.map +1 -1
- package/lib/components/image-picker/index.js +4 -2
- package/lib/components/image-picker/index.js.map +1 -1
- package/lib/components/input/index.js +5 -4
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/noticebar/index.js +4 -0
- package/lib/components/noticebar/index.js.map +1 -1
- package/lib/components/swipe-action/index.js +23 -19
- package/lib/components/swipe-action/index.js.map +1 -1
- package/lib/components/tabs/index.js +3 -1
- package/lib/components/tabs/index.js.map +1 -1
- package/lib/components/toast/index.js +2 -0
- package/lib/components/toast/index.js.map +1 -1
- package/package.json +11 -6
- package/rn/assets/CLOSE.png +0 -0
- package/rn/assets/chevron-left.png +0 -0
- package/rn/assets/chevron-right.png +0 -0
- package/rn/assets/iconfont.svg +130 -0
- package/rn/assets/icons/add-circle.svg +4 -0
- package/rn/assets/icons/add.svg +4 -0
- package/rn/assets/icons/alert-circle.svg +4 -0
- package/rn/assets/icons/align-center.svg +4 -0
- package/rn/assets/icons/align-left.svg +4 -0
- package/rn/assets/icons/analytics.svg +4 -0
- package/rn/assets/icons/arrow-down.svg +4 -0
- package/rn/assets/icons/arrow-left.svg +4 -0
- package/rn/assets/icons/arrow-right.svg +4 -0
- package/rn/assets/icons/arrow-up.svg +4 -0
- package/rn/assets/icons/bell.svg +4 -0
- package/rn/assets/icons/blocked.svg +4 -0
- package/rn/assets/icons/bookmark.svg +4 -0
- package/rn/assets/icons/bullet-list.svg +4 -0
- package/rn/assets/icons/calendar.svg +4 -0
- package/rn/assets/icons/camera.svg +4 -0
- package/rn/assets/icons/check-circle.svg +4 -0
- package/rn/assets/icons/check.svg +4 -0
- package/rn/assets/icons/chevron-down.svg +4 -0
- package/rn/assets/icons/chevron-left.svg +4 -0
- package/rn/assets/icons/chevron-right.svg +4 -0
- package/rn/assets/icons/chevron-up.svg +4 -0
- package/rn/assets/icons/clock.svg +4 -0
- package/rn/assets/icons/close-circle.svg +4 -0
- package/rn/assets/icons/close.svg +4 -0
- package/rn/assets/icons/credit-card.svg +4 -0
- package/rn/assets/icons/download-cloud.svg +4 -0
- package/rn/assets/icons/download.svg +4 -0
- package/rn/assets/icons/edit.svg +4 -0
- package/rn/assets/icons/equalizer.svg +4 -0
- package/rn/assets/icons/external-link.svg +4 -0
- package/rn/assets/icons/eye.svg +4 -0
- package/rn/assets/icons/file-audio.svg +4 -0
- package/rn/assets/icons/file-code.svg +4 -0
- package/rn/assets/icons/file-generic.svg +4 -0
- package/rn/assets/icons/file-jpg.svg +4 -0
- package/rn/assets/icons/file-new.svg +4 -0
- package/rn/assets/icons/file-png.svg +4 -0
- package/rn/assets/icons/file-svg.svg +4 -0
- package/rn/assets/icons/file-video.svg +4 -0
- package/rn/assets/icons/filter.svg +4 -0
- package/rn/assets/icons/folder.svg +4 -0
- package/rn/assets/icons/font-color.svg +4 -0
- package/rn/assets/icons/heart-2.svg +4 -0
- package/rn/assets/icons/heart.svg +4 -0
- package/rn/assets/icons/help.svg +4 -0
- package/rn/assets/icons/home.svg +4 -0
- package/rn/assets/icons/image.svg +4 -0
- package/rn/assets/icons/iphone-x.svg +4 -0
- package/rn/assets/icons/iphone.svg +4 -0
- package/rn/assets/icons/lightning-bolt.svg +4 -0
- package/rn/assets/icons/link.svg +4 -0
- package/rn/assets/icons/list.svg +4 -0
- package/rn/assets/icons/loading-2.svg +4 -0
- package/rn/assets/icons/loading-3.svg +4 -0
- package/rn/assets/icons/loading.svg +4 -0
- package/rn/assets/icons/lock.svg +4 -0
- package/rn/assets/icons/mail.svg +4 -0
- package/rn/assets/icons/map-pin.svg +4 -0
- package/rn/assets/icons/menu.svg +4 -0
- package/rn/assets/icons/message.svg +4 -0
- package/rn/assets/icons/money.svg +4 -0
- package/rn/assets/icons/next.svg +4 -0
- package/rn/assets/icons/nonmarkingreturn.svg +4 -0
- package/rn/assets/icons/numbered-list.svg +4 -0
- package/rn/assets/icons/pause.svg +4 -0
- package/rn/assets/icons/phone.svg +4 -0
- package/rn/assets/icons/play.svg +4 -0
- package/rn/assets/icons/playlist.svg +4 -0
- package/rn/assets/icons/prev.svg +4 -0
- package/rn/assets/icons/reload.svg +4 -0
- package/rn/assets/icons/repeat-play.svg +4 -0
- package/rn/assets/icons/search.svg +4 -0
- package/rn/assets/icons/settings.svg +4 -0
- package/rn/assets/icons/share-2.svg +4 -0
- package/rn/assets/icons/share.svg +4 -0
- package/rn/assets/icons/shopping-bag-2.svg +4 -0
- package/rn/assets/icons/shopping-bag.svg +4 -0
- package/rn/assets/icons/shopping-cart.svg +4 -0
- package/rn/assets/icons/shuffle-play.svg +4 -0
- package/rn/assets/icons/sketch.svg +4 -0
- package/rn/assets/icons/sound.svg +4 -0
- package/rn/assets/icons/star-2.svg +4 -0
- package/rn/assets/icons/star.svg +4 -0
- package/rn/assets/icons/stop.svg +4 -0
- package/rn/assets/icons/streaming.svg +4 -0
- package/rn/assets/icons/subtract-circle.svg +4 -0
- package/rn/assets/icons/subtract.svg +4 -0
- package/rn/assets/icons/tag.svg +4 -0
- package/rn/assets/icons/tags.svg +4 -0
- package/rn/assets/icons/text-italic.svg +4 -0
- package/rn/assets/icons/text-strikethrough.svg +4 -0
- package/rn/assets/icons/text-underline.svg +4 -0
- package/rn/assets/icons/trash.svg +4 -0
- package/rn/assets/icons/upload.svg +4 -0
- package/rn/assets/icons/user.svg +4 -0
- package/rn/assets/icons/video.svg +4 -0
- package/rn/assets/icons/volume-minus.svg +4 -0
- package/rn/assets/icons/volume-off.svg +4 -0
- package/rn/assets/icons/volume-plus.svg +4 -0
- package/rn/common/component.tsx +38 -0
- package/rn/common/utils.ts +271 -0
- package/rn/components/accordion/index.rn.tsx +51 -0
- package/rn/components/accordion/index.tsx +157 -0
- package/rn/components/action-sheet/body/index.tsx +13 -0
- package/rn/components/action-sheet/body/item/index.tsx +32 -0
- package/rn/components/action-sheet/footer/index.tsx +35 -0
- package/rn/components/action-sheet/header/index.tsx +17 -0
- package/rn/components/action-sheet/index.tsx +121 -0
- package/rn/components/activity-indicator/index.tsx +55 -0
- package/rn/components/avatar/index.tsx +99 -0
- package/rn/components/badge/index.tsx +65 -0
- package/rn/components/button/index.tsx +139 -0
- package/rn/components/calendar/body/index.tsx +365 -0
- package/rn/components/calendar/common/constant.ts +5 -0
- package/rn/components/calendar/common/helper.ts +113 -0
- package/rn/components/calendar/common/plugins.ts +124 -0
- package/rn/components/calendar/controller/index.tsx +76 -0
- package/rn/components/calendar/index.rn.tsx +36 -0
- package/rn/components/calendar/index.tsx +319 -0
- package/rn/components/calendar/ui/date-list/index.tsx +80 -0
- package/rn/components/calendar/ui/day-list/index.tsx +20 -0
- package/rn/components/card/index.tsx +97 -0
- package/rn/components/checkbox/index.tsx +113 -0
- package/rn/components/countdown/index.scss +74 -0
- package/rn/components/countdown/index.tsx +207 -0
- package/rn/components/countdown/item/index.tsx +46 -0
- package/rn/components/curtain/index.tsx +75 -0
- package/rn/components/divider/index.tsx +73 -0
- package/rn/components/drawer/index.tsx +192 -0
- package/rn/components/fab/index.tsx +40 -0
- package/rn/components/flex/index.scss +108 -0
- package/rn/components/flex/index.tsx +44 -0
- package/rn/components/flex/item/index.scss +49 -0
- package/rn/components/flex/item/index.tsx +37 -0
- package/rn/components/float-layout/index.tsx +209 -0
- package/rn/components/form/index.tsx +49 -0
- package/rn/components/grid/index.tsx +160 -0
- package/rn/components/icon/icons.ts +207 -0
- package/rn/components/icon/index.tsx +66 -0
- package/rn/components/image-picker/index.tsx +197 -0
- package/rn/components/indexes/index.rn.tsx +55 -0
- package/rn/components/indexes/index.tsx +282 -0
- package/rn/components/input/index.tsx +280 -0
- package/rn/components/input-number/index.tsx +259 -0
- package/rn/components/list/index.tsx +30 -0
- package/rn/components/list/item/index.tsx +214 -0
- package/rn/components/load-more/index.tsx +84 -0
- package/rn/components/loading/index.tsx +29 -0
- package/rn/components/message/index.tsx +129 -0
- package/rn/components/modal/action/index.tsx +34 -0
- package/rn/components/modal/content/index.tsx +15 -0
- package/rn/components/modal/header/index.tsx +11 -0
- package/rn/components/modal/index.tsx +231 -0
- package/rn/components/nav-bar/index.tsx +225 -0
- package/rn/components/noticebar/index.tsx +213 -0
- package/rn/components/pagination/index.tsx +188 -0
- package/rn/components/progress/index.tsx +89 -0
- package/rn/components/radio/index.tsx +94 -0
- package/rn/components/range/index.tsx +254 -0
- package/rn/components/rate/index.tsx +102 -0
- package/rn/components/search-bar/index.tsx +190 -0
- package/rn/components/segmented-control/index.tsx +105 -0
- package/rn/components/slider/index.tsx +136 -0
- package/rn/components/steps/index.tsx +133 -0
- package/rn/components/swipe-action/index.rn.tsx +70 -0
- package/rn/components/swipe-action/index.tsx +231 -0
- package/rn/components/swipe-action/options/index.tsx +25 -0
- package/rn/components/switch/index.tsx +79 -0
- package/rn/components/tab-bar/index.tsx +206 -0
- package/rn/components/tabs/index.tsx +325 -0
- package/rn/components/tabs-pane/index.tsx +47 -0
- package/rn/components/tag/index.tsx +99 -0
- package/rn/components/textarea/index.tsx +167 -0
- package/rn/components/timeline/index.tsx +104 -0
- package/rn/components/toast/img.json +8 -0
- package/rn/components/toast/index.tsx +208 -0
- package/rn/index.ts +55 -0
- package/rn/style/components/accordion.scss +79 -0
- package/rn/style/components/action-sheet.scss +80 -0
- package/rn/style/components/activity-indicator.scss +30 -0
- package/rn/style/components/article.scss +59 -0
- package/rn/style/components/avatar.scss +45 -0
- package/rn/style/components/badge.scss +51 -0
- package/rn/style/components/button.scss +79 -0
- package/rn/style/components/calendar.scss +182 -0
- package/rn/style/components/card.scss +88 -0
- package/rn/style/components/checkbox.scss +107 -0
- package/rn/style/components/countdown.scss +82 -0
- package/rn/style/components/curtain.scss +128 -0
- package/rn/style/components/divider.scss +33 -0
- package/rn/style/components/drawer.scss +72 -0
- package/rn/style/components/fab.scss +37 -0
- package/rn/style/components/flex.scss +158 -0
- package/rn/style/components/float-layout.scss +119 -0
- package/rn/style/components/form.scss +12 -0
- package/rn/style/components/grid.scss +104 -0
- package/rn/style/components/icon.scss +221 -0
- package/rn/style/components/image-picker.scss +108 -0
- package/rn/style/components/index.scss +51 -0
- package/rn/style/components/indexes.scss +53 -0
- package/rn/style/components/input-number.scss +82 -0
- package/rn/style/components/input.scss +149 -0
- package/rn/style/components/list.scss +107 -0
- package/rn/style/components/load-more.scss +28 -0
- package/rn/style/components/loading.scss +45 -0
- package/rn/style/components/message.scss +57 -0
- package/rn/style/components/modal.scss +136 -0
- package/rn/style/components/nav-bar.scss +123 -0
- package/rn/style/components/noticebar.scss +111 -0
- package/rn/style/components/pagination.scss +43 -0
- package/rn/style/components/progress.scss +104 -0
- package/rn/style/components/radio.scss +94 -0
- package/rn/style/components/range.scss +51 -0
- package/rn/style/components/rate.scss +48 -0
- package/rn/style/components/search-bar.scss +133 -0
- package/rn/style/components/segmented-control.scss +44 -0
- package/rn/style/components/slider.scss +33 -0
- package/rn/style/components/steps.scss +130 -0
- package/rn/style/components/swipe-action.scss +53 -0
- package/rn/style/components/switch.scss +61 -0
- package/rn/style/components/tab-bar.scss +74 -0
- package/rn/style/components/tabs.scss +205 -0
- package/rn/style/components/tag.scss +73 -0
- package/rn/style/components/textarea.scss +57 -0
- package/rn/style/components/timeline.scss +88 -0
- package/rn/style/components/toast.scss +112 -0
- package/rn/style/index.scss +14 -0
- package/rn/style/mixins/index.scss +18 -0
- package/rn/style/mixins/libs/absolute-center.scss +9 -0
- package/rn/style/mixins/libs/active.scss +10 -0
- package/rn/style/mixins/libs/alignhack.scss +11 -0
- package/rn/style/mixins/libs/border.scss +48 -0
- package/rn/style/mixins/libs/clearfix.scss +21 -0
- package/rn/style/mixins/libs/disabled.scss +6 -0
- package/rn/style/mixins/libs/flex.scss +49 -0
- package/rn/style/mixins/libs/hairline.scss +209 -0
- package/rn/style/mixins/libs/line.scss +14 -0
- package/rn/style/mixins/libs/overlay.scss +11 -0
- package/rn/style/mixins/libs/placeholder.scss +12 -0
- package/rn/style/mixins/libs/shade.scss +23 -0
- package/rn/style/mixins/libs/tint.scss +23 -0
- package/rn/style/themes/purple.scss +44 -0
- package/rn/style/themes/red.scss +45 -0
- package/rn/style/variables/default.scss +461 -0
- package/types/avatar.d.ts +4 -3
- package/types/base.d.ts +1 -1
- package/types/checkbox.d.ts +3 -1
- package/types/countdown.d.ts +2 -1
- package/types/drawer.d.ts +3 -2
- package/types/float-layout.d.ts +2 -1
- package/types/input-number.d.ts +8 -5
- package/types/message.d.ts +5 -3
- package/types/radio.d.ts +6 -2
- package/types/timeline.d.ts +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,29 +3,31 @@ import { View, Text, OpenData, Image, Button, Form, Switch, ScrollView, Label, I
|
|
|
3
3
|
import Taro from '@tarojs/taro';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
|
-
Copyright (c) Microsoft Corporation.
|
|
7
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
8
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
9
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
Copyright (c) Microsoft Corporation.
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
14
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
8
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
+
purpose with or without fee is hereby granted.
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
13
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
14
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
16
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
18
18
|
***************************************************************************** */
|
|
19
19
|
/* global Reflect, Promise */
|
|
20
20
|
|
|
21
21
|
var extendStatics = function(d, b) {
|
|
22
22
|
extendStatics = Object.setPrototypeOf ||
|
|
23
23
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
24
|
-
function (d, b) { for (var p in b) if (
|
|
24
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
25
25
|
return extendStatics(d, b);
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
function __extends(d, b) {
|
|
29
|
+
if (typeof b !== "function" && b !== null)
|
|
30
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
29
31
|
extendStatics(d, b);
|
|
30
32
|
function __() { this.constructor = d; }
|
|
31
33
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -59,6 +61,7 @@ function __read(o, n) {
|
|
|
59
61
|
return ar;
|
|
60
62
|
}
|
|
61
63
|
|
|
64
|
+
/** @deprecated */
|
|
62
65
|
function __spread() {
|
|
63
66
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
64
67
|
ar = ar.concat(__read(arguments[i]));
|
|
@@ -73,7 +76,7 @@ function createCommonjsModule(fn, module) {
|
|
|
73
76
|
|
|
74
77
|
var classnames = createCommonjsModule(function (module) {
|
|
75
78
|
/*!
|
|
76
|
-
Copyright (c)
|
|
79
|
+
Copyright (c) 2018 Jed Watson.
|
|
77
80
|
Licensed under the MIT License (MIT), see
|
|
78
81
|
http://jedwatson.github.io/classnames
|
|
79
82
|
*/
|
|
@@ -83,7 +86,7 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
83
86
|
|
|
84
87
|
var hasOwn = {}.hasOwnProperty;
|
|
85
88
|
|
|
86
|
-
function classNames
|
|
89
|
+
function classNames() {
|
|
87
90
|
var classes = [];
|
|
88
91
|
|
|
89
92
|
for (var i = 0; i < arguments.length; i++) {
|
|
@@ -94,16 +97,22 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
94
97
|
|
|
95
98
|
if (argType === 'string' || argType === 'number') {
|
|
96
99
|
classes.push(arg);
|
|
97
|
-
} else if (Array.isArray(arg)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
} else if (Array.isArray(arg)) {
|
|
101
|
+
if (arg.length) {
|
|
102
|
+
var inner = classNames.apply(null, arg);
|
|
103
|
+
if (inner) {
|
|
104
|
+
classes.push(inner);
|
|
105
|
+
}
|
|
101
106
|
}
|
|
102
107
|
} else if (argType === 'object') {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
if (arg.toString === Object.prototype.toString) {
|
|
109
|
+
for (var key in arg) {
|
|
110
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
111
|
+
classes.push(key);
|
|
112
|
+
}
|
|
106
113
|
}
|
|
114
|
+
} else {
|
|
115
|
+
classes.push(arg.toString());
|
|
107
116
|
}
|
|
108
117
|
}
|
|
109
118
|
}
|
|
@@ -111,7 +120,7 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
111
120
|
return classes.join(' ');
|
|
112
121
|
}
|
|
113
122
|
|
|
114
|
-
if (
|
|
123
|
+
if (module.exports) {
|
|
115
124
|
classNames.default = classNames;
|
|
116
125
|
module.exports = classNames;
|
|
117
126
|
} else {
|
|
@@ -338,34 +347,34 @@ exports.typeOf = typeOf;
|
|
|
338
347
|
})();
|
|
339
348
|
}
|
|
340
349
|
});
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
350
|
+
reactIs_development.AsyncMode;
|
|
351
|
+
reactIs_development.ConcurrentMode;
|
|
352
|
+
reactIs_development.ContextConsumer;
|
|
353
|
+
reactIs_development.ContextProvider;
|
|
354
|
+
reactIs_development.Element;
|
|
355
|
+
reactIs_development.ForwardRef;
|
|
356
|
+
reactIs_development.Fragment;
|
|
357
|
+
reactIs_development.Lazy;
|
|
358
|
+
reactIs_development.Memo;
|
|
359
|
+
reactIs_development.Portal;
|
|
360
|
+
reactIs_development.Profiler;
|
|
361
|
+
reactIs_development.StrictMode;
|
|
362
|
+
reactIs_development.Suspense;
|
|
363
|
+
reactIs_development.isAsyncMode;
|
|
364
|
+
reactIs_development.isConcurrentMode;
|
|
365
|
+
reactIs_development.isContextConsumer;
|
|
366
|
+
reactIs_development.isContextProvider;
|
|
367
|
+
reactIs_development.isElement;
|
|
368
|
+
reactIs_development.isForwardRef;
|
|
369
|
+
reactIs_development.isFragment;
|
|
370
|
+
reactIs_development.isLazy;
|
|
371
|
+
reactIs_development.isMemo;
|
|
372
|
+
reactIs_development.isPortal;
|
|
373
|
+
reactIs_development.isProfiler;
|
|
374
|
+
reactIs_development.isStrictMode;
|
|
375
|
+
reactIs_development.isSuspense;
|
|
376
|
+
reactIs_development.isValidElementType;
|
|
377
|
+
reactIs_development.typeOf;
|
|
369
378
|
|
|
370
379
|
var reactIs = createCommonjsModule(function (module) {
|
|
371
380
|
|
|
@@ -383,7 +392,7 @@ object-assign
|
|
|
383
392
|
*/
|
|
384
393
|
/* eslint-disable no-unused-vars */
|
|
385
394
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
386
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
395
|
+
var hasOwnProperty$7 = Object.prototype.hasOwnProperty;
|
|
387
396
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
388
397
|
|
|
389
398
|
function toObject(val) {
|
|
@@ -447,7 +456,7 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
447
456
|
from = Object(arguments[s]);
|
|
448
457
|
|
|
449
458
|
for (var key in from) {
|
|
450
|
-
if (hasOwnProperty.call(from, key)) {
|
|
459
|
+
if (hasOwnProperty$7.call(from, key)) {
|
|
451
460
|
to[key] = from[key];
|
|
452
461
|
}
|
|
453
462
|
}
|
|
@@ -472,18 +481,18 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
472
481
|
* LICENSE file in the root directory of this source tree.
|
|
473
482
|
*/
|
|
474
483
|
|
|
475
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
484
|
+
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
476
485
|
|
|
477
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
486
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
478
487
|
|
|
479
|
-
var printWarning = function() {};
|
|
488
|
+
var printWarning$1 = function() {};
|
|
480
489
|
|
|
481
490
|
if (process.env.NODE_ENV !== 'production') {
|
|
482
|
-
var ReactPropTypesSecret
|
|
491
|
+
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
483
492
|
var loggedTypeFailures = {};
|
|
484
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
493
|
+
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
485
494
|
|
|
486
|
-
printWarning = function(text) {
|
|
495
|
+
printWarning$1 = function(text) {
|
|
487
496
|
var message = 'Warning: ' + text;
|
|
488
497
|
if (typeof console !== 'undefined') {
|
|
489
498
|
console.error(message);
|
|
@@ -511,7 +520,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
511
520
|
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
512
521
|
if (process.env.NODE_ENV !== 'production') {
|
|
513
522
|
for (var typeSpecName in typeSpecs) {
|
|
514
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
523
|
+
if (has$1(typeSpecs, typeSpecName)) {
|
|
515
524
|
var error;
|
|
516
525
|
// Prop type validation may throw. In case they do, we don't want to
|
|
517
526
|
// fail the render phase where it didn't fail before. So we log it.
|
|
@@ -527,12 +536,12 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
527
536
|
err.name = 'Invariant Violation';
|
|
528
537
|
throw err;
|
|
529
538
|
}
|
|
530
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret
|
|
539
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
531
540
|
} catch (ex) {
|
|
532
541
|
error = ex;
|
|
533
542
|
}
|
|
534
543
|
if (error && !(error instanceof Error)) {
|
|
535
|
-
printWarning(
|
|
544
|
+
printWarning$1(
|
|
536
545
|
(componentName || 'React class') + ': type specification of ' +
|
|
537
546
|
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
538
547
|
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
@@ -548,7 +557,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
548
557
|
|
|
549
558
|
var stack = getStack ? getStack() : '';
|
|
550
559
|
|
|
551
|
-
printWarning(
|
|
560
|
+
printWarning$1(
|
|
552
561
|
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
553
562
|
);
|
|
554
563
|
}
|
|
@@ -570,11 +579,11 @@ checkPropTypes.resetWarningCache = function() {
|
|
|
570
579
|
|
|
571
580
|
var checkPropTypes_1 = checkPropTypes;
|
|
572
581
|
|
|
573
|
-
var has
|
|
574
|
-
var printWarning
|
|
582
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
583
|
+
var printWarning = function() {};
|
|
575
584
|
|
|
576
585
|
if (process.env.NODE_ENV !== 'production') {
|
|
577
|
-
printWarning
|
|
586
|
+
printWarning = function(text) {
|
|
578
587
|
var message = 'Warning: ' + text;
|
|
579
588
|
if (typeof console !== 'undefined') {
|
|
580
589
|
console.error(message);
|
|
@@ -750,7 +759,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
750
759
|
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
751
760
|
manualPropTypeWarningCount < 3
|
|
752
761
|
) {
|
|
753
|
-
printWarning
|
|
762
|
+
printWarning(
|
|
754
763
|
'You are manually calling a React.PropTypes validation ' +
|
|
755
764
|
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
756
765
|
'and will throw in the standalone `prop-types` package. ' +
|
|
@@ -863,12 +872,12 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
863
872
|
if (!Array.isArray(expectedValues)) {
|
|
864
873
|
if (process.env.NODE_ENV !== 'production') {
|
|
865
874
|
if (arguments.length > 1) {
|
|
866
|
-
printWarning
|
|
875
|
+
printWarning(
|
|
867
876
|
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
868
877
|
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
869
878
|
);
|
|
870
879
|
} else {
|
|
871
|
-
printWarning
|
|
880
|
+
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
872
881
|
}
|
|
873
882
|
}
|
|
874
883
|
return emptyFunctionThatReturnsNull;
|
|
@@ -905,7 +914,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
905
914
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
906
915
|
}
|
|
907
916
|
for (var key in propValue) {
|
|
908
|
-
if (has
|
|
917
|
+
if (has(propValue, key)) {
|
|
909
918
|
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
910
919
|
if (error instanceof Error) {
|
|
911
920
|
return error;
|
|
@@ -919,14 +928,14 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
919
928
|
|
|
920
929
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
921
930
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
922
|
-
process.env.NODE_ENV !== 'production' ? printWarning
|
|
931
|
+
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
923
932
|
return emptyFunctionThatReturnsNull;
|
|
924
933
|
}
|
|
925
934
|
|
|
926
935
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
927
936
|
var checker = arrayOfTypeCheckers[i];
|
|
928
937
|
if (typeof checker !== 'function') {
|
|
929
|
-
printWarning
|
|
938
|
+
printWarning(
|
|
930
939
|
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
931
940
|
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
932
941
|
);
|
|
@@ -1359,7 +1368,7 @@ AtActionSheetItem.propTypes = {
|
|
|
1359
1368
|
onClick: propTypes.func
|
|
1360
1369
|
};
|
|
1361
1370
|
|
|
1362
|
-
var ENV = Taro.getEnv();
|
|
1371
|
+
var ENV$4 = Taro.getEnv();
|
|
1363
1372
|
function delay(delayTime) {
|
|
1364
1373
|
if (delayTime === void 0) { delayTime = 25; }
|
|
1365
1374
|
return new Promise(function (resolve) {
|
|
@@ -1417,7 +1426,7 @@ function uuid(len, radix) {
|
|
|
1417
1426
|
}
|
|
1418
1427
|
function getEventDetail(event) {
|
|
1419
1428
|
var detail;
|
|
1420
|
-
switch (ENV) {
|
|
1429
|
+
switch (ENV$4) {
|
|
1421
1430
|
case Taro.ENV_TYPE.WEB:
|
|
1422
1431
|
detail = {
|
|
1423
1432
|
pageX: event.pageX,
|
|
@@ -1487,7 +1496,7 @@ function isTest() {
|
|
|
1487
1496
|
}
|
|
1488
1497
|
var scrollTop = 0;
|
|
1489
1498
|
function handleTouchScroll(flag) {
|
|
1490
|
-
if (ENV !== Taro.ENV_TYPE.WEB) {
|
|
1499
|
+
if (ENV$4 !== Taro.ENV_TYPE.WEB) {
|
|
1491
1500
|
return;
|
|
1492
1501
|
}
|
|
1493
1502
|
if (flag) {
|
|
@@ -1514,7 +1523,7 @@ function pxTransform(size) {
|
|
|
1514
1523
|
};
|
|
1515
1524
|
return size / deviceRatio[designWidth] + "rpx";
|
|
1516
1525
|
}
|
|
1517
|
-
function objectToString(style) {
|
|
1526
|
+
function objectToString$2(style) {
|
|
1518
1527
|
if (style && typeof style === 'object') {
|
|
1519
1528
|
var styleStr_1 = '';
|
|
1520
1529
|
Object.keys(style).forEach(function (key) {
|
|
@@ -1541,7 +1550,7 @@ function mergeStyle(style1, style2) {
|
|
|
1541
1550
|
typeof style2 === 'object') {
|
|
1542
1551
|
return Object.assign({}, style1, style2);
|
|
1543
1552
|
}
|
|
1544
|
-
return objectToString(style1) + objectToString(style2);
|
|
1553
|
+
return objectToString$2(style1) + objectToString$2(style2);
|
|
1545
1554
|
}
|
|
1546
1555
|
|
|
1547
1556
|
var AtLoading = /** @class */ (function (_super) {
|
|
@@ -1612,7 +1621,7 @@ AtActivityIndicator.propTypes = {
|
|
|
1612
1621
|
isOpened: propTypes.bool
|
|
1613
1622
|
};
|
|
1614
1623
|
|
|
1615
|
-
var SIZE_CLASS = {
|
|
1624
|
+
var SIZE_CLASS$2 = {
|
|
1616
1625
|
large: 'large',
|
|
1617
1626
|
normal: 'normal',
|
|
1618
1627
|
small: 'small'
|
|
@@ -1630,7 +1639,7 @@ var AtAvatar = /** @class */ (function (_super) {
|
|
|
1630
1639
|
var _a;
|
|
1631
1640
|
var _b = this.props, size = _b.size, circle = _b.circle, image = _b.image, text = _b.text, openData = _b.openData, customStyle = _b.customStyle;
|
|
1632
1641
|
var rootClassName = ['at-avatar'];
|
|
1633
|
-
var iconSize = SIZE_CLASS[size || 'normal'];
|
|
1642
|
+
var iconSize = SIZE_CLASS$2[size || 'normal'];
|
|
1634
1643
|
var classObject = (_a = {},
|
|
1635
1644
|
_a["at-avatar--" + iconSize] = iconSize,
|
|
1636
1645
|
_a['at-avatar--circle'] = circle,
|
|
@@ -1715,7 +1724,7 @@ var SIZE_CLASS$1 = {
|
|
|
1715
1724
|
normal: 'normal',
|
|
1716
1725
|
small: 'small'
|
|
1717
1726
|
};
|
|
1718
|
-
var TYPE_CLASS = {
|
|
1727
|
+
var TYPE_CLASS$1 = {
|
|
1719
1728
|
primary: 'primary',
|
|
1720
1729
|
secondary: 'secondary'
|
|
1721
1730
|
};
|
|
@@ -1780,7 +1789,7 @@ var AtButton = /** @class */ (function (_super) {
|
|
|
1780
1789
|
var classObject = (_a = {},
|
|
1781
1790
|
_a["at-button--" + SIZE_CLASS$1[size]] = SIZE_CLASS$1[size],
|
|
1782
1791
|
_a['at-button--disabled'] = disabled,
|
|
1783
|
-
_a["at-button--" + type] = TYPE_CLASS[type],
|
|
1792
|
+
_a["at-button--" + type] = TYPE_CLASS$1[type],
|
|
1784
1793
|
_a['at-button--circle'] = circle,
|
|
1785
1794
|
_a['at-button--full'] = full,
|
|
1786
1795
|
_a);
|
|
@@ -2390,20 +2399,20 @@ var Symbol$1 = _root.Symbol;
|
|
|
2390
2399
|
var _Symbol = Symbol$1;
|
|
2391
2400
|
|
|
2392
2401
|
/** Used for built-in method references. */
|
|
2393
|
-
var objectProto = Object.prototype;
|
|
2402
|
+
var objectProto$8 = Object.prototype;
|
|
2394
2403
|
|
|
2395
2404
|
/** Used to check objects for own properties. */
|
|
2396
|
-
var hasOwnProperty$
|
|
2405
|
+
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
2397
2406
|
|
|
2398
2407
|
/**
|
|
2399
2408
|
* Used to resolve the
|
|
2400
2409
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
2401
2410
|
* of values.
|
|
2402
2411
|
*/
|
|
2403
|
-
var nativeObjectToString = objectProto.toString;
|
|
2412
|
+
var nativeObjectToString$1 = objectProto$8.toString;
|
|
2404
2413
|
|
|
2405
2414
|
/** Built-in value references. */
|
|
2406
|
-
var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
2415
|
+
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
2407
2416
|
|
|
2408
2417
|
/**
|
|
2409
2418
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -2413,20 +2422,20 @@ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
2413
2422
|
* @returns {string} Returns the raw `toStringTag`.
|
|
2414
2423
|
*/
|
|
2415
2424
|
function getRawTag(value) {
|
|
2416
|
-
var isOwn = hasOwnProperty$
|
|
2417
|
-
tag = value[symToStringTag];
|
|
2425
|
+
var isOwn = hasOwnProperty$6.call(value, symToStringTag$1),
|
|
2426
|
+
tag = value[symToStringTag$1];
|
|
2418
2427
|
|
|
2419
2428
|
try {
|
|
2420
|
-
value[symToStringTag] = undefined;
|
|
2429
|
+
value[symToStringTag$1] = undefined;
|
|
2421
2430
|
var unmasked = true;
|
|
2422
2431
|
} catch (e) {}
|
|
2423
2432
|
|
|
2424
|
-
var result = nativeObjectToString.call(value);
|
|
2433
|
+
var result = nativeObjectToString$1.call(value);
|
|
2425
2434
|
if (unmasked) {
|
|
2426
2435
|
if (isOwn) {
|
|
2427
|
-
value[symToStringTag] = tag;
|
|
2436
|
+
value[symToStringTag$1] = tag;
|
|
2428
2437
|
} else {
|
|
2429
|
-
delete value[symToStringTag];
|
|
2438
|
+
delete value[symToStringTag$1];
|
|
2430
2439
|
}
|
|
2431
2440
|
}
|
|
2432
2441
|
return result;
|
|
@@ -2435,14 +2444,14 @@ function getRawTag(value) {
|
|
|
2435
2444
|
var _getRawTag = getRawTag;
|
|
2436
2445
|
|
|
2437
2446
|
/** Used for built-in method references. */
|
|
2438
|
-
var objectProto$
|
|
2447
|
+
var objectProto$7 = Object.prototype;
|
|
2439
2448
|
|
|
2440
2449
|
/**
|
|
2441
2450
|
* Used to resolve the
|
|
2442
2451
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
2443
2452
|
* of values.
|
|
2444
2453
|
*/
|
|
2445
|
-
var nativeObjectToString
|
|
2454
|
+
var nativeObjectToString = objectProto$7.toString;
|
|
2446
2455
|
|
|
2447
2456
|
/**
|
|
2448
2457
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -2452,7 +2461,7 @@ var nativeObjectToString$1 = objectProto$1.toString;
|
|
|
2452
2461
|
* @returns {string} Returns the converted string.
|
|
2453
2462
|
*/
|
|
2454
2463
|
function objectToString$1(value) {
|
|
2455
|
-
return nativeObjectToString
|
|
2464
|
+
return nativeObjectToString.call(value);
|
|
2456
2465
|
}
|
|
2457
2466
|
|
|
2458
2467
|
var _objectToString = objectToString$1;
|
|
@@ -2462,7 +2471,7 @@ var nullTag = '[object Null]',
|
|
|
2462
2471
|
undefinedTag = '[object Undefined]';
|
|
2463
2472
|
|
|
2464
2473
|
/** Built-in value references. */
|
|
2465
|
-
var symToStringTag
|
|
2474
|
+
var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
2466
2475
|
|
|
2467
2476
|
/**
|
|
2468
2477
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -2475,7 +2484,7 @@ function baseGetTag(value) {
|
|
|
2475
2484
|
if (value == null) {
|
|
2476
2485
|
return value === undefined ? undefinedTag : nullTag;
|
|
2477
2486
|
}
|
|
2478
|
-
return (symToStringTag
|
|
2487
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
2479
2488
|
? _getRawTag(value)
|
|
2480
2489
|
: _objectToString(value);
|
|
2481
2490
|
}
|
|
@@ -2516,7 +2525,7 @@ var isObject_1 = isObject;
|
|
|
2516
2525
|
|
|
2517
2526
|
/** `Object#toString` result references. */
|
|
2518
2527
|
var asyncTag = '[object AsyncFunction]',
|
|
2519
|
-
funcTag = '[object Function]',
|
|
2528
|
+
funcTag$1 = '[object Function]',
|
|
2520
2529
|
genTag = '[object GeneratorFunction]',
|
|
2521
2530
|
proxyTag = '[object Proxy]';
|
|
2522
2531
|
|
|
@@ -2544,13 +2553,13 @@ function isFunction(value) {
|
|
|
2544
2553
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
2545
2554
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
2546
2555
|
var tag = _baseGetTag(value);
|
|
2547
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
2556
|
+
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
2548
2557
|
}
|
|
2549
2558
|
|
|
2550
2559
|
var isFunction_1 = isFunction;
|
|
2551
2560
|
|
|
2552
2561
|
/** Used as references for various `Number` constants. */
|
|
2553
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
2562
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
2554
2563
|
|
|
2555
2564
|
/**
|
|
2556
2565
|
* Checks if `value` is a valid array-like length.
|
|
@@ -2580,7 +2589,7 @@ var MAX_SAFE_INTEGER = 9007199254740991;
|
|
|
2580
2589
|
*/
|
|
2581
2590
|
function isLength(value) {
|
|
2582
2591
|
return typeof value == 'number' &&
|
|
2583
|
-
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
2592
|
+
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
2584
2593
|
}
|
|
2585
2594
|
|
|
2586
2595
|
var isLength_1 = isLength;
|
|
@@ -2617,7 +2626,7 @@ function isArrayLike(value) {
|
|
|
2617
2626
|
var isArrayLike_1 = isArrayLike;
|
|
2618
2627
|
|
|
2619
2628
|
/** Used as references for various `Number` constants. */
|
|
2620
|
-
var MAX_SAFE_INTEGER
|
|
2629
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
2621
2630
|
|
|
2622
2631
|
/** Used to detect unsigned integer values. */
|
|
2623
2632
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
@@ -2632,7 +2641,7 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
|
2632
2641
|
*/
|
|
2633
2642
|
function isIndex(value, length) {
|
|
2634
2643
|
var type = typeof value;
|
|
2635
|
-
length = length == null ? MAX_SAFE_INTEGER
|
|
2644
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
2636
2645
|
|
|
2637
2646
|
return !!length &&
|
|
2638
2647
|
(type == 'number' ||
|
|
@@ -2668,6 +2677,44 @@ function isIterateeCall(value, index, object) {
|
|
|
2668
2677
|
|
|
2669
2678
|
var _isIterateeCall = isIterateeCall;
|
|
2670
2679
|
|
|
2680
|
+
/** Used to match a single whitespace character. */
|
|
2681
|
+
var reWhitespace = /\s/;
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
2685
|
+
* character of `string`.
|
|
2686
|
+
*
|
|
2687
|
+
* @private
|
|
2688
|
+
* @param {string} string The string to inspect.
|
|
2689
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
2690
|
+
*/
|
|
2691
|
+
function trimmedEndIndex(string) {
|
|
2692
|
+
var index = string.length;
|
|
2693
|
+
|
|
2694
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
2695
|
+
return index;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
var _trimmedEndIndex = trimmedEndIndex;
|
|
2699
|
+
|
|
2700
|
+
/** Used to match leading whitespace. */
|
|
2701
|
+
var reTrimStart = /^\s+/;
|
|
2702
|
+
|
|
2703
|
+
/**
|
|
2704
|
+
* The base implementation of `_.trim`.
|
|
2705
|
+
*
|
|
2706
|
+
* @private
|
|
2707
|
+
* @param {string} string The string to trim.
|
|
2708
|
+
* @returns {string} Returns the trimmed string.
|
|
2709
|
+
*/
|
|
2710
|
+
function baseTrim(string) {
|
|
2711
|
+
return string
|
|
2712
|
+
? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
2713
|
+
: string;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
var _baseTrim = baseTrim;
|
|
2717
|
+
|
|
2671
2718
|
/**
|
|
2672
2719
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
2673
2720
|
* and has a `typeof` result of "object".
|
|
@@ -2728,9 +2775,6 @@ var isSymbol_1 = isSymbol;
|
|
|
2728
2775
|
/** Used as references for various `Number` constants. */
|
|
2729
2776
|
var NAN = 0 / 0;
|
|
2730
2777
|
|
|
2731
|
-
/** Used to match leading and trailing whitespace. */
|
|
2732
|
-
var reTrim = /^\s+|\s+$/g;
|
|
2733
|
-
|
|
2734
2778
|
/** Used to detect bad signed hexadecimal string values. */
|
|
2735
2779
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
2736
2780
|
|
|
@@ -2780,7 +2824,7 @@ function toNumber(value) {
|
|
|
2780
2824
|
if (typeof value != 'string') {
|
|
2781
2825
|
return value === 0 ? value : +value;
|
|
2782
2826
|
}
|
|
2783
|
-
value = value
|
|
2827
|
+
value = _baseTrim(value);
|
|
2784
2828
|
var isBinary = reIsBinary.test(value);
|
|
2785
2829
|
return (isBinary || reIsOctal.test(value))
|
|
2786
2830
|
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
@@ -2790,7 +2834,7 @@ function toNumber(value) {
|
|
|
2790
2834
|
var toNumber_1 = toNumber;
|
|
2791
2835
|
|
|
2792
2836
|
/** Used as references for various `Number` constants. */
|
|
2793
|
-
var INFINITY = 1 / 0,
|
|
2837
|
+
var INFINITY$1 = 1 / 0,
|
|
2794
2838
|
MAX_INTEGER = 1.7976931348623157e+308;
|
|
2795
2839
|
|
|
2796
2840
|
/**
|
|
@@ -2821,7 +2865,7 @@ function toFinite(value) {
|
|
|
2821
2865
|
return value === 0 ? value : 0;
|
|
2822
2866
|
}
|
|
2823
2867
|
value = toNumber_1(value);
|
|
2824
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
2868
|
+
if (value === INFINITY$1 || value === -INFINITY$1) {
|
|
2825
2869
|
var sign = (value < 0 ? -1 : 1);
|
|
2826
2870
|
return sign * MAX_INTEGER;
|
|
2827
2871
|
}
|
|
@@ -2867,7 +2911,7 @@ var toInteger_1 = toInteger;
|
|
|
2867
2911
|
|
|
2868
2912
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
2869
2913
|
var nativeCeil = Math.ceil,
|
|
2870
|
-
nativeMax = Math.max;
|
|
2914
|
+
nativeMax$1 = Math.max;
|
|
2871
2915
|
|
|
2872
2916
|
/**
|
|
2873
2917
|
* Creates an array of elements split into groups the length of `size`.
|
|
@@ -2894,7 +2938,7 @@ function chunk(array, size, guard) {
|
|
|
2894
2938
|
if ((guard ? _isIterateeCall(array, size, guard) : size === undefined)) {
|
|
2895
2939
|
size = 1;
|
|
2896
2940
|
} else {
|
|
2897
|
-
size = nativeMax(toInteger_1(size), 0);
|
|
2941
|
+
size = nativeMax$1(toInteger_1(size), 0);
|
|
2898
2942
|
}
|
|
2899
2943
|
var length = array == null ? 0 : array.length;
|
|
2900
2944
|
if (!length || size < 1) {
|
|
@@ -3025,14 +3069,14 @@ AtIcon.propTypes = {
|
|
|
3025
3069
|
function getInputProps(props) {
|
|
3026
3070
|
var actualProps = {
|
|
3027
3071
|
type: props.type,
|
|
3028
|
-
|
|
3072
|
+
maxlength: props.maxlength,
|
|
3029
3073
|
disabled: props.disabled,
|
|
3030
3074
|
password: false
|
|
3031
3075
|
};
|
|
3032
3076
|
switch (actualProps.type) {
|
|
3033
3077
|
case 'phone':
|
|
3034
3078
|
actualProps.type = 'number';
|
|
3035
|
-
actualProps.
|
|
3079
|
+
actualProps.maxlength = 11;
|
|
3036
3080
|
break;
|
|
3037
3081
|
case 'password':
|
|
3038
3082
|
actualProps.type = 'text';
|
|
@@ -3109,14 +3153,15 @@ var AtInput = /** @class */ (function (_super) {
|
|
|
3109
3153
|
'at-input__overlay--hidden': !disabled
|
|
3110
3154
|
});
|
|
3111
3155
|
var placeholderCls = classnames('placeholder', placeholderClass);
|
|
3156
|
+
var id = name && { id: name };
|
|
3112
3157
|
return (React.createElement(View, { className: rootCls, style: customStyle },
|
|
3113
3158
|
React.createElement(View, { className: containerCls },
|
|
3114
3159
|
React.createElement(View, { className: overlayCls, onClick: this.handleClick }),
|
|
3115
3160
|
title && (React.createElement(Label, { className: "at-input__title " + (required && 'at-input__title--required'), for: name }, title)),
|
|
3116
|
-
React.createElement(Input, { className: 'at-input__input', id
|
|
3161
|
+
React.createElement(Input, __assign({ className: 'at-input__input' }, id, { name: name, type: type, password: password, placeholderStyle: placeholderStyle, placeholderClass: placeholderCls, placeholder: placeholder, cursorSpacing: cursorSpacing, maxlength: maxlength, autoFocus: autoFocus, focus: focus, value: value, confirmType: confirmType, cursor: cursor, selectionStart: selectionStart, selectionEnd: selectionEnd, adjustPosition: adjustPosition, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onConfirm: this.handleConfirm,
|
|
3117
3162
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
3118
3163
|
// @ts-ignore
|
|
3119
|
-
onKeyboardHeightChange: this.handleKeyboardHeightChange }),
|
|
3164
|
+
onKeyboardHeightChange: this.handleKeyboardHeightChange })),
|
|
3120
3165
|
clear && value && (React.createElement(View, { className: 'at-input__icon', onTouchEnd: this.handleClearValue },
|
|
3121
3166
|
React.createElement(Text, { className: 'at-icon at-icon-close-circle at-input__icon-close' }))),
|
|
3122
3167
|
error && (React.createElement(View, { className: 'at-input__icon', onTouchStart: this.handleErrorClick },
|
|
@@ -3236,7 +3281,7 @@ var isArray = Array.isArray;
|
|
|
3236
3281
|
var isArray_1 = isArray;
|
|
3237
3282
|
|
|
3238
3283
|
/** Used as references for various `Number` constants. */
|
|
3239
|
-
var INFINITY
|
|
3284
|
+
var INFINITY = 1 / 0;
|
|
3240
3285
|
|
|
3241
3286
|
/** Used to convert symbols to primitives and strings. */
|
|
3242
3287
|
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
|
|
@@ -3263,7 +3308,7 @@ function baseToString(value) {
|
|
|
3263
3308
|
return symbolToString ? symbolToString.call(value) : '';
|
|
3264
3309
|
}
|
|
3265
3310
|
var result = (value + '');
|
|
3266
|
-
return (result == '0' && (1 / value) == -INFINITY
|
|
3311
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
3267
3312
|
}
|
|
3268
3313
|
|
|
3269
3314
|
var _baseToString = baseToString;
|
|
@@ -3744,6 +3789,8 @@ var AtNoticebar = /** @class */ (function (_super) {
|
|
|
3744
3789
|
AtNoticebar.prototype.initAnimation = function () {
|
|
3745
3790
|
var _this = this;
|
|
3746
3791
|
var _a = this.state, isWEAPP = _a.isWEAPP, isALIPAY = _a.isALIPAY;
|
|
3792
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
3793
|
+
// @ts-ignore
|
|
3747
3794
|
this.timeout = setTimeout(function () {
|
|
3748
3795
|
_this.timeout = null;
|
|
3749
3796
|
if (_this.state.isWEB) {
|
|
@@ -3796,6 +3843,8 @@ var AtNoticebar = /** @class */ (function (_super) {
|
|
|
3796
3843
|
}, 900);
|
|
3797
3844
|
};
|
|
3798
3845
|
animBody();
|
|
3846
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
3847
|
+
// @ts-ignore
|
|
3799
3848
|
_this.interval = setInterval(animBody, dura * 1000 + 1000);
|
|
3800
3849
|
});
|
|
3801
3850
|
}
|
|
@@ -4330,7 +4379,7 @@ AtTabBar.propTypes = {
|
|
|
4330
4379
|
onClick: propTypes.func
|
|
4331
4380
|
};
|
|
4332
4381
|
|
|
4333
|
-
var ENV$
|
|
4382
|
+
var ENV$3 = Taro.getEnv();
|
|
4334
4383
|
var MIN_DISTANCE = 100;
|
|
4335
4384
|
var MAX_INTERVAL = 10;
|
|
4336
4385
|
var AtTabs = /** @class */ (function (_super) {
|
|
@@ -4340,7 +4389,7 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4340
4389
|
_this.updateState = function (idx) {
|
|
4341
4390
|
if (_this.props.scroll) {
|
|
4342
4391
|
// 标签栏滚动
|
|
4343
|
-
switch (ENV$
|
|
4392
|
+
switch (ENV$3) {
|
|
4344
4393
|
case Taro.ENV_TYPE.WEAPP:
|
|
4345
4394
|
case Taro.ENV_TYPE.ALIPAY:
|
|
4346
4395
|
case Taro.ENV_TYPE.SWAN: {
|
|
@@ -4394,6 +4443,8 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4394
4443
|
// 获取触摸时的原点
|
|
4395
4444
|
this._touchDot = e.touches[0].pageX;
|
|
4396
4445
|
// 使用js计时器记录时间
|
|
4446
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
4447
|
+
// @ts-ignore
|
|
4397
4448
|
this._timer = setInterval(function () {
|
|
4398
4449
|
_this._interval++;
|
|
4399
4450
|
}, 100);
|
|
@@ -4429,7 +4480,7 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4429
4480
|
this._isMoving = false;
|
|
4430
4481
|
};
|
|
4431
4482
|
AtTabs.prototype.getTabHeaderRef = function () {
|
|
4432
|
-
if (ENV$
|
|
4483
|
+
if (ENV$3 === Taro.ENV_TYPE.WEB) {
|
|
4433
4484
|
this.tabHeaderRef = document.getElementById(this._tabId);
|
|
4434
4485
|
}
|
|
4435
4486
|
};
|
|
@@ -4475,7 +4526,7 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4475
4526
|
'at-tabs__item': true,
|
|
4476
4527
|
'at-tabs__item--active': current === idx
|
|
4477
4528
|
});
|
|
4478
|
-
return (React.createElement(View, { className: itemCls, id: "tab" + _this._tabId + idx, key: item
|
|
4529
|
+
return (React.createElement(View, { className: itemCls, id: "tab" + _this._tabId + idx, key: "at-tabs-item-" + idx, onClick: _this.handleClick.bind(_this, idx) },
|
|
4479
4530
|
item.title,
|
|
4480
4531
|
React.createElement(View, { className: 'at-tabs__item-underline' })));
|
|
4481
4532
|
});
|
|
@@ -4484,7 +4535,7 @@ var AtTabs = /** @class */ (function (_super) {
|
|
|
4484
4535
|
'at-tabs--scroll': scroll
|
|
4485
4536
|
},
|
|
4486
4537
|
_a["at-tabs--" + tabDirection] = true,
|
|
4487
|
-
_a["at-tabs--" + ENV$
|
|
4538
|
+
_a["at-tabs--" + ENV$3] = true,
|
|
4488
4539
|
_a), className);
|
|
4489
4540
|
var scrollX = tabDirection === 'horizontal';
|
|
4490
4541
|
var scrollY = tabDirection === 'vertical';
|
|
@@ -4553,11 +4604,11 @@ AtTabsPane.propTypes = {
|
|
|
4553
4604
|
current: propTypes.number
|
|
4554
4605
|
};
|
|
4555
4606
|
|
|
4556
|
-
var SIZE_CLASS
|
|
4607
|
+
var SIZE_CLASS = {
|
|
4557
4608
|
normal: 'normal',
|
|
4558
4609
|
small: 'small'
|
|
4559
4610
|
};
|
|
4560
|
-
var TYPE_CLASS
|
|
4611
|
+
var TYPE_CLASS = {
|
|
4561
4612
|
primary: 'primary'
|
|
4562
4613
|
};
|
|
4563
4614
|
var AtTag = /** @class */ (function (_super) {
|
|
@@ -4580,8 +4631,8 @@ var AtTag = /** @class */ (function (_super) {
|
|
|
4580
4631
|
var _b = this.props, _c = _b.size, size = _c === void 0 ? 'normal' : _c, _d = _b.type, type = _d === void 0 ? '' : _d, _e = _b.circle, circle = _e === void 0 ? false : _e, _f = _b.disabled, disabled = _f === void 0 ? false : _f, _g = _b.active, active = _g === void 0 ? false : _g, customStyle = _b.customStyle;
|
|
4581
4632
|
var rootClassName = ['at-tag'];
|
|
4582
4633
|
var classObject = (_a = {},
|
|
4583
|
-
_a["at-tag--" + SIZE_CLASS
|
|
4584
|
-
_a["at-tag--" + type] = TYPE_CLASS
|
|
4634
|
+
_a["at-tag--" + SIZE_CLASS[size]] = SIZE_CLASS[size],
|
|
4635
|
+
_a["at-tag--" + type] = TYPE_CLASS[type],
|
|
4585
4636
|
_a['at-tag--disabled'] = disabled,
|
|
4586
4637
|
_a['at-tag--active'] = active,
|
|
4587
4638
|
_a['at-tag--circle'] = circle,
|
|
@@ -4799,6 +4850,8 @@ var AtToast = /** @class */ (function (_super) {
|
|
|
4799
4850
|
if (duration === 0) {
|
|
4800
4851
|
return;
|
|
4801
4852
|
}
|
|
4853
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
4854
|
+
// @ts-ignore
|
|
4802
4855
|
this._timer = setTimeout(function () {
|
|
4803
4856
|
_this.close();
|
|
4804
4857
|
}, +duration);
|
|
@@ -5110,22 +5163,22 @@ var AtSwipeAction = /** @class */ (function (_super) {
|
|
|
5110
5163
|
}
|
|
5111
5164
|
};
|
|
5112
5165
|
_this.onTouchEnd = function (e) {
|
|
5113
|
-
if (_this.moveX ===
|
|
5166
|
+
if (_this.moveX === -_this.maxOffsetSize) {
|
|
5114
5167
|
_this._reset(true);
|
|
5115
5168
|
_this.handleOpened(e);
|
|
5116
5169
|
return;
|
|
5117
5170
|
}
|
|
5118
|
-
if (_this.moveX ===
|
|
5171
|
+
if (_this.moveX === 0) {
|
|
5119
5172
|
_this._reset(false);
|
|
5120
5173
|
_this.handleClosed(e);
|
|
5121
5174
|
return;
|
|
5122
5175
|
}
|
|
5123
|
-
if (_this.state._isOpened && _this.moveX
|
|
5176
|
+
if (_this.state._isOpened && _this.moveX < 0) {
|
|
5124
5177
|
_this._reset(false);
|
|
5125
5178
|
_this.handleClosed(e);
|
|
5126
5179
|
return;
|
|
5127
5180
|
}
|
|
5128
|
-
if (
|
|
5181
|
+
if (Math.abs(_this.moveX) < _this.maxOffsetSize * _this.moveRatio) {
|
|
5129
5182
|
_this._reset(false);
|
|
5130
5183
|
_this.handleClosed(e);
|
|
5131
5184
|
}
|
|
@@ -5141,11 +5194,12 @@ var AtSwipeAction = /** @class */ (function (_super) {
|
|
|
5141
5194
|
_this.maxOffsetSize = maxDistance;
|
|
5142
5195
|
_this.state = {
|
|
5143
5196
|
componentId: uuid(),
|
|
5144
|
-
|
|
5197
|
+
// eslint-disable-next-line no-extra-boolean-cast
|
|
5198
|
+
offsetSize: !!isOpened ? -_this.maxOffsetSize : 0,
|
|
5145
5199
|
_isOpened: !!isOpened,
|
|
5146
5200
|
needAnimation: false
|
|
5147
5201
|
};
|
|
5148
|
-
_this.moveX =
|
|
5202
|
+
_this.moveX = _this.state.offsetSize;
|
|
5149
5203
|
_this.eleWidth = areaWidth;
|
|
5150
5204
|
_this.moveRatio = moveRatio || 0.5;
|
|
5151
5205
|
return _this;
|
|
@@ -5154,35 +5208,37 @@ var AtSwipeAction = /** @class */ (function (_super) {
|
|
|
5154
5208
|
var isOpened = nextProps.isOpened;
|
|
5155
5209
|
var _isOpened = this.state._isOpened;
|
|
5156
5210
|
if (isOpened !== _isOpened) {
|
|
5157
|
-
|
|
5158
|
-
this.
|
|
5159
|
-
this._reset(isOpened_1); // TODO: Check behavior
|
|
5211
|
+
this.moveX = isOpened ? 0 : this.maxOffsetSize;
|
|
5212
|
+
this._reset(!!isOpened); // TODO: Check behavior
|
|
5160
5213
|
}
|
|
5161
5214
|
};
|
|
5162
5215
|
AtSwipeAction.prototype._reset = function (isOpened) {
|
|
5163
5216
|
var _this = this;
|
|
5164
5217
|
if (isOpened) {
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5218
|
+
if (process.env.TARO_ENV === 'jd') {
|
|
5219
|
+
this.setState({
|
|
5220
|
+
_isOpened: true,
|
|
5221
|
+
offsetSize: -this.maxOffsetSize + 0.01
|
|
5222
|
+
});
|
|
5223
|
+
}
|
|
5224
|
+
else {
|
|
5225
|
+
this.setState({
|
|
5226
|
+
_isOpened: true,
|
|
5227
|
+
offsetSize: -this.maxOffsetSize
|
|
5228
|
+
});
|
|
5229
|
+
}
|
|
5169
5230
|
}
|
|
5170
5231
|
else {
|
|
5171
5232
|
this.setState({
|
|
5172
5233
|
offsetSize: this.moveX
|
|
5173
5234
|
}, function () {
|
|
5174
5235
|
_this.setState({
|
|
5175
|
-
offsetSize:
|
|
5236
|
+
offsetSize: 0,
|
|
5176
5237
|
_isOpened: false
|
|
5177
5238
|
});
|
|
5178
5239
|
});
|
|
5179
5240
|
}
|
|
5180
5241
|
};
|
|
5181
|
-
AtSwipeAction.prototype.componentDidMount = function () {
|
|
5182
|
-
var isOpened = !!this.props.isOpened;
|
|
5183
|
-
this.moveX = isOpened ? 0 : this.maxOffsetSize;
|
|
5184
|
-
this._reset(isOpened);
|
|
5185
|
-
};
|
|
5186
5242
|
AtSwipeAction.prototype.render = function () {
|
|
5187
5243
|
var _this = this;
|
|
5188
5244
|
var _a = this.state, componentId = _a.componentId, offsetSize = _a.offsetSize;
|
|
@@ -5196,7 +5252,8 @@ var AtSwipeAction = /** @class */ (function (_super) {
|
|
|
5196
5252
|
transform: "translate(-" + this.maxOffsetSize + "px, 0)"
|
|
5197
5253
|
} },
|
|
5198
5254
|
React.createElement(MovableView, { className: 'at-swipe-action__content', direction: 'horizontal', damping: 50, x: offsetSize, onTouchEnd: this.onTouchEnd, onChange: this.onChange, style: {
|
|
5199
|
-
width: this.eleWidth + "px"
|
|
5255
|
+
width: this.eleWidth + "px",
|
|
5256
|
+
left: this.maxOffsetSize + "px"
|
|
5200
5257
|
} },
|
|
5201
5258
|
this.props.children,
|
|
5202
5259
|
Array.isArray(options) && options.length > 0 ? (React.createElement(AtSwipeActionOptions, { options: options, componentId: componentId, customStyle: {
|
|
@@ -5783,14 +5840,14 @@ var generateMatrix = function (files, col, showAddBtn) {
|
|
|
5783
5840
|
}
|
|
5784
5841
|
return matrix;
|
|
5785
5842
|
};
|
|
5786
|
-
var ENV$
|
|
5843
|
+
var ENV$1 = Taro.getEnv();
|
|
5787
5844
|
var AtImagePicker = /** @class */ (function (_super) {
|
|
5788
5845
|
__extends(AtImagePicker, _super);
|
|
5789
5846
|
function AtImagePicker() {
|
|
5790
5847
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
5791
5848
|
_this.chooseFile = function () {
|
|
5792
5849
|
var _a = _this.props, _b = _a.files, files = _b === void 0 ? [] : _b, multiple = _a.multiple, count = _a.count, sizeType = _a.sizeType, sourceType = _a.sourceType;
|
|
5793
|
-
var filePathName = ENV$
|
|
5850
|
+
var filePathName = ENV$1 === Taro.ENV_TYPE.ALIPAY ? 'apFilePaths' : 'tempFiles';
|
|
5794
5851
|
// const count = multiple ? 99 : 1
|
|
5795
5852
|
var params = {};
|
|
5796
5853
|
if (multiple) {
|
|
@@ -5820,9 +5877,11 @@ var AtImagePicker = /** @class */ (function (_super) {
|
|
|
5820
5877
|
_this.props.onImageClick &&
|
|
5821
5878
|
_this.props.onImageClick(idx, _this.props.files[idx]);
|
|
5822
5879
|
};
|
|
5823
|
-
_this.handleRemoveImg = function (idx) {
|
|
5880
|
+
_this.handleRemoveImg = function (idx, event) {
|
|
5881
|
+
event.stopPropagation();
|
|
5882
|
+
event.preventDefault();
|
|
5824
5883
|
var _a = _this.props.files, files = _a === void 0 ? [] : _a;
|
|
5825
|
-
if (ENV$
|
|
5884
|
+
if (ENV$1 === Taro.ENV_TYPE.WEB) {
|
|
5826
5885
|
window.URL.revokeObjectURL(files[idx].url);
|
|
5827
5886
|
}
|
|
5828
5887
|
var newFiles = files.filter(function (_, i) { return i !== idx; });
|
|
@@ -5841,7 +5900,7 @@ var AtImagePicker = /** @class */ (function (_super) {
|
|
|
5841
5900
|
return item.url ? (React.createElement(View, { className: 'at-image-picker__flex-item', key: i * length + j },
|
|
5842
5901
|
React.createElement(View, { className: 'at-image-picker__item' },
|
|
5843
5902
|
React.createElement(View, { className: 'at-image-picker__remove-btn', onClick: _this.handleRemoveImg.bind(_this, i * length + j) }),
|
|
5844
|
-
React.createElement(Image, { className: 'at-image-picker__preview-img', mode: mode, src: item.url, onClick: _this.handleImageClick.bind(_this, i * length + j) })))) : (React.createElement(View, { className: 'at-image-picker__flex-item', key: i * length + j }, item.type === 'btn' && (React.createElement(View, { className: 'at-image-picker__item at-image-picker__choose-btn', onClick: _this.chooseFile },
|
|
5903
|
+
React.createElement(Image, { className: 'at-image-picker__preview-img', mode: mode, src: item.url, onClick: _this.handleImageClick.bind(_this, i * length + j) })))) : (React.createElement(View, { className: 'at-image-picker__flex-item', key: 'empty_' + i * length + j }, item.type === 'btn' && (React.createElement(View, { className: 'at-image-picker__item at-image-picker__choose-btn', onClick: _this.chooseFile },
|
|
5845
5904
|
React.createElement(View, { className: 'add-bar' }),
|
|
5846
5905
|
React.createElement(View, { className: 'add-bar' })))));
|
|
5847
5906
|
}))); })));
|
|
@@ -6040,7 +6099,7 @@ AtRange.propTypes = {
|
|
|
6040
6099
|
onAfterChange: propTypes.func
|
|
6041
6100
|
};
|
|
6042
6101
|
|
|
6043
|
-
var ENV
|
|
6102
|
+
var ENV = Taro.getEnv();
|
|
6044
6103
|
var AtIndexes = /** @class */ (function (_super) {
|
|
6045
6104
|
__extends(AtIndexes, _super);
|
|
6046
6105
|
function AtIndexes(props) {
|
|
@@ -6086,7 +6145,7 @@ var AtIndexes = /** @class */ (function (_super) {
|
|
|
6086
6145
|
var _this = this;
|
|
6087
6146
|
var _a = this.props, _b = _a.topKey, topKey = _b === void 0 ? 'Top' : _b, list = _a.list;
|
|
6088
6147
|
var _tipText = idx === 0 ? topKey : list[idx - 1].key;
|
|
6089
|
-
if (ENV
|
|
6148
|
+
if (ENV === Taro.ENV_TYPE.WEB) {
|
|
6090
6149
|
delayQuerySelector('.at-indexes', 0).then(function (rect) {
|
|
6091
6150
|
var targetOffsetTop = _this.listRef.childNodes[idx].offsetTop;
|
|
6092
6151
|
var _scrollTop = targetOffsetTop - rect[0].top;
|
|
@@ -6158,7 +6217,7 @@ var AtIndexes = /** @class */ (function (_super) {
|
|
|
6158
6217
|
}
|
|
6159
6218
|
};
|
|
6160
6219
|
AtIndexes.prototype.componentDidMount = function () {
|
|
6161
|
-
if (ENV
|
|
6220
|
+
if (ENV === Taro.ENV_TYPE.WEB) {
|
|
6162
6221
|
this.listRef = document.getElementById(this.listId);
|
|
6163
6222
|
}
|
|
6164
6223
|
this.initData();
|
|
@@ -6217,7 +6276,7 @@ AtIndexes.defaultProps = {
|
|
|
6217
6276
|
};
|
|
6218
6277
|
|
|
6219
6278
|
var dayjs_min = createCommonjsModule(function (module, exports) {
|
|
6220
|
-
!function(t,
|
|
6279
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
|
|
6221
6280
|
});
|
|
6222
6281
|
|
|
6223
6282
|
/** Built-in value references. */
|
|
@@ -6302,7 +6361,7 @@ function arrayPush(array, values) {
|
|
|
6302
6361
|
var _arrayPush = arrayPush;
|
|
6303
6362
|
|
|
6304
6363
|
/** `Object#toString` result references. */
|
|
6305
|
-
var argsTag = '[object Arguments]';
|
|
6364
|
+
var argsTag$1 = '[object Arguments]';
|
|
6306
6365
|
|
|
6307
6366
|
/**
|
|
6308
6367
|
* The base implementation of `_.isArguments`.
|
|
@@ -6312,19 +6371,19 @@ var argsTag = '[object Arguments]';
|
|
|
6312
6371
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
6313
6372
|
*/
|
|
6314
6373
|
function baseIsArguments(value) {
|
|
6315
|
-
return isObjectLike_1(value) && _baseGetTag(value) == argsTag;
|
|
6374
|
+
return isObjectLike_1(value) && _baseGetTag(value) == argsTag$1;
|
|
6316
6375
|
}
|
|
6317
6376
|
|
|
6318
6377
|
var _baseIsArguments = baseIsArguments;
|
|
6319
6378
|
|
|
6320
6379
|
/** Used for built-in method references. */
|
|
6321
|
-
var objectProto$
|
|
6380
|
+
var objectProto$6 = Object.prototype;
|
|
6322
6381
|
|
|
6323
6382
|
/** Used to check objects for own properties. */
|
|
6324
|
-
var hasOwnProperty$
|
|
6383
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
6325
6384
|
|
|
6326
6385
|
/** Built-in value references. */
|
|
6327
|
-
var propertyIsEnumerable = objectProto$
|
|
6386
|
+
var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
|
|
6328
6387
|
|
|
6329
6388
|
/**
|
|
6330
6389
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -6345,7 +6404,7 @@ var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
|
|
|
6345
6404
|
* // => false
|
|
6346
6405
|
*/
|
|
6347
6406
|
var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
|
|
6348
|
-
return isObjectLike_1(value) && hasOwnProperty$
|
|
6407
|
+
return isObjectLike_1(value) && hasOwnProperty$5.call(value, 'callee') &&
|
|
6349
6408
|
!propertyIsEnumerable.call(value, 'callee');
|
|
6350
6409
|
};
|
|
6351
6410
|
|
|
@@ -6448,7 +6507,7 @@ function apply(func, thisArg, args) {
|
|
|
6448
6507
|
var _apply = apply;
|
|
6449
6508
|
|
|
6450
6509
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
6451
|
-
var nativeMax
|
|
6510
|
+
var nativeMax = Math.max;
|
|
6452
6511
|
|
|
6453
6512
|
/**
|
|
6454
6513
|
* A specialized version of `baseRest` which transforms the rest array.
|
|
@@ -6460,11 +6519,11 @@ var nativeMax$1 = Math.max;
|
|
|
6460
6519
|
* @returns {Function} Returns the new function.
|
|
6461
6520
|
*/
|
|
6462
6521
|
function overRest(func, start, transform) {
|
|
6463
|
-
start = nativeMax
|
|
6522
|
+
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
|
6464
6523
|
return function() {
|
|
6465
6524
|
var args = arguments,
|
|
6466
6525
|
index = -1,
|
|
6467
|
-
length = nativeMax
|
|
6526
|
+
length = nativeMax(args.length - start, 0),
|
|
6468
6527
|
array = Array(length);
|
|
6469
6528
|
|
|
6470
6529
|
while (++index < length) {
|
|
@@ -6534,10 +6593,10 @@ function isMasked(func) {
|
|
|
6534
6593
|
var _isMasked = isMasked;
|
|
6535
6594
|
|
|
6536
6595
|
/** Used for built-in method references. */
|
|
6537
|
-
var funcProto = Function.prototype;
|
|
6596
|
+
var funcProto$1 = Function.prototype;
|
|
6538
6597
|
|
|
6539
6598
|
/** Used to resolve the decompiled source of functions. */
|
|
6540
|
-
var funcToString = funcProto.toString;
|
|
6599
|
+
var funcToString$1 = funcProto$1.toString;
|
|
6541
6600
|
|
|
6542
6601
|
/**
|
|
6543
6602
|
* Converts `func` to its source code.
|
|
@@ -6549,7 +6608,7 @@ var funcToString = funcProto.toString;
|
|
|
6549
6608
|
function toSource(func) {
|
|
6550
6609
|
if (func != null) {
|
|
6551
6610
|
try {
|
|
6552
|
-
return funcToString.call(func);
|
|
6611
|
+
return funcToString$1.call(func);
|
|
6553
6612
|
} catch (e) {}
|
|
6554
6613
|
try {
|
|
6555
6614
|
return (func + '');
|
|
@@ -6570,18 +6629,18 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
|
6570
6629
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
6571
6630
|
|
|
6572
6631
|
/** Used for built-in method references. */
|
|
6573
|
-
var funcProto
|
|
6574
|
-
objectProto$
|
|
6632
|
+
var funcProto = Function.prototype,
|
|
6633
|
+
objectProto$5 = Object.prototype;
|
|
6575
6634
|
|
|
6576
6635
|
/** Used to resolve the decompiled source of functions. */
|
|
6577
|
-
var funcToString
|
|
6636
|
+
var funcToString = funcProto.toString;
|
|
6578
6637
|
|
|
6579
6638
|
/** Used to check objects for own properties. */
|
|
6580
|
-
var hasOwnProperty$
|
|
6639
|
+
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
6581
6640
|
|
|
6582
6641
|
/** Used to detect if a method is native. */
|
|
6583
6642
|
var reIsNative = RegExp('^' +
|
|
6584
|
-
funcToString
|
|
6643
|
+
funcToString.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&')
|
|
6585
6644
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
6586
6645
|
);
|
|
6587
6646
|
|
|
@@ -6796,7 +6855,7 @@ var _realNames = realNames;
|
|
|
6796
6855
|
var objectProto$4 = Object.prototype;
|
|
6797
6856
|
|
|
6798
6857
|
/** Used to check objects for own properties. */
|
|
6799
|
-
var hasOwnProperty$
|
|
6858
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
6800
6859
|
|
|
6801
6860
|
/**
|
|
6802
6861
|
* Gets the name of `func`.
|
|
@@ -6808,7 +6867,7 @@ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
|
6808
6867
|
function getFuncName(func) {
|
|
6809
6868
|
var result = (func.name + ''),
|
|
6810
6869
|
array = _realNames[result],
|
|
6811
|
-
length = hasOwnProperty$
|
|
6870
|
+
length = hasOwnProperty$3.call(_realNames, result) ? array.length : 0;
|
|
6812
6871
|
|
|
6813
6872
|
while (length--) {
|
|
6814
6873
|
var data = array[length],
|
|
@@ -6890,10 +6949,10 @@ function wrapperClone(wrapper) {
|
|
|
6890
6949
|
var _wrapperClone = wrapperClone;
|
|
6891
6950
|
|
|
6892
6951
|
/** Used for built-in method references. */
|
|
6893
|
-
var objectProto$
|
|
6952
|
+
var objectProto$3 = Object.prototype;
|
|
6894
6953
|
|
|
6895
6954
|
/** Used to check objects for own properties. */
|
|
6896
|
-
var hasOwnProperty$
|
|
6955
|
+
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
6897
6956
|
|
|
6898
6957
|
/**
|
|
6899
6958
|
* Creates a `lodash` object which wraps `value` to enable implicit method
|
|
@@ -7017,7 +7076,7 @@ function lodash(value) {
|
|
|
7017
7076
|
if (value instanceof _LodashWrapper) {
|
|
7018
7077
|
return value;
|
|
7019
7078
|
}
|
|
7020
|
-
if (hasOwnProperty$
|
|
7079
|
+
if (hasOwnProperty$2.call(value, '__wrapped__')) {
|
|
7021
7080
|
return _wrapperClone(value);
|
|
7022
7081
|
}
|
|
7023
7082
|
}
|
|
@@ -7157,7 +7216,7 @@ var TYPE_NOW_MONTH = 0;
|
|
|
7157
7216
|
var TYPE_NEXT_MONTH = 1;
|
|
7158
7217
|
|
|
7159
7218
|
/** Used for built-in method references. */
|
|
7160
|
-
var objectProto$
|
|
7219
|
+
var objectProto$2 = Object.prototype;
|
|
7161
7220
|
|
|
7162
7221
|
/**
|
|
7163
7222
|
* Checks if `value` is likely a prototype object.
|
|
@@ -7168,7 +7227,7 @@ var objectProto$6 = Object.prototype;
|
|
|
7168
7227
|
*/
|
|
7169
7228
|
function isPrototype(value) {
|
|
7170
7229
|
var Ctor = value && value.constructor,
|
|
7171
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
7230
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$2;
|
|
7172
7231
|
|
|
7173
7232
|
return value === proto;
|
|
7174
7233
|
}
|
|
@@ -7197,10 +7256,10 @@ var nativeKeys = _overArg(Object.keys, Object);
|
|
|
7197
7256
|
var _nativeKeys = nativeKeys;
|
|
7198
7257
|
|
|
7199
7258
|
/** Used for built-in method references. */
|
|
7200
|
-
var objectProto$
|
|
7259
|
+
var objectProto$1 = Object.prototype;
|
|
7201
7260
|
|
|
7202
7261
|
/** Used to check objects for own properties. */
|
|
7203
|
-
var hasOwnProperty$
|
|
7262
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
7204
7263
|
|
|
7205
7264
|
/**
|
|
7206
7265
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -7215,7 +7274,7 @@ function baseKeys(object) {
|
|
|
7215
7274
|
}
|
|
7216
7275
|
var result = [];
|
|
7217
7276
|
for (var key in Object(object)) {
|
|
7218
|
-
if (hasOwnProperty$
|
|
7277
|
+
if (hasOwnProperty$1.call(object, key) && key != 'constructor') {
|
|
7219
7278
|
result.push(key);
|
|
7220
7279
|
}
|
|
7221
7280
|
}
|
|
@@ -7245,13 +7304,13 @@ var Set$1 = _getNative(_root, 'Set');
|
|
|
7245
7304
|
var _Set = Set$1;
|
|
7246
7305
|
|
|
7247
7306
|
/** `Object#toString` result references. */
|
|
7248
|
-
var mapTag = '[object Map]',
|
|
7249
|
-
objectTag = '[object Object]',
|
|
7307
|
+
var mapTag$2 = '[object Map]',
|
|
7308
|
+
objectTag$1 = '[object Object]',
|
|
7250
7309
|
promiseTag = '[object Promise]',
|
|
7251
|
-
setTag = '[object Set]',
|
|
7252
|
-
weakMapTag = '[object WeakMap]';
|
|
7310
|
+
setTag$2 = '[object Set]',
|
|
7311
|
+
weakMapTag$1 = '[object WeakMap]';
|
|
7253
7312
|
|
|
7254
|
-
var dataViewTag = '[object DataView]';
|
|
7313
|
+
var dataViewTag$1 = '[object DataView]';
|
|
7255
7314
|
|
|
7256
7315
|
/** Used to detect maps, sets, and weakmaps. */
|
|
7257
7316
|
var dataViewCtorString = _toSource(_DataView),
|
|
@@ -7270,23 +7329,23 @@ var dataViewCtorString = _toSource(_DataView),
|
|
|
7270
7329
|
var getTag = _baseGetTag;
|
|
7271
7330
|
|
|
7272
7331
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
7273
|
-
if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
7274
|
-
(_Map && getTag(new _Map) != mapTag) ||
|
|
7332
|
+
if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$1) ||
|
|
7333
|
+
(_Map && getTag(new _Map) != mapTag$2) ||
|
|
7275
7334
|
(_Promise && getTag(_Promise.resolve()) != promiseTag) ||
|
|
7276
|
-
(_Set && getTag(new _Set) != setTag) ||
|
|
7277
|
-
(_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
|
|
7335
|
+
(_Set && getTag(new _Set) != setTag$2) ||
|
|
7336
|
+
(_WeakMap && getTag(new _WeakMap) != weakMapTag$1)) {
|
|
7278
7337
|
getTag = function(value) {
|
|
7279
7338
|
var result = _baseGetTag(value),
|
|
7280
|
-
Ctor = result == objectTag ? value.constructor : undefined,
|
|
7339
|
+
Ctor = result == objectTag$1 ? value.constructor : undefined,
|
|
7281
7340
|
ctorString = Ctor ? _toSource(Ctor) : '';
|
|
7282
7341
|
|
|
7283
7342
|
if (ctorString) {
|
|
7284
7343
|
switch (ctorString) {
|
|
7285
|
-
case dataViewCtorString: return dataViewTag;
|
|
7286
|
-
case mapCtorString: return mapTag;
|
|
7344
|
+
case dataViewCtorString: return dataViewTag$1;
|
|
7345
|
+
case mapCtorString: return mapTag$2;
|
|
7287
7346
|
case promiseCtorString: return promiseTag;
|
|
7288
|
-
case setCtorString: return setTag;
|
|
7289
|
-
case weakMapCtorString: return weakMapTag;
|
|
7347
|
+
case setCtorString: return setTag$2;
|
|
7348
|
+
case weakMapCtorString: return weakMapTag$1;
|
|
7290
7349
|
}
|
|
7291
7350
|
}
|
|
7292
7351
|
return result;
|
|
@@ -7316,7 +7375,7 @@ var stubFalse_1 = stubFalse;
|
|
|
7316
7375
|
|
|
7317
7376
|
var isBuffer_1 = createCommonjsModule(function (module, exports) {
|
|
7318
7377
|
/** Detect free variable `exports`. */
|
|
7319
|
-
var freeExports =
|
|
7378
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
7320
7379
|
|
|
7321
7380
|
/** Detect free variable `module`. */
|
|
7322
7381
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -7353,22 +7412,22 @@ module.exports = isBuffer;
|
|
|
7353
7412
|
});
|
|
7354
7413
|
|
|
7355
7414
|
/** `Object#toString` result references. */
|
|
7356
|
-
var argsTag
|
|
7415
|
+
var argsTag = '[object Arguments]',
|
|
7357
7416
|
arrayTag = '[object Array]',
|
|
7358
7417
|
boolTag = '[object Boolean]',
|
|
7359
7418
|
dateTag = '[object Date]',
|
|
7360
7419
|
errorTag = '[object Error]',
|
|
7361
|
-
funcTag
|
|
7420
|
+
funcTag = '[object Function]',
|
|
7362
7421
|
mapTag$1 = '[object Map]',
|
|
7363
7422
|
numberTag = '[object Number]',
|
|
7364
|
-
objectTag
|
|
7423
|
+
objectTag = '[object Object]',
|
|
7365
7424
|
regexpTag = '[object RegExp]',
|
|
7366
7425
|
setTag$1 = '[object Set]',
|
|
7367
7426
|
stringTag = '[object String]',
|
|
7368
|
-
weakMapTag
|
|
7427
|
+
weakMapTag = '[object WeakMap]';
|
|
7369
7428
|
|
|
7370
7429
|
var arrayBufferTag = '[object ArrayBuffer]',
|
|
7371
|
-
dataViewTag
|
|
7430
|
+
dataViewTag = '[object DataView]',
|
|
7372
7431
|
float32Tag = '[object Float32Array]',
|
|
7373
7432
|
float64Tag = '[object Float64Array]',
|
|
7374
7433
|
int8Tag = '[object Int8Array]',
|
|
@@ -7386,14 +7445,14 @@ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
|
|
7386
7445
|
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
7387
7446
|
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
7388
7447
|
typedArrayTags[uint32Tag] = true;
|
|
7389
|
-
typedArrayTags[argsTag
|
|
7448
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
|
|
7390
7449
|
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
7391
|
-
typedArrayTags[dataViewTag
|
|
7392
|
-
typedArrayTags[errorTag] = typedArrayTags[funcTag
|
|
7450
|
+
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
|
|
7451
|
+
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
7393
7452
|
typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
|
|
7394
|
-
typedArrayTags[objectTag
|
|
7453
|
+
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
|
|
7395
7454
|
typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
|
|
7396
|
-
typedArrayTags[weakMapTag
|
|
7455
|
+
typedArrayTags[weakMapTag] = false;
|
|
7397
7456
|
|
|
7398
7457
|
/**
|
|
7399
7458
|
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
@@ -7426,7 +7485,7 @@ var _baseUnary = baseUnary;
|
|
|
7426
7485
|
|
|
7427
7486
|
var _nodeUtil = createCommonjsModule(function (module, exports) {
|
|
7428
7487
|
/** Detect free variable `exports`. */
|
|
7429
|
-
var freeExports =
|
|
7488
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
7430
7489
|
|
|
7431
7490
|
/** Detect free variable `module`. */
|
|
7432
7491
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -7480,14 +7539,14 @@ var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsType
|
|
|
7480
7539
|
var isTypedArray_1 = isTypedArray;
|
|
7481
7540
|
|
|
7482
7541
|
/** `Object#toString` result references. */
|
|
7483
|
-
var mapTag
|
|
7484
|
-
setTag
|
|
7542
|
+
var mapTag = '[object Map]',
|
|
7543
|
+
setTag = '[object Set]';
|
|
7485
7544
|
|
|
7486
7545
|
/** Used for built-in method references. */
|
|
7487
|
-
var objectProto
|
|
7546
|
+
var objectProto = Object.prototype;
|
|
7488
7547
|
|
|
7489
7548
|
/** Used to check objects for own properties. */
|
|
7490
|
-
var hasOwnProperty
|
|
7549
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
7491
7550
|
|
|
7492
7551
|
/**
|
|
7493
7552
|
* Checks if `value` is an empty object, collection, map, or set.
|
|
@@ -7532,14 +7591,14 @@ function isEmpty(value) {
|
|
|
7532
7591
|
return !value.length;
|
|
7533
7592
|
}
|
|
7534
7593
|
var tag = _getTag(value);
|
|
7535
|
-
if (tag == mapTag
|
|
7594
|
+
if (tag == mapTag || tag == setTag) {
|
|
7536
7595
|
return !value.size;
|
|
7537
7596
|
}
|
|
7538
7597
|
if (_isPrototype(value)) {
|
|
7539
7598
|
return !_baseKeys(value).length;
|
|
7540
7599
|
}
|
|
7541
7600
|
for (var key in value) {
|
|
7542
|
-
if (hasOwnProperty
|
|
7601
|
+
if (hasOwnProperty.call(value, key)) {
|
|
7543
7602
|
return false;
|
|
7544
7603
|
}
|
|
7545
7604
|
}
|
|
@@ -7623,6 +7682,11 @@ var plugins = [handleActive, handleMarks, handleDisabled, handleValid];
|
|
|
7623
7682
|
|
|
7624
7683
|
var TOTAL = 7 * 6;
|
|
7625
7684
|
function getFullItem(item, options, selectedDate, isShowStatus) {
|
|
7685
|
+
if (options.marks.find(function (x) { return x.value === item.value; })) {
|
|
7686
|
+
item.marks = [{
|
|
7687
|
+
value: item.value
|
|
7688
|
+
}];
|
|
7689
|
+
}
|
|
7626
7690
|
if (!isShowStatus)
|
|
7627
7691
|
return item;
|
|
7628
7692
|
var bindedPlugins = plugins.map(function (fn) {
|
|
@@ -7731,7 +7795,7 @@ var AtCalendarList = /** @class */ (function (_super) {
|
|
|
7731
7795
|
}) },
|
|
7732
7796
|
React.createElement(View, { className: 'flex__item-container' },
|
|
7733
7797
|
React.createElement(View, { className: 'container-text' }, item.text)),
|
|
7734
|
-
React.createElement(View, { className: 'flex__item-extra extra' }, item.marks && item.marks.length > 0 ? (React.createElement(View, { className: 'extra-marks' }, item.marks.map(function (mark, key) { return (React.createElement(Text, { key: key, className: 'mark' }, mark)); }))) : null))); })));
|
|
7798
|
+
React.createElement(View, { className: 'flex__item-extra extra' }, item.marks && item.marks.length > 0 ? (React.createElement(View, { className: 'extra-marks' }, item.marks.map(function (mark, key) { return (React.createElement(Text, { key: key, className: 'mark' }, mark.value)); }))) : null))); })));
|
|
7735
7799
|
};
|
|
7736
7800
|
return AtCalendarList;
|
|
7737
7801
|
}(React.Component));
|
|
@@ -7756,7 +7820,7 @@ var AtCalendarHeader = /** @class */ (function (_super) {
|
|
|
7756
7820
|
}(React.Component));
|
|
7757
7821
|
|
|
7758
7822
|
var ANIMTE_DURATION = 300;
|
|
7759
|
-
var defaultProps = {
|
|
7823
|
+
var defaultProps$1 = {
|
|
7760
7824
|
marks: [],
|
|
7761
7825
|
selectedDate: {
|
|
7762
7826
|
end: Date.now(),
|
|
@@ -7938,10 +8002,10 @@ var AtCalendarBody = /** @class */ (function (_super) {
|
|
|
7938
8002
|
}
|
|
7939
8003
|
return (React.createElement(View, { className: classnames('main', 'at-calendar-slider__main', "at-calendar-slider__main--" + process.env.TARO_ENV) },
|
|
7940
8004
|
React.createElement(AtCalendarHeader, null),
|
|
7941
|
-
React.createElement(Swiper, { circular: true, current: 1, skipHiddenItemLayout: true, className: classnames('main__body'), onChange: this.handleChange, vertical: this.props.isVertical, onAnimationFinish: this.handleAnimateFinish, onTouchEnd: this.handleSwipeTouchEnd, onTouchStart: this.handleSwipeTouchStart }, listGroup.map(function (item, key) { return (React.createElement(SwiperItem, { key:
|
|
8005
|
+
React.createElement(Swiper, { circular: true, current: 1, skipHiddenItemLayout: true, className: classnames('main__body'), onChange: this.handleChange, vertical: this.props.isVertical, onAnimationFinish: this.handleAnimateFinish, onTouchEnd: this.handleSwipeTouchEnd, onTouchStart: this.handleSwipeTouchStart }, listGroup.map(function (item, key) { return (React.createElement(SwiperItem, { key: key, itemId: key.toString() },
|
|
7942
8006
|
React.createElement(AtCalendarList, { list: item.list, onClick: _this.props.onDayClick, onLongClick: _this.props.onLongClick }))); }))));
|
|
7943
8007
|
};
|
|
7944
|
-
AtCalendarBody.defaultProps = defaultProps;
|
|
8008
|
+
AtCalendarBody.defaultProps = defaultProps$1;
|
|
7945
8009
|
return AtCalendarBody;
|
|
7946
8010
|
}(React.Component));
|
|
7947
8011
|
|
|
@@ -7976,7 +8040,7 @@ var AtCalendarController = /** @class */ (function (_super) {
|
|
|
7976
8040
|
return AtCalendarController;
|
|
7977
8041
|
}(React.Component));
|
|
7978
8042
|
|
|
7979
|
-
var defaultProps
|
|
8043
|
+
var defaultProps = {
|
|
7980
8044
|
validDates: [],
|
|
7981
8045
|
marks: [],
|
|
7982
8046
|
isSwiper: true,
|
|
@@ -8176,7 +8240,7 @@ var AtCalendar = /** @class */ (function (_super) {
|
|
|
8176
8240
|
React.createElement(AtCalendarController, { minDate: minDate, maxDate: maxDate, hideArrow: hideArrow, monthFormat: monthFormat, generateDate: generateDate, onPreMonth: this.handleClickPreMonth, onNextMonth: this.handleClickNextMonth, onSelectDate: this.handleSelectDate }),
|
|
8177
8241
|
React.createElement(AtCalendarBody, { validDates: validDates, marks: marks, format: format, minDate: minDate, maxDate: maxDate, isSwiper: isSwiper, isVertical: isVertical, selectedDate: selectedDate, selectedDates: selectedDates, generateDate: generateDate, onDayClick: this.handleDayClick, onSwipeMonth: this.setMonth, onLongClick: this.handleDayLongClick })));
|
|
8178
8242
|
};
|
|
8179
|
-
AtCalendar.defaultProps = defaultProps
|
|
8243
|
+
AtCalendar.defaultProps = defaultProps;
|
|
8180
8244
|
return AtCalendar;
|
|
8181
8245
|
}(React.Component));
|
|
8182
8246
|
|
|
@@ -8208,7 +8272,7 @@ AtFab.defaultProps = {
|
|
|
8208
8272
|
size: 'normal'
|
|
8209
8273
|
};
|
|
8210
8274
|
|
|
8211
|
-
var objectToString
|
|
8275
|
+
var objectToString = function (style) {
|
|
8212
8276
|
if (style && typeof style === 'object') {
|
|
8213
8277
|
var styleStr_1 = '';
|
|
8214
8278
|
Object.keys(style).forEach(function (key) {
|
|
@@ -8240,7 +8304,7 @@ var AtComponent = /** @class */ (function (_super) {
|
|
|
8240
8304
|
typeof style2 === 'object') {
|
|
8241
8305
|
return Object.assign({}, style1, style2);
|
|
8242
8306
|
}
|
|
8243
|
-
return objectToString
|
|
8307
|
+
return objectToString(style1) + objectToString(style2);
|
|
8244
8308
|
};
|
|
8245
8309
|
return AtComponent;
|
|
8246
8310
|
}(Component));
|