@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.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v2.6.
|
|
2
|
+
* @nutui/nutui-react-taro v2.6.10 Fri Jun 21 2024 18:25:39 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -597,9 +597,6 @@ var freeSelf = typeof self == "object" && self && self.Object === Object && self
|
|
|
597
597
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
598
598
|
function arrayReduce(array4, iteratee, accumulator, initAccum) {
|
|
599
599
|
var index = -1, length = array4 ? array4.length : 0;
|
|
600
|
-
if (initAccum && length) {
|
|
601
|
-
accumulator = array4[++index];
|
|
602
|
-
}
|
|
603
600
|
while (++index < length) {
|
|
604
601
|
accumulator = iteratee(accumulator, array4[index], index, array4);
|
|
605
602
|
}
|
|
@@ -657,7 +654,7 @@ var kebabCase = createCompounder(function(result, word, index) {
|
|
|
657
654
|
});
|
|
658
655
|
function words(string3, pattern4, guard) {
|
|
659
656
|
string3 = toString(string3);
|
|
660
|
-
pattern4 =
|
|
657
|
+
pattern4 = pattern4;
|
|
661
658
|
if (pattern4 === void 0) {
|
|
662
659
|
return hasUnicodeWord(string3) ? unicodeWords(string3) : asciiWords(string3);
|
|
663
660
|
}
|
|
@@ -958,7 +955,7 @@ lodash_isequal.exports;
|
|
|
958
955
|
function arrayLikeKeys(value, inherited) {
|
|
959
956
|
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;
|
|
960
957
|
for (var key in value) {
|
|
961
|
-
if (
|
|
958
|
+
if (hasOwnProperty.call(value, key) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
962
959
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
963
960
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
964
961
|
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -1569,8 +1566,7 @@ const Image$1 = (props) => {
|
|
|
1569
1566
|
...style
|
|
1570
1567
|
};
|
|
1571
1568
|
const renderErrorImg = useCallback(() => {
|
|
1572
|
-
if (!isError)
|
|
1573
|
-
return null;
|
|
1569
|
+
if (!isError) return null;
|
|
1574
1570
|
if (typeof error === "boolean" && error === true && !innerLoading) {
|
|
1575
1571
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-img-error" }, /* @__PURE__ */ React__default.createElement(N, null));
|
|
1576
1572
|
}
|
|
@@ -1580,8 +1576,7 @@ const Image$1 = (props) => {
|
|
|
1580
1576
|
return null;
|
|
1581
1577
|
}, [error, isError, innerLoading]);
|
|
1582
1578
|
const renderLoading = useCallback(() => {
|
|
1583
|
-
if (!loading)
|
|
1584
|
-
return null;
|
|
1579
|
+
if (!loading) return null;
|
|
1585
1580
|
if (typeof loading === "boolean" && loading === true && innerLoading) {
|
|
1586
1581
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-img-loading" }, /* @__PURE__ */ React__default.createElement(j$2, null));
|
|
1587
1582
|
}
|
|
@@ -1604,44 +1599,30 @@ const Image$1 = (props) => {
|
|
|
1604
1599
|
};
|
|
1605
1600
|
Image$1.displayName = "NutImage";
|
|
1606
1601
|
function _extends$1() {
|
|
1607
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function(
|
|
1608
|
-
for (var
|
|
1609
|
-
var
|
|
1610
|
-
for (var
|
|
1611
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1612
|
-
target[key] = source[key];
|
|
1613
|
-
}
|
|
1614
|
-
}
|
|
1602
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
1603
|
+
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
1604
|
+
var t = arguments[e2];
|
|
1605
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n2[r] = t[r]);
|
|
1615
1606
|
}
|
|
1616
|
-
return
|
|
1617
|
-
};
|
|
1618
|
-
return _extends$1.apply(this, arguments);
|
|
1607
|
+
return n2;
|
|
1608
|
+
}, _extends$1.apply(null, arguments);
|
|
1619
1609
|
}
|
|
1620
|
-
function _objectWithoutPropertiesLoose(
|
|
1621
|
-
if (
|
|
1622
|
-
|
|
1623
|
-
var
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
1627
|
-
key = sourceKeys[i];
|
|
1628
|
-
if (excluded.indexOf(key) >= 0)
|
|
1629
|
-
continue;
|
|
1630
|
-
target[key] = source[key];
|
|
1610
|
+
function _objectWithoutPropertiesLoose(r, e2) {
|
|
1611
|
+
if (null == r) return {};
|
|
1612
|
+
var t = {};
|
|
1613
|
+
for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
|
|
1614
|
+
if (e2.indexOf(n2) >= 0) continue;
|
|
1615
|
+
t[n2] = r[n2];
|
|
1631
1616
|
}
|
|
1632
|
-
return
|
|
1617
|
+
return t;
|
|
1633
1618
|
}
|
|
1634
|
-
function _setPrototypeOf$1(
|
|
1635
|
-
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
};
|
|
1639
|
-
return _setPrototypeOf$1(o, p);
|
|
1619
|
+
function _setPrototypeOf$1(t, e2) {
|
|
1620
|
+
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
|
|
1621
|
+
return t2.__proto__ = e3, t2;
|
|
1622
|
+
}, _setPrototypeOf$1(t, e2);
|
|
1640
1623
|
}
|
|
1641
|
-
function _inheritsLoose$1(
|
|
1642
|
-
|
|
1643
|
-
subClass.prototype.constructor = subClass;
|
|
1644
|
-
_setPrototypeOf$1(subClass, superClass);
|
|
1624
|
+
function _inheritsLoose$1(t, o) {
|
|
1625
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o);
|
|
1645
1626
|
}
|
|
1646
1627
|
var propTypes = { exports: {} };
|
|
1647
1628
|
var reactIs = { exports: {} };
|
|
@@ -1656,8 +1637,7 @@ var reactIs_production_min = {};
|
|
|
1656
1637
|
*/
|
|
1657
1638
|
var hasRequiredReactIs_production_min;
|
|
1658
1639
|
function requireReactIs_production_min() {
|
|
1659
|
-
if (hasRequiredReactIs_production_min)
|
|
1660
|
-
return reactIs_production_min;
|
|
1640
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
1661
1641
|
hasRequiredReactIs_production_min = 1;
|
|
1662
1642
|
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;
|
|
1663
1643
|
function z2(a2) {
|
|
@@ -1760,8 +1740,7 @@ var reactIs_development = {};
|
|
|
1760
1740
|
*/
|
|
1761
1741
|
var hasRequiredReactIs_development;
|
|
1762
1742
|
function requireReactIs_development() {
|
|
1763
|
-
if (hasRequiredReactIs_development)
|
|
1764
|
-
return reactIs_development;
|
|
1743
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
1765
1744
|
hasRequiredReactIs_development = 1;
|
|
1766
1745
|
if (process.env.NODE_ENV !== "production") {
|
|
1767
1746
|
(function() {
|
|
@@ -1914,8 +1893,7 @@ function requireReactIs_development() {
|
|
|
1914
1893
|
}
|
|
1915
1894
|
var hasRequiredReactIs;
|
|
1916
1895
|
function requireReactIs() {
|
|
1917
|
-
if (hasRequiredReactIs)
|
|
1918
|
-
return reactIs.exports;
|
|
1896
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
1919
1897
|
hasRequiredReactIs = 1;
|
|
1920
1898
|
if (process.env.NODE_ENV === "production") {
|
|
1921
1899
|
reactIs.exports = requireReactIs_production_min();
|
|
@@ -1932,8 +1910,7 @@ object-assign
|
|
|
1932
1910
|
var objectAssign;
|
|
1933
1911
|
var hasRequiredObjectAssign;
|
|
1934
1912
|
function requireObjectAssign() {
|
|
1935
|
-
if (hasRequiredObjectAssign)
|
|
1936
|
-
return objectAssign;
|
|
1913
|
+
if (hasRequiredObjectAssign) return objectAssign;
|
|
1937
1914
|
hasRequiredObjectAssign = 1;
|
|
1938
1915
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1939
1916
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -2003,8 +1980,7 @@ function requireObjectAssign() {
|
|
|
2003
1980
|
var ReactPropTypesSecret_1;
|
|
2004
1981
|
var hasRequiredReactPropTypesSecret;
|
|
2005
1982
|
function requireReactPropTypesSecret() {
|
|
2006
|
-
if (hasRequiredReactPropTypesSecret)
|
|
2007
|
-
return ReactPropTypesSecret_1;
|
|
1983
|
+
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
2008
1984
|
hasRequiredReactPropTypesSecret = 1;
|
|
2009
1985
|
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2010
1986
|
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
@@ -2013,8 +1989,7 @@ function requireReactPropTypesSecret() {
|
|
|
2013
1989
|
var has;
|
|
2014
1990
|
var hasRequiredHas;
|
|
2015
1991
|
function requireHas() {
|
|
2016
|
-
if (hasRequiredHas)
|
|
2017
|
-
return has;
|
|
1992
|
+
if (hasRequiredHas) return has;
|
|
2018
1993
|
hasRequiredHas = 1;
|
|
2019
1994
|
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2020
1995
|
return has;
|
|
@@ -2022,8 +1997,7 @@ function requireHas() {
|
|
|
2022
1997
|
var checkPropTypes_1;
|
|
2023
1998
|
var hasRequiredCheckPropTypes;
|
|
2024
1999
|
function requireCheckPropTypes() {
|
|
2025
|
-
if (hasRequiredCheckPropTypes)
|
|
2026
|
-
return checkPropTypes_1;
|
|
2000
|
+
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
2027
2001
|
hasRequiredCheckPropTypes = 1;
|
|
2028
2002
|
var printWarning = function() {
|
|
2029
2003
|
};
|
|
@@ -2086,8 +2060,7 @@ function requireCheckPropTypes() {
|
|
|
2086
2060
|
var factoryWithTypeCheckers;
|
|
2087
2061
|
var hasRequiredFactoryWithTypeCheckers;
|
|
2088
2062
|
function requireFactoryWithTypeCheckers() {
|
|
2089
|
-
if (hasRequiredFactoryWithTypeCheckers)
|
|
2090
|
-
return factoryWithTypeCheckers;
|
|
2063
|
+
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
2091
2064
|
hasRequiredFactoryWithTypeCheckers = 1;
|
|
2092
2065
|
var ReactIs = requireReactIs();
|
|
2093
2066
|
var assign = requireObjectAssign();
|
|
@@ -2530,8 +2503,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
2530
2503
|
var factoryWithThrowingShims;
|
|
2531
2504
|
var hasRequiredFactoryWithThrowingShims;
|
|
2532
2505
|
function requireFactoryWithThrowingShims() {
|
|
2533
|
-
if (hasRequiredFactoryWithThrowingShims)
|
|
2534
|
-
return factoryWithThrowingShims;
|
|
2506
|
+
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
2535
2507
|
hasRequiredFactoryWithThrowingShims = 1;
|
|
2536
2508
|
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2537
2509
|
function emptyFunction() {
|
|
@@ -2592,18 +2564,13 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2592
2564
|
var propTypesExports = propTypes.exports;
|
|
2593
2565
|
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
2594
2566
|
function hasClass(element, className) {
|
|
2595
|
-
if (element.classList)
|
|
2596
|
-
return !!className && element.classList.contains(className);
|
|
2567
|
+
if (element.classList) return !!className && element.classList.contains(className);
|
|
2597
2568
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
2598
2569
|
}
|
|
2599
2570
|
function addClass(element, className) {
|
|
2600
|
-
if (element.classList)
|
|
2601
|
-
|
|
2602
|
-
else
|
|
2603
|
-
if (typeof element.className === "string")
|
|
2604
|
-
element.className = element.className + " " + className;
|
|
2605
|
-
else
|
|
2606
|
-
element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
|
|
2571
|
+
if (element.classList) element.classList.add(className);
|
|
2572
|
+
else if (!hasClass(element, className)) if (typeof element.className === "string") element.className = element.className + " " + className;
|
|
2573
|
+
else element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
|
|
2607
2574
|
}
|
|
2608
2575
|
function replaceClassName(origClass, classToRemove) {
|
|
2609
2576
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
@@ -2731,8 +2698,7 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
|
|
|
2731
2698
|
if (nextStatus === ENTERING) {
|
|
2732
2699
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
2733
2700
|
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
2734
|
-
if (node)
|
|
2735
|
-
forceReflow(node);
|
|
2701
|
+
if (node) forceReflow(node);
|
|
2736
2702
|
}
|
|
2737
2703
|
this.performEnter(mounting);
|
|
2738
2704
|
} else {
|
|
@@ -2970,8 +2936,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2970
2936
|
*/
|
|
2971
2937
|
timeout: function timeout(props) {
|
|
2972
2938
|
var pt = timeoutsShape;
|
|
2973
|
-
if (!props.addEndListener)
|
|
2974
|
-
pt = pt.isRequired;
|
|
2939
|
+
if (!props.addEndListener) pt = pt.isRequired;
|
|
2975
2940
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
2976
2941
|
args[_key - 1] = arguments[_key];
|
|
2977
2942
|
}
|
|
@@ -3065,7 +3030,6 @@ Transition.EXITED = EXITED;
|
|
|
3065
3030
|
Transition.ENTERING = ENTERING;
|
|
3066
3031
|
Transition.ENTERED = ENTERED;
|
|
3067
3032
|
Transition.EXITING = EXITING;
|
|
3068
|
-
const Transition$1 = Transition;
|
|
3069
3033
|
var _addClass = function addClass$1(node, classes) {
|
|
3070
3034
|
return node && classes && classes.split(" ").forEach(function(c2) {
|
|
3071
3035
|
return addClass(node, c2);
|
|
@@ -3164,8 +3128,7 @@ var CSSTransition = /* @__PURE__ */ function(_React$Component) {
|
|
|
3164
3128
|
className += " " + doneClassName;
|
|
3165
3129
|
}
|
|
3166
3130
|
if (phase === "active") {
|
|
3167
|
-
if (node)
|
|
3168
|
-
forceReflow(node);
|
|
3131
|
+
if (node) forceReflow(node);
|
|
3169
3132
|
}
|
|
3170
3133
|
if (className) {
|
|
3171
3134
|
this.appliedClasses[type4][phase] = className;
|
|
@@ -3189,7 +3152,7 @@ var CSSTransition = /* @__PURE__ */ function(_React$Component) {
|
|
|
3189
3152
|
var _this$props = this.props;
|
|
3190
3153
|
_this$props.classNames;
|
|
3191
3154
|
var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
|
|
3192
|
-
return /* @__PURE__ */ React__default.createElement(Transition
|
|
3155
|
+
return /* @__PURE__ */ React__default.createElement(Transition, _extends$1({}, props, {
|
|
3193
3156
|
onEnter: this.onEnter,
|
|
3194
3157
|
onEntered: this.onEntered,
|
|
3195
3158
|
onEntering: this.onEntering,
|
|
@@ -3203,7 +3166,7 @@ var CSSTransition = /* @__PURE__ */ function(_React$Component) {
|
|
|
3203
3166
|
CSSTransition.defaultProps = {
|
|
3204
3167
|
classNames: ""
|
|
3205
3168
|
};
|
|
3206
|
-
CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({}, Transition
|
|
3169
|
+
CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({}, Transition.propTypes, {
|
|
3207
3170
|
/**
|
|
3208
3171
|
* The animation classNames applied to the component as it appears, enters,
|
|
3209
3172
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -3327,7 +3290,6 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends$1({},
|
|
|
3327
3290
|
*/
|
|
3328
3291
|
onExited: PropTypes.func
|
|
3329
3292
|
}) : {};
|
|
3330
|
-
const CSSTransition$1 = CSSTransition;
|
|
3331
3293
|
const MIN_DISTANCE = 10;
|
|
3332
3294
|
function getDirection(x, y) {
|
|
3333
3295
|
if (x > y && x > MIN_DISTANCE) {
|
|
@@ -3457,8 +3419,7 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
3457
3419
|
event.target,
|
|
3458
3420
|
rootRef.current
|
|
3459
3421
|
);
|
|
3460
|
-
if (!el)
|
|
3461
|
-
return;
|
|
3422
|
+
if (!el) return;
|
|
3462
3423
|
if (shouldLock === "strict") {
|
|
3463
3424
|
const scrollableParent = getScrollableElement(event.target);
|
|
3464
3425
|
if (scrollableParent === document.body || scrollableParent === document.documentElement) {
|
|
@@ -3571,7 +3532,7 @@ const Overlay = (props) => {
|
|
|
3571
3532
|
afterClose && afterClose();
|
|
3572
3533
|
};
|
|
3573
3534
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
3574
|
-
CSSTransition
|
|
3535
|
+
CSSTransition,
|
|
3575
3536
|
{
|
|
3576
3537
|
nodeRef,
|
|
3577
3538
|
classNames: `${classPrefix2}-slide`,
|
|
@@ -4018,10 +3979,8 @@ const Sticky = (props) => {
|
|
|
4018
3979
|
};
|
|
4019
3980
|
}
|
|
4020
3981
|
const style2 = {};
|
|
4021
|
-
if (rootRect.height)
|
|
4022
|
-
|
|
4023
|
-
if (rootRect.width)
|
|
4024
|
-
style2.width = rootRect.width;
|
|
3982
|
+
if (rootRect.height) style2.height = rootRect.height;
|
|
3983
|
+
if (rootRect.width) style2.width = rootRect.width;
|
|
4025
3984
|
style2.transform = `translate3d(0, ${transform}px, 0)`;
|
|
4026
3985
|
style2[position] = threshold;
|
|
4027
3986
|
style2.zIndex = zIndex;
|
|
@@ -4225,8 +4184,7 @@ const Elevator = (props) => {
|
|
|
4225
4184
|
const query = createSelectorQuery();
|
|
4226
4185
|
query.selectAll(`.${className} .nut-elevator-item-${i}`).boundingClientRect();
|
|
4227
4186
|
query.exec((res) => {
|
|
4228
|
-
if (res[0][0])
|
|
4229
|
-
height2 += res[0][0].height;
|
|
4187
|
+
if (res[0][0]) height2 += res[0][0].height;
|
|
4230
4188
|
state.current.listHeight.push(height2);
|
|
4231
4189
|
});
|
|
4232
4190
|
}
|
|
@@ -4301,8 +4259,7 @@ const Elevator = (props) => {
|
|
|
4301
4259
|
if (sticky && scrollTop2 !== scrollY) {
|
|
4302
4260
|
setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
|
|
4303
4261
|
}
|
|
4304
|
-
if (scrolling.current)
|
|
4305
|
-
return;
|
|
4262
|
+
if (scrolling.current) return;
|
|
4306
4263
|
for (let i = 0; i < listHeight.length - 1; i++) {
|
|
4307
4264
|
const height1 = listHeight[i];
|
|
4308
4265
|
const height2 = listHeight[i + 1];
|
|
@@ -4732,7 +4689,7 @@ const Popup = (props) => {
|
|
|
4732
4689
|
};
|
|
4733
4690
|
const renderPop = () => {
|
|
4734
4691
|
return /* @__PURE__ */ React__default.createElement(
|
|
4735
|
-
CSSTransition
|
|
4692
|
+
CSSTransition,
|
|
4736
4693
|
{
|
|
4737
4694
|
classNames: transitionName,
|
|
4738
4695
|
mountOnEnter: true,
|
|
@@ -4974,24 +4931,20 @@ const Badge = (props) => {
|
|
|
4974
4931
|
[`${classPrefix2}-${fill}`]: fill === "outline"
|
|
4975
4932
|
});
|
|
4976
4933
|
function content() {
|
|
4977
|
-
if (dot || typeof value === "object" || value === 0)
|
|
4978
|
-
return null;
|
|
4934
|
+
if (dot || typeof value === "object" || value === 0) return null;
|
|
4979
4935
|
if (typeof value === "number" && typeof max === "number") {
|
|
4980
4936
|
return max < value ? `${max}+` : `${value}`;
|
|
4981
4937
|
}
|
|
4982
4938
|
return value;
|
|
4983
4939
|
}
|
|
4984
4940
|
function isIcon() {
|
|
4985
|
-
if (typeof value === "object" && value)
|
|
4986
|
-
return value;
|
|
4941
|
+
if (typeof value === "object" && value) return value;
|
|
4987
4942
|
}
|
|
4988
4943
|
function isNumber() {
|
|
4989
|
-
if (typeof value === "number" && value)
|
|
4990
|
-
return value;
|
|
4944
|
+
if (typeof value === "number" && value) return value;
|
|
4991
4945
|
}
|
|
4992
4946
|
function isString() {
|
|
4993
|
-
if (typeof value === "string" && value)
|
|
4994
|
-
return value;
|
|
4947
|
+
if (typeof value === "string" && value) return value;
|
|
4995
4948
|
}
|
|
4996
4949
|
const contentClasses = classNames(
|
|
4997
4950
|
{ [`${classPrefix2}-dot`]: dot },
|
|
@@ -5144,8 +5097,7 @@ const Tabbar = (props) => {
|
|
|
5144
5097
|
}
|
|
5145
5098
|
},
|
|
5146
5099
|
React__default.Children.map(children, (child, index) => {
|
|
5147
|
-
if (!React__default.isValidElement(child))
|
|
5148
|
-
return null;
|
|
5100
|
+
if (!React__default.isValidElement(child)) return null;
|
|
5149
5101
|
return React__default.cloneElement(child, { ...child.props, index });
|
|
5150
5102
|
})
|
|
5151
5103
|
)),
|
|
@@ -5333,8 +5285,7 @@ const Tabs = (props) => {
|
|
|
5333
5285
|
navRectRef.current = navRect;
|
|
5334
5286
|
titleRectRef.current = titleRects;
|
|
5335
5287
|
const titleRect = titleRectRef.current[index];
|
|
5336
|
-
if (!titleRect)
|
|
5337
|
-
return;
|
|
5288
|
+
if (!titleRect) return;
|
|
5338
5289
|
let to = 0;
|
|
5339
5290
|
if (direction === "vertical") {
|
|
5340
5291
|
const top = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.height, 0);
|
|
@@ -6360,9 +6311,6 @@ const getCurrMonthData = (type4, year, month) => {
|
|
|
6360
6311
|
};
|
|
6361
6312
|
const getDaysStatus = (type4, year, month) => {
|
|
6362
6313
|
let days = Utils.getMonthDays(`${year}`, `${month}`);
|
|
6363
|
-
if (type4 === "prev" && days >= 7) {
|
|
6364
|
-
days -= 7;
|
|
6365
|
-
}
|
|
6366
6314
|
return Array.from(Array(days), (v, k2) => {
|
|
6367
6315
|
return {
|
|
6368
6316
|
day: k2 + 1,
|
|
@@ -6381,7 +6329,7 @@ const getPreMonthDates = (type4, year, month, firstDayOfWeek) => {
|
|
|
6381
6329
|
}
|
|
6382
6330
|
let days = Utils.getMonthPreDay(+year, +month);
|
|
6383
6331
|
days -= firstDayOfWeek;
|
|
6384
|
-
if (
|
|
6332
|
+
if (days >= 7) {
|
|
6385
6333
|
days -= 7;
|
|
6386
6334
|
}
|
|
6387
6335
|
const preDates = Utils.getMonthDays(`${preYear}`, `${preMonth}`);
|
|
@@ -6558,7 +6506,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
6558
6506
|
cssHeight,
|
|
6559
6507
|
scrollTop: scrollTop2
|
|
6560
6508
|
};
|
|
6561
|
-
|
|
6509
|
+
{
|
|
6562
6510
|
if (!endDates || !Utils.compareDate(
|
|
6563
6511
|
`${endDates[0]}/${endDates[1]}/${Utils.getMonthDays(
|
|
6564
6512
|
endDates[0],
|
|
@@ -6568,11 +6516,6 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
6568
6516
|
)) {
|
|
6569
6517
|
monthData.push(monthInfo);
|
|
6570
6518
|
}
|
|
6571
|
-
} else if (!startDates || !Utils.compareDate(
|
|
6572
|
-
`${curData[0]}/${curData[1]}/${curData[2]}`,
|
|
6573
|
-
`${startDates[0]}/${startDates[1]}/01`
|
|
6574
|
-
)) {
|
|
6575
|
-
monthData.unshift(monthInfo);
|
|
6576
6519
|
}
|
|
6577
6520
|
date4 = getCurrMonthData("next", y, m2);
|
|
6578
6521
|
} while (i++ < monthNum);
|
|
@@ -6581,8 +6524,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
6581
6524
|
const setReachedYearMonthInfo = (current) => {
|
|
6582
6525
|
const currentMonthsData = monthsData[current];
|
|
6583
6526
|
const [year, month] = currentMonthsData.curData;
|
|
6584
|
-
if (currentMonthsData.title === yearMonthTitle)
|
|
6585
|
-
return;
|
|
6527
|
+
if (currentMonthsData.title === yearMonthTitle) return;
|
|
6586
6528
|
onPageChange && onPageChange([year, month, `${year}-${month}`]);
|
|
6587
6529
|
setYearMonthTitle(currentMonthsData.title);
|
|
6588
6530
|
};
|
|
@@ -6773,7 +6715,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
6773
6715
|
};
|
|
6774
6716
|
const initData = () => {
|
|
6775
6717
|
const monthNum = getMonthNum();
|
|
6776
|
-
getMonthData(startDates, monthNum
|
|
6718
|
+
getMonthData(startDates, monthNum);
|
|
6777
6719
|
const current = renderCurrentDate();
|
|
6778
6720
|
setDefaultRange(monthNum, current);
|
|
6779
6721
|
requestAniFrameFunc(current, monthNum);
|
|
@@ -6833,8 +6775,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
6833
6775
|
const scrollTop2 = e2.target.scrollTop;
|
|
6834
6776
|
Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
|
|
6835
6777
|
let current = Math.floor(scrollTop2 / avgHeight);
|
|
6836
|
-
if (!monthsData[current + 1])
|
|
6837
|
-
return;
|
|
6778
|
+
if (!monthsData[current + 1]) return;
|
|
6838
6779
|
const nextTop = monthsData[current + 1].scrollTop;
|
|
6839
6780
|
const nextHeight = monthsData[current + 1].cssHeight;
|
|
6840
6781
|
if (current === 0) {
|
|
@@ -7580,7 +7521,6 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
|
|
|
7580
7521
|
});
|
|
7581
7522
|
CalendarCard.displayName = "NutCalendarCard";
|
|
7582
7523
|
const CheckboxGroupContext = createContext(null);
|
|
7583
|
-
const Context$1 = CheckboxGroupContext;
|
|
7584
7524
|
const defaultProps$10 = {
|
|
7585
7525
|
max: void 0,
|
|
7586
7526
|
min: void 0,
|
|
@@ -7658,7 +7598,7 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
7658
7598
|
});
|
|
7659
7599
|
}, [options, max, min]);
|
|
7660
7600
|
return /* @__PURE__ */ React__default.createElement(
|
|
7661
|
-
|
|
7601
|
+
CheckboxGroupContext.Provider,
|
|
7662
7602
|
{
|
|
7663
7603
|
value: {
|
|
7664
7604
|
labelPosition: labelPosition || "right",
|
|
@@ -7738,7 +7678,7 @@ const Checkbox = (props) => {
|
|
|
7738
7678
|
...others
|
|
7739
7679
|
} = props;
|
|
7740
7680
|
let { labelPosition, ...rest } = others;
|
|
7741
|
-
const ctx = useContext(
|
|
7681
|
+
const ctx = useContext(CheckboxGroupContext);
|
|
7742
7682
|
let [innerChecked, setChecked] = usePropsValue({
|
|
7743
7683
|
value: checked,
|
|
7744
7684
|
defaultValue: defaultChecked,
|
|
@@ -7760,12 +7700,9 @@ const Checkbox = (props) => {
|
|
|
7760
7700
|
innerDisabled = ctx.disabled !== void 0 ? ctx.disabled : innerDisabled;
|
|
7761
7701
|
innerChecked = ctx.value.includes(value);
|
|
7762
7702
|
setChecked = (checked2) => {
|
|
7763
|
-
if (ctx.disabled)
|
|
7764
|
-
|
|
7765
|
-
if (checked2)
|
|
7766
|
-
ctx.check(value);
|
|
7767
|
-
if (!checked2)
|
|
7768
|
-
ctx.uncheck(value);
|
|
7703
|
+
if (ctx.disabled) return;
|
|
7704
|
+
if (checked2) ctx.check(value);
|
|
7705
|
+
if (!checked2) ctx.uncheck(value);
|
|
7769
7706
|
};
|
|
7770
7707
|
}
|
|
7771
7708
|
const renderIcon = () => {
|
|
@@ -7817,8 +7754,7 @@ const Checkbox = (props) => {
|
|
|
7817
7754
|
);
|
|
7818
7755
|
};
|
|
7819
7756
|
const handleClick = () => {
|
|
7820
|
-
if (disabled)
|
|
7821
|
-
return;
|
|
7757
|
+
if (disabled) return;
|
|
7822
7758
|
const latestChecked = !innerChecked;
|
|
7823
7759
|
setChecked(latestChecked);
|
|
7824
7760
|
};
|
|
@@ -7946,14 +7882,13 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
7946
7882
|
touch.move(event);
|
|
7947
7883
|
if (touch.isVertical) {
|
|
7948
7884
|
moving.current = true;
|
|
7949
|
-
preventDefault2(event
|
|
7885
|
+
preventDefault2(event);
|
|
7950
7886
|
}
|
|
7951
7887
|
const move = touch.deltaY.current - startY;
|
|
7952
7888
|
setMove(move);
|
|
7953
7889
|
};
|
|
7954
7890
|
const touchEnd = () => {
|
|
7955
|
-
if (!moving.current)
|
|
7956
|
-
return;
|
|
7891
|
+
if (!moving.current) return;
|
|
7957
7892
|
const move = touch.deltaY.current - startY;
|
|
7958
7893
|
const moveTime = Date.now() - startTime;
|
|
7959
7894
|
if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
|
|
@@ -7973,7 +7908,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
7973
7908
|
return nDistance;
|
|
7974
7909
|
};
|
|
7975
7910
|
const modifyStatus = (type4, val) => {
|
|
7976
|
-
const value =
|
|
7911
|
+
const value = defaultValue;
|
|
7977
7912
|
let index = -1;
|
|
7978
7913
|
if (value) {
|
|
7979
7914
|
options.some((item, idx) => {
|
|
@@ -7992,7 +7927,6 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
7992
7927
|
}
|
|
7993
7928
|
setCurrIndex(index === -1 ? 1 : index + 1);
|
|
7994
7929
|
const move = index === -1 ? 0 : index * lineSpacing.current;
|
|
7995
|
-
type4 && setChooseValue(-move);
|
|
7996
7930
|
setMove(-move);
|
|
7997
7931
|
};
|
|
7998
7932
|
const stopMomentum = () => {
|
|
@@ -8002,7 +7936,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
8002
7936
|
};
|
|
8003
7937
|
const preventDefault2 = (event, isStopPropagation) => {
|
|
8004
7938
|
event.preventDefault();
|
|
8005
|
-
|
|
7939
|
+
{
|
|
8006
7940
|
event.stopPropagation();
|
|
8007
7941
|
}
|
|
8008
7942
|
};
|
|
@@ -8025,7 +7959,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
8025
7959
|
useEffect(() => {
|
|
8026
7960
|
setScrollDistance(0);
|
|
8027
7961
|
transformY.current = 0;
|
|
8028
|
-
modifyStatus(
|
|
7962
|
+
modifyStatus();
|
|
8029
7963
|
return () => {
|
|
8030
7964
|
clearTimeout(timer);
|
|
8031
7965
|
};
|
|
@@ -8093,13 +8027,11 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
8093
8027
|
), /* @__PURE__ */ React__default.createElement("div", { className: "nut-picker-mask" }), /* @__PURE__ */ React__default.createElement("div", { className: "nut-picker-indicator", ref: listRef }));
|
|
8094
8028
|
};
|
|
8095
8029
|
const PickerPanel = React__default.forwardRef(InternalPickerPanel);
|
|
8096
|
-
const PickerPanel$1 = PickerPanel;
|
|
8097
8030
|
function useRefs() {
|
|
8098
8031
|
const refs = React__default.useRef([]);
|
|
8099
8032
|
const setRefs = React__default.useCallback(
|
|
8100
8033
|
(index) => (el) => {
|
|
8101
|
-
if (el)
|
|
8102
|
-
refs.current[index] = el;
|
|
8034
|
+
if (el) refs.current[index] = el;
|
|
8103
8035
|
},
|
|
8104
8036
|
[]
|
|
8105
8037
|
);
|
|
@@ -8188,8 +8120,7 @@ const InternalPicker = (props, ref) => {
|
|
|
8188
8120
|
const options2 = columnOptions.children;
|
|
8189
8121
|
const value = values[columnIndex2];
|
|
8190
8122
|
let index = options2.findIndex((columnItem) => columnItem.value === value);
|
|
8191
|
-
if (index === -1)
|
|
8192
|
-
index = 0;
|
|
8123
|
+
if (index === -1) index = 0;
|
|
8193
8124
|
columnOptions = columnOptions.children[index];
|
|
8194
8125
|
columnIndex2++;
|
|
8195
8126
|
formatted.push(options2);
|
|
@@ -8322,8 +8253,7 @@ const InternalPicker = (props, ref) => {
|
|
|
8322
8253
|
const confirm = () => {
|
|
8323
8254
|
let moving = false;
|
|
8324
8255
|
refs.forEach((ref2) => {
|
|
8325
|
-
if (ref2.moving)
|
|
8326
|
-
moving = true;
|
|
8256
|
+
if (ref2.moving) moving = true;
|
|
8327
8257
|
ref2.stopMomentum();
|
|
8328
8258
|
});
|
|
8329
8259
|
if (moving) {
|
|
@@ -8401,7 +8331,7 @@ const InternalPicker = (props, ref) => {
|
|
|
8401
8331
|
},
|
|
8402
8332
|
/* @__PURE__ */ React__default.createElement(View, { className: classes, style, ...rest, catchMove: true }, renderTitleBar(), typeof children !== "function" && children, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
|
|
8403
8333
|
return /* @__PURE__ */ React__default.createElement(
|
|
8404
|
-
PickerPanel
|
|
8334
|
+
PickerPanel,
|
|
8405
8335
|
{
|
|
8406
8336
|
ref: setRefs(index),
|
|
8407
8337
|
defaultValue: innerValue == null ? void 0 : innerValue[index],
|
|
@@ -8442,7 +8372,6 @@ const InternalPicker = (props, ref) => {
|
|
|
8442
8372
|
));
|
|
8443
8373
|
};
|
|
8444
8374
|
const Picker = React__default.forwardRef(InternalPicker);
|
|
8445
|
-
const Picker$1 = Picker;
|
|
8446
8375
|
const isDate = (val) => {
|
|
8447
8376
|
return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
|
|
8448
8377
|
};
|
|
@@ -8556,8 +8485,7 @@ const DatePicker = (props) => {
|
|
|
8556
8485
|
};
|
|
8557
8486
|
const ranges = () => {
|
|
8558
8487
|
const selected = new Date(selectedDate);
|
|
8559
|
-
if (!selected)
|
|
8560
|
-
return [];
|
|
8488
|
+
if (!selected) return [];
|
|
8561
8489
|
const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", selected);
|
|
8562
8490
|
const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", selected);
|
|
8563
8491
|
const result = [
|
|
@@ -8716,8 +8644,7 @@ const DatePicker = (props) => {
|
|
|
8716
8644
|
};
|
|
8717
8645
|
const getDateIndex = (type22) => {
|
|
8718
8646
|
const date4 = new Date(selectedDate);
|
|
8719
|
-
if (!selectedDate)
|
|
8720
|
-
return 0;
|
|
8647
|
+
if (!selectedDate) return 0;
|
|
8721
8648
|
if (type22 === "year") {
|
|
8722
8649
|
return date4.getFullYear();
|
|
8723
8650
|
}
|
|
@@ -8762,7 +8689,7 @@ const DatePicker = (props) => {
|
|
|
8762
8689
|
...rest
|
|
8763
8690
|
},
|
|
8764
8691
|
pickerOptions.length && /* @__PURE__ */ React__default.createElement(
|
|
8765
|
-
Picker
|
|
8692
|
+
Picker,
|
|
8766
8693
|
{
|
|
8767
8694
|
...pickerProps,
|
|
8768
8695
|
title,
|
|
@@ -8814,12 +8741,9 @@ function _setPrototypeOf(o, p) {
|
|
|
8814
8741
|
return _setPrototypeOf(o, p);
|
|
8815
8742
|
}
|
|
8816
8743
|
function _isNativeReflectConstruct() {
|
|
8817
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
8818
|
-
|
|
8819
|
-
if (
|
|
8820
|
-
return false;
|
|
8821
|
-
if (typeof Proxy === "function")
|
|
8822
|
-
return true;
|
|
8744
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
8745
|
+
if (Reflect.construct.sham) return false;
|
|
8746
|
+
if (typeof Proxy === "function") return true;
|
|
8823
8747
|
try {
|
|
8824
8748
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
8825
8749
|
}));
|
|
@@ -8837,8 +8761,7 @@ function _construct(Parent, args, Class) {
|
|
|
8837
8761
|
a2.push.apply(a2, args2);
|
|
8838
8762
|
var Constructor = Function.bind.apply(Parent2, a2);
|
|
8839
8763
|
var instance = new Constructor();
|
|
8840
|
-
if (Class2)
|
|
8841
|
-
_setPrototypeOf(instance, Class2.prototype);
|
|
8764
|
+
if (Class2) _setPrototypeOf(instance, Class2.prototype);
|
|
8842
8765
|
return instance;
|
|
8843
8766
|
};
|
|
8844
8767
|
}
|
|
@@ -8850,14 +8773,12 @@ function _isNativeFunction(fn) {
|
|
|
8850
8773
|
function _wrapNativeSuper(Class) {
|
|
8851
8774
|
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
8852
8775
|
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
8853
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
8854
|
-
return Class2;
|
|
8776
|
+
if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
|
|
8855
8777
|
if (typeof Class2 !== "function") {
|
|
8856
8778
|
throw new TypeError("Super expression must either be null or a function");
|
|
8857
8779
|
}
|
|
8858
8780
|
if (typeof _cache !== "undefined") {
|
|
8859
|
-
if (_cache.has(Class2))
|
|
8860
|
-
return _cache.get(Class2);
|
|
8781
|
+
if (_cache.has(Class2)) return _cache.get(Class2);
|
|
8861
8782
|
_cache.set(Class2, Wrapper);
|
|
8862
8783
|
}
|
|
8863
8784
|
function Wrapper() {
|
|
@@ -8890,8 +8811,7 @@ if (typeof process !== "undefined" && process.env && process.env.NODE_ENV !== "p
|
|
|
8890
8811
|
};
|
|
8891
8812
|
}
|
|
8892
8813
|
function convertFieldsError(errors) {
|
|
8893
|
-
if (!errors || !errors.length)
|
|
8894
|
-
return null;
|
|
8814
|
+
if (!errors || !errors.length) return null;
|
|
8895
8815
|
var fields = {};
|
|
8896
8816
|
errors.forEach(function(error) {
|
|
8897
8817
|
var field = error.field;
|
|
@@ -10569,10 +10489,8 @@ const InputNumber = (props) => {
|
|
|
10569
10489
|
return res;
|
|
10570
10490
|
};
|
|
10571
10491
|
const format2 = (value2) => {
|
|
10572
|
-
if (value2 === null)
|
|
10573
|
-
|
|
10574
|
-
if (typeof value2 === "string")
|
|
10575
|
-
value2 = parseFloat(value2);
|
|
10492
|
+
if (value2 === null) return "";
|
|
10493
|
+
if (typeof value2 === "string") value2 = parseFloat(value2);
|
|
10576
10494
|
const fixedValue = bound2(value2, Number(min), Number(max));
|
|
10577
10495
|
if (formatter) {
|
|
10578
10496
|
return formatter(fixedValue);
|
|
@@ -10616,22 +10534,18 @@ const InputNumber = (props) => {
|
|
|
10616
10534
|
}
|
|
10617
10535
|
};
|
|
10618
10536
|
const handleReduce = (e2) => {
|
|
10619
|
-
if (disabled)
|
|
10620
|
-
return;
|
|
10537
|
+
if (disabled) return;
|
|
10621
10538
|
onMinus == null ? void 0 : onMinus(e2);
|
|
10622
10539
|
update(true, e2);
|
|
10623
10540
|
};
|
|
10624
10541
|
const handlePlus = (e2) => {
|
|
10625
|
-
if (disabled)
|
|
10626
|
-
return;
|
|
10542
|
+
if (disabled) return;
|
|
10627
10543
|
onPlus == null ? void 0 : onPlus(e2);
|
|
10628
10544
|
update(false, e2);
|
|
10629
10545
|
};
|
|
10630
10546
|
const parseValue = (text) => {
|
|
10631
|
-
if (text === "")
|
|
10632
|
-
|
|
10633
|
-
if (text === "-")
|
|
10634
|
-
return null;
|
|
10547
|
+
if (text === "") return null;
|
|
10548
|
+
if (text === "-") return null;
|
|
10635
10549
|
return text;
|
|
10636
10550
|
};
|
|
10637
10551
|
const handleInputChange = (e2) => {
|
|
@@ -10748,8 +10662,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
10748
10662
|
}, [showPopup]);
|
|
10749
10663
|
const windowHeight = useMemo$1(() => getSystemInfoSync().windowHeight, []);
|
|
10750
10664
|
const updateItemOffset = useCallback(() => {
|
|
10751
|
-
if (!parent.lockScroll)
|
|
10752
|
-
return;
|
|
10665
|
+
if (!parent.lockScroll) return;
|
|
10753
10666
|
const p = parent.menuRef.current;
|
|
10754
10667
|
getRectByTaro(p).then((rect) => {
|
|
10755
10668
|
if (rect) {
|
|
@@ -10798,8 +10711,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
10798
10711
|
}, 100);
|
|
10799
10712
|
};
|
|
10800
10713
|
const isShow = () => {
|
|
10801
|
-
if (showPopup)
|
|
10802
|
-
return {};
|
|
10714
|
+
if (showPopup) return {};
|
|
10803
10715
|
return { display: "none" };
|
|
10804
10716
|
};
|
|
10805
10717
|
const getPosition = () => {
|
|
@@ -10863,7 +10775,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
10863
10775
|
}
|
|
10864
10776
|
},
|
|
10865
10777
|
/* @__PURE__ */ React__default.createElement(
|
|
10866
|
-
CSSTransition
|
|
10778
|
+
CSSTransition,
|
|
10867
10779
|
{
|
|
10868
10780
|
in: showPopup,
|
|
10869
10781
|
timeout: 100,
|
|
@@ -11005,10 +10917,8 @@ const Menu = (props) => {
|
|
|
11005
10917
|
(option) => option.value === (value !== void 0 ? value : defaultValue)
|
|
11006
10918
|
);
|
|
11007
10919
|
const finallyTitle = () => {
|
|
11008
|
-
if (title)
|
|
11009
|
-
|
|
11010
|
-
if (menuItemTitle && menuItemTitle[index])
|
|
11011
|
-
return menuItemTitle[index];
|
|
10920
|
+
if (title) return title;
|
|
10921
|
+
if (menuItemTitle && menuItemTitle[index]) return menuItemTitle[index];
|
|
11012
10922
|
if (selected && selected.length && selected[0].text)
|
|
11013
10923
|
return selected[0].text;
|
|
11014
10924
|
return "";
|
|
@@ -11027,8 +10937,7 @@ const Menu = (props) => {
|
|
|
11027
10937
|
style: { color: showMenuItem[index] ? activeColor : "" },
|
|
11028
10938
|
key: index,
|
|
11029
10939
|
onClick: () => {
|
|
11030
|
-
if ((!options || !options.length) && !child.props.children)
|
|
11031
|
-
return;
|
|
10940
|
+
if ((!options || !options.length) && !child.props.children) return;
|
|
11032
10941
|
!disabled && toggleMenuItem(index);
|
|
11033
10942
|
}
|
|
11034
10943
|
},
|
|
@@ -11096,8 +11005,7 @@ const NumberKeyboard = (props) => {
|
|
|
11096
11005
|
{ id: "0", type: "num" },
|
|
11097
11006
|
{ id: "delete", type: "delete" }
|
|
11098
11007
|
];
|
|
11099
|
-
if (!custom)
|
|
11100
|
-
return customKeys;
|
|
11008
|
+
if (!custom) return customKeys;
|
|
11101
11009
|
if (custom.length > 0) {
|
|
11102
11010
|
customKeys[0] = { id: custom[0], type: "custom" };
|
|
11103
11011
|
}
|
|
@@ -11389,8 +11297,7 @@ const Radio = (props) => {
|
|
|
11389
11297
|
return renderByShape(context && context.shape ? context.shape : shape);
|
|
11390
11298
|
};
|
|
11391
11299
|
const handleClick = (e2) => {
|
|
11392
|
-
if (disabled || checkedStatement)
|
|
11393
|
-
return;
|
|
11300
|
+
if (disabled || checkedStatement) return;
|
|
11394
11301
|
setCheckedStatement(!checkedStatement);
|
|
11395
11302
|
};
|
|
11396
11303
|
return /* @__PURE__ */ React__default.createElement(
|
|
@@ -11634,8 +11541,7 @@ const Range = (props) => {
|
|
|
11634
11541
|
touch.move(event);
|
|
11635
11542
|
setDragStatus("draging");
|
|
11636
11543
|
const rect = await getRectByTaro(root2.current);
|
|
11637
|
-
if (!rect)
|
|
11638
|
-
return;
|
|
11544
|
+
if (!rect) return;
|
|
11639
11545
|
let delta = touch.deltaX.current;
|
|
11640
11546
|
let total = rect.width;
|
|
11641
11547
|
let diff = delta / total * scope();
|
|
@@ -11781,8 +11687,7 @@ const Rate = (props) => {
|
|
|
11781
11687
|
const onClick = (e2, index) => {
|
|
11782
11688
|
e2.preventDefault();
|
|
11783
11689
|
e2.stopPropagation();
|
|
11784
|
-
if (disabled || readOnly)
|
|
11785
|
-
return;
|
|
11690
|
+
if (disabled || readOnly) return;
|
|
11786
11691
|
let value2 = 0;
|
|
11787
11692
|
if (!(index === 1 && score === index)) {
|
|
11788
11693
|
value2 = index;
|
|
@@ -11962,8 +11867,7 @@ const SearchBar = (props) => {
|
|
|
11962
11867
|
searchSelf && searchSelf.focus();
|
|
11963
11868
|
};
|
|
11964
11869
|
const change = (event) => {
|
|
11965
|
-
if (value === event.target.value)
|
|
11966
|
-
return;
|
|
11870
|
+
if (value === event.target.value) return;
|
|
11967
11871
|
onChange && (onChange == null ? void 0 : onChange(event.target.value, event));
|
|
11968
11872
|
setValue(event.target.value);
|
|
11969
11873
|
event.target.value === "" && forceFocus();
|
|
@@ -12008,23 +11912,19 @@ const SearchBar = (props) => {
|
|
|
12008
11912
|
onInputClick && onInputClick(e2);
|
|
12009
11913
|
};
|
|
12010
11914
|
const renderLeftIn = () => {
|
|
12011
|
-
if (!leftIn)
|
|
12012
|
-
return null;
|
|
11915
|
+
if (!leftIn) return null;
|
|
12013
11916
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
|
|
12014
11917
|
};
|
|
12015
11918
|
const renderLeft = () => {
|
|
12016
|
-
if (!backable && !left2)
|
|
12017
|
-
return null;
|
|
11919
|
+
if (!backable && !left2) return null;
|
|
12018
11920
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React__default.createElement(g$5, { size: "16" }) : left2);
|
|
12019
11921
|
};
|
|
12020
11922
|
const renderRightIn = () => {
|
|
12021
|
-
if (!rightIn)
|
|
12022
|
-
return null;
|
|
11923
|
+
if (!rightIn) return null;
|
|
12023
11924
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
|
|
12024
11925
|
};
|
|
12025
11926
|
const renderRight = () => {
|
|
12026
|
-
if (!right2)
|
|
12027
|
-
return null;
|
|
11927
|
+
if (!right2) return null;
|
|
12028
11928
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right` }, right2);
|
|
12029
11929
|
};
|
|
12030
11930
|
const handleClear = () => {
|
|
@@ -12378,8 +12278,7 @@ const Switch = (props) => {
|
|
|
12378
12278
|
return `${classPrefix2} ${value ? "nut-switch-open" : "nut-switch-close"} ${disabled ? `${classPrefix2}-disabled` : ""} ${`${classPrefix2}-base`} ${className}`;
|
|
12379
12279
|
};
|
|
12380
12280
|
const onClick = (event) => {
|
|
12381
|
-
if (disabled)
|
|
12382
|
-
return;
|
|
12281
|
+
if (disabled) return;
|
|
12383
12282
|
onChange && onChange(!value, event);
|
|
12384
12283
|
setValue(!value);
|
|
12385
12284
|
};
|
|
@@ -12449,17 +12348,13 @@ const TextArea = (props) => {
|
|
|
12449
12348
|
}
|
|
12450
12349
|
};
|
|
12451
12350
|
const handleFocus = (event) => {
|
|
12452
|
-
if (disabled)
|
|
12453
|
-
|
|
12454
|
-
if (readOnly)
|
|
12455
|
-
return;
|
|
12351
|
+
if (disabled) return;
|
|
12352
|
+
if (readOnly) return;
|
|
12456
12353
|
onFocus && onFocus(event);
|
|
12457
12354
|
};
|
|
12458
12355
|
const handleBlur = (event) => {
|
|
12459
|
-
if (disabled)
|
|
12460
|
-
|
|
12461
|
-
if (readOnly)
|
|
12462
|
-
return;
|
|
12356
|
+
if (disabled) return;
|
|
12357
|
+
if (readOnly) return;
|
|
12463
12358
|
onBlur && onBlur(event);
|
|
12464
12359
|
};
|
|
12465
12360
|
return /* @__PURE__ */ React__default.createElement(
|
|
@@ -13487,14 +13382,11 @@ const BaseDialog = (props) => {
|
|
|
13487
13382
|
);
|
|
13488
13383
|
const refObject = useLockScrollTaro(!!(visible && lockScroll));
|
|
13489
13384
|
const renderFooter = () => {
|
|
13490
|
-
if (footer === null)
|
|
13491
|
-
return "";
|
|
13385
|
+
if (footer === null) return "";
|
|
13492
13386
|
const handleCancel = (e2) => {
|
|
13493
13387
|
e2.stopPropagation();
|
|
13494
|
-
if (!(beforeCancel == null ? void 0 : beforeCancel()))
|
|
13495
|
-
|
|
13496
|
-
if (!(beforeClose == null ? void 0 : beforeClose()))
|
|
13497
|
-
return;
|
|
13388
|
+
if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
|
|
13389
|
+
if (!(beforeClose == null ? void 0 : beforeClose())) return;
|
|
13498
13390
|
onClose == null ? void 0 : onClose();
|
|
13499
13391
|
onCancel == null ? void 0 : onCancel();
|
|
13500
13392
|
};
|
|
@@ -13532,13 +13424,10 @@ const BaseDialog = (props) => {
|
|
|
13532
13424
|
));
|
|
13533
13425
|
};
|
|
13534
13426
|
const renderCloseIcon = () => {
|
|
13535
|
-
if (!closeIcon)
|
|
13536
|
-
return null;
|
|
13427
|
+
if (!closeIcon) return null;
|
|
13537
13428
|
const handleCancel = () => {
|
|
13538
|
-
if (!(beforeCancel == null ? void 0 : beforeCancel()))
|
|
13539
|
-
|
|
13540
|
-
if (!(beforeClose == null ? void 0 : beforeClose()))
|
|
13541
|
-
return;
|
|
13429
|
+
if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
|
|
13430
|
+
if (!(beforeClose == null ? void 0 : beforeClose())) return;
|
|
13542
13431
|
onClose == null ? void 0 : onClose();
|
|
13543
13432
|
onCancel == null ? void 0 : onCancel();
|
|
13544
13433
|
};
|
|
@@ -13572,7 +13461,7 @@ const BaseDialog = (props) => {
|
|
|
13572
13461
|
className: classNames("nut-dialog-overlay")
|
|
13573
13462
|
}
|
|
13574
13463
|
) : null, /* @__PURE__ */ React__default.createElement(
|
|
13575
|
-
CSSTransition
|
|
13464
|
+
CSSTransition,
|
|
13576
13465
|
{
|
|
13577
13466
|
in: visible,
|
|
13578
13467
|
timeout: 300,
|
|
@@ -14044,8 +13933,7 @@ const NoticeBar = (props) => {
|
|
|
14044
13933
|
const { childs, childCount } = useMemo$1(() => {
|
|
14045
13934
|
let childCount2 = 0;
|
|
14046
13935
|
const childs2 = React__default.Children.map(children, (child) => {
|
|
14047
|
-
if (!React__default.isValidElement(child))
|
|
14048
|
-
return null;
|
|
13936
|
+
if (!React__default.isValidElement(child)) return null;
|
|
14049
13937
|
childCount2++;
|
|
14050
13938
|
return child;
|
|
14051
13939
|
});
|
|
@@ -14168,8 +14056,7 @@ const NoticeBar = (props) => {
|
|
|
14168
14056
|
marginTop: animate ? `-${height}px` : ""
|
|
14169
14057
|
};
|
|
14170
14058
|
const init = (active2 = 0) => {
|
|
14171
|
-
if (!(container == null ? void 0 : container.current))
|
|
14172
|
-
return;
|
|
14059
|
+
if (!(container == null ? void 0 : container.current)) return;
|
|
14173
14060
|
setTimeout(async () => {
|
|
14174
14061
|
const rects = await getRectByTaro(container == null ? void 0 : container.current);
|
|
14175
14062
|
const _active = Math.max(Math.min(childCount - 1, active2), 0);
|
|
@@ -14207,8 +14094,7 @@ const NoticeBar = (props) => {
|
|
|
14207
14094
|
swiperRef.current.autoplayTimer = null;
|
|
14208
14095
|
};
|
|
14209
14096
|
const autoplay = () => {
|
|
14210
|
-
if (childCount <= 1)
|
|
14211
|
-
return;
|
|
14097
|
+
if (childCount <= 1) return;
|
|
14212
14098
|
stopAutoPlay();
|
|
14213
14099
|
swiperRef.current.autoplayTimer = setTimeout(
|
|
14214
14100
|
() => {
|
|
@@ -14219,8 +14105,7 @@ const NoticeBar = (props) => {
|
|
|
14219
14105
|
);
|
|
14220
14106
|
};
|
|
14221
14107
|
const move = ({ pace = 0, offset: offset2 = 0 }) => {
|
|
14222
|
-
if (childCount <= 1)
|
|
14223
|
-
return;
|
|
14108
|
+
if (childCount <= 1) return;
|
|
14224
14109
|
const targetActive = getActive(pace);
|
|
14225
14110
|
const targetOffset = getOffset(targetActive, offset2);
|
|
14226
14111
|
if (Array.isArray(children) && children[0] && targetOffset !== minOffset) {
|
|
@@ -14455,7 +14340,7 @@ const Notify = (props) => {
|
|
|
14455
14340
|
[`${classPrefix$d}-${type4}`]: true
|
|
14456
14341
|
});
|
|
14457
14342
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
14458
|
-
CSSTransition
|
|
14343
|
+
CSSTransition,
|
|
14459
14344
|
{
|
|
14460
14345
|
in: showNotify,
|
|
14461
14346
|
timeout: 300,
|
|
@@ -14771,10 +14656,10 @@ const Popover = (props) => {
|
|
|
14771
14656
|
Popover.displayName = "NutPopover";
|
|
14772
14657
|
function bound(position, min, max) {
|
|
14773
14658
|
let ret = position;
|
|
14774
|
-
|
|
14659
|
+
{
|
|
14775
14660
|
ret = Math.max(position, min);
|
|
14776
14661
|
}
|
|
14777
|
-
|
|
14662
|
+
{
|
|
14778
14663
|
ret = Math.min(ret, max);
|
|
14779
14664
|
}
|
|
14780
14665
|
return ret;
|
|
@@ -14783,8 +14668,7 @@ function rubberband(distance, dimension, constant) {
|
|
|
14783
14668
|
return distance * dimension * constant / (dimension + constant * distance);
|
|
14784
14669
|
}
|
|
14785
14670
|
function rubberbandIfOutOfBounds(position, min, max, dimension, constant = 0.15) {
|
|
14786
|
-
if (constant === 0)
|
|
14787
|
-
return bound(position, min, max);
|
|
14671
|
+
if (constant === 0) return bound(position, min, max);
|
|
14788
14672
|
if (position < min)
|
|
14789
14673
|
return -rubberband(min - position, dimension, constant) + min;
|
|
14790
14674
|
if (position > max)
|
|
@@ -14846,14 +14730,10 @@ const PullToRefresh = (p) => {
|
|
|
14846
14730
|
if (props.renderText) {
|
|
14847
14731
|
return (_a = props.renderText) == null ? void 0 : _a.call(props, status);
|
|
14848
14732
|
}
|
|
14849
|
-
if (status === "pulling")
|
|
14850
|
-
|
|
14851
|
-
if (status === "
|
|
14852
|
-
|
|
14853
|
-
if (status === "refreshing")
|
|
14854
|
-
return props.refreshingText;
|
|
14855
|
-
if (status === "complete")
|
|
14856
|
-
return props.completeText;
|
|
14733
|
+
if (status === "pulling") return props.pullingText;
|
|
14734
|
+
if (status === "canRelease") return props.canReleaseText;
|
|
14735
|
+
if (status === "refreshing") return props.refreshingText;
|
|
14736
|
+
if (status === "complete") return props.completeText;
|
|
14857
14737
|
return "";
|
|
14858
14738
|
};
|
|
14859
14739
|
const handleTouchStart = (e2) => {
|
|
@@ -14863,8 +14743,7 @@ const PullToRefresh = (p) => {
|
|
|
14863
14743
|
if (props.scrollTop > 0) {
|
|
14864
14744
|
return;
|
|
14865
14745
|
}
|
|
14866
|
-
if (status === "refreshing" || status === "complete")
|
|
14867
|
-
return;
|
|
14746
|
+
if (status === "refreshing" || status === "complete") return;
|
|
14868
14747
|
touch.move(e2);
|
|
14869
14748
|
if (touch.isVertical()) {
|
|
14870
14749
|
pullingRef.current = true;
|
|
@@ -15145,7 +15024,7 @@ function preventDefault(event, isStopPropagation) {
|
|
|
15145
15024
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
15146
15025
|
event.preventDefault();
|
|
15147
15026
|
}
|
|
15148
|
-
|
|
15027
|
+
{
|
|
15149
15028
|
event.stopPropagation();
|
|
15150
15029
|
}
|
|
15151
15030
|
}
|
|
@@ -15217,7 +15096,7 @@ const Swipe = forwardRef((props, instanceRef) => {
|
|
|
15217
15096
|
const newState = { ...state, dragging: true };
|
|
15218
15097
|
const isEdge = !opened || touch.deltaX.current * startOffset.current < 0;
|
|
15219
15098
|
if (isEdge) {
|
|
15220
|
-
preventDefault(event
|
|
15099
|
+
preventDefault(event);
|
|
15221
15100
|
}
|
|
15222
15101
|
newState.offset = rangeCalculation(
|
|
15223
15102
|
touch.deltaX.current + startOffset.current,
|
|
@@ -16232,8 +16111,7 @@ const InternalCountDown = (props, ref) => {
|
|
|
16232
16111
|
// 设置了 startTime 时,与 date.now() 的差异
|
|
16233
16112
|
});
|
|
16234
16113
|
const getTimeStamp = (timeStr) => {
|
|
16235
|
-
if (!timeStr)
|
|
16236
|
-
return Date.now();
|
|
16114
|
+
if (!timeStr) return Date.now();
|
|
16237
16115
|
let t = timeStr;
|
|
16238
16116
|
t = Number(t) > 0 ? +t : t.toString().replace(/-/g, "/");
|
|
16239
16117
|
return new Date(t).getTime();
|
|
@@ -16245,8 +16123,7 @@ const InternalCountDown = (props, ref) => {
|
|
|
16245
16123
|
stateRef.current.handleEndTime = endTime;
|
|
16246
16124
|
stateRef.current.diffTime = Date.now() - getTimeStamp(startTime);
|
|
16247
16125
|
}
|
|
16248
|
-
if (!stateRef.current.counting)
|
|
16249
|
-
stateRef.current.counting = true;
|
|
16126
|
+
if (!stateRef.current.counting) stateRef.current.counting = true;
|
|
16250
16127
|
tick();
|
|
16251
16128
|
};
|
|
16252
16129
|
const tick = () => {
|
|
@@ -16515,8 +16392,7 @@ const Ellipsis = (props) => {
|
|
|
16515
16392
|
]
|
|
16516
16393
|
},
|
|
16517
16394
|
(res) => {
|
|
16518
|
-
if (!res)
|
|
16519
|
-
return;
|
|
16395
|
+
if (!res) return;
|
|
16520
16396
|
lineH.current = pxToNumber(
|
|
16521
16397
|
res.lineHeight === "normal" ? lineHeight : res.lineHeight
|
|
16522
16398
|
);
|
|
@@ -16640,8 +16516,7 @@ const Ellipsis = (props) => {
|
|
|
16640
16516
|
return content.slice(cutoff, end);
|
|
16641
16517
|
};
|
|
16642
16518
|
const pxToNumber = (value) => {
|
|
16643
|
-
if (!value)
|
|
16644
|
-
return 0;
|
|
16519
|
+
if (!value) return 0;
|
|
16645
16520
|
const match = value.match(/^\d*(\.\d*)?/);
|
|
16646
16521
|
return match ? Number(match[0]) : 0;
|
|
16647
16522
|
};
|
|
@@ -16814,8 +16689,7 @@ const Swiper = forwardRef((props, ref) => {
|
|
|
16814
16689
|
setCurrent(defaultValue);
|
|
16815
16690
|
}, [defaultValue]);
|
|
16816
16691
|
const renderIndicator = () => {
|
|
16817
|
-
if (React__default.isValidElement(indicator))
|
|
16818
|
-
return indicator;
|
|
16692
|
+
if (React__default.isValidElement(indicator)) return indicator;
|
|
16819
16693
|
if (indicator) {
|
|
16820
16694
|
return /* @__PURE__ */ React__default.createElement(
|
|
16821
16695
|
"div",
|
|
@@ -17255,8 +17129,7 @@ const Pagination = (props) => {
|
|
|
17255
17129
|
return items;
|
|
17256
17130
|
}, [currentPage, itemSize, pageCount]);
|
|
17257
17131
|
const handleSelectPage = (curPage) => {
|
|
17258
|
-
if (curPage > pageCount || curPage < 1)
|
|
17259
|
-
return;
|
|
17132
|
+
if (curPage > pageCount || curPage < 1) return;
|
|
17260
17133
|
setCurrentPage(curPage);
|
|
17261
17134
|
};
|
|
17262
17135
|
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), ...rest }, (mode === "multi" || mode === "simple") && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
@@ -17415,8 +17288,7 @@ const Step = (props) => {
|
|
|
17415
17288
|
const dot = parent.propSteps.dot;
|
|
17416
17289
|
const getCurrentStatus = () => {
|
|
17417
17290
|
const index = value;
|
|
17418
|
-
if (index < +parent.propSteps.value)
|
|
17419
|
-
return "finish";
|
|
17291
|
+
if (index < +parent.propSteps.value) return "finish";
|
|
17420
17292
|
return index === +parent.propSteps.value ? "process" : "wait";
|
|
17421
17293
|
};
|
|
17422
17294
|
const handleClickStep = () => {
|
|
@@ -18071,22 +17943,13 @@ const updateItemSize = (positions, items, sizeKey, margin) => {
|
|
|
18071
17943
|
Array.from(items).forEach((item) => {
|
|
18072
17944
|
const index = Number(item.getAttribute("data-index"));
|
|
18073
17945
|
const styleVal = item.getAttribute("style");
|
|
18074
|
-
if (styleVal && styleVal.includes("none"))
|
|
18075
|
-
return;
|
|
17946
|
+
if (styleVal && styleVal.includes("none")) return;
|
|
18076
17947
|
let nowSize = item.getBoundingClientRect()[sizeKey];
|
|
18077
|
-
if (margin)
|
|
18078
|
-
nowSize += margin;
|
|
17948
|
+
if (margin) nowSize += margin;
|
|
18079
17949
|
const oldSize = positions[index][sizeKey];
|
|
18080
17950
|
const dValue = oldSize - nowSize;
|
|
18081
17951
|
if (dValue) {
|
|
18082
|
-
|
|
18083
|
-
newPos[index].right -= dValue;
|
|
18084
|
-
newPos[index][sizeKey] = nowSize;
|
|
18085
|
-
for (let k2 = index + 1; k2 < positions.length; k2++) {
|
|
18086
|
-
newPos[k2].left = positions[k2 - 1].right;
|
|
18087
|
-
newPos[k2].right -= dValue;
|
|
18088
|
-
}
|
|
18089
|
-
} else if (sizeKey === "height") {
|
|
17952
|
+
{
|
|
18090
17953
|
newPos[index].bottom -= dValue;
|
|
18091
17954
|
newPos[index][sizeKey] = nowSize;
|
|
18092
17955
|
for (let k2 = index + 1; k2 < positions.length; k2++) {
|
|
@@ -18152,8 +18015,7 @@ const VirtualList = (props) => {
|
|
|
18152
18015
|
});
|
|
18153
18016
|
}, [itemHeight, overscan, offSetSize]);
|
|
18154
18017
|
useEffect(() => {
|
|
18155
|
-
if (containerHeight)
|
|
18156
|
-
return;
|
|
18018
|
+
if (containerHeight) return;
|
|
18157
18019
|
setOffSetSize(getContainerHeight());
|
|
18158
18020
|
}, [containerHeight]);
|
|
18159
18021
|
useEffect(() => {
|
|
@@ -18177,11 +18039,9 @@ const VirtualList = (props) => {
|
|
|
18177
18039
|
return list.slice(start.current, Math.min(end(), list.length));
|
|
18178
18040
|
};
|
|
18179
18041
|
const updateTotalSize = useCallback(() => {
|
|
18180
|
-
if (!itemsRef.current)
|
|
18181
|
-
return;
|
|
18042
|
+
if (!itemsRef.current) return;
|
|
18182
18043
|
const items = itemsRef.current.children;
|
|
18183
|
-
if (!items.length)
|
|
18184
|
-
return;
|
|
18044
|
+
if (!items.length) return;
|
|
18185
18045
|
updateItemSize(positions, items, "height", margin);
|
|
18186
18046
|
}, [positions]);
|
|
18187
18047
|
const listScroll = (e2) => {
|
|
@@ -18975,8 +18835,7 @@ const AvatarCropper = (props) => {
|
|
|
18975
18835
|
const canvas2dDraw = useCallback(
|
|
18976
18836
|
(ctx) => {
|
|
18977
18837
|
const { src, width, height, x, y } = drawImage;
|
|
18978
|
-
if (!ctx || !src)
|
|
18979
|
-
return;
|
|
18838
|
+
if (!ctx || !src) return;
|
|
18980
18839
|
const {
|
|
18981
18840
|
moveX,
|
|
18982
18841
|
moveY,
|
|
@@ -19044,8 +18903,7 @@ const AvatarCropper = (props) => {
|
|
|
19044
18903
|
} = state;
|
|
19045
18904
|
const { cropperCanvasContext } = canvasAll;
|
|
19046
18905
|
const ctx = cropperCanvasContext;
|
|
19047
|
-
if (!ctx)
|
|
19048
|
-
return;
|
|
18906
|
+
if (!ctx) return;
|
|
19049
18907
|
ctx.clearRect(0, 0, displayWidth, displayHeight);
|
|
19050
18908
|
ctx.fillStyle = "#666";
|
|
19051
18909
|
ctx.setFillStyle("#666");
|
|
@@ -19414,7 +19272,7 @@ export {
|
|
|
19414
19272
|
NumberKeyboard,
|
|
19415
19273
|
Overlay,
|
|
19416
19274
|
Pagination,
|
|
19417
|
-
Picker
|
|
19275
|
+
Picker,
|
|
19418
19276
|
Popover,
|
|
19419
19277
|
Popup,
|
|
19420
19278
|
Price,
|