@nutui/nutui-react-taro 2.6.9 → 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 +11 -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.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 +2 -2
- 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-Cla34tFO.js → actionsheet.taro-CJjNsNrH.js} +2 -2
- package/dist/esm/{address.taro-D0tjP5C1.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-CDZqFYlk.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-c6WPcYsc.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-CcP4XLtj.js → datepicker.taro-DTyJrlhD.js} +3 -3
- package/dist/esm/{dialog.taro-jZ6_EUiF.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-CBNVFciU.js → drag.taro-CI7ZFwaM.js} +2 -2
- 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-CewDiT-u.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/{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-CBT7aS3-.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-DkKY62ym.js → menu.taro-JDg_-XpO.js} +2 -2
- package/dist/esm/{menuitem.taro-CKjl8_Cl.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-CFJtMOew.js → numberkeyboard.taro-BA0iCeGP.js} +3 -3
- package/dist/esm/nutui-react.es.js +83 -83
- package/dist/esm/{overlay.taro-BJ3twlP0.js → overlay.taro-C2t82CZz.js} +1 -1
- package/dist/esm/{pagination.taro-B8hmHNgf.js → pagination.taro-DdLO3OTc.js} +2 -2
- package/dist/esm/{picker.taro-D3G6mJ-I.js → picker.taro-CafNRRO5.js} +11 -14
- package/dist/esm/{popover.taro-Dve2UnRF.js → popover.taro-B_FJgU0z.js} +4 -4
- package/dist/esm/{popup.taro-cT6cbAxw.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-BptyG-eR.js → searchbar.taro-C8cg7NeJ.js} +1 -1
- package/dist/esm/{shortpassword.taro-BVp4BrTs.js → shortpassword.taro-DpdtRsQ-.js} +3 -3
- package/dist/esm/{sidenavbar.taro-DGnJgxEe.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-CqiMtDv9.js → sticky.taro-DZzgkigZ.js} +2 -2
- 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-C64SUiXS.js → timeselect.taro-DncKbp3l.js} +3 -3
- package/dist/esm/{toast.taro-CSqE0aIO.js → toast.taro-CYk6UERn.js} +1 -1
- package/dist/esm/{tour.taro-DegQCG1T.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 +149 -291
- package/dist/nutui.react.umd.js +149 -291
- 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/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) {
|
|
@@ -3473,8 +3435,7 @@
|
|
|
3473
3435
|
event.target,
|
|
3474
3436
|
rootRef.current
|
|
3475
3437
|
);
|
|
3476
|
-
if (!el)
|
|
3477
|
-
return;
|
|
3438
|
+
if (!el) return;
|
|
3478
3439
|
if (shouldLock === "strict") {
|
|
3479
3440
|
const scrollableParent = getScrollableElement(event.target);
|
|
3480
3441
|
if (scrollableParent === document.body || scrollableParent === document.documentElement) {
|
|
@@ -3587,7 +3548,7 @@
|
|
|
3587
3548
|
afterClose && afterClose();
|
|
3588
3549
|
};
|
|
3589
3550
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3590
|
-
CSSTransition
|
|
3551
|
+
CSSTransition,
|
|
3591
3552
|
{
|
|
3592
3553
|
nodeRef,
|
|
3593
3554
|
classNames: `${classPrefix2}-slide`,
|
|
@@ -4034,10 +3995,8 @@
|
|
|
4034
3995
|
};
|
|
4035
3996
|
}
|
|
4036
3997
|
const style2 = {};
|
|
4037
|
-
if (rootRect.height)
|
|
4038
|
-
|
|
4039
|
-
if (rootRect.width)
|
|
4040
|
-
style2.width = rootRect.width;
|
|
3998
|
+
if (rootRect.height) style2.height = rootRect.height;
|
|
3999
|
+
if (rootRect.width) style2.width = rootRect.width;
|
|
4041
4000
|
style2.transform = `translate3d(0, ${transform}px, 0)`;
|
|
4042
4001
|
style2[position] = threshold;
|
|
4043
4002
|
style2.zIndex = zIndex;
|
|
@@ -4241,8 +4200,7 @@
|
|
|
4241
4200
|
const query = Taro.createSelectorQuery();
|
|
4242
4201
|
query.selectAll(`.${className} .nut-elevator-item-${i}`).boundingClientRect();
|
|
4243
4202
|
query.exec((res) => {
|
|
4244
|
-
if (res[0][0])
|
|
4245
|
-
height2 += res[0][0].height;
|
|
4203
|
+
if (res[0][0]) height2 += res[0][0].height;
|
|
4246
4204
|
state.current.listHeight.push(height2);
|
|
4247
4205
|
});
|
|
4248
4206
|
}
|
|
@@ -4317,8 +4275,7 @@
|
|
|
4317
4275
|
if (sticky && scrollTop2 !== scrollY) {
|
|
4318
4276
|
setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
|
|
4319
4277
|
}
|
|
4320
|
-
if (scrolling.current)
|
|
4321
|
-
return;
|
|
4278
|
+
if (scrolling.current) return;
|
|
4322
4279
|
for (let i = 0; i < listHeight.length - 1; i++) {
|
|
4323
4280
|
const height1 = listHeight[i];
|
|
4324
4281
|
const height2 = listHeight[i + 1];
|
|
@@ -4748,7 +4705,7 @@
|
|
|
4748
4705
|
};
|
|
4749
4706
|
const renderPop = () => {
|
|
4750
4707
|
return /* @__PURE__ */ React.createElement(
|
|
4751
|
-
CSSTransition
|
|
4708
|
+
CSSTransition,
|
|
4752
4709
|
{
|
|
4753
4710
|
classNames: transitionName,
|
|
4754
4711
|
mountOnEnter: true,
|
|
@@ -4990,24 +4947,20 @@
|
|
|
4990
4947
|
[`${classPrefix2}-${fill}`]: fill === "outline"
|
|
4991
4948
|
});
|
|
4992
4949
|
function content() {
|
|
4993
|
-
if (dot || typeof value === "object" || value === 0)
|
|
4994
|
-
return null;
|
|
4950
|
+
if (dot || typeof value === "object" || value === 0) return null;
|
|
4995
4951
|
if (typeof value === "number" && typeof max === "number") {
|
|
4996
4952
|
return max < value ? `${max}+` : `${value}`;
|
|
4997
4953
|
}
|
|
4998
4954
|
return value;
|
|
4999
4955
|
}
|
|
5000
4956
|
function isIcon() {
|
|
5001
|
-
if (typeof value === "object" && value)
|
|
5002
|
-
return value;
|
|
4957
|
+
if (typeof value === "object" && value) return value;
|
|
5003
4958
|
}
|
|
5004
4959
|
function isNumber() {
|
|
5005
|
-
if (typeof value === "number" && value)
|
|
5006
|
-
return value;
|
|
4960
|
+
if (typeof value === "number" && value) return value;
|
|
5007
4961
|
}
|
|
5008
4962
|
function isString() {
|
|
5009
|
-
if (typeof value === "string" && value)
|
|
5010
|
-
return value;
|
|
4963
|
+
if (typeof value === "string" && value) return value;
|
|
5011
4964
|
}
|
|
5012
4965
|
const contentClasses = classNames(
|
|
5013
4966
|
{ [`${classPrefix2}-dot`]: dot },
|
|
@@ -5160,8 +5113,7 @@
|
|
|
5160
5113
|
}
|
|
5161
5114
|
},
|
|
5162
5115
|
React.Children.map(children, (child, index) => {
|
|
5163
|
-
if (!React.isValidElement(child))
|
|
5164
|
-
return null;
|
|
5116
|
+
if (!React.isValidElement(child)) return null;
|
|
5165
5117
|
return React.cloneElement(child, { ...child.props, index });
|
|
5166
5118
|
})
|
|
5167
5119
|
)),
|
|
@@ -5349,8 +5301,7 @@
|
|
|
5349
5301
|
navRectRef.current = navRect;
|
|
5350
5302
|
titleRectRef.current = titleRects;
|
|
5351
5303
|
const titleRect = titleRectRef.current[index];
|
|
5352
|
-
if (!titleRect)
|
|
5353
|
-
return;
|
|
5304
|
+
if (!titleRect) return;
|
|
5354
5305
|
let to = 0;
|
|
5355
5306
|
if (direction === "vertical") {
|
|
5356
5307
|
const top = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.height, 0);
|
|
@@ -6376,9 +6327,6 @@
|
|
|
6376
6327
|
};
|
|
6377
6328
|
const getDaysStatus = (type2, year, month) => {
|
|
6378
6329
|
let days = Utils.getMonthDays(`${year}`, `${month}`);
|
|
6379
|
-
if (type2 === "prev" && days >= 7) {
|
|
6380
|
-
days -= 7;
|
|
6381
|
-
}
|
|
6382
6330
|
return Array.from(Array(days), (v, k2) => {
|
|
6383
6331
|
return {
|
|
6384
6332
|
day: k2 + 1,
|
|
@@ -6397,7 +6345,7 @@
|
|
|
6397
6345
|
}
|
|
6398
6346
|
let days = Utils.getMonthPreDay(+year, +month);
|
|
6399
6347
|
days -= firstDayOfWeek;
|
|
6400
|
-
if (
|
|
6348
|
+
if (days >= 7) {
|
|
6401
6349
|
days -= 7;
|
|
6402
6350
|
}
|
|
6403
6351
|
const preDates = Utils.getMonthDays(`${preYear}`, `${preMonth}`);
|
|
@@ -6574,7 +6522,7 @@
|
|
|
6574
6522
|
cssHeight,
|
|
6575
6523
|
scrollTop: scrollTop2
|
|
6576
6524
|
};
|
|
6577
|
-
|
|
6525
|
+
{
|
|
6578
6526
|
if (!endDates || !Utils.compareDate(
|
|
6579
6527
|
`${endDates[0]}/${endDates[1]}/${Utils.getMonthDays(
|
|
6580
6528
|
endDates[0],
|
|
@@ -6584,11 +6532,6 @@
|
|
|
6584
6532
|
)) {
|
|
6585
6533
|
monthData.push(monthInfo);
|
|
6586
6534
|
}
|
|
6587
|
-
} else if (!startDates || !Utils.compareDate(
|
|
6588
|
-
`${curData[0]}/${curData[1]}/${curData[2]}`,
|
|
6589
|
-
`${startDates[0]}/${startDates[1]}/01`
|
|
6590
|
-
)) {
|
|
6591
|
-
monthData.unshift(monthInfo);
|
|
6592
6535
|
}
|
|
6593
6536
|
date2 = getCurrMonthData("next", y, m2);
|
|
6594
6537
|
} while (i++ < monthNum);
|
|
@@ -6597,8 +6540,7 @@
|
|
|
6597
6540
|
const setReachedYearMonthInfo = (current) => {
|
|
6598
6541
|
const currentMonthsData = monthsData[current];
|
|
6599
6542
|
const [year, month] = currentMonthsData.curData;
|
|
6600
|
-
if (currentMonthsData.title === yearMonthTitle)
|
|
6601
|
-
return;
|
|
6543
|
+
if (currentMonthsData.title === yearMonthTitle) return;
|
|
6602
6544
|
onPageChange && onPageChange([year, month, `${year}-${month}`]);
|
|
6603
6545
|
setYearMonthTitle(currentMonthsData.title);
|
|
6604
6546
|
};
|
|
@@ -6789,7 +6731,7 @@
|
|
|
6789
6731
|
};
|
|
6790
6732
|
const initData = () => {
|
|
6791
6733
|
const monthNum = getMonthNum();
|
|
6792
|
-
getMonthData(startDates, monthNum
|
|
6734
|
+
getMonthData(startDates, monthNum);
|
|
6793
6735
|
const current = renderCurrentDate();
|
|
6794
6736
|
setDefaultRange(monthNum, current);
|
|
6795
6737
|
requestAniFrameFunc(current, monthNum);
|
|
@@ -6849,8 +6791,7 @@
|
|
|
6849
6791
|
const scrollTop2 = e2.target.scrollTop;
|
|
6850
6792
|
Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
|
|
6851
6793
|
let current = Math.floor(scrollTop2 / avgHeight);
|
|
6852
|
-
if (!monthsData[current + 1])
|
|
6853
|
-
return;
|
|
6794
|
+
if (!monthsData[current + 1]) return;
|
|
6854
6795
|
const nextTop = monthsData[current + 1].scrollTop;
|
|
6855
6796
|
const nextHeight = monthsData[current + 1].cssHeight;
|
|
6856
6797
|
if (current === 0) {
|
|
@@ -7596,7 +7537,6 @@
|
|
|
7596
7537
|
});
|
|
7597
7538
|
CalendarCard.displayName = "NutCalendarCard";
|
|
7598
7539
|
const CheckboxGroupContext = React.createContext(null);
|
|
7599
|
-
const Context$1 = CheckboxGroupContext;
|
|
7600
7540
|
const defaultProps$10 = {
|
|
7601
7541
|
max: void 0,
|
|
7602
7542
|
min: void 0,
|
|
@@ -7674,7 +7614,7 @@
|
|
|
7674
7614
|
});
|
|
7675
7615
|
}, [options, max, min]);
|
|
7676
7616
|
return /* @__PURE__ */ React.createElement(
|
|
7677
|
-
|
|
7617
|
+
CheckboxGroupContext.Provider,
|
|
7678
7618
|
{
|
|
7679
7619
|
value: {
|
|
7680
7620
|
labelPosition: labelPosition || "right",
|
|
@@ -7754,7 +7694,7 @@
|
|
|
7754
7694
|
...others
|
|
7755
7695
|
} = props;
|
|
7756
7696
|
let { labelPosition, ...rest } = others;
|
|
7757
|
-
const ctx = React.useContext(
|
|
7697
|
+
const ctx = React.useContext(CheckboxGroupContext);
|
|
7758
7698
|
let [innerChecked, setChecked] = usePropsValue({
|
|
7759
7699
|
value: checked,
|
|
7760
7700
|
defaultValue: defaultChecked,
|
|
@@ -7776,12 +7716,9 @@
|
|
|
7776
7716
|
innerDisabled = ctx.disabled !== void 0 ? ctx.disabled : innerDisabled;
|
|
7777
7717
|
innerChecked = ctx.value.includes(value);
|
|
7778
7718
|
setChecked = (checked2) => {
|
|
7779
|
-
if (ctx.disabled)
|
|
7780
|
-
|
|
7781
|
-
if (checked2)
|
|
7782
|
-
ctx.check(value);
|
|
7783
|
-
if (!checked2)
|
|
7784
|
-
ctx.uncheck(value);
|
|
7719
|
+
if (ctx.disabled) return;
|
|
7720
|
+
if (checked2) ctx.check(value);
|
|
7721
|
+
if (!checked2) ctx.uncheck(value);
|
|
7785
7722
|
};
|
|
7786
7723
|
}
|
|
7787
7724
|
const renderIcon = () => {
|
|
@@ -7833,8 +7770,7 @@
|
|
|
7833
7770
|
);
|
|
7834
7771
|
};
|
|
7835
7772
|
const handleClick = () => {
|
|
7836
|
-
if (disabled)
|
|
7837
|
-
return;
|
|
7773
|
+
if (disabled) return;
|
|
7838
7774
|
const latestChecked = !innerChecked;
|
|
7839
7775
|
setChecked(latestChecked);
|
|
7840
7776
|
};
|
|
@@ -7962,14 +7898,13 @@
|
|
|
7962
7898
|
touch.move(event);
|
|
7963
7899
|
if (touch.isVertical) {
|
|
7964
7900
|
moving.current = true;
|
|
7965
|
-
preventDefault2(event
|
|
7901
|
+
preventDefault2(event);
|
|
7966
7902
|
}
|
|
7967
7903
|
const move = touch.deltaY.current - startY;
|
|
7968
7904
|
setMove(move);
|
|
7969
7905
|
};
|
|
7970
7906
|
const touchEnd = () => {
|
|
7971
|
-
if (!moving.current)
|
|
7972
|
-
return;
|
|
7907
|
+
if (!moving.current) return;
|
|
7973
7908
|
const move = touch.deltaY.current - startY;
|
|
7974
7909
|
const moveTime = Date.now() - startTime;
|
|
7975
7910
|
if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
|
|
@@ -7989,7 +7924,7 @@
|
|
|
7989
7924
|
return nDistance;
|
|
7990
7925
|
};
|
|
7991
7926
|
const modifyStatus = (type2, val) => {
|
|
7992
|
-
const value =
|
|
7927
|
+
const value = defaultValue;
|
|
7993
7928
|
let index = -1;
|
|
7994
7929
|
if (value) {
|
|
7995
7930
|
options.some((item, idx) => {
|
|
@@ -8008,7 +7943,6 @@
|
|
|
8008
7943
|
}
|
|
8009
7944
|
setCurrIndex(index === -1 ? 1 : index + 1);
|
|
8010
7945
|
const move = index === -1 ? 0 : index * lineSpacing.current;
|
|
8011
|
-
type2 && setChooseValue(-move);
|
|
8012
7946
|
setMove(-move);
|
|
8013
7947
|
};
|
|
8014
7948
|
const stopMomentum = () => {
|
|
@@ -8018,7 +7952,7 @@
|
|
|
8018
7952
|
};
|
|
8019
7953
|
const preventDefault2 = (event, isStopPropagation) => {
|
|
8020
7954
|
event.preventDefault();
|
|
8021
|
-
|
|
7955
|
+
{
|
|
8022
7956
|
event.stopPropagation();
|
|
8023
7957
|
}
|
|
8024
7958
|
};
|
|
@@ -8041,7 +7975,7 @@
|
|
|
8041
7975
|
React.useEffect(() => {
|
|
8042
7976
|
setScrollDistance(0);
|
|
8043
7977
|
transformY.current = 0;
|
|
8044
|
-
modifyStatus(
|
|
7978
|
+
modifyStatus();
|
|
8045
7979
|
return () => {
|
|
8046
7980
|
clearTimeout(timer);
|
|
8047
7981
|
};
|
|
@@ -8109,13 +8043,11 @@
|
|
|
8109
8043
|
), /* @__PURE__ */ React.createElement("div", { className: "nut-picker-mask" }), /* @__PURE__ */ React.createElement("div", { className: "nut-picker-indicator", ref: listRef }));
|
|
8110
8044
|
};
|
|
8111
8045
|
const PickerPanel = React.forwardRef(InternalPickerPanel);
|
|
8112
|
-
const PickerPanel$1 = PickerPanel;
|
|
8113
8046
|
function useRefs() {
|
|
8114
8047
|
const refs = React.useRef([]);
|
|
8115
8048
|
const setRefs = React.useCallback(
|
|
8116
8049
|
(index) => (el) => {
|
|
8117
|
-
if (el)
|
|
8118
|
-
refs.current[index] = el;
|
|
8050
|
+
if (el) refs.current[index] = el;
|
|
8119
8051
|
},
|
|
8120
8052
|
[]
|
|
8121
8053
|
);
|
|
@@ -8204,8 +8136,7 @@
|
|
|
8204
8136
|
const options2 = columnOptions.children;
|
|
8205
8137
|
const value = values[columnIndex2];
|
|
8206
8138
|
let index = options2.findIndex((columnItem) => columnItem.value === value);
|
|
8207
|
-
if (index === -1)
|
|
8208
|
-
index = 0;
|
|
8139
|
+
if (index === -1) index = 0;
|
|
8209
8140
|
columnOptions = columnOptions.children[index];
|
|
8210
8141
|
columnIndex2++;
|
|
8211
8142
|
formatted.push(options2);
|
|
@@ -8338,8 +8269,7 @@
|
|
|
8338
8269
|
const confirm = () => {
|
|
8339
8270
|
let moving = false;
|
|
8340
8271
|
refs.forEach((ref2) => {
|
|
8341
|
-
if (ref2.moving)
|
|
8342
|
-
moving = true;
|
|
8272
|
+
if (ref2.moving) moving = true;
|
|
8343
8273
|
ref2.stopMomentum();
|
|
8344
8274
|
});
|
|
8345
8275
|
if (moving) {
|
|
@@ -8417,7 +8347,7 @@
|
|
|
8417
8347
|
},
|
|
8418
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) => {
|
|
8419
8349
|
return /* @__PURE__ */ React.createElement(
|
|
8420
|
-
PickerPanel
|
|
8350
|
+
PickerPanel,
|
|
8421
8351
|
{
|
|
8422
8352
|
ref: setRefs(index),
|
|
8423
8353
|
defaultValue: innerValue == null ? void 0 : innerValue[index],
|
|
@@ -8458,7 +8388,6 @@
|
|
|
8458
8388
|
));
|
|
8459
8389
|
};
|
|
8460
8390
|
const Picker = React.forwardRef(InternalPicker);
|
|
8461
|
-
const Picker$1 = Picker;
|
|
8462
8391
|
const isDate = (val) => {
|
|
8463
8392
|
return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
|
|
8464
8393
|
};
|
|
@@ -8572,8 +8501,7 @@
|
|
|
8572
8501
|
};
|
|
8573
8502
|
const ranges = () => {
|
|
8574
8503
|
const selected = new Date(selectedDate);
|
|
8575
|
-
if (!selected)
|
|
8576
|
-
return [];
|
|
8504
|
+
if (!selected) return [];
|
|
8577
8505
|
const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", selected);
|
|
8578
8506
|
const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", selected);
|
|
8579
8507
|
const result = [
|
|
@@ -8732,8 +8660,7 @@
|
|
|
8732
8660
|
};
|
|
8733
8661
|
const getDateIndex = (type22) => {
|
|
8734
8662
|
const date2 = new Date(selectedDate);
|
|
8735
|
-
if (!selectedDate)
|
|
8736
|
-
return 0;
|
|
8663
|
+
if (!selectedDate) return 0;
|
|
8737
8664
|
if (type22 === "year") {
|
|
8738
8665
|
return date2.getFullYear();
|
|
8739
8666
|
}
|
|
@@ -8778,7 +8705,7 @@
|
|
|
8778
8705
|
...rest
|
|
8779
8706
|
},
|
|
8780
8707
|
pickerOptions.length && /* @__PURE__ */ React.createElement(
|
|
8781
|
-
Picker
|
|
8708
|
+
Picker,
|
|
8782
8709
|
{
|
|
8783
8710
|
...pickerProps,
|
|
8784
8711
|
title,
|
|
@@ -8830,12 +8757,9 @@
|
|
|
8830
8757
|
return _setPrototypeOf(o, p);
|
|
8831
8758
|
}
|
|
8832
8759
|
function _isNativeReflectConstruct() {
|
|
8833
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
8834
|
-
|
|
8835
|
-
if (
|
|
8836
|
-
return false;
|
|
8837
|
-
if (typeof Proxy === "function")
|
|
8838
|
-
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;
|
|
8839
8763
|
try {
|
|
8840
8764
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
8841
8765
|
}));
|
|
@@ -8853,8 +8777,7 @@
|
|
|
8853
8777
|
a2.push.apply(a2, args2);
|
|
8854
8778
|
var Constructor = Function.bind.apply(Parent2, a2);
|
|
8855
8779
|
var instance = new Constructor();
|
|
8856
|
-
if (Class2)
|
|
8857
|
-
_setPrototypeOf(instance, Class2.prototype);
|
|
8780
|
+
if (Class2) _setPrototypeOf(instance, Class2.prototype);
|
|
8858
8781
|
return instance;
|
|
8859
8782
|
};
|
|
8860
8783
|
}
|
|
@@ -8866,14 +8789,12 @@
|
|
|
8866
8789
|
function _wrapNativeSuper(Class) {
|
|
8867
8790
|
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
8868
8791
|
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
8869
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
8870
|
-
return Class2;
|
|
8792
|
+
if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
|
|
8871
8793
|
if (typeof Class2 !== "function") {
|
|
8872
8794
|
throw new TypeError("Super expression must either be null or a function");
|
|
8873
8795
|
}
|
|
8874
8796
|
if (typeof _cache !== "undefined") {
|
|
8875
|
-
if (_cache.has(Class2))
|
|
8876
|
-
return _cache.get(Class2);
|
|
8797
|
+
if (_cache.has(Class2)) return _cache.get(Class2);
|
|
8877
8798
|
_cache.set(Class2, Wrapper);
|
|
8878
8799
|
}
|
|
8879
8800
|
function Wrapper() {
|
|
@@ -8906,8 +8827,7 @@
|
|
|
8906
8827
|
};
|
|
8907
8828
|
}
|
|
8908
8829
|
function convertFieldsError(errors) {
|
|
8909
|
-
if (!errors || !errors.length)
|
|
8910
|
-
return null;
|
|
8830
|
+
if (!errors || !errors.length) return null;
|
|
8911
8831
|
var fields = {};
|
|
8912
8832
|
errors.forEach(function(error) {
|
|
8913
8833
|
var field = error.field;
|
|
@@ -10585,10 +10505,8 @@
|
|
|
10585
10505
|
return res;
|
|
10586
10506
|
};
|
|
10587
10507
|
const format2 = (value2) => {
|
|
10588
|
-
if (value2 === null)
|
|
10589
|
-
|
|
10590
|
-
if (typeof value2 === "string")
|
|
10591
|
-
value2 = parseFloat(value2);
|
|
10508
|
+
if (value2 === null) return "";
|
|
10509
|
+
if (typeof value2 === "string") value2 = parseFloat(value2);
|
|
10592
10510
|
const fixedValue = bound2(value2, Number(min), Number(max));
|
|
10593
10511
|
if (formatter) {
|
|
10594
10512
|
return formatter(fixedValue);
|
|
@@ -10632,22 +10550,18 @@
|
|
|
10632
10550
|
}
|
|
10633
10551
|
};
|
|
10634
10552
|
const handleReduce = (e2) => {
|
|
10635
|
-
if (disabled)
|
|
10636
|
-
return;
|
|
10553
|
+
if (disabled) return;
|
|
10637
10554
|
onMinus == null ? void 0 : onMinus(e2);
|
|
10638
10555
|
update(true, e2);
|
|
10639
10556
|
};
|
|
10640
10557
|
const handlePlus = (e2) => {
|
|
10641
|
-
if (disabled)
|
|
10642
|
-
return;
|
|
10558
|
+
if (disabled) return;
|
|
10643
10559
|
onPlus == null ? void 0 : onPlus(e2);
|
|
10644
10560
|
update(false, e2);
|
|
10645
10561
|
};
|
|
10646
10562
|
const parseValue = (text) => {
|
|
10647
|
-
if (text === "")
|
|
10648
|
-
|
|
10649
|
-
if (text === "-")
|
|
10650
|
-
return null;
|
|
10563
|
+
if (text === "") return null;
|
|
10564
|
+
if (text === "-") return null;
|
|
10651
10565
|
return text;
|
|
10652
10566
|
};
|
|
10653
10567
|
const handleInputChange = (e2) => {
|
|
@@ -10764,8 +10678,7 @@
|
|
|
10764
10678
|
}, [showPopup]);
|
|
10765
10679
|
const windowHeight = React.useMemo(() => Taro.getSystemInfoSync().windowHeight, []);
|
|
10766
10680
|
const updateItemOffset = React.useCallback(() => {
|
|
10767
|
-
if (!parent.lockScroll)
|
|
10768
|
-
return;
|
|
10681
|
+
if (!parent.lockScroll) return;
|
|
10769
10682
|
const p = parent.menuRef.current;
|
|
10770
10683
|
getRectByTaro(p).then((rect) => {
|
|
10771
10684
|
if (rect) {
|
|
@@ -10814,8 +10727,7 @@
|
|
|
10814
10727
|
}, 100);
|
|
10815
10728
|
};
|
|
10816
10729
|
const isShow = () => {
|
|
10817
|
-
if (showPopup)
|
|
10818
|
-
return {};
|
|
10730
|
+
if (showPopup) return {};
|
|
10819
10731
|
return { display: "none" };
|
|
10820
10732
|
};
|
|
10821
10733
|
const getPosition = () => {
|
|
@@ -10879,7 +10791,7 @@
|
|
|
10879
10791
|
}
|
|
10880
10792
|
},
|
|
10881
10793
|
/* @__PURE__ */ React.createElement(
|
|
10882
|
-
CSSTransition
|
|
10794
|
+
CSSTransition,
|
|
10883
10795
|
{
|
|
10884
10796
|
in: showPopup,
|
|
10885
10797
|
timeout: 100,
|
|
@@ -11021,10 +10933,8 @@
|
|
|
11021
10933
|
(option) => option.value === (value !== void 0 ? value : defaultValue)
|
|
11022
10934
|
);
|
|
11023
10935
|
const finallyTitle = () => {
|
|
11024
|
-
if (title)
|
|
11025
|
-
|
|
11026
|
-
if (menuItemTitle && menuItemTitle[index])
|
|
11027
|
-
return menuItemTitle[index];
|
|
10936
|
+
if (title) return title;
|
|
10937
|
+
if (menuItemTitle && menuItemTitle[index]) return menuItemTitle[index];
|
|
11028
10938
|
if (selected && selected.length && selected[0].text)
|
|
11029
10939
|
return selected[0].text;
|
|
11030
10940
|
return "";
|
|
@@ -11043,8 +10953,7 @@
|
|
|
11043
10953
|
style: { color: showMenuItem[index] ? activeColor : "" },
|
|
11044
10954
|
key: index,
|
|
11045
10955
|
onClick: () => {
|
|
11046
|
-
if ((!options || !options.length) && !child.props.children)
|
|
11047
|
-
return;
|
|
10956
|
+
if ((!options || !options.length) && !child.props.children) return;
|
|
11048
10957
|
!disabled && toggleMenuItem(index);
|
|
11049
10958
|
}
|
|
11050
10959
|
},
|
|
@@ -11112,8 +11021,7 @@
|
|
|
11112
11021
|
{ id: "0", type: "num" },
|
|
11113
11022
|
{ id: "delete", type: "delete" }
|
|
11114
11023
|
];
|
|
11115
|
-
if (!custom)
|
|
11116
|
-
return customKeys;
|
|
11024
|
+
if (!custom) return customKeys;
|
|
11117
11025
|
if (custom.length > 0) {
|
|
11118
11026
|
customKeys[0] = { id: custom[0], type: "custom" };
|
|
11119
11027
|
}
|
|
@@ -11405,8 +11313,7 @@
|
|
|
11405
11313
|
return renderByShape(context && context.shape ? context.shape : shape);
|
|
11406
11314
|
};
|
|
11407
11315
|
const handleClick = (e2) => {
|
|
11408
|
-
if (disabled || checkedStatement)
|
|
11409
|
-
return;
|
|
11316
|
+
if (disabled || checkedStatement) return;
|
|
11410
11317
|
setCheckedStatement(!checkedStatement);
|
|
11411
11318
|
};
|
|
11412
11319
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -11650,8 +11557,7 @@
|
|
|
11650
11557
|
touch.move(event);
|
|
11651
11558
|
setDragStatus("draging");
|
|
11652
11559
|
const rect = await getRectByTaro(root2.current);
|
|
11653
|
-
if (!rect)
|
|
11654
|
-
return;
|
|
11560
|
+
if (!rect) return;
|
|
11655
11561
|
let delta = touch.deltaX.current;
|
|
11656
11562
|
let total = rect.width;
|
|
11657
11563
|
let diff = delta / total * scope();
|
|
@@ -11797,8 +11703,7 @@
|
|
|
11797
11703
|
const onClick = (e2, index) => {
|
|
11798
11704
|
e2.preventDefault();
|
|
11799
11705
|
e2.stopPropagation();
|
|
11800
|
-
if (disabled || readOnly)
|
|
11801
|
-
return;
|
|
11706
|
+
if (disabled || readOnly) return;
|
|
11802
11707
|
let value2 = 0;
|
|
11803
11708
|
if (!(index === 1 && score === index)) {
|
|
11804
11709
|
value2 = index;
|
|
@@ -11978,8 +11883,7 @@
|
|
|
11978
11883
|
searchSelf && searchSelf.focus();
|
|
11979
11884
|
};
|
|
11980
11885
|
const change = (event) => {
|
|
11981
|
-
if (value === event.target.value)
|
|
11982
|
-
return;
|
|
11886
|
+
if (value === event.target.value) return;
|
|
11983
11887
|
onChange && (onChange == null ? void 0 : onChange(event.target.value, event));
|
|
11984
11888
|
setValue(event.target.value);
|
|
11985
11889
|
event.target.value === "" && forceFocus();
|
|
@@ -12024,23 +11928,19 @@
|
|
|
12024
11928
|
onInputClick && onInputClick(e2);
|
|
12025
11929
|
};
|
|
12026
11930
|
const renderLeftIn = () => {
|
|
12027
|
-
if (!leftIn)
|
|
12028
|
-
return null;
|
|
11931
|
+
if (!leftIn) return null;
|
|
12029
11932
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
|
|
12030
11933
|
};
|
|
12031
11934
|
const renderLeft = () => {
|
|
12032
|
-
if (!backable && !left2)
|
|
12033
|
-
return null;
|
|
11935
|
+
if (!backable && !left2) return null;
|
|
12034
11936
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React.createElement(g$5, { size: "16" }) : left2);
|
|
12035
11937
|
};
|
|
12036
11938
|
const renderRightIn = () => {
|
|
12037
|
-
if (!rightIn)
|
|
12038
|
-
return null;
|
|
11939
|
+
if (!rightIn) return null;
|
|
12039
11940
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
|
|
12040
11941
|
};
|
|
12041
11942
|
const renderRight = () => {
|
|
12042
|
-
if (!right2)
|
|
12043
|
-
return null;
|
|
11943
|
+
if (!right2) return null;
|
|
12044
11944
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right` }, right2);
|
|
12045
11945
|
};
|
|
12046
11946
|
const handleClear = () => {
|
|
@@ -12394,8 +12294,7 @@
|
|
|
12394
12294
|
return `${classPrefix2} ${value ? "nut-switch-open" : "nut-switch-close"} ${disabled ? `${classPrefix2}-disabled` : ""} ${`${classPrefix2}-base`} ${className}`;
|
|
12395
12295
|
};
|
|
12396
12296
|
const onClick = (event) => {
|
|
12397
|
-
if (disabled)
|
|
12398
|
-
return;
|
|
12297
|
+
if (disabled) return;
|
|
12399
12298
|
onChange && onChange(!value, event);
|
|
12400
12299
|
setValue(!value);
|
|
12401
12300
|
};
|
|
@@ -12465,17 +12364,13 @@
|
|
|
12465
12364
|
}
|
|
12466
12365
|
};
|
|
12467
12366
|
const handleFocus = (event) => {
|
|
12468
|
-
if (disabled)
|
|
12469
|
-
|
|
12470
|
-
if (readOnly)
|
|
12471
|
-
return;
|
|
12367
|
+
if (disabled) return;
|
|
12368
|
+
if (readOnly) return;
|
|
12472
12369
|
onFocus && onFocus(event);
|
|
12473
12370
|
};
|
|
12474
12371
|
const handleBlur = (event) => {
|
|
12475
|
-
if (disabled)
|
|
12476
|
-
|
|
12477
|
-
if (readOnly)
|
|
12478
|
-
return;
|
|
12372
|
+
if (disabled) return;
|
|
12373
|
+
if (readOnly) return;
|
|
12479
12374
|
onBlur && onBlur(event);
|
|
12480
12375
|
};
|
|
12481
12376
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -13503,14 +13398,11 @@
|
|
|
13503
13398
|
);
|
|
13504
13399
|
const refObject = useLockScrollTaro(!!(visible && lockScroll));
|
|
13505
13400
|
const renderFooter = () => {
|
|
13506
|
-
if (footer === null)
|
|
13507
|
-
return "";
|
|
13401
|
+
if (footer === null) return "";
|
|
13508
13402
|
const handleCancel = (e2) => {
|
|
13509
13403
|
e2.stopPropagation();
|
|
13510
|
-
if (!(beforeCancel == null ? void 0 : beforeCancel()))
|
|
13511
|
-
|
|
13512
|
-
if (!(beforeClose == null ? void 0 : beforeClose()))
|
|
13513
|
-
return;
|
|
13404
|
+
if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
|
|
13405
|
+
if (!(beforeClose == null ? void 0 : beforeClose())) return;
|
|
13514
13406
|
onClose == null ? void 0 : onClose();
|
|
13515
13407
|
onCancel == null ? void 0 : onCancel();
|
|
13516
13408
|
};
|
|
@@ -13548,13 +13440,10 @@
|
|
|
13548
13440
|
));
|
|
13549
13441
|
};
|
|
13550
13442
|
const renderCloseIcon = () => {
|
|
13551
|
-
if (!closeIcon)
|
|
13552
|
-
return null;
|
|
13443
|
+
if (!closeIcon) return null;
|
|
13553
13444
|
const handleCancel = () => {
|
|
13554
|
-
if (!(beforeCancel == null ? void 0 : beforeCancel()))
|
|
13555
|
-
|
|
13556
|
-
if (!(beforeClose == null ? void 0 : beforeClose()))
|
|
13557
|
-
return;
|
|
13445
|
+
if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
|
|
13446
|
+
if (!(beforeClose == null ? void 0 : beforeClose())) return;
|
|
13558
13447
|
onClose == null ? void 0 : onClose();
|
|
13559
13448
|
onCancel == null ? void 0 : onCancel();
|
|
13560
13449
|
};
|
|
@@ -13588,7 +13477,7 @@
|
|
|
13588
13477
|
className: classNames("nut-dialog-overlay")
|
|
13589
13478
|
}
|
|
13590
13479
|
) : null, /* @__PURE__ */ React.createElement(
|
|
13591
|
-
CSSTransition
|
|
13480
|
+
CSSTransition,
|
|
13592
13481
|
{
|
|
13593
13482
|
in: visible,
|
|
13594
13483
|
timeout: 300,
|
|
@@ -14060,8 +13949,7 @@
|
|
|
14060
13949
|
const { childs, childCount } = React.useMemo(() => {
|
|
14061
13950
|
let childCount2 = 0;
|
|
14062
13951
|
const childs2 = React.Children.map(children, (child) => {
|
|
14063
|
-
if (!React.isValidElement(child))
|
|
14064
|
-
return null;
|
|
13952
|
+
if (!React.isValidElement(child)) return null;
|
|
14065
13953
|
childCount2++;
|
|
14066
13954
|
return child;
|
|
14067
13955
|
});
|
|
@@ -14184,8 +14072,7 @@
|
|
|
14184
14072
|
marginTop: animate ? `-${height}px` : ""
|
|
14185
14073
|
};
|
|
14186
14074
|
const init = (active2 = 0) => {
|
|
14187
|
-
if (!(container == null ? void 0 : container.current))
|
|
14188
|
-
return;
|
|
14075
|
+
if (!(container == null ? void 0 : container.current)) return;
|
|
14189
14076
|
setTimeout(async () => {
|
|
14190
14077
|
const rects = await getRectByTaro(container == null ? void 0 : container.current);
|
|
14191
14078
|
const _active = Math.max(Math.min(childCount - 1, active2), 0);
|
|
@@ -14223,8 +14110,7 @@
|
|
|
14223
14110
|
swiperRef.current.autoplayTimer = null;
|
|
14224
14111
|
};
|
|
14225
14112
|
const autoplay = () => {
|
|
14226
|
-
if (childCount <= 1)
|
|
14227
|
-
return;
|
|
14113
|
+
if (childCount <= 1) return;
|
|
14228
14114
|
stopAutoPlay();
|
|
14229
14115
|
swiperRef.current.autoplayTimer = setTimeout(
|
|
14230
14116
|
() => {
|
|
@@ -14235,8 +14121,7 @@
|
|
|
14235
14121
|
);
|
|
14236
14122
|
};
|
|
14237
14123
|
const move = ({ pace = 0, offset: offset2 = 0 }) => {
|
|
14238
|
-
if (childCount <= 1)
|
|
14239
|
-
return;
|
|
14124
|
+
if (childCount <= 1) return;
|
|
14240
14125
|
const targetActive = getActive(pace);
|
|
14241
14126
|
const targetOffset = getOffset(targetActive, offset2);
|
|
14242
14127
|
if (Array.isArray(children) && children[0] && targetOffset !== minOffset) {
|
|
@@ -14471,7 +14356,7 @@
|
|
|
14471
14356
|
[`${classPrefix$d}-${type2}`]: true
|
|
14472
14357
|
});
|
|
14473
14358
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
14474
|
-
CSSTransition
|
|
14359
|
+
CSSTransition,
|
|
14475
14360
|
{
|
|
14476
14361
|
in: showNotify,
|
|
14477
14362
|
timeout: 300,
|
|
@@ -14787,10 +14672,10 @@
|
|
|
14787
14672
|
Popover.displayName = "NutPopover";
|
|
14788
14673
|
function bound(position, min, max) {
|
|
14789
14674
|
let ret = position;
|
|
14790
|
-
|
|
14675
|
+
{
|
|
14791
14676
|
ret = Math.max(position, min);
|
|
14792
14677
|
}
|
|
14793
|
-
|
|
14678
|
+
{
|
|
14794
14679
|
ret = Math.min(ret, max);
|
|
14795
14680
|
}
|
|
14796
14681
|
return ret;
|
|
@@ -14799,8 +14684,7 @@
|
|
|
14799
14684
|
return distance * dimension * constant / (dimension + constant * distance);
|
|
14800
14685
|
}
|
|
14801
14686
|
function rubberbandIfOutOfBounds(position, min, max, dimension, constant = 0.15) {
|
|
14802
|
-
if (constant === 0)
|
|
14803
|
-
return bound(position, min, max);
|
|
14687
|
+
if (constant === 0) return bound(position, min, max);
|
|
14804
14688
|
if (position < min)
|
|
14805
14689
|
return -rubberband(min - position, dimension, constant) + min;
|
|
14806
14690
|
if (position > max)
|
|
@@ -14862,14 +14746,10 @@
|
|
|
14862
14746
|
if (props.renderText) {
|
|
14863
14747
|
return (_a = props.renderText) == null ? void 0 : _a.call(props, status);
|
|
14864
14748
|
}
|
|
14865
|
-
if (status === "pulling")
|
|
14866
|
-
|
|
14867
|
-
if (status === "
|
|
14868
|
-
|
|
14869
|
-
if (status === "refreshing")
|
|
14870
|
-
return props.refreshingText;
|
|
14871
|
-
if (status === "complete")
|
|
14872
|
-
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;
|
|
14873
14753
|
return "";
|
|
14874
14754
|
};
|
|
14875
14755
|
const handleTouchStart = (e2) => {
|
|
@@ -14879,8 +14759,7 @@
|
|
|
14879
14759
|
if (props.scrollTop > 0) {
|
|
14880
14760
|
return;
|
|
14881
14761
|
}
|
|
14882
|
-
if (status === "refreshing" || status === "complete")
|
|
14883
|
-
return;
|
|
14762
|
+
if (status === "refreshing" || status === "complete") return;
|
|
14884
14763
|
touch.move(e2);
|
|
14885
14764
|
if (touch.isVertical()) {
|
|
14886
14765
|
pullingRef.current = true;
|
|
@@ -15161,7 +15040,7 @@
|
|
|
15161
15040
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
15162
15041
|
event.preventDefault();
|
|
15163
15042
|
}
|
|
15164
|
-
|
|
15043
|
+
{
|
|
15165
15044
|
event.stopPropagation();
|
|
15166
15045
|
}
|
|
15167
15046
|
}
|
|
@@ -15233,7 +15112,7 @@
|
|
|
15233
15112
|
const newState = { ...state, dragging: true };
|
|
15234
15113
|
const isEdge = !opened || touch.deltaX.current * startOffset.current < 0;
|
|
15235
15114
|
if (isEdge) {
|
|
15236
|
-
preventDefault(event
|
|
15115
|
+
preventDefault(event);
|
|
15237
15116
|
}
|
|
15238
15117
|
newState.offset = rangeCalculation(
|
|
15239
15118
|
touch.deltaX.current + startOffset.current,
|
|
@@ -16248,8 +16127,7 @@
|
|
|
16248
16127
|
// 设置了 startTime 时,与 date.now() 的差异
|
|
16249
16128
|
});
|
|
16250
16129
|
const getTimeStamp = (timeStr) => {
|
|
16251
|
-
if (!timeStr)
|
|
16252
|
-
return Date.now();
|
|
16130
|
+
if (!timeStr) return Date.now();
|
|
16253
16131
|
let t = timeStr;
|
|
16254
16132
|
t = Number(t) > 0 ? +t : t.toString().replace(/-/g, "/");
|
|
16255
16133
|
return new Date(t).getTime();
|
|
@@ -16261,8 +16139,7 @@
|
|
|
16261
16139
|
stateRef.current.handleEndTime = endTime;
|
|
16262
16140
|
stateRef.current.diffTime = Date.now() - getTimeStamp(startTime);
|
|
16263
16141
|
}
|
|
16264
|
-
if (!stateRef.current.counting)
|
|
16265
|
-
stateRef.current.counting = true;
|
|
16142
|
+
if (!stateRef.current.counting) stateRef.current.counting = true;
|
|
16266
16143
|
tick();
|
|
16267
16144
|
};
|
|
16268
16145
|
const tick = () => {
|
|
@@ -16531,8 +16408,7 @@
|
|
|
16531
16408
|
]
|
|
16532
16409
|
},
|
|
16533
16410
|
(res) => {
|
|
16534
|
-
if (!res)
|
|
16535
|
-
return;
|
|
16411
|
+
if (!res) return;
|
|
16536
16412
|
lineH.current = pxToNumber(
|
|
16537
16413
|
res.lineHeight === "normal" ? lineHeight : res.lineHeight
|
|
16538
16414
|
);
|
|
@@ -16656,8 +16532,7 @@
|
|
|
16656
16532
|
return content.slice(cutoff, end);
|
|
16657
16533
|
};
|
|
16658
16534
|
const pxToNumber = (value) => {
|
|
16659
|
-
if (!value)
|
|
16660
|
-
return 0;
|
|
16535
|
+
if (!value) return 0;
|
|
16661
16536
|
const match = value.match(/^\d*(\.\d*)?/);
|
|
16662
16537
|
return match ? Number(match[0]) : 0;
|
|
16663
16538
|
};
|
|
@@ -16830,8 +16705,7 @@
|
|
|
16830
16705
|
setCurrent(defaultValue);
|
|
16831
16706
|
}, [defaultValue]);
|
|
16832
16707
|
const renderIndicator = () => {
|
|
16833
|
-
if (React.isValidElement(indicator))
|
|
16834
|
-
return indicator;
|
|
16708
|
+
if (React.isValidElement(indicator)) return indicator;
|
|
16835
16709
|
if (indicator) {
|
|
16836
16710
|
return /* @__PURE__ */ React.createElement(
|
|
16837
16711
|
"div",
|
|
@@ -17271,8 +17145,7 @@
|
|
|
17271
17145
|
return items;
|
|
17272
17146
|
}, [currentPage, itemSize, pageCount]);
|
|
17273
17147
|
const handleSelectPage = (curPage) => {
|
|
17274
|
-
if (curPage > pageCount || curPage < 1)
|
|
17275
|
-
return;
|
|
17148
|
+
if (curPage > pageCount || curPage < 1) return;
|
|
17276
17149
|
setCurrentPage(curPage);
|
|
17277
17150
|
};
|
|
17278
17151
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), ...rest }, (mode === "multi" || mode === "simple") && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
@@ -17431,8 +17304,7 @@
|
|
|
17431
17304
|
const dot = parent.propSteps.dot;
|
|
17432
17305
|
const getCurrentStatus = () => {
|
|
17433
17306
|
const index = value;
|
|
17434
|
-
if (index < +parent.propSteps.value)
|
|
17435
|
-
return "finish";
|
|
17307
|
+
if (index < +parent.propSteps.value) return "finish";
|
|
17436
17308
|
return index === +parent.propSteps.value ? "process" : "wait";
|
|
17437
17309
|
};
|
|
17438
17310
|
const handleClickStep = () => {
|
|
@@ -18087,22 +17959,13 @@
|
|
|
18087
17959
|
Array.from(items).forEach((item) => {
|
|
18088
17960
|
const index = Number(item.getAttribute("data-index"));
|
|
18089
17961
|
const styleVal = item.getAttribute("style");
|
|
18090
|
-
if (styleVal && styleVal.includes("none"))
|
|
18091
|
-
return;
|
|
17962
|
+
if (styleVal && styleVal.includes("none")) return;
|
|
18092
17963
|
let nowSize = item.getBoundingClientRect()[sizeKey];
|
|
18093
|
-
if (margin)
|
|
18094
|
-
nowSize += margin;
|
|
17964
|
+
if (margin) nowSize += margin;
|
|
18095
17965
|
const oldSize = positions[index][sizeKey];
|
|
18096
17966
|
const dValue = oldSize - nowSize;
|
|
18097
17967
|
if (dValue) {
|
|
18098
|
-
|
|
18099
|
-
newPos[index].right -= dValue;
|
|
18100
|
-
newPos[index][sizeKey] = nowSize;
|
|
18101
|
-
for (let k2 = index + 1; k2 < positions.length; k2++) {
|
|
18102
|
-
newPos[k2].left = positions[k2 - 1].right;
|
|
18103
|
-
newPos[k2].right -= dValue;
|
|
18104
|
-
}
|
|
18105
|
-
} else if (sizeKey === "height") {
|
|
17968
|
+
{
|
|
18106
17969
|
newPos[index].bottom -= dValue;
|
|
18107
17970
|
newPos[index][sizeKey] = nowSize;
|
|
18108
17971
|
for (let k2 = index + 1; k2 < positions.length; k2++) {
|
|
@@ -18168,8 +18031,7 @@
|
|
|
18168
18031
|
});
|
|
18169
18032
|
}, [itemHeight, overscan, offSetSize]);
|
|
18170
18033
|
React.useEffect(() => {
|
|
18171
|
-
if (containerHeight)
|
|
18172
|
-
return;
|
|
18034
|
+
if (containerHeight) return;
|
|
18173
18035
|
setOffSetSize(getContainerHeight());
|
|
18174
18036
|
}, [containerHeight]);
|
|
18175
18037
|
React.useEffect(() => {
|
|
@@ -18193,11 +18055,9 @@
|
|
|
18193
18055
|
return list.slice(start.current, Math.min(end(), list.length));
|
|
18194
18056
|
};
|
|
18195
18057
|
const updateTotalSize = React.useCallback(() => {
|
|
18196
|
-
if (!itemsRef.current)
|
|
18197
|
-
return;
|
|
18058
|
+
if (!itemsRef.current) return;
|
|
18198
18059
|
const items = itemsRef.current.children;
|
|
18199
|
-
if (!items.length)
|
|
18200
|
-
return;
|
|
18060
|
+
if (!items.length) return;
|
|
18201
18061
|
updateItemSize(positions, items, "height", margin);
|
|
18202
18062
|
}, [positions]);
|
|
18203
18063
|
const listScroll = (e2) => {
|
|
@@ -18991,8 +18851,7 @@
|
|
|
18991
18851
|
const canvas2dDraw = React.useCallback(
|
|
18992
18852
|
(ctx) => {
|
|
18993
18853
|
const { src, width, height, x, y } = drawImage;
|
|
18994
|
-
if (!ctx || !src)
|
|
18995
|
-
return;
|
|
18854
|
+
if (!ctx || !src) return;
|
|
18996
18855
|
const {
|
|
18997
18856
|
moveX,
|
|
18998
18857
|
moveY,
|
|
@@ -19060,8 +18919,7 @@
|
|
|
19060
18919
|
} = state;
|
|
19061
18920
|
const { cropperCanvasContext } = canvasAll;
|
|
19062
18921
|
const ctx = cropperCanvasContext;
|
|
19063
|
-
if (!ctx)
|
|
19064
|
-
return;
|
|
18922
|
+
if (!ctx) return;
|
|
19065
18923
|
ctx.clearRect(0, 0, displayWidth, displayHeight);
|
|
19066
18924
|
ctx.fillStyle = "#666";
|
|
19067
18925
|
ctx.setFillStyle("#666");
|
|
@@ -19429,7 +19287,7 @@
|
|
|
19429
19287
|
exports2.NumberKeyboard = NumberKeyboard;
|
|
19430
19288
|
exports2.Overlay = Overlay;
|
|
19431
19289
|
exports2.Pagination = Pagination;
|
|
19432
|
-
exports2.Picker = Picker
|
|
19290
|
+
exports2.Picker = Picker;
|
|
19433
19291
|
exports2.Popover = Popover;
|
|
19434
19292
|
exports2.Popup = Popup;
|
|
19435
19293
|
exports2.Price = Price;
|