@nutui/nutui-react-taro 2.6.8 → 2.6.10
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/CHANGELOG.md +20 -0
- package/dist/esm/ActionSheet.js +1 -1
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +1 -1
- package/dist/esm/Animate/style/style.css +1 -1
- package/dist/esm/Animate.js +1 -1
- package/dist/esm/AnimatingNumbers.js +1 -1
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/Audio.js +1 -1
- package/dist/esm/Avatar.js +1 -1
- package/dist/esm/AvatarCropper.js +1 -1
- package/dist/esm/BackTop.js +1 -1
- package/dist/esm/Badge.js +1 -1
- package/dist/esm/Barrage.js +1 -1
- package/dist/esm/Button.js +1 -1
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/CalendarCard.js +1 -1
- package/dist/esm/CalendarItem.js +1 -1
- package/dist/esm/Card.js +1 -1
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/Cell.js +1 -1
- package/dist/esm/CellGroup.js +1 -1
- package/dist/esm/Checkbox.js +1 -1
- package/dist/esm/CheckboxGroup.js +1 -1
- package/dist/esm/CircleProgress.js +1 -1
- package/dist/esm/Collapse.js +1 -1
- package/dist/esm/CollapseItem.js +1 -1
- package/dist/esm/ConfigProvider.js +2 -2
- package/dist/esm/CountDown.js +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Dialog.js +1 -1
- package/dist/esm/Divider.js +1 -1
- package/dist/esm/Drag/style/style.css +1 -1
- package/dist/esm/Drag.js +1 -1
- package/dist/esm/Elevator.js +1 -1
- package/dist/esm/Ellipsis.js +1 -1
- package/dist/esm/Empty.js +1 -1
- package/dist/esm/FixedNav.js +1 -1
- package/dist/esm/Form.js +3 -3
- package/dist/esm/FormItem.js +1 -1
- package/dist/esm/Grid.js +1 -1
- package/dist/esm/GridItem.js +1 -1
- package/dist/esm/Image.js +1 -1
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/Indicator.js +1 -1
- package/dist/esm/InfiniteLoading.js +1 -1
- package/dist/esm/Input.js +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/Loading.js +1 -1
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/MenuItem.js +1 -1
- package/dist/esm/NavBar.js +1 -1
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Overlay.js +1 -1
- package/dist/esm/Pagination/style/style.css +1 -1
- package/dist/esm/Pagination.js +1 -1
- package/dist/esm/Picker.js +1 -1
- package/dist/esm/Popover.js +1 -1
- package/dist/esm/Popup.js +1 -1
- package/dist/esm/Price.js +1 -1
- package/dist/esm/Progress/style/style.css +1 -1
- package/dist/esm/Progress.js +1 -1
- package/dist/esm/PullToRefresh.js +1 -1
- package/dist/esm/Radio.js +1 -1
- package/dist/esm/RadioGroup.js +1 -1
- package/dist/esm/Range.js +1 -1
- package/dist/esm/Rate.js +1 -1
- package/dist/esm/SearchBar.js +1 -1
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +1 -1
- package/dist/esm/SideNavBar.js +1 -1
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature.js +1 -1
- package/dist/esm/Skeleton/style/style.css +1 -1
- package/dist/esm/Skeleton.js +1 -1
- package/dist/esm/Step.js +1 -1
- package/dist/esm/Steps.js +1 -1
- package/dist/esm/Sticky.js +1 -1
- package/dist/esm/SubSideNavBar.js +1 -1
- package/dist/esm/Swipe.js +1 -1
- package/dist/esm/Swiper.js +3 -3
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/Switch.js +1 -1
- package/dist/esm/TabPane/style/style.css +1 -1
- package/dist/esm/Tabbar.js +1 -1
- package/dist/esm/TabbarItem.js +1 -1
- package/dist/esm/Table.js +1 -1
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/TextArea.js +1 -1
- package/dist/esm/TimeSelect.js +1 -1
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/Tour.js +1 -1
- package/dist/esm/TrendArrow.js +1 -1
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/Uploader.js +1 -1
- package/dist/esm/Video.js +1 -1
- package/dist/esm/VirtualList.js +1 -1
- package/dist/esm/WaterMark.js +1 -1
- package/dist/esm/{actionsheet.taro-CQzUaPSP.js → actionsheet.taro-CJjNsNrH.js} +2 -2
- package/dist/esm/{address.taro-D7DEQdo8.js → address.taro-CtVpobLw.js} +4 -4
- package/dist/esm/{animate.taro-D-A6ORRZ.js → animate.taro-CQVEyDKL.js} +1 -1
- package/dist/esm/{audio.taro-BlniN99d.js → audio.taro-DzSc40G9.js} +4 -4
- package/dist/esm/{avatar.taro-Dx8hhvFI.js → avatar.taro-DSL3ErmC.js} +2 -2
- package/dist/esm/{avatarcropper.taro-D6yiXZM5.js → avatarcropper.taro-R3OfWq1H.js} +2 -2
- package/dist/esm/{backtop.taro-YeEY7i4O.js → backtop.taro-jWlJ1ZWG.js} +1 -1
- package/dist/esm/{badge.taro-DK_UFQ5Y.js → badge.taro-BGaxpEYi.js} +1 -1
- package/dist/esm/{barrage.taro-DEJGSmY5.js → barrage.taro-CA-9uADD.js} +3 -3
- package/dist/esm/{button.taro-KHyp8jxX.js → button.taro-1kEru6r9.js} +1 -1
- package/dist/esm/{calendar.taro-B3D8xMB3.js → calendar.taro-DN6uEJw-.js} +4 -4
- package/dist/esm/{calendarcard.taro-CHDg3k5D.js → calendarcard.taro-CbvCWF1k.js} +2 -2
- package/dist/esm/{calendaritem.taro-DuEKmnsT.js → calendaritem.taro-CiGznRkW.js} +4 -6
- package/dist/esm/{card.taro-CC0SLA0p.js → card.taro-DxcIi5qH.js} +2 -2
- package/dist/esm/{cascader.taro-BOifacJL.js → cascader.taro-y9_hSUSJ.js} +3 -3
- package/dist/esm/{cell.taro-kOgCGbyn.js → cell.taro-CVFlcls2.js} +2 -2
- package/dist/esm/{cellgroup.taro-BskBIgql.js → cellgroup.taro-DTLGMR_c.js} +1 -1
- package/dist/esm/{checkbox.taro-DOSOI351.js → checkbox.taro-Dc054oRo.js} +3 -4
- package/dist/esm/{circleprogress.taro-BuVTD1iY.js → circleprogress.taro-BTRyQG5T.js} +1 -1
- package/dist/esm/{collapse.taro-CxDgckv5.js → collapse.taro-wqL6MWZr.js} +1 -1
- package/dist/esm/{collapseitem.taro-BY06WWvK.js → collapseitem.taro-DjUx5Nx8.js} +1 -1
- package/dist/esm/{configprovider.taro-CyU_tvNJ.js → configprovider.taro-DA4GDDFu.js} +1 -1
- package/dist/esm/{countdown.taro-CdEiAwr5.js → countdown.taro-mKXeisK0.js} +2 -2
- package/dist/esm/{date-D0pth0qC.js → date-CYwRNlGq.js} +1 -4
- package/dist/esm/{datepicker.taro-DzZmcesp.js → datepicker.taro-DTyJrlhD.js} +3 -3
- package/dist/esm/{dialog.taro-BNVpTbBx.js → dialog.taro-BW9D2Gsr.js} +4 -4
- package/dist/esm/{divider.taro-CijVuCyt.js → divider.taro-BuVR5t2X.js} +1 -1
- package/dist/esm/{drag.taro-D6xGnWqk.js → drag.taro-CI7ZFwaM.js} +10 -5
- package/dist/esm/{elevator.taro-BzVoaYw6.js → elevator.taro-Bsc8PcT0.js} +1 -1
- package/dist/esm/{ellipsis.taro-dxOx8h7S.js → ellipsis.taro-cMTr1Wcw.js} +3 -3
- package/dist/esm/{empty.taro-ek_1_FoA.js → empty.taro-CnwDznke.js} +3 -3
- package/dist/esm/{fixednav.taro-bmuCveIB.js → fixednav.taro-D3KnhYoI.js} +3 -3
- package/dist/esm/{formitem.taro-CAib1i9_.js → formitem.taro-tLWeQ0P5.js} +2 -2
- package/dist/esm/{get-rect-by-taro-CSN0TGnD.js → get-rect-by-taro-THaHH07X.js} +1 -1
- package/dist/esm/{get-scroll-parent-9ZDWApX2.js → get-scroll-parent-DB1VRg11.js} +1 -0
- package/dist/esm/{grid.taro-C4xSMhg4.js → grid.taro-ZJywVaVe.js} +2 -2
- package/dist/esm/{griditem.taro-DeXl7qNi.js → griditem.taro-CcWyYchl.js} +2 -2
- package/dist/esm/{image.taro-ESa7sdbM.js → image.taro-CyF6ujA7.js} +1 -1
- package/dist/esm/{imagepreview.taro-CytOhJpv.js → imagepreview.taro-B7eJN5Hn.js} +3 -3
- package/dist/esm/{indicator.taro-Bmae9MdC.js → indicator.taro-k8bxJf86.js} +1 -1
- package/dist/esm/{infiniteloading.taro-Bnm-LVHC.js → infiniteloading.taro-g1RbqnSS.js} +2 -2
- package/dist/esm/{input.taro-CLMPZ7Wg.js → input.taro-B_B1lJq2.js} +2 -2
- package/dist/esm/{inputnumber.taro-CzuJKfES.js → inputnumber.taro-WN5Drnyz.js} +1 -1
- package/dist/esm/{loading.taro-BfHqvYhy.js → loading.taro-n_qoNgCW.js} +1 -1
- package/dist/esm/{menu.taro-70-DLJx5.js → menu.taro-JDg_-XpO.js} +2 -2
- package/dist/esm/{menuitem.taro-jJWuQbQt.js → menuitem.taro-BFfGgTms.js} +3 -3
- package/dist/esm/{navbar.taro-COrKuU9p.js → navbar.taro-Dea0-s9Q.js} +2 -2
- package/dist/esm/{noticebar.taro-cjVGemZE.js → noticebar.taro-CGUTg60Q.js} +3 -3
- package/dist/esm/{numberkeyboard.taro-Cx3igTDN.js → numberkeyboard.taro-BA0iCeGP.js} +3 -3
- package/dist/esm/nutui-react.es.js +83 -83
- package/dist/esm/{overlay.taro-Bu45p46Z.js → overlay.taro-C2t82CZz.js} +17 -3
- package/dist/esm/{pagination.taro-B8hmHNgf.js → pagination.taro-DdLO3OTc.js} +2 -2
- package/dist/esm/{picker.taro-va25oy1i.js → picker.taro-CafNRRO5.js} +12 -14
- package/dist/esm/{popover.taro-D1Jnx8Xp.js → popover.taro-B_FJgU0z.js} +4 -4
- package/dist/esm/{popup.taro-C_nam_bX.js → popup.taro-CR3JyuJV.js} +1 -1
- package/dist/esm/{price.taro-DdR5NSIA.js → price.taro-DUW-OR83.js} +1 -1
- package/dist/esm/{progress.taro-BFWQ2MvM.js → progress.taro-De9-206U.js} +2 -2
- package/dist/esm/{pulltorefresh.taro-Ck1i2xRr.js → pulltorefresh.taro-CZReoWwU.js} +4 -4
- package/dist/esm/{radio.taro-CjJgX9o2.js → radio.taro-BNSceequ.js} +1 -1
- package/dist/esm/{range.taro-BeVCaZ4r.js → range.taro-D_qsx_j6.js} +3 -3
- package/dist/esm/{rate.taro-lOoACxLq.js → rate.taro-CPGkjYYu.js} +1 -1
- package/dist/esm/{searchbar.taro-B31m8apz.js → searchbar.taro-C8cg7NeJ.js} +2 -1
- package/dist/esm/{shortpassword.taro-Bn5n4rrx.js → shortpassword.taro-DpdtRsQ-.js} +3 -3
- package/dist/esm/{sidenavbar.taro-BgKUZ--g.js → sidenavbar.taro-5BmrYFtP.js} +2 -2
- package/dist/esm/{sidenavbaritem.taro-L7HbsCLn.js → sidenavbaritem.taro-BKpzXpzG.js} +1 -1
- package/dist/esm/{signature.taro-Dq6JO2XJ.js → signature.taro-zgwaJkIE.js} +1 -1
- package/dist/esm/{skeleton.taro-C3vp7bWb.js → skeleton.taro-bD6fHZop.js} +2 -2
- package/dist/esm/{step.taro-CaRHnSOF.js → step.taro-Cc1dc5Qb.js} +1 -1
- package/dist/esm/{steps.taro-BoVGFMxx.js → steps.taro-CUEhZGfy.js} +1 -1
- package/dist/esm/{sticky.taro-BtxnArYZ.js → sticky.taro-DZzgkigZ.js} +3 -3
- package/dist/esm/{subsidenavbar.taro-ByxYpgfP.js → subsidenavbar.taro-CSU3DhNq.js} +1 -1
- package/dist/esm/{swipe.taro-CavqgBEb.js → swipe.taro-yUhne9XU.js} +4 -4
- package/dist/esm/{swiperitem.taro-8JXI24f0.js → swiperitem.taro-DeiNSrJV.js} +1 -1
- package/dist/esm/{switch.taro-Mq1wBEGz.js → switch.taro-CdBmDo18.js} +1 -1
- package/dist/esm/{tabbar.taro-DD5HcQgp.js → tabbar.taro-CXk0zLdz.js} +1 -1
- package/dist/esm/{tabbaritem.taro-ptdJI0xv.js → tabbaritem.taro-BZNabTBp.js} +2 -2
- package/dist/esm/{table.taro-EwAQJ6jp.js → table.taro-C2XPk7AJ.js} +2 -2
- package/dist/esm/{tabs.taro-gcyv8qGG.js → tabs.taro-B2D3AtVV.js} +2 -2
- package/dist/esm/{textarea.taro-DLS0EQeJ.js → textarea.taro-DuceTjAx.js} +2 -2
- package/dist/esm/{timeselect.taro-DtyB_UVM.js → timeselect.taro-DncKbp3l.js} +3 -3
- package/dist/esm/{toast.taro-C-jP8orA.js → toast.taro-CYk6UERn.js} +1 -1
- package/dist/esm/{tour.taro-D_J_gGVX.js → tour.taro-SPMrhDA9.js} +2 -2
- package/dist/esm/{trendarrow.taro-B2QGvXG0.js → trendarrow.taro-DKx5cGIh.js} +1 -1
- package/dist/esm/{tslib.es6-BZ8i9Q6l.js → tslib.es6-iWu3F_1J.js} +2 -3
- package/dist/esm/{uploader.taro-CAKO74Mg.js → uploader.taro-E6R-Ow7M.js} +4 -4
- package/dist/esm/{video.taro-Bm5bDmIG.js → video.taro-CecLv4sr.js} +1 -1
- package/dist/esm/{virtuallist.taro-GLen2Ay5.js → virtuallist.taro-BlPW8ibd.js} +2 -9
- package/dist/esm/{watermark.taro-BL5bLewc.js → watermark.taro-BR12yZQt.js} +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +173 -297
- package/dist/nutui.react.umd.js +173 -297
- package/dist/packages/drag/drag.scss +7 -3
- package/dist/packages/tabpane/tabpane.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/variables-jmapp.scss +4 -1
- package/dist/styles/variables.scss +4 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/confirm.d.ts +1 -1
- package/dist/types/packages/searchbar/searchbar.d.ts +1 -1
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +1 -1
- package/dist/types/packages/virtuallist/utils.d.ts +2 -2
- package/dist/types/utils/interceptor.d.ts +2 -2
- package/dist/types/utils/use-ref-state.d.ts +1 -1
- package/package.json +1 -1
- package/dist/style.mjs +0 -5
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, Taro, components, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react-taro v2.6.
|
|
5
|
+
* @nutui/nutui-react-taro v2.6.10 Fri Jun 21 2024 18:25:39 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -613,9 +613,6 @@
|
|
|
613
613
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
614
614
|
function arrayReduce(array2, iteratee, accumulator, initAccum) {
|
|
615
615
|
var index = -1, length = array2 ? array2.length : 0;
|
|
616
|
-
if (initAccum && length) {
|
|
617
|
-
accumulator = array2[++index];
|
|
618
|
-
}
|
|
619
616
|
while (++index < length) {
|
|
620
617
|
accumulator = iteratee(accumulator, array2[index], index, array2);
|
|
621
618
|
}
|
|
@@ -673,7 +670,7 @@
|
|
|
673
670
|
});
|
|
674
671
|
function words(string2, pattern2, guard) {
|
|
675
672
|
string2 = toString(string2);
|
|
676
|
-
pattern2 =
|
|
673
|
+
pattern2 = pattern2;
|
|
677
674
|
if (pattern2 === void 0) {
|
|
678
675
|
return hasUnicodeWord(string2) ? unicodeWords(string2) : asciiWords(string2);
|
|
679
676
|
}
|
|
@@ -974,7 +971,7 @@
|
|
|
974
971
|
function arrayLikeKeys(value, inherited) {
|
|
975
972
|
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
976
973
|
for (var key in value) {
|
|
977
|
-
if (
|
|
974
|
+
if (hasOwnProperty.call(value, key) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
978
975
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
979
976
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
980
977
|
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -1585,8 +1582,7 @@
|
|
|
1585
1582
|
...style
|
|
1586
1583
|
};
|
|
1587
1584
|
const renderErrorImg = React.useCallback(() => {
|
|
1588
|
-
if (!isError)
|
|
1589
|
-
return null;
|
|
1585
|
+
if (!isError) return null;
|
|
1590
1586
|
if (typeof error === "boolean" && error === true && !innerLoading) {
|
|
1591
1587
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-img-error" }, /* @__PURE__ */ React.createElement(N, null));
|
|
1592
1588
|
}
|
|
@@ -1596,8 +1592,7 @@
|
|
|
1596
1592
|
return null;
|
|
1597
1593
|
}, [error, isError, innerLoading]);
|
|
1598
1594
|
const renderLoading = React.useCallback(() => {
|
|
1599
|
-
if (!loading)
|
|
1600
|
-
return null;
|
|
1595
|
+
if (!loading) return null;
|
|
1601
1596
|
if (typeof loading === "boolean" && loading === true && innerLoading) {
|
|
1602
1597
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-img-loading" }, /* @__PURE__ */ React.createElement(j$2, null));
|
|
1603
1598
|
}
|
|
@@ -1620,44 +1615,30 @@
|
|
|
1620
1615
|
};
|
|
1621
1616
|
Image$1.displayName = "NutImage";
|
|
1622
1617
|
function _extends$1() {
|
|
1623
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function(
|
|
1624
|
-
for (var
|
|
1625
|
-
var
|
|
1626
|
-
for (var
|
|
1627
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1628
|
-
target[key] = source[key];
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1618
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
1619
|
+
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
1620
|
+
var t = arguments[e2];
|
|
1621
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n2[r] = t[r]);
|
|
1631
1622
|
}
|
|
1632
|
-
return
|
|
1633
|
-
};
|
|
1634
|
-
return _extends$1.apply(this, arguments);
|
|
1623
|
+
return n2;
|
|
1624
|
+
}, _extends$1.apply(null, arguments);
|
|
1635
1625
|
}
|
|
1636
|
-
function _objectWithoutPropertiesLoose(
|
|
1637
|
-
if (
|
|
1638
|
-
|
|
1639
|
-
var
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
1643
|
-
key = sourceKeys[i];
|
|
1644
|
-
if (excluded.indexOf(key) >= 0)
|
|
1645
|
-
continue;
|
|
1646
|
-
target[key] = source[key];
|
|
1626
|
+
function _objectWithoutPropertiesLoose(r, e2) {
|
|
1627
|
+
if (null == r) return {};
|
|
1628
|
+
var t = {};
|
|
1629
|
+
for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
|
|
1630
|
+
if (e2.indexOf(n2) >= 0) continue;
|
|
1631
|
+
t[n2] = r[n2];
|
|
1647
1632
|
}
|
|
1648
|
-
return
|
|
1633
|
+
return t;
|
|
1649
1634
|
}
|
|
1650
|
-
function _setPrototypeOf$1(
|
|
1651
|
-
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
};
|
|
1655
|
-
return _setPrototypeOf$1(o, p);
|
|
1635
|
+
function _setPrototypeOf$1(t, e2) {
|
|
1636
|
+
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
|
|
1637
|
+
return t2.__proto__ = e3, t2;
|
|
1638
|
+
}, _setPrototypeOf$1(t, e2);
|
|
1656
1639
|
}
|
|
1657
|
-
function _inheritsLoose$1(
|
|
1658
|
-
|
|
1659
|
-
subClass.prototype.constructor = subClass;
|
|
1660
|
-
_setPrototypeOf$1(subClass, superClass);
|
|
1640
|
+
function _inheritsLoose$1(t, o) {
|
|
1641
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o);
|
|
1661
1642
|
}
|
|
1662
1643
|
var propTypes = { exports: {} };
|
|
1663
1644
|
var reactIs = { exports: {} };
|
|
@@ -1672,8 +1653,7 @@
|
|
|
1672
1653
|
*/
|
|
1673
1654
|
var hasRequiredReactIs_production_min;
|
|
1674
1655
|
function requireReactIs_production_min() {
|
|
1675
|
-
if (hasRequiredReactIs_production_min)
|
|
1676
|
-
return reactIs_production_min;
|
|
1656
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
1677
1657
|
hasRequiredReactIs_production_min = 1;
|
|
1678
1658
|
var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k2 = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m2 = b ? Symbol.for("react.concurrent_mode") : 60111, n2 = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
1679
1659
|
function z2(a2) {
|
|
@@ -1776,8 +1756,7 @@
|
|
|
1776
1756
|
*/
|
|
1777
1757
|
var hasRequiredReactIs_development;
|
|
1778
1758
|
function requireReactIs_development() {
|
|
1779
|
-
if (hasRequiredReactIs_development)
|
|
1780
|
-
return reactIs_development;
|
|
1759
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
1781
1760
|
hasRequiredReactIs_development = 1;
|
|
1782
1761
|
if (process.env.NODE_ENV !== "production") {
|
|
1783
1762
|
(function() {
|
|
@@ -1930,8 +1909,7 @@
|
|
|
1930
1909
|
}
|
|
1931
1910
|
var hasRequiredReactIs;
|
|
1932
1911
|
function requireReactIs() {
|
|
1933
|
-
if (hasRequiredReactIs)
|
|
1934
|
-
return reactIs.exports;
|
|
1912
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
1935
1913
|
hasRequiredReactIs = 1;
|
|
1936
1914
|
if (process.env.NODE_ENV === "production") {
|
|
1937
1915
|
reactIs.exports = requireReactIs_production_min();
|
|
@@ -1948,8 +1926,7 @@
|
|
|
1948
1926
|
var objectAssign;
|
|
1949
1927
|
var hasRequiredObjectAssign;
|
|
1950
1928
|
function requireObjectAssign() {
|
|
1951
|
-
if (hasRequiredObjectAssign)
|
|
1952
|
-
return objectAssign;
|
|
1929
|
+
if (hasRequiredObjectAssign) return objectAssign;
|
|
1953
1930
|
hasRequiredObjectAssign = 1;
|
|
1954
1931
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1955
1932
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -2019,8 +1996,7 @@
|
|
|
2019
1996
|
var ReactPropTypesSecret_1;
|
|
2020
1997
|
var hasRequiredReactPropTypesSecret;
|
|
2021
1998
|
function requireReactPropTypesSecret() {
|
|
2022
|
-
if (hasRequiredReactPropTypesSecret)
|
|
2023
|
-
return ReactPropTypesSecret_1;
|
|
1999
|
+
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
2024
2000
|
hasRequiredReactPropTypesSecret = 1;
|
|
2025
2001
|
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2026
2002
|
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
@@ -2029,8 +2005,7 @@
|
|
|
2029
2005
|
var has;
|
|
2030
2006
|
var hasRequiredHas;
|
|
2031
2007
|
function requireHas() {
|
|
2032
|
-
if (hasRequiredHas)
|
|
2033
|
-
return has;
|
|
2008
|
+
if (hasRequiredHas) return has;
|
|
2034
2009
|
hasRequiredHas = 1;
|
|
2035
2010
|
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2036
2011
|
return has;
|
|
@@ -2038,8 +2013,7 @@
|
|
|
2038
2013
|
var checkPropTypes_1;
|
|
2039
2014
|
var hasRequiredCheckPropTypes;
|
|
2040
2015
|
function requireCheckPropTypes() {
|
|
2041
|
-
if (hasRequiredCheckPropTypes)
|
|
2042
|
-
return checkPropTypes_1;
|
|
2016
|
+
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
2043
2017
|
hasRequiredCheckPropTypes = 1;
|
|
2044
2018
|
var printWarning = function() {
|
|
2045
2019
|
};
|
|
@@ -2102,8 +2076,7 @@
|
|
|
2102
2076
|
var factoryWithTypeCheckers;
|
|
2103
2077
|
var hasRequiredFactoryWithTypeCheckers;
|
|
2104
2078
|
function requireFactoryWithTypeCheckers() {
|
|
2105
|
-
if (hasRequiredFactoryWithTypeCheckers)
|
|
2106
|
-
return factoryWithTypeCheckers;
|
|
2079
|
+
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
2107
2080
|
hasRequiredFactoryWithTypeCheckers = 1;
|
|
2108
2081
|
var ReactIs2 = requireReactIs();
|
|
2109
2082
|
var assign = requireObjectAssign();
|
|
@@ -2546,8 +2519,7 @@
|
|
|
2546
2519
|
var factoryWithThrowingShims;
|
|
2547
2520
|
var hasRequiredFactoryWithThrowingShims;
|
|
2548
2521
|
function requireFactoryWithThrowingShims() {
|
|
2549
|
-
if (hasRequiredFactoryWithThrowingShims)
|
|
2550
|
-
return factoryWithThrowingShims;
|
|
2522
|
+
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
2551
2523
|
hasRequiredFactoryWithThrowingShims = 1;
|
|
2552
2524
|
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2553
2525
|
function emptyFunction() {
|
|
@@ -2608,18 +2580,13 @@
|
|
|
2608
2580
|
var propTypesExports = propTypes.exports;
|
|
2609
2581
|
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
2610
2582
|
function hasClass(element, className) {
|
|
2611
|
-
if (element.classList)
|
|
2612
|
-
return !!className && element.classList.contains(className);
|
|
2583
|
+
if (element.classList) return !!className && element.classList.contains(className);
|
|
2613
2584
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
2614
2585
|
}
|
|
2615
2586
|
function addClass(element, className) {
|
|
2616
|
-
if (element.classList)
|
|
2617
|
-
|
|
2618
|
-
else
|
|
2619
|
-
if (typeof element.className === "string")
|
|
2620
|
-
element.className = element.className + " " + className;
|
|
2621
|
-
else
|
|
2622
|
-
element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
|
|
2587
|
+
if (element.classList) element.classList.add(className);
|
|
2588
|
+
else if (!hasClass(element, className)) if (typeof element.className === "string") element.className = element.className + " " + className;
|
|
2589
|
+
else element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
|
|
2623
2590
|
}
|
|
2624
2591
|
function replaceClassName(origClass, classToRemove) {
|
|
2625
2592
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
@@ -2747,8 +2714,7 @@
|
|
|
2747
2714
|
if (nextStatus === ENTERING) {
|
|
2748
2715
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
2749
2716
|
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
2750
|
-
if (node)
|
|
2751
|
-
forceReflow(node);
|
|
2717
|
+
if (node) forceReflow(node);
|
|
2752
2718
|
}
|
|
2753
2719
|
this.performEnter(mounting);
|
|
2754
2720
|
} else {
|
|
@@ -2986,8 +2952,7 @@
|
|
|
2986
2952
|
*/
|
|
2987
2953
|
timeout: function timeout(props) {
|
|
2988
2954
|
var pt = timeoutsShape;
|
|
2989
|
-
if (!props.addEndListener)
|
|
2990
|
-
pt = pt.isRequired;
|
|
2955
|
+
if (!props.addEndListener) pt = pt.isRequired;
|
|
2991
2956
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
2992
2957
|
args[_key - 1] = arguments[_key];
|
|
2993
2958
|
}
|
|
@@ -3081,7 +3046,6 @@
|
|
|
3081
3046
|
Transition.ENTERING = ENTERING;
|
|
3082
3047
|
Transition.ENTERED = ENTERED;
|
|
3083
3048
|
Transition.EXITING = EXITING;
|
|
3084
|
-
const Transition$1 = Transition;
|
|
3085
3049
|
var _addClass = function addClass$1(node, classes) {
|
|
3086
3050
|
return node && classes && classes.split(" ").forEach(function(c2) {
|
|
3087
3051
|
return addClass(node, c2);
|
|
@@ -3180,8 +3144,7 @@
|
|
|
3180
3144
|
className += " " + doneClassName;
|
|
3181
3145
|
}
|
|
3182
3146
|
if (phase === "active") {
|
|
3183
|
-
if (node)
|
|
3184
|
-
forceReflow(node);
|
|
3147
|
+
if (node) forceReflow(node);
|
|
3185
3148
|
}
|
|
3186
3149
|
if (className) {
|
|
3187
3150
|
this.appliedClasses[type2][phase] = className;
|
|
@@ -3205,7 +3168,7 @@
|
|
|
3205
3168
|
var _this$props = this.props;
|
|
3206
3169
|
_this$props.classNames;
|
|
3207
3170
|
var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
|
|
3208
|
-
return /* @__PURE__ */ React.createElement(Transition
|
|
3171
|
+
return /* @__PURE__ */ React.createElement(Transition, _extends$1({}, props, {
|
|
3209
3172
|
onEnter: this.onEnter,
|
|
3210
3173
|
onEntered: this.onEntered,
|
|
3211
3174
|
onEntering: this.onEntering,
|
|
@@ -3219,7 +3182,7 @@
|
|
|
3219
3182
|
CSSTransition.defaultProps = {
|
|
3220
3183
|
classNames: ""
|
|
3221
3184
|
};
|
|
3222
|
-
CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({}, Transition
|
|
3185
|
+
CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({}, Transition.propTypes, {
|
|
3223
3186
|
/**
|
|
3224
3187
|
* The animation classNames applied to the component as it appears, enters,
|
|
3225
3188
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -3343,7 +3306,6 @@
|
|
|
3343
3306
|
*/
|
|
3344
3307
|
onExited: PropTypes.func
|
|
3345
3308
|
}) : {};
|
|
3346
|
-
const CSSTransition$1 = CSSTransition;
|
|
3347
3309
|
const MIN_DISTANCE = 10;
|
|
3348
3310
|
function getDirection(x, y) {
|
|
3349
3311
|
if (x > y && x > MIN_DISTANCE) {
|
|
@@ -3439,6 +3401,19 @@
|
|
|
3439
3401
|
}
|
|
3440
3402
|
return root2;
|
|
3441
3403
|
}
|
|
3404
|
+
let passiveSupported = false;
|
|
3405
|
+
if (canUseDom) {
|
|
3406
|
+
try {
|
|
3407
|
+
const opts = Object.defineProperty({}, "passive", {
|
|
3408
|
+
get() {
|
|
3409
|
+
passiveSupported = true;
|
|
3410
|
+
}
|
|
3411
|
+
});
|
|
3412
|
+
window.addEventListener("test-passive-supported", null, opts);
|
|
3413
|
+
} catch (e2) {
|
|
3414
|
+
console.log(e2);
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3442
3417
|
let totalLockCount = 0;
|
|
3443
3418
|
const BODY_LOCK_CLASS = "nut-overflow-hidden";
|
|
3444
3419
|
function getScrollableElement(el) {
|
|
@@ -3460,8 +3435,7 @@
|
|
|
3460
3435
|
event.target,
|
|
3461
3436
|
rootRef.current
|
|
3462
3437
|
);
|
|
3463
|
-
if (!el)
|
|
3464
|
-
return;
|
|
3438
|
+
if (!el) return;
|
|
3465
3439
|
if (shouldLock === "strict") {
|
|
3466
3440
|
const scrollableParent = getScrollableElement(event.target);
|
|
3467
3441
|
if (scrollableParent === document.body || scrollableParent === document.documentElement) {
|
|
@@ -3487,7 +3461,7 @@
|
|
|
3487
3461
|
document.addEventListener(
|
|
3488
3462
|
"touchmove",
|
|
3489
3463
|
onTouchMove,
|
|
3490
|
-
false
|
|
3464
|
+
passiveSupported ? { passive: false } : false
|
|
3491
3465
|
);
|
|
3492
3466
|
if (!totalLockCount) {
|
|
3493
3467
|
document.body.classList.add(BODY_LOCK_CLASS);
|
|
@@ -3574,7 +3548,7 @@
|
|
|
3574
3548
|
afterClose && afterClose();
|
|
3575
3549
|
};
|
|
3576
3550
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3577
|
-
CSSTransition
|
|
3551
|
+
CSSTransition,
|
|
3578
3552
|
{
|
|
3579
3553
|
nodeRef,
|
|
3580
3554
|
classNames: `${classPrefix2}-slide`,
|
|
@@ -4021,10 +3995,8 @@
|
|
|
4021
3995
|
};
|
|
4022
3996
|
}
|
|
4023
3997
|
const style2 = {};
|
|
4024
|
-
if (rootRect.height)
|
|
4025
|
-
|
|
4026
|
-
if (rootRect.width)
|
|
4027
|
-
style2.width = rootRect.width;
|
|
3998
|
+
if (rootRect.height) style2.height = rootRect.height;
|
|
3999
|
+
if (rootRect.width) style2.width = rootRect.width;
|
|
4028
4000
|
style2.transform = `translate3d(0, ${transform}px, 0)`;
|
|
4029
4001
|
style2[position] = threshold;
|
|
4030
4002
|
style2.zIndex = zIndex;
|
|
@@ -4228,8 +4200,7 @@
|
|
|
4228
4200
|
const query = Taro.createSelectorQuery();
|
|
4229
4201
|
query.selectAll(`.${className} .nut-elevator-item-${i}`).boundingClientRect();
|
|
4230
4202
|
query.exec((res) => {
|
|
4231
|
-
if (res[0][0])
|
|
4232
|
-
height2 += res[0][0].height;
|
|
4203
|
+
if (res[0][0]) height2 += res[0][0].height;
|
|
4233
4204
|
state.current.listHeight.push(height2);
|
|
4234
4205
|
});
|
|
4235
4206
|
}
|
|
@@ -4304,8 +4275,7 @@
|
|
|
4304
4275
|
if (sticky && scrollTop2 !== scrollY) {
|
|
4305
4276
|
setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
|
|
4306
4277
|
}
|
|
4307
|
-
if (scrolling.current)
|
|
4308
|
-
return;
|
|
4278
|
+
if (scrolling.current) return;
|
|
4309
4279
|
for (let i = 0; i < listHeight.length - 1; i++) {
|
|
4310
4280
|
const height1 = listHeight[i];
|
|
4311
4281
|
const height2 = listHeight[i + 1];
|
|
@@ -4735,7 +4705,7 @@
|
|
|
4735
4705
|
};
|
|
4736
4706
|
const renderPop = () => {
|
|
4737
4707
|
return /* @__PURE__ */ React.createElement(
|
|
4738
|
-
CSSTransition
|
|
4708
|
+
CSSTransition,
|
|
4739
4709
|
{
|
|
4740
4710
|
classNames: transitionName,
|
|
4741
4711
|
mountOnEnter: true,
|
|
@@ -4977,24 +4947,20 @@
|
|
|
4977
4947
|
[`${classPrefix2}-${fill}`]: fill === "outline"
|
|
4978
4948
|
});
|
|
4979
4949
|
function content() {
|
|
4980
|
-
if (dot || typeof value === "object" || value === 0)
|
|
4981
|
-
return null;
|
|
4950
|
+
if (dot || typeof value === "object" || value === 0) return null;
|
|
4982
4951
|
if (typeof value === "number" && typeof max === "number") {
|
|
4983
4952
|
return max < value ? `${max}+` : `${value}`;
|
|
4984
4953
|
}
|
|
4985
4954
|
return value;
|
|
4986
4955
|
}
|
|
4987
4956
|
function isIcon() {
|
|
4988
|
-
if (typeof value === "object" && value)
|
|
4989
|
-
return value;
|
|
4957
|
+
if (typeof value === "object" && value) return value;
|
|
4990
4958
|
}
|
|
4991
4959
|
function isNumber() {
|
|
4992
|
-
if (typeof value === "number" && value)
|
|
4993
|
-
return value;
|
|
4960
|
+
if (typeof value === "number" && value) return value;
|
|
4994
4961
|
}
|
|
4995
4962
|
function isString() {
|
|
4996
|
-
if (typeof value === "string" && value)
|
|
4997
|
-
return value;
|
|
4963
|
+
if (typeof value === "string" && value) return value;
|
|
4998
4964
|
}
|
|
4999
4965
|
const contentClasses = classNames(
|
|
5000
4966
|
{ [`${classPrefix2}-dot`]: dot },
|
|
@@ -5147,8 +5113,7 @@
|
|
|
5147
5113
|
}
|
|
5148
5114
|
},
|
|
5149
5115
|
React.Children.map(children, (child, index) => {
|
|
5150
|
-
if (!React.isValidElement(child))
|
|
5151
|
-
return null;
|
|
5116
|
+
if (!React.isValidElement(child)) return null;
|
|
5152
5117
|
return React.cloneElement(child, { ...child.props, index });
|
|
5153
5118
|
})
|
|
5154
5119
|
)),
|
|
@@ -5336,8 +5301,7 @@
|
|
|
5336
5301
|
navRectRef.current = navRect;
|
|
5337
5302
|
titleRectRef.current = titleRects;
|
|
5338
5303
|
const titleRect = titleRectRef.current[index];
|
|
5339
|
-
if (!titleRect)
|
|
5340
|
-
return;
|
|
5304
|
+
if (!titleRect) return;
|
|
5341
5305
|
let to = 0;
|
|
5342
5306
|
if (direction === "vertical") {
|
|
5343
5307
|
const top = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.height, 0);
|
|
@@ -6363,9 +6327,6 @@
|
|
|
6363
6327
|
};
|
|
6364
6328
|
const getDaysStatus = (type2, year, month) => {
|
|
6365
6329
|
let days = Utils.getMonthDays(`${year}`, `${month}`);
|
|
6366
|
-
if (type2 === "prev" && days >= 7) {
|
|
6367
|
-
days -= 7;
|
|
6368
|
-
}
|
|
6369
6330
|
return Array.from(Array(days), (v, k2) => {
|
|
6370
6331
|
return {
|
|
6371
6332
|
day: k2 + 1,
|
|
@@ -6384,7 +6345,7 @@
|
|
|
6384
6345
|
}
|
|
6385
6346
|
let days = Utils.getMonthPreDay(+year, +month);
|
|
6386
6347
|
days -= firstDayOfWeek;
|
|
6387
|
-
if (
|
|
6348
|
+
if (days >= 7) {
|
|
6388
6349
|
days -= 7;
|
|
6389
6350
|
}
|
|
6390
6351
|
const preDates = Utils.getMonthDays(`${preYear}`, `${preMonth}`);
|
|
@@ -6561,7 +6522,7 @@
|
|
|
6561
6522
|
cssHeight,
|
|
6562
6523
|
scrollTop: scrollTop2
|
|
6563
6524
|
};
|
|
6564
|
-
|
|
6525
|
+
{
|
|
6565
6526
|
if (!endDates || !Utils.compareDate(
|
|
6566
6527
|
`${endDates[0]}/${endDates[1]}/${Utils.getMonthDays(
|
|
6567
6528
|
endDates[0],
|
|
@@ -6571,11 +6532,6 @@
|
|
|
6571
6532
|
)) {
|
|
6572
6533
|
monthData.push(monthInfo);
|
|
6573
6534
|
}
|
|
6574
|
-
} else if (!startDates || !Utils.compareDate(
|
|
6575
|
-
`${curData[0]}/${curData[1]}/${curData[2]}`,
|
|
6576
|
-
`${startDates[0]}/${startDates[1]}/01`
|
|
6577
|
-
)) {
|
|
6578
|
-
monthData.unshift(monthInfo);
|
|
6579
6535
|
}
|
|
6580
6536
|
date2 = getCurrMonthData("next", y, m2);
|
|
6581
6537
|
} while (i++ < monthNum);
|
|
@@ -6584,8 +6540,7 @@
|
|
|
6584
6540
|
const setReachedYearMonthInfo = (current) => {
|
|
6585
6541
|
const currentMonthsData = monthsData[current];
|
|
6586
6542
|
const [year, month] = currentMonthsData.curData;
|
|
6587
|
-
if (currentMonthsData.title === yearMonthTitle)
|
|
6588
|
-
return;
|
|
6543
|
+
if (currentMonthsData.title === yearMonthTitle) return;
|
|
6589
6544
|
onPageChange && onPageChange([year, month, `${year}-${month}`]);
|
|
6590
6545
|
setYearMonthTitle(currentMonthsData.title);
|
|
6591
6546
|
};
|
|
@@ -6776,7 +6731,7 @@
|
|
|
6776
6731
|
};
|
|
6777
6732
|
const initData = () => {
|
|
6778
6733
|
const monthNum = getMonthNum();
|
|
6779
|
-
getMonthData(startDates, monthNum
|
|
6734
|
+
getMonthData(startDates, monthNum);
|
|
6780
6735
|
const current = renderCurrentDate();
|
|
6781
6736
|
setDefaultRange(monthNum, current);
|
|
6782
6737
|
requestAniFrameFunc(current, monthNum);
|
|
@@ -6836,8 +6791,7 @@
|
|
|
6836
6791
|
const scrollTop2 = e2.target.scrollTop;
|
|
6837
6792
|
Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
|
|
6838
6793
|
let current = Math.floor(scrollTop2 / avgHeight);
|
|
6839
|
-
if (!monthsData[current + 1])
|
|
6840
|
-
return;
|
|
6794
|
+
if (!monthsData[current + 1]) return;
|
|
6841
6795
|
const nextTop = monthsData[current + 1].scrollTop;
|
|
6842
6796
|
const nextHeight = monthsData[current + 1].cssHeight;
|
|
6843
6797
|
if (current === 0) {
|
|
@@ -7583,7 +7537,6 @@
|
|
|
7583
7537
|
});
|
|
7584
7538
|
CalendarCard.displayName = "NutCalendarCard";
|
|
7585
7539
|
const CheckboxGroupContext = React.createContext(null);
|
|
7586
|
-
const Context$1 = CheckboxGroupContext;
|
|
7587
7540
|
const defaultProps$10 = {
|
|
7588
7541
|
max: void 0,
|
|
7589
7542
|
min: void 0,
|
|
@@ -7661,7 +7614,7 @@
|
|
|
7661
7614
|
});
|
|
7662
7615
|
}, [options, max, min]);
|
|
7663
7616
|
return /* @__PURE__ */ React.createElement(
|
|
7664
|
-
|
|
7617
|
+
CheckboxGroupContext.Provider,
|
|
7665
7618
|
{
|
|
7666
7619
|
value: {
|
|
7667
7620
|
labelPosition: labelPosition || "right",
|
|
@@ -7741,7 +7694,7 @@
|
|
|
7741
7694
|
...others
|
|
7742
7695
|
} = props;
|
|
7743
7696
|
let { labelPosition, ...rest } = others;
|
|
7744
|
-
const ctx = React.useContext(
|
|
7697
|
+
const ctx = React.useContext(CheckboxGroupContext);
|
|
7745
7698
|
let [innerChecked, setChecked] = usePropsValue({
|
|
7746
7699
|
value: checked,
|
|
7747
7700
|
defaultValue: defaultChecked,
|
|
@@ -7763,12 +7716,9 @@
|
|
|
7763
7716
|
innerDisabled = ctx.disabled !== void 0 ? ctx.disabled : innerDisabled;
|
|
7764
7717
|
innerChecked = ctx.value.includes(value);
|
|
7765
7718
|
setChecked = (checked2) => {
|
|
7766
|
-
if (ctx.disabled)
|
|
7767
|
-
|
|
7768
|
-
if (checked2)
|
|
7769
|
-
ctx.check(value);
|
|
7770
|
-
if (!checked2)
|
|
7771
|
-
ctx.uncheck(value);
|
|
7719
|
+
if (ctx.disabled) return;
|
|
7720
|
+
if (checked2) ctx.check(value);
|
|
7721
|
+
if (!checked2) ctx.uncheck(value);
|
|
7772
7722
|
};
|
|
7773
7723
|
}
|
|
7774
7724
|
const renderIcon = () => {
|
|
@@ -7820,8 +7770,7 @@
|
|
|
7820
7770
|
);
|
|
7821
7771
|
};
|
|
7822
7772
|
const handleClick = () => {
|
|
7823
|
-
if (disabled)
|
|
7824
|
-
return;
|
|
7773
|
+
if (disabled) return;
|
|
7825
7774
|
const latestChecked = !innerChecked;
|
|
7826
7775
|
setChecked(latestChecked);
|
|
7827
7776
|
};
|
|
@@ -7949,14 +7898,13 @@
|
|
|
7949
7898
|
touch.move(event);
|
|
7950
7899
|
if (touch.isVertical) {
|
|
7951
7900
|
moving.current = true;
|
|
7952
|
-
preventDefault2(event
|
|
7901
|
+
preventDefault2(event);
|
|
7953
7902
|
}
|
|
7954
7903
|
const move = touch.deltaY.current - startY;
|
|
7955
7904
|
setMove(move);
|
|
7956
7905
|
};
|
|
7957
7906
|
const touchEnd = () => {
|
|
7958
|
-
if (!moving.current)
|
|
7959
|
-
return;
|
|
7907
|
+
if (!moving.current) return;
|
|
7960
7908
|
const move = touch.deltaY.current - startY;
|
|
7961
7909
|
const moveTime = Date.now() - startTime;
|
|
7962
7910
|
if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
|
|
@@ -7976,7 +7924,7 @@
|
|
|
7976
7924
|
return nDistance;
|
|
7977
7925
|
};
|
|
7978
7926
|
const modifyStatus = (type2, val) => {
|
|
7979
|
-
const value =
|
|
7927
|
+
const value = defaultValue;
|
|
7980
7928
|
let index = -1;
|
|
7981
7929
|
if (value) {
|
|
7982
7930
|
options.some((item, idx) => {
|
|
@@ -7995,7 +7943,6 @@
|
|
|
7995
7943
|
}
|
|
7996
7944
|
setCurrIndex(index === -1 ? 1 : index + 1);
|
|
7997
7945
|
const move = index === -1 ? 0 : index * lineSpacing.current;
|
|
7998
|
-
type2 && setChooseValue(-move);
|
|
7999
7946
|
setMove(-move);
|
|
8000
7947
|
};
|
|
8001
7948
|
const stopMomentum = () => {
|
|
@@ -8005,7 +7952,7 @@
|
|
|
8005
7952
|
};
|
|
8006
7953
|
const preventDefault2 = (event, isStopPropagation) => {
|
|
8007
7954
|
event.preventDefault();
|
|
8008
|
-
|
|
7955
|
+
{
|
|
8009
7956
|
event.stopPropagation();
|
|
8010
7957
|
}
|
|
8011
7958
|
};
|
|
@@ -8028,7 +7975,7 @@
|
|
|
8028
7975
|
React.useEffect(() => {
|
|
8029
7976
|
setScrollDistance(0);
|
|
8030
7977
|
transformY.current = 0;
|
|
8031
|
-
modifyStatus(
|
|
7978
|
+
modifyStatus();
|
|
8032
7979
|
return () => {
|
|
8033
7980
|
clearTimeout(timer);
|
|
8034
7981
|
};
|
|
@@ -8045,7 +7992,7 @@
|
|
|
8045
7992
|
moving: moving.current
|
|
8046
7993
|
}));
|
|
8047
7994
|
React.useEffect(() => {
|
|
8048
|
-
const eventOptions = false;
|
|
7995
|
+
const eventOptions = passiveSupported ? { passive: false, once: true } : false;
|
|
8049
7996
|
const element = pickerPanelRef.current;
|
|
8050
7997
|
element.addEventListener("touchstart", touchStart, eventOptions);
|
|
8051
7998
|
element.addEventListener("touchmove", touchMove, eventOptions);
|
|
@@ -8096,13 +8043,11 @@
|
|
|
8096
8043
|
), /* @__PURE__ */ React.createElement("div", { className: "nut-picker-mask" }), /* @__PURE__ */ React.createElement("div", { className: "nut-picker-indicator", ref: listRef }));
|
|
8097
8044
|
};
|
|
8098
8045
|
const PickerPanel = React.forwardRef(InternalPickerPanel);
|
|
8099
|
-
const PickerPanel$1 = PickerPanel;
|
|
8100
8046
|
function useRefs() {
|
|
8101
8047
|
const refs = React.useRef([]);
|
|
8102
8048
|
const setRefs = React.useCallback(
|
|
8103
8049
|
(index) => (el) => {
|
|
8104
|
-
if (el)
|
|
8105
|
-
refs.current[index] = el;
|
|
8050
|
+
if (el) refs.current[index] = el;
|
|
8106
8051
|
},
|
|
8107
8052
|
[]
|
|
8108
8053
|
);
|
|
@@ -8191,8 +8136,7 @@
|
|
|
8191
8136
|
const options2 = columnOptions.children;
|
|
8192
8137
|
const value = values[columnIndex2];
|
|
8193
8138
|
let index = options2.findIndex((columnItem) => columnItem.value === value);
|
|
8194
|
-
if (index === -1)
|
|
8195
|
-
index = 0;
|
|
8139
|
+
if (index === -1) index = 0;
|
|
8196
8140
|
columnOptions = columnOptions.children[index];
|
|
8197
8141
|
columnIndex2++;
|
|
8198
8142
|
formatted.push(options2);
|
|
@@ -8325,8 +8269,7 @@
|
|
|
8325
8269
|
const confirm = () => {
|
|
8326
8270
|
let moving = false;
|
|
8327
8271
|
refs.forEach((ref2) => {
|
|
8328
|
-
if (ref2.moving)
|
|
8329
|
-
moving = true;
|
|
8272
|
+
if (ref2.moving) moving = true;
|
|
8330
8273
|
ref2.stopMomentum();
|
|
8331
8274
|
});
|
|
8332
8275
|
if (moving) {
|
|
@@ -8404,7 +8347,7 @@
|
|
|
8404
8347
|
},
|
|
8405
8348
|
/* @__PURE__ */ React.createElement(components.View, { className: classes, style, ...rest, catchMove: true }, renderTitleBar(), typeof children !== "function" && children, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
|
|
8406
8349
|
return /* @__PURE__ */ React.createElement(
|
|
8407
|
-
PickerPanel
|
|
8350
|
+
PickerPanel,
|
|
8408
8351
|
{
|
|
8409
8352
|
ref: setRefs(index),
|
|
8410
8353
|
defaultValue: innerValue == null ? void 0 : innerValue[index],
|
|
@@ -8445,7 +8388,6 @@
|
|
|
8445
8388
|
));
|
|
8446
8389
|
};
|
|
8447
8390
|
const Picker = React.forwardRef(InternalPicker);
|
|
8448
|
-
const Picker$1 = Picker;
|
|
8449
8391
|
const isDate = (val) => {
|
|
8450
8392
|
return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
|
|
8451
8393
|
};
|
|
@@ -8559,8 +8501,7 @@
|
|
|
8559
8501
|
};
|
|
8560
8502
|
const ranges = () => {
|
|
8561
8503
|
const selected = new Date(selectedDate);
|
|
8562
|
-
if (!selected)
|
|
8563
|
-
return [];
|
|
8504
|
+
if (!selected) return [];
|
|
8564
8505
|
const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", selected);
|
|
8565
8506
|
const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", selected);
|
|
8566
8507
|
const result = [
|
|
@@ -8719,8 +8660,7 @@
|
|
|
8719
8660
|
};
|
|
8720
8661
|
const getDateIndex = (type22) => {
|
|
8721
8662
|
const date2 = new Date(selectedDate);
|
|
8722
|
-
if (!selectedDate)
|
|
8723
|
-
return 0;
|
|
8663
|
+
if (!selectedDate) return 0;
|
|
8724
8664
|
if (type22 === "year") {
|
|
8725
8665
|
return date2.getFullYear();
|
|
8726
8666
|
}
|
|
@@ -8765,7 +8705,7 @@
|
|
|
8765
8705
|
...rest
|
|
8766
8706
|
},
|
|
8767
8707
|
pickerOptions.length && /* @__PURE__ */ React.createElement(
|
|
8768
|
-
Picker
|
|
8708
|
+
Picker,
|
|
8769
8709
|
{
|
|
8770
8710
|
...pickerProps,
|
|
8771
8711
|
title,
|
|
@@ -8817,12 +8757,9 @@
|
|
|
8817
8757
|
return _setPrototypeOf(o, p);
|
|
8818
8758
|
}
|
|
8819
8759
|
function _isNativeReflectConstruct() {
|
|
8820
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
8821
|
-
|
|
8822
|
-
if (
|
|
8823
|
-
return false;
|
|
8824
|
-
if (typeof Proxy === "function")
|
|
8825
|
-
return true;
|
|
8760
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
8761
|
+
if (Reflect.construct.sham) return false;
|
|
8762
|
+
if (typeof Proxy === "function") return true;
|
|
8826
8763
|
try {
|
|
8827
8764
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
8828
8765
|
}));
|
|
@@ -8840,8 +8777,7 @@
|
|
|
8840
8777
|
a2.push.apply(a2, args2);
|
|
8841
8778
|
var Constructor = Function.bind.apply(Parent2, a2);
|
|
8842
8779
|
var instance = new Constructor();
|
|
8843
|
-
if (Class2)
|
|
8844
|
-
_setPrototypeOf(instance, Class2.prototype);
|
|
8780
|
+
if (Class2) _setPrototypeOf(instance, Class2.prototype);
|
|
8845
8781
|
return instance;
|
|
8846
8782
|
};
|
|
8847
8783
|
}
|
|
@@ -8853,14 +8789,12 @@
|
|
|
8853
8789
|
function _wrapNativeSuper(Class) {
|
|
8854
8790
|
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
8855
8791
|
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
8856
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
8857
|
-
return Class2;
|
|
8792
|
+
if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
|
|
8858
8793
|
if (typeof Class2 !== "function") {
|
|
8859
8794
|
throw new TypeError("Super expression must either be null or a function");
|
|
8860
8795
|
}
|
|
8861
8796
|
if (typeof _cache !== "undefined") {
|
|
8862
|
-
if (_cache.has(Class2))
|
|
8863
|
-
return _cache.get(Class2);
|
|
8797
|
+
if (_cache.has(Class2)) return _cache.get(Class2);
|
|
8864
8798
|
_cache.set(Class2, Wrapper);
|
|
8865
8799
|
}
|
|
8866
8800
|
function Wrapper() {
|
|
@@ -8893,8 +8827,7 @@
|
|
|
8893
8827
|
};
|
|
8894
8828
|
}
|
|
8895
8829
|
function convertFieldsError(errors) {
|
|
8896
|
-
if (!errors || !errors.length)
|
|
8897
|
-
return null;
|
|
8830
|
+
if (!errors || !errors.length) return null;
|
|
8898
8831
|
var fields = {};
|
|
8899
8832
|
errors.forEach(function(error) {
|
|
8900
8833
|
var field = error.field;
|
|
@@ -10097,7 +10030,7 @@
|
|
|
10097
10030
|
resetFields();
|
|
10098
10031
|
}
|
|
10099
10032
|
},
|
|
10100
|
-
/* @__PURE__ */ React.createElement(Cell.Group, { divider }, /* @__PURE__ */ React.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React.createElement(Cell,
|
|
10033
|
+
/* @__PURE__ */ React.createElement(Cell.Group, { divider }, /* @__PURE__ */ React.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React.createElement(Cell, { className: `${classPrefix2}-footer` }, footer) : null)
|
|
10101
10034
|
);
|
|
10102
10035
|
}
|
|
10103
10036
|
);
|
|
@@ -10572,10 +10505,8 @@
|
|
|
10572
10505
|
return res;
|
|
10573
10506
|
};
|
|
10574
10507
|
const format2 = (value2) => {
|
|
10575
|
-
if (value2 === null)
|
|
10576
|
-
|
|
10577
|
-
if (typeof value2 === "string")
|
|
10578
|
-
value2 = parseFloat(value2);
|
|
10508
|
+
if (value2 === null) return "";
|
|
10509
|
+
if (typeof value2 === "string") value2 = parseFloat(value2);
|
|
10579
10510
|
const fixedValue = bound2(value2, Number(min), Number(max));
|
|
10580
10511
|
if (formatter) {
|
|
10581
10512
|
return formatter(fixedValue);
|
|
@@ -10619,22 +10550,18 @@
|
|
|
10619
10550
|
}
|
|
10620
10551
|
};
|
|
10621
10552
|
const handleReduce = (e2) => {
|
|
10622
|
-
if (disabled)
|
|
10623
|
-
return;
|
|
10553
|
+
if (disabled) return;
|
|
10624
10554
|
onMinus == null ? void 0 : onMinus(e2);
|
|
10625
10555
|
update(true, e2);
|
|
10626
10556
|
};
|
|
10627
10557
|
const handlePlus = (e2) => {
|
|
10628
|
-
if (disabled)
|
|
10629
|
-
return;
|
|
10558
|
+
if (disabled) return;
|
|
10630
10559
|
onPlus == null ? void 0 : onPlus(e2);
|
|
10631
10560
|
update(false, e2);
|
|
10632
10561
|
};
|
|
10633
10562
|
const parseValue = (text) => {
|
|
10634
|
-
if (text === "")
|
|
10635
|
-
|
|
10636
|
-
if (text === "-")
|
|
10637
|
-
return null;
|
|
10563
|
+
if (text === "") return null;
|
|
10564
|
+
if (text === "-") return null;
|
|
10638
10565
|
return text;
|
|
10639
10566
|
};
|
|
10640
10567
|
const handleInputChange = (e2) => {
|
|
@@ -10751,8 +10678,7 @@
|
|
|
10751
10678
|
}, [showPopup]);
|
|
10752
10679
|
const windowHeight = React.useMemo(() => Taro.getSystemInfoSync().windowHeight, []);
|
|
10753
10680
|
const updateItemOffset = React.useCallback(() => {
|
|
10754
|
-
if (!parent.lockScroll)
|
|
10755
|
-
return;
|
|
10681
|
+
if (!parent.lockScroll) return;
|
|
10756
10682
|
const p = parent.menuRef.current;
|
|
10757
10683
|
getRectByTaro(p).then((rect) => {
|
|
10758
10684
|
if (rect) {
|
|
@@ -10801,8 +10727,7 @@
|
|
|
10801
10727
|
}, 100);
|
|
10802
10728
|
};
|
|
10803
10729
|
const isShow = () => {
|
|
10804
|
-
if (showPopup)
|
|
10805
|
-
return {};
|
|
10730
|
+
if (showPopup) return {};
|
|
10806
10731
|
return { display: "none" };
|
|
10807
10732
|
};
|
|
10808
10733
|
const getPosition = () => {
|
|
@@ -10866,7 +10791,7 @@
|
|
|
10866
10791
|
}
|
|
10867
10792
|
},
|
|
10868
10793
|
/* @__PURE__ */ React.createElement(
|
|
10869
|
-
CSSTransition
|
|
10794
|
+
CSSTransition,
|
|
10870
10795
|
{
|
|
10871
10796
|
in: showPopup,
|
|
10872
10797
|
timeout: 100,
|
|
@@ -11008,10 +10933,8 @@
|
|
|
11008
10933
|
(option) => option.value === (value !== void 0 ? value : defaultValue)
|
|
11009
10934
|
);
|
|
11010
10935
|
const finallyTitle = () => {
|
|
11011
|
-
if (title)
|
|
11012
|
-
|
|
11013
|
-
if (menuItemTitle && menuItemTitle[index])
|
|
11014
|
-
return menuItemTitle[index];
|
|
10936
|
+
if (title) return title;
|
|
10937
|
+
if (menuItemTitle && menuItemTitle[index]) return menuItemTitle[index];
|
|
11015
10938
|
if (selected && selected.length && selected[0].text)
|
|
11016
10939
|
return selected[0].text;
|
|
11017
10940
|
return "";
|
|
@@ -11030,8 +10953,7 @@
|
|
|
11030
10953
|
style: { color: showMenuItem[index] ? activeColor : "" },
|
|
11031
10954
|
key: index,
|
|
11032
10955
|
onClick: () => {
|
|
11033
|
-
if ((!options || !options.length) && !child.props.children)
|
|
11034
|
-
return;
|
|
10956
|
+
if ((!options || !options.length) && !child.props.children) return;
|
|
11035
10957
|
!disabled && toggleMenuItem(index);
|
|
11036
10958
|
}
|
|
11037
10959
|
},
|
|
@@ -11099,8 +11021,7 @@
|
|
|
11099
11021
|
{ id: "0", type: "num" },
|
|
11100
11022
|
{ id: "delete", type: "delete" }
|
|
11101
11023
|
];
|
|
11102
|
-
if (!custom)
|
|
11103
|
-
return customKeys;
|
|
11024
|
+
if (!custom) return customKeys;
|
|
11104
11025
|
if (custom.length > 0) {
|
|
11105
11026
|
customKeys[0] = { id: custom[0], type: "custom" };
|
|
11106
11027
|
}
|
|
@@ -11392,8 +11313,7 @@
|
|
|
11392
11313
|
return renderByShape(context && context.shape ? context.shape : shape);
|
|
11393
11314
|
};
|
|
11394
11315
|
const handleClick = (e2) => {
|
|
11395
|
-
if (disabled || checkedStatement)
|
|
11396
|
-
return;
|
|
11316
|
+
if (disabled || checkedStatement) return;
|
|
11397
11317
|
setCheckedStatement(!checkedStatement);
|
|
11398
11318
|
};
|
|
11399
11319
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -11637,8 +11557,7 @@
|
|
|
11637
11557
|
touch.move(event);
|
|
11638
11558
|
setDragStatus("draging");
|
|
11639
11559
|
const rect = await getRectByTaro(root2.current);
|
|
11640
|
-
if (!rect)
|
|
11641
|
-
return;
|
|
11560
|
+
if (!rect) return;
|
|
11642
11561
|
let delta = touch.deltaX.current;
|
|
11643
11562
|
let total = rect.width;
|
|
11644
11563
|
let diff = delta / total * scope();
|
|
@@ -11784,8 +11703,7 @@
|
|
|
11784
11703
|
const onClick = (e2, index) => {
|
|
11785
11704
|
e2.preventDefault();
|
|
11786
11705
|
e2.stopPropagation();
|
|
11787
|
-
if (disabled || readOnly)
|
|
11788
|
-
return;
|
|
11706
|
+
if (disabled || readOnly) return;
|
|
11789
11707
|
let value2 = 0;
|
|
11790
11708
|
if (!(index === 1 && score === index)) {
|
|
11791
11709
|
value2 = index;
|
|
@@ -11965,8 +11883,7 @@
|
|
|
11965
11883
|
searchSelf && searchSelf.focus();
|
|
11966
11884
|
};
|
|
11967
11885
|
const change = (event) => {
|
|
11968
|
-
if (value === event.target.value)
|
|
11969
|
-
return;
|
|
11886
|
+
if (value === event.target.value) return;
|
|
11970
11887
|
onChange && (onChange == null ? void 0 : onChange(event.target.value, event));
|
|
11971
11888
|
setValue(event.target.value);
|
|
11972
11889
|
event.target.value === "" && forceFocus();
|
|
@@ -12011,23 +11928,19 @@
|
|
|
12011
11928
|
onInputClick && onInputClick(e2);
|
|
12012
11929
|
};
|
|
12013
11930
|
const renderLeftIn = () => {
|
|
12014
|
-
if (!leftIn)
|
|
12015
|
-
return null;
|
|
11931
|
+
if (!leftIn) return null;
|
|
12016
11932
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
|
|
12017
11933
|
};
|
|
12018
11934
|
const renderLeft = () => {
|
|
12019
|
-
if (!backable && !left2)
|
|
12020
|
-
return null;
|
|
11935
|
+
if (!backable && !left2) return null;
|
|
12021
11936
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React.createElement(g$5, { size: "16" }) : left2);
|
|
12022
11937
|
};
|
|
12023
11938
|
const renderRightIn = () => {
|
|
12024
|
-
if (!rightIn)
|
|
12025
|
-
return null;
|
|
11939
|
+
if (!rightIn) return null;
|
|
12026
11940
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
|
|
12027
11941
|
};
|
|
12028
11942
|
const renderRight = () => {
|
|
12029
|
-
if (!right2)
|
|
12030
|
-
return null;
|
|
11943
|
+
if (!right2) return null;
|
|
12031
11944
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right` }, right2);
|
|
12032
11945
|
};
|
|
12033
11946
|
const handleClear = () => {
|
|
@@ -12046,6 +11959,7 @@
|
|
|
12046
11959
|
}
|
|
12047
11960
|
setValue("");
|
|
12048
11961
|
forceFocus();
|
|
11962
|
+
onChange && (onChange == null ? void 0 : onChange(""));
|
|
12049
11963
|
onClear && onClear(event);
|
|
12050
11964
|
};
|
|
12051
11965
|
const onKeypress = (e2) => {
|
|
@@ -12380,8 +12294,7 @@
|
|
|
12380
12294
|
return `${classPrefix2} ${value ? "nut-switch-open" : "nut-switch-close"} ${disabled ? `${classPrefix2}-disabled` : ""} ${`${classPrefix2}-base`} ${className}`;
|
|
12381
12295
|
};
|
|
12382
12296
|
const onClick = (event) => {
|
|
12383
|
-
if (disabled)
|
|
12384
|
-
return;
|
|
12297
|
+
if (disabled) return;
|
|
12385
12298
|
onChange && onChange(!value, event);
|
|
12386
12299
|
setValue(!value);
|
|
12387
12300
|
};
|
|
@@ -12451,17 +12364,13 @@
|
|
|
12451
12364
|
}
|
|
12452
12365
|
};
|
|
12453
12366
|
const handleFocus = (event) => {
|
|
12454
|
-
if (disabled)
|
|
12455
|
-
|
|
12456
|
-
if (readOnly)
|
|
12457
|
-
return;
|
|
12367
|
+
if (disabled) return;
|
|
12368
|
+
if (readOnly) return;
|
|
12458
12369
|
onFocus && onFocus(event);
|
|
12459
12370
|
};
|
|
12460
12371
|
const handleBlur = (event) => {
|
|
12461
|
-
if (disabled)
|
|
12462
|
-
|
|
12463
|
-
if (readOnly)
|
|
12464
|
-
return;
|
|
12372
|
+
if (disabled) return;
|
|
12373
|
+
if (readOnly) return;
|
|
12465
12374
|
onBlur && onBlur(event);
|
|
12466
12375
|
};
|
|
12467
12376
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -13489,14 +13398,11 @@
|
|
|
13489
13398
|
);
|
|
13490
13399
|
const refObject = useLockScrollTaro(!!(visible && lockScroll));
|
|
13491
13400
|
const renderFooter = () => {
|
|
13492
|
-
if (footer === null)
|
|
13493
|
-
return "";
|
|
13401
|
+
if (footer === null) return "";
|
|
13494
13402
|
const handleCancel = (e2) => {
|
|
13495
13403
|
e2.stopPropagation();
|
|
13496
|
-
if (!(beforeCancel == null ? void 0 : beforeCancel()))
|
|
13497
|
-
|
|
13498
|
-
if (!(beforeClose == null ? void 0 : beforeClose()))
|
|
13499
|
-
return;
|
|
13404
|
+
if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
|
|
13405
|
+
if (!(beforeClose == null ? void 0 : beforeClose())) return;
|
|
13500
13406
|
onClose == null ? void 0 : onClose();
|
|
13501
13407
|
onCancel == null ? void 0 : onCancel();
|
|
13502
13408
|
};
|
|
@@ -13534,13 +13440,10 @@
|
|
|
13534
13440
|
));
|
|
13535
13441
|
};
|
|
13536
13442
|
const renderCloseIcon = () => {
|
|
13537
|
-
if (!closeIcon)
|
|
13538
|
-
return null;
|
|
13443
|
+
if (!closeIcon) return null;
|
|
13539
13444
|
const handleCancel = () => {
|
|
13540
|
-
if (!(beforeCancel == null ? void 0 : beforeCancel()))
|
|
13541
|
-
|
|
13542
|
-
if (!(beforeClose == null ? void 0 : beforeClose()))
|
|
13543
|
-
return;
|
|
13445
|
+
if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
|
|
13446
|
+
if (!(beforeClose == null ? void 0 : beforeClose())) return;
|
|
13544
13447
|
onClose == null ? void 0 : onClose();
|
|
13545
13448
|
onCancel == null ? void 0 : onCancel();
|
|
13546
13449
|
};
|
|
@@ -13574,7 +13477,7 @@
|
|
|
13574
13477
|
className: classNames("nut-dialog-overlay")
|
|
13575
13478
|
}
|
|
13576
13479
|
) : null, /* @__PURE__ */ React.createElement(
|
|
13577
|
-
CSSTransition
|
|
13480
|
+
CSSTransition,
|
|
13578
13481
|
{
|
|
13579
13482
|
in: visible,
|
|
13580
13483
|
timeout: 300,
|
|
@@ -13639,17 +13542,20 @@
|
|
|
13639
13542
|
const translateX = React.useRef(0);
|
|
13640
13543
|
const translateY = React.useRef(0);
|
|
13641
13544
|
const middleLine = React.useRef(0);
|
|
13642
|
-
const getInfo = () => {
|
|
13545
|
+
const getInfo = async () => {
|
|
13546
|
+
var _a;
|
|
13643
13547
|
const el = myDrag.current;
|
|
13644
13548
|
if (el) {
|
|
13645
13549
|
const { top, left: left2, bottom, right: right2 } = boundary;
|
|
13646
13550
|
const { screenWidth, windowHeight } = Taro.getSystemInfoSync();
|
|
13551
|
+
const { width, height } = await getRectByTaro(dragRef.current);
|
|
13552
|
+
(_a = dragRef.current) == null ? void 0 : _a.getBoundingClientRect();
|
|
13647
13553
|
Taro.createSelectorQuery().select(`.${className}`).boundingClientRect((rec) => {
|
|
13648
13554
|
setBoundaryState({
|
|
13649
13555
|
top: -rec.top + top,
|
|
13650
13556
|
left: -rec.left + left2,
|
|
13651
|
-
bottom: windowHeight - rec.
|
|
13652
|
-
right: screenWidth - rec.
|
|
13557
|
+
bottom: windowHeight - rec.top - bottom - Math.ceil(height),
|
|
13558
|
+
right: screenWidth - rec.left - right2 - Math.ceil(width)
|
|
13653
13559
|
});
|
|
13654
13560
|
middleLine.current = screenWidth - rec.width - rec.left - (screenWidth - rec.width) / 2;
|
|
13655
13561
|
}).exec();
|
|
@@ -13712,6 +13618,7 @@
|
|
|
13712
13618
|
/* @__PURE__ */ React.createElement(
|
|
13713
13619
|
"div",
|
|
13714
13620
|
{
|
|
13621
|
+
className: `${classPrefix2}-inner`,
|
|
13715
13622
|
onTouchStart: (event) => touchStart(event),
|
|
13716
13623
|
ref: dragRef,
|
|
13717
13624
|
onTouchMove: touchMove,
|
|
@@ -14042,8 +13949,7 @@
|
|
|
14042
13949
|
const { childs, childCount } = React.useMemo(() => {
|
|
14043
13950
|
let childCount2 = 0;
|
|
14044
13951
|
const childs2 = React.Children.map(children, (child) => {
|
|
14045
|
-
if (!React.isValidElement(child))
|
|
14046
|
-
return null;
|
|
13952
|
+
if (!React.isValidElement(child)) return null;
|
|
14047
13953
|
childCount2++;
|
|
14048
13954
|
return child;
|
|
14049
13955
|
});
|
|
@@ -14166,8 +14072,7 @@
|
|
|
14166
14072
|
marginTop: animate ? `-${height}px` : ""
|
|
14167
14073
|
};
|
|
14168
14074
|
const init = (active2 = 0) => {
|
|
14169
|
-
if (!(container == null ? void 0 : container.current))
|
|
14170
|
-
return;
|
|
14075
|
+
if (!(container == null ? void 0 : container.current)) return;
|
|
14171
14076
|
setTimeout(async () => {
|
|
14172
14077
|
const rects = await getRectByTaro(container == null ? void 0 : container.current);
|
|
14173
14078
|
const _active = Math.max(Math.min(childCount - 1, active2), 0);
|
|
@@ -14205,8 +14110,7 @@
|
|
|
14205
14110
|
swiperRef.current.autoplayTimer = null;
|
|
14206
14111
|
};
|
|
14207
14112
|
const autoplay = () => {
|
|
14208
|
-
if (childCount <= 1)
|
|
14209
|
-
return;
|
|
14113
|
+
if (childCount <= 1) return;
|
|
14210
14114
|
stopAutoPlay();
|
|
14211
14115
|
swiperRef.current.autoplayTimer = setTimeout(
|
|
14212
14116
|
() => {
|
|
@@ -14217,8 +14121,7 @@
|
|
|
14217
14121
|
);
|
|
14218
14122
|
};
|
|
14219
14123
|
const move = ({ pace = 0, offset: offset2 = 0 }) => {
|
|
14220
|
-
if (childCount <= 1)
|
|
14221
|
-
return;
|
|
14124
|
+
if (childCount <= 1) return;
|
|
14222
14125
|
const targetActive = getActive(pace);
|
|
14223
14126
|
const targetOffset = getOffset(targetActive, offset2);
|
|
14224
14127
|
if (Array.isArray(children) && children[0] && targetOffset !== minOffset) {
|
|
@@ -14453,7 +14356,7 @@
|
|
|
14453
14356
|
[`${classPrefix$d}-${type2}`]: true
|
|
14454
14357
|
});
|
|
14455
14358
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
14456
|
-
CSSTransition
|
|
14359
|
+
CSSTransition,
|
|
14457
14360
|
{
|
|
14458
14361
|
in: showNotify,
|
|
14459
14362
|
timeout: 300,
|
|
@@ -14769,10 +14672,10 @@
|
|
|
14769
14672
|
Popover.displayName = "NutPopover";
|
|
14770
14673
|
function bound(position, min, max) {
|
|
14771
14674
|
let ret = position;
|
|
14772
|
-
|
|
14675
|
+
{
|
|
14773
14676
|
ret = Math.max(position, min);
|
|
14774
14677
|
}
|
|
14775
|
-
|
|
14678
|
+
{
|
|
14776
14679
|
ret = Math.min(ret, max);
|
|
14777
14680
|
}
|
|
14778
14681
|
return ret;
|
|
@@ -14781,8 +14684,7 @@
|
|
|
14781
14684
|
return distance * dimension * constant / (dimension + constant * distance);
|
|
14782
14685
|
}
|
|
14783
14686
|
function rubberbandIfOutOfBounds(position, min, max, dimension, constant = 0.15) {
|
|
14784
|
-
if (constant === 0)
|
|
14785
|
-
return bound(position, min, max);
|
|
14687
|
+
if (constant === 0) return bound(position, min, max);
|
|
14786
14688
|
if (position < min)
|
|
14787
14689
|
return -rubberband(min - position, dimension, constant) + min;
|
|
14788
14690
|
if (position > max)
|
|
@@ -14844,14 +14746,10 @@
|
|
|
14844
14746
|
if (props.renderText) {
|
|
14845
14747
|
return (_a = props.renderText) == null ? void 0 : _a.call(props, status);
|
|
14846
14748
|
}
|
|
14847
|
-
if (status === "pulling")
|
|
14848
|
-
|
|
14849
|
-
if (status === "
|
|
14850
|
-
|
|
14851
|
-
if (status === "refreshing")
|
|
14852
|
-
return props.refreshingText;
|
|
14853
|
-
if (status === "complete")
|
|
14854
|
-
return props.completeText;
|
|
14749
|
+
if (status === "pulling") return props.pullingText;
|
|
14750
|
+
if (status === "canRelease") return props.canReleaseText;
|
|
14751
|
+
if (status === "refreshing") return props.refreshingText;
|
|
14752
|
+
if (status === "complete") return props.completeText;
|
|
14855
14753
|
return "";
|
|
14856
14754
|
};
|
|
14857
14755
|
const handleTouchStart = (e2) => {
|
|
@@ -14861,8 +14759,7 @@
|
|
|
14861
14759
|
if (props.scrollTop > 0) {
|
|
14862
14760
|
return;
|
|
14863
14761
|
}
|
|
14864
|
-
if (status === "refreshing" || status === "complete")
|
|
14865
|
-
return;
|
|
14762
|
+
if (status === "refreshing" || status === "complete") return;
|
|
14866
14763
|
touch.move(e2);
|
|
14867
14764
|
if (touch.isVertical()) {
|
|
14868
14765
|
pullingRef.current = true;
|
|
@@ -15143,7 +15040,7 @@
|
|
|
15143
15040
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
15144
15041
|
event.preventDefault();
|
|
15145
15042
|
}
|
|
15146
|
-
|
|
15043
|
+
{
|
|
15147
15044
|
event.stopPropagation();
|
|
15148
15045
|
}
|
|
15149
15046
|
}
|
|
@@ -15215,7 +15112,7 @@
|
|
|
15215
15112
|
const newState = { ...state, dragging: true };
|
|
15216
15113
|
const isEdge = !opened || touch.deltaX.current * startOffset.current < 0;
|
|
15217
15114
|
if (isEdge) {
|
|
15218
|
-
preventDefault(event
|
|
15115
|
+
preventDefault(event);
|
|
15219
15116
|
}
|
|
15220
15117
|
newState.offset = rangeCalculation(
|
|
15221
15118
|
touch.deltaX.current + startOffset.current,
|
|
@@ -16230,8 +16127,7 @@
|
|
|
16230
16127
|
// 设置了 startTime 时,与 date.now() 的差异
|
|
16231
16128
|
});
|
|
16232
16129
|
const getTimeStamp = (timeStr) => {
|
|
16233
|
-
if (!timeStr)
|
|
16234
|
-
return Date.now();
|
|
16130
|
+
if (!timeStr) return Date.now();
|
|
16235
16131
|
let t = timeStr;
|
|
16236
16132
|
t = Number(t) > 0 ? +t : t.toString().replace(/-/g, "/");
|
|
16237
16133
|
return new Date(t).getTime();
|
|
@@ -16243,8 +16139,7 @@
|
|
|
16243
16139
|
stateRef.current.handleEndTime = endTime;
|
|
16244
16140
|
stateRef.current.diffTime = Date.now() - getTimeStamp(startTime);
|
|
16245
16141
|
}
|
|
16246
|
-
if (!stateRef.current.counting)
|
|
16247
|
-
stateRef.current.counting = true;
|
|
16142
|
+
if (!stateRef.current.counting) stateRef.current.counting = true;
|
|
16248
16143
|
tick();
|
|
16249
16144
|
};
|
|
16250
16145
|
const tick = () => {
|
|
@@ -16513,8 +16408,7 @@
|
|
|
16513
16408
|
]
|
|
16514
16409
|
},
|
|
16515
16410
|
(res) => {
|
|
16516
|
-
if (!res)
|
|
16517
|
-
return;
|
|
16411
|
+
if (!res) return;
|
|
16518
16412
|
lineH.current = pxToNumber(
|
|
16519
16413
|
res.lineHeight === "normal" ? lineHeight : res.lineHeight
|
|
16520
16414
|
);
|
|
@@ -16638,8 +16532,7 @@
|
|
|
16638
16532
|
return content.slice(cutoff, end);
|
|
16639
16533
|
};
|
|
16640
16534
|
const pxToNumber = (value) => {
|
|
16641
|
-
if (!value)
|
|
16642
|
-
return 0;
|
|
16535
|
+
if (!value) return 0;
|
|
16643
16536
|
const match = value.match(/^\d*(\.\d*)?/);
|
|
16644
16537
|
return match ? Number(match[0]) : 0;
|
|
16645
16538
|
};
|
|
@@ -16812,8 +16705,7 @@
|
|
|
16812
16705
|
setCurrent(defaultValue);
|
|
16813
16706
|
}, [defaultValue]);
|
|
16814
16707
|
const renderIndicator = () => {
|
|
16815
|
-
if (React.isValidElement(indicator))
|
|
16816
|
-
return indicator;
|
|
16708
|
+
if (React.isValidElement(indicator)) return indicator;
|
|
16817
16709
|
if (indicator) {
|
|
16818
16710
|
return /* @__PURE__ */ React.createElement(
|
|
16819
16711
|
"div",
|
|
@@ -17253,8 +17145,7 @@
|
|
|
17253
17145
|
return items;
|
|
17254
17146
|
}, [currentPage, itemSize, pageCount]);
|
|
17255
17147
|
const handleSelectPage = (curPage) => {
|
|
17256
|
-
if (curPage > pageCount || curPage < 1)
|
|
17257
|
-
return;
|
|
17148
|
+
if (curPage > pageCount || curPage < 1) return;
|
|
17258
17149
|
setCurrentPage(curPage);
|
|
17259
17150
|
};
|
|
17260
17151
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), ...rest }, (mode === "multi" || mode === "simple") && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
@@ -17413,8 +17304,7 @@
|
|
|
17413
17304
|
const dot = parent.propSteps.dot;
|
|
17414
17305
|
const getCurrentStatus = () => {
|
|
17415
17306
|
const index = value;
|
|
17416
|
-
if (index < +parent.propSteps.value)
|
|
17417
|
-
return "finish";
|
|
17307
|
+
if (index < +parent.propSteps.value) return "finish";
|
|
17418
17308
|
return index === +parent.propSteps.value ? "process" : "wait";
|
|
17419
17309
|
};
|
|
17420
17310
|
const handleClickStep = () => {
|
|
@@ -18069,22 +17959,13 @@
|
|
|
18069
17959
|
Array.from(items).forEach((item) => {
|
|
18070
17960
|
const index = Number(item.getAttribute("data-index"));
|
|
18071
17961
|
const styleVal = item.getAttribute("style");
|
|
18072
|
-
if (styleVal && styleVal.includes("none"))
|
|
18073
|
-
return;
|
|
17962
|
+
if (styleVal && styleVal.includes("none")) return;
|
|
18074
17963
|
let nowSize = item.getBoundingClientRect()[sizeKey];
|
|
18075
|
-
if (margin)
|
|
18076
|
-
nowSize += margin;
|
|
17964
|
+
if (margin) nowSize += margin;
|
|
18077
17965
|
const oldSize = positions[index][sizeKey];
|
|
18078
17966
|
const dValue = oldSize - nowSize;
|
|
18079
17967
|
if (dValue) {
|
|
18080
|
-
|
|
18081
|
-
newPos[index].right -= dValue;
|
|
18082
|
-
newPos[index][sizeKey] = nowSize;
|
|
18083
|
-
for (let k2 = index + 1; k2 < positions.length; k2++) {
|
|
18084
|
-
newPos[k2].left = positions[k2 - 1].right;
|
|
18085
|
-
newPos[k2].right -= dValue;
|
|
18086
|
-
}
|
|
18087
|
-
} else if (sizeKey === "height") {
|
|
17968
|
+
{
|
|
18088
17969
|
newPos[index].bottom -= dValue;
|
|
18089
17970
|
newPos[index][sizeKey] = nowSize;
|
|
18090
17971
|
for (let k2 = index + 1; k2 < positions.length; k2++) {
|
|
@@ -18150,8 +18031,7 @@
|
|
|
18150
18031
|
});
|
|
18151
18032
|
}, [itemHeight, overscan, offSetSize]);
|
|
18152
18033
|
React.useEffect(() => {
|
|
18153
|
-
if (containerHeight)
|
|
18154
|
-
return;
|
|
18034
|
+
if (containerHeight) return;
|
|
18155
18035
|
setOffSetSize(getContainerHeight());
|
|
18156
18036
|
}, [containerHeight]);
|
|
18157
18037
|
React.useEffect(() => {
|
|
@@ -18175,11 +18055,9 @@
|
|
|
18175
18055
|
return list.slice(start.current, Math.min(end(), list.length));
|
|
18176
18056
|
};
|
|
18177
18057
|
const updateTotalSize = React.useCallback(() => {
|
|
18178
|
-
if (!itemsRef.current)
|
|
18179
|
-
return;
|
|
18058
|
+
if (!itemsRef.current) return;
|
|
18180
18059
|
const items = itemsRef.current.children;
|
|
18181
|
-
if (!items.length)
|
|
18182
|
-
return;
|
|
18060
|
+
if (!items.length) return;
|
|
18183
18061
|
updateItemSize(positions, items, "height", margin);
|
|
18184
18062
|
}, [positions]);
|
|
18185
18063
|
const listScroll = (e2) => {
|
|
@@ -18973,8 +18851,7 @@
|
|
|
18973
18851
|
const canvas2dDraw = React.useCallback(
|
|
18974
18852
|
(ctx) => {
|
|
18975
18853
|
const { src, width, height, x, y } = drawImage;
|
|
18976
|
-
if (!ctx || !src)
|
|
18977
|
-
return;
|
|
18854
|
+
if (!ctx || !src) return;
|
|
18978
18855
|
const {
|
|
18979
18856
|
moveX,
|
|
18980
18857
|
moveY,
|
|
@@ -19042,8 +18919,7 @@
|
|
|
19042
18919
|
} = state;
|
|
19043
18920
|
const { cropperCanvasContext } = canvasAll;
|
|
19044
18921
|
const ctx = cropperCanvasContext;
|
|
19045
|
-
if (!ctx)
|
|
19046
|
-
return;
|
|
18922
|
+
if (!ctx) return;
|
|
19047
18923
|
ctx.clearRect(0, 0, displayWidth, displayHeight);
|
|
19048
18924
|
ctx.fillStyle = "#666";
|
|
19049
18925
|
ctx.setFillStyle("#666");
|
|
@@ -19411,7 +19287,7 @@
|
|
|
19411
19287
|
exports2.NumberKeyboard = NumberKeyboard;
|
|
19412
19288
|
exports2.Overlay = Overlay;
|
|
19413
19289
|
exports2.Pagination = Pagination;
|
|
19414
|
-
exports2.Picker = Picker
|
|
19290
|
+
exports2.Picker = Picker;
|
|
19415
19291
|
exports2.Popover = Popover;
|
|
19416
19292
|
exports2.Popup = Popup;
|
|
19417
19293
|
exports2.Price = Price;
|