@nutui/nutui-react-taro 2.0.0-alpha.12 → 2.0.0-alpha.14
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 +30 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/AnimatingNumbers/style/style.css +1 -1
- package/dist/esm/AnimatingNumbers.js +99 -5
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/AvatarGroup.js +1 -1
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Barrage.js +2 -3
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/CircleProgress.js +2 -2
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/DatePicker.js +3 -3
- package/dist/esm/Ellipsis.js +2 -2
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/MenuItem.js +2 -2
- package/dist/esm/NoticeBar.js +2 -2
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +2 -2
- package/dist/esm/Popover/style/index.js +1 -1
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +9 -3
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/Range.js +2 -2
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/SideNavBar.js +3 -3
- package/dist/esm/SideNavBarItem/style/style.css +1 -1
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature.js +1 -1
- package/dist/esm/Sticky.js +2 -2
- package/dist/esm/SubSideNavBar/style/style.css +1 -1
- package/dist/esm/SubSideNavBar.js +2 -2
- package/dist/esm/Swipe.js +2 -2
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/TrendArrow/style/style.css +1 -1
- package/dist/esm/TrendArrow.js +2 -3
- package/dist/esm/Uploader.js +2 -2
- package/dist/esm/Video.js +3 -3
- package/dist/esm/WaterMark.js +2 -3
- package/dist/esm/{audio.taro-bbd39f93.js → audio.taro-73011657.js} +3 -3
- package/dist/esm/{barrage.taro-c8cb9864.js → barrage.taro-e87bc58e.js} +32 -32
- package/dist/esm/{circleprogress.taro-7149e09d.js → circleprogress.taro-9064d69c.js} +1 -1
- package/dist/esm/{datepicker.taro-65dbeceb.js → datepicker.taro-6304d59d.js} +1 -1
- package/dist/esm/{ellipsis.taro-f423affa.js → ellipsis.taro-5653d0b2.js} +12 -12
- package/dist/esm/{index-e3184f19.js → index-0a89a47b.js} +7 -1
- package/dist/esm/{menu.taro-cd0fef41.js → menu.taro-40d36e0a.js} +3 -3
- package/dist/esm/{menuitem.taro-6076bffa.js → menuitem.taro-6aa35a00.js} +1 -1
- package/dist/esm/{noticebar.taro-2f02b2ad.js → noticebar.taro-8d496dd6.js} +1 -1
- package/dist/esm/nutui-react.es.js +31 -31
- package/dist/esm/{picker.taro-0570ec32.js → picker.taro-8ba4624c.js} +44 -40
- package/dist/esm/popover.taro-ba6c323a.js +229 -0
- package/dist/esm/{range.taro-615e193a.js → range.taro-a1d1ad25.js} +1 -1
- package/dist/esm/{sidenavbar.taro-9f210df4.js → sidenavbar.taro-1aefdd3c.js} +13 -10
- package/dist/esm/sidenavbaritem.taro-7d805f92.js +13 -0
- package/dist/esm/{signature.taro-c57469aa.js → signature.taro-6e75a1ac.js} +1 -1
- package/dist/esm/{sticky.taro-f8ae8d5e.js → sticky.taro-6bc62a96.js} +2 -2
- package/dist/esm/{subsidenavbar.taro-abe07673.js → subsidenavbar.taro-47bb6e74.js} +10 -9
- package/dist/esm/{swipe.taro-de80fcd8.js → swipe.taro-966af6d3.js} +1 -1
- package/dist/esm/trendarrow.taro-253025d2.js +70 -0
- package/dist/esm/types/src/packages/animatingnumbers/countup.d.ts +7 -8
- package/dist/esm/types/src/packages/animatingnumbers/countup.taro.d.ts +7 -8
- package/dist/esm/types/src/packages/animatingnumbers/demo.d.ts +1 -0
- package/dist/esm/types/src/packages/animatingnumbers/demo.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/animatingnumbers/index.d.ts +1 -0
- package/dist/esm/types/src/packages/animatingnumbers/index.taro.d.ts +1 -0
- package/dist/{types/packages/avatargroup/avatargroup.d.ts → esm/types/src/packages/avatargroup/avatargroup.taro.d.ts} +1 -1
- package/dist/esm/types/src/packages/avatargroup/index.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/barrage/barrage.d.ts +6 -7
- package/dist/esm/types/src/packages/barrage/barrage.taro.d.ts +6 -7
- package/dist/esm/types/src/packages/barrage/index.d.ts +1 -0
- package/dist/esm/types/src/packages/barrage/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/button/button.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/input/input.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/menu/menu.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/picker/doc.en.d.ts +9 -9
- package/dist/esm/types/src/packages/popover/demo.d.ts +3 -2
- package/dist/esm/types/src/packages/popover/demo.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/popover/index.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/popover.d.ts +20 -9
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +20 -10
- package/dist/esm/types/src/packages/sidenavbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +5 -9
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.taro.d.ts +5 -9
- package/dist/esm/types/src/packages/sidenavbaritem/index.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbaritem/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.d.ts +3 -3
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +3 -3
- package/dist/esm/types/src/packages/subsidenavbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/subsidenavbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.d.ts +3 -3
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.taro.d.ts +3 -3
- package/dist/esm/types/src/packages/trendarrow/trendarrow.d.ts +8 -10
- package/dist/esm/types/src/packages/trendarrow/trendarrow.taro.d.ts +8 -10
- package/dist/esm/types/src/packages/video/index.d.ts +1 -0
- package/dist/esm/types/src/packages/video/index.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/video/video.d.ts +5 -9
- package/dist/esm/types/src/packages/video/video.taro.d.ts +6 -9
- package/dist/esm/types/src/packages/watermark/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/watermark/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/watermark/index.d.ts +1 -0
- package/dist/esm/types/src/packages/watermark/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/watermark/watermark.d.ts +3 -4
- package/dist/esm/types/src/packages/watermark/watermark.taro.d.ts +3 -4
- package/dist/esm/types/src/utils/index.d.ts +1 -0
- package/dist/esm/types/src/utils/use-click-away.d.ts +3 -0
- package/dist/esm/{uploader.taro-7e38fc37.js → uploader.taro-fbd05e20.js} +1 -1
- package/dist/esm/use-client-rect-2bb6c562.js +40 -0
- package/dist/esm/video.taro-2a26d7da.js +37 -0
- package/dist/esm/{watermark.taro-cef29c03.js → watermark.taro-e2245bb1.js} +12 -13
- 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 +551 -433
- package/dist/nutui.react.umd.js +551 -433
- package/dist/packages/animatingnumbers/countup.scss +0 -21
- package/dist/packages/barrage/barrage.scss +0 -13
- package/dist/packages/popover/popover.scss +158 -230
- package/dist/packages/popup/popup.scss +133 -46
- package/dist/packages/sidenavbar/sidenavbar.scss +10 -16
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +7 -19
- package/dist/packages/subsidenavbar/subsidenavbar.scss +10 -19
- package/dist/packages/trendarrow/trendarrow.scss +4 -3
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +37 -55
- package/dist/styles/variables.scss +47 -65
- package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +40 -8
- package/dist/types/packages/animate/animate.taro.d.ts +20 -4
- package/dist/types/packages/animatingnumbers/countup.taro.d.ts +7 -8
- package/dist/types/packages/animatingnumbers/index.taro.d.ts +1 -0
- package/dist/types/packages/audio/audio.taro.d.ts +25 -5
- package/dist/types/packages/avatar/avatar.taro.d.ts +45 -9
- package/dist/types/packages/avatargroup/avatargroup.taro.d.ts +45 -0
- package/dist/types/packages/avatargroup/index.taro.d.ts +1 -1
- package/dist/types/packages/backtop/backtop.taro.d.ts +20 -4
- package/dist/types/packages/badge/badge.taro.d.ts +30 -6
- package/dist/types/packages/barrage/barrage.taro.d.ts +32 -9
- package/dist/types/packages/barrage/index.taro.d.ts +1 -0
- package/dist/types/packages/button/button.taro.d.ts +50 -10
- package/dist/types/packages/cascader/cascader.taro.d.ts +80 -16
- package/dist/types/packages/cell/cell.taro.d.ts +30 -6
- package/dist/types/packages/cellgroup/cellgroup.taro.d.ts +15 -3
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +40 -8
- package/dist/types/packages/circleprogress/circleprogress.taro.d.ts +35 -7
- package/dist/types/packages/col/col.taro.d.ts +15 -3
- package/dist/types/packages/collapse/collapse.taro.d.ts +25 -5
- package/dist/types/packages/collapseitem/collapseitem.taro.d.ts +20 -4
- package/dist/types/packages/configprovider/configprovider.taro.d.ts +10 -2
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/countdown/countdown.taro.d.ts +65 -13
- package/dist/types/packages/divider/divider.taro.d.ts +10 -2
- package/dist/types/packages/drag/drag.taro.d.ts +15 -3
- package/dist/types/packages/elevator/elevator.taro.d.ts +45 -9
- package/dist/types/packages/ellipsis/ellipsis.taro.d.ts +45 -9
- package/dist/types/packages/empty/empty.taro.d.ts +20 -4
- package/dist/types/packages/fixednav/fixednav.taro.d.ts +50 -10
- package/dist/types/packages/grid/grid.taro.d.ts +35 -7
- package/dist/types/packages/griditem/griditem.taro.d.ts +5 -1
- package/dist/types/packages/imagepreview/imagepreview.taro.d.ts +50 -10
- package/dist/types/packages/indicator/indicator.taro.d.ts +15 -3
- package/dist/types/packages/input/input.taro.d.ts +101 -21
- package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +85 -17
- package/dist/types/packages/menu/menu.taro.d.ts +25 -5
- package/dist/types/packages/menuitem/menuitem.taro.d.ts +35 -7
- package/dist/types/packages/noticebar/noticebar.taro.d.ts +60 -12
- package/dist/types/packages/notify/notify.taro.d.ts +30 -6
- package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +50 -10
- package/dist/types/packages/overlay/overlay.taro.d.ts +40 -8
- package/dist/types/packages/pagination/pagination.taro.d.ts +55 -11
- package/dist/types/packages/picker/picker.taro.d.ts +55 -11
- package/dist/types/packages/popover/index.taro.d.ts +1 -0
- package/dist/types/packages/popover/popover.taro.d.ts +99 -13
- package/dist/types/packages/popup/popup.taro.d.ts +75 -15
- package/dist/types/packages/price/price.taro.d.ts +35 -7
- package/dist/types/packages/progress/progress.taro.d.ts +35 -7
- package/dist/types/packages/pulltorefresh/pulltorefresh.taro.d.ts +55 -11
- package/dist/types/packages/radio/radio.taro.d.ts +45 -9
- package/dist/types/packages/radiogroup/radiogroup.taro.d.ts +30 -6
- package/dist/types/packages/range/range.taro.d.ts +80 -16
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +72 -17
- package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +85 -17
- package/dist/types/packages/sidenavbar/index.taro.d.ts +1 -0
- package/dist/types/packages/sidenavbar/sidenavbar.taro.d.ts +33 -13
- package/dist/types/packages/sidenavbaritem/index.taro.d.ts +1 -0
- package/dist/types/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +3 -3
- package/dist/types/packages/skeleton/skeleton.taro.d.ts +35 -7
- package/dist/types/packages/step/step.taro.d.ts +20 -4
- package/dist/types/packages/steps/steps.taro.d.ts +15 -3
- package/dist/types/packages/sticky/sticky.taro.d.ts +25 -5
- package/dist/types/packages/subsidenavbar/index.taro.d.ts +1 -0
- package/dist/types/packages/subsidenavbar/subsidenavbar.taro.d.ts +3 -3
- package/dist/types/packages/swipe/swipe.taro.d.ts +47 -11
- package/dist/types/packages/swiper/swiper.taro.d.ts +35 -7
- package/dist/types/packages/switch/switch.taro.d.ts +30 -6
- package/dist/types/packages/tabbar/tabbar.taro.d.ts +35 -7
- package/dist/types/packages/tabbaritem/tabbaritem.taro.d.ts +10 -2
- package/dist/types/packages/tabpane/tabpane.taro.d.ts +15 -3
- package/dist/types/packages/tabs/tabs.taro.d.ts +60 -12
- package/dist/types/packages/textarea/textarea.taro.d.ts +60 -12
- package/dist/types/packages/trendarrow/trendarrow.taro.d.ts +57 -15
- package/dist/types/packages/uploader/uploader.taro.d.ts +165 -33
- package/dist/types/packages/video/index.taro.d.ts +2 -1
- package/dist/types/packages/video/video.taro.d.ts +41 -0
- package/dist/types/packages/virtuallist/virtuallist.taro.d.ts +40 -8
- package/dist/types/packages/watermark/index.taro.d.ts +1 -0
- package/dist/types/packages/watermark/watermark.taro.d.ts +72 -17
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/esm/animatingnumbers.taro-c2a52dbd.js +0 -103
- package/dist/esm/popover.taro-ad483372.js +0 -162
- package/dist/esm/sidenavbaritem.taro-32a45ce6.js +0 -12
- package/dist/esm/trendarrow.taro-0cf43935.js +0 -72
- package/dist/esm/types/src/packages/popover/Trigger.d.ts +0 -19
- package/dist/esm/types/src/packages/sidenavbar/type.d.ts +0 -34
- package/dist/esm/use-client-rect-f317804e.js +0 -10
- package/dist/esm/video-5d106e33.js +0 -73
- package/dist/types/packages/popover/Trigger.d.ts +0 -19
- package/dist/types/packages/video/video.d.ts +0 -24
- /package/dist/esm/{avatargroup-ad5ffb46.js → avatargroup.taro-ad5ffb46.js} +0 -0
- /package/dist/esm/{offsetContext-f32a9246.js → context-f32a9246.js} +0 -0
- /package/dist/esm/types/src/packages/sidenavbar/{offsetContext.d.ts → context.d.ts} +0 -0
- /package/dist/types/packages/sidenavbar/{offsetContext.d.ts → context.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useRef, useState, useEffect } from "react";
|
|
2
2
|
import { useReady, nextTick, createSelectorQuery } from "@tarojs/taro";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { g as getRectByTaro } from "./use-client-rect-
|
|
4
|
+
import { g as getRectByTaro } from "./use-client-rect-2bb6c562.js";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
@@ -18,7 +18,7 @@ const classPrefix = `nut-ellipsis`;
|
|
|
18
18
|
const Ellipsis = (props) => {
|
|
19
19
|
var _a, _b, _c, _d;
|
|
20
20
|
const { children, content, direction, rows, className, expandText, collapseText, symbol, lineHeight, width, onClick, onChange, ...rest } = { ...defaultProps, ...props };
|
|
21
|
-
|
|
21
|
+
const maxHeight = useRef(0);
|
|
22
22
|
const [exceeded, setExceeded] = useState(false);
|
|
23
23
|
const [expanded, setExpanded] = useState(false);
|
|
24
24
|
const ellipsis = useRef({
|
|
@@ -29,8 +29,8 @@ const Ellipsis = (props) => {
|
|
|
29
29
|
const rootContain = useRef(null);
|
|
30
30
|
const symbolContain = useRef(null);
|
|
31
31
|
const [contentCopy, setContentCopy] = useState(content);
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
const lineH = useRef(0);
|
|
33
|
+
const originHeight = useRef(0);
|
|
34
34
|
const refRandomId = Math.random().toString(36).slice(-8);
|
|
35
35
|
const widthRef = useRef("auto");
|
|
36
36
|
let widthBase = [14, 10, 7, 8.4, 10];
|
|
@@ -50,7 +50,7 @@ const Ellipsis = (props) => {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
useReady(() => init());
|
|
53
|
-
useEffect(() => init(), [content]);
|
|
53
|
+
useEffect(() => init(), [content, lineH.current, maxHeight.current, originHeight.current]);
|
|
54
54
|
const getSymbolInfo = async () => {
|
|
55
55
|
const refe = await getRectByTaro(symbolContain == null ? void 0 : symbolContain.current);
|
|
56
56
|
symbolTextWidth = refe.width ? Math.ceil(refe.width) : Math.ceil(widthBase[0] * 0.7921);
|
|
@@ -76,9 +76,9 @@ const Ellipsis = (props) => {
|
|
|
76
76
|
}, (res) => {
|
|
77
77
|
if (!res)
|
|
78
78
|
return;
|
|
79
|
-
lineH = pxToNumber(res.lineHeight === "normal" ? lineHeight : res.lineHeight);
|
|
80
|
-
maxHeight = Math.floor(lineH * (Number(rows) + 0.5) + pxToNumber(res.paddingTop) + pxToNumber(res.paddingBottom));
|
|
81
|
-
originHeight = pxToNumber(res.height);
|
|
79
|
+
lineH.current = pxToNumber(res.lineHeight === "normal" ? lineHeight : res.lineHeight);
|
|
80
|
+
maxHeight.current = Math.floor(lineH.current * (Number(rows) + 0.5) + pxToNumber(res.paddingTop) + pxToNumber(res.paddingBottom));
|
|
81
|
+
originHeight.current = pxToNumber(res.height);
|
|
82
82
|
widthRef.current = res.width;
|
|
83
83
|
const bsize = pxToNumber(res.fontSize);
|
|
84
84
|
widthBase = [
|
|
@@ -93,10 +93,10 @@ const Ellipsis = (props) => {
|
|
|
93
93
|
};
|
|
94
94
|
const calcEllipse = async () => {
|
|
95
95
|
const refe = await getRectByTaro(rootContain.current);
|
|
96
|
-
if (refe.height <= maxHeight) {
|
|
96
|
+
if (refe.height <= maxHeight.current) {
|
|
97
97
|
setExceeded(false);
|
|
98
98
|
} else {
|
|
99
|
-
const rowNum = Math.floor(content.length / (originHeight / lineH - 1));
|
|
99
|
+
const rowNum = Math.floor(content.length / (originHeight.current / lineH.current - 1));
|
|
100
100
|
if (direction === "middle") {
|
|
101
101
|
const end = content.length;
|
|
102
102
|
ellipsis.current.leading = tailorContent(0, rowNum * (Number(rows) + 0.5), "end");
|
|
@@ -117,7 +117,7 @@ const Ellipsis = (props) => {
|
|
|
117
117
|
const verifyEllipsis = async () => {
|
|
118
118
|
var _a2, _b2, _c2, _d2, _e, _f;
|
|
119
119
|
const refe = await getRectByTaro(rootContain.current);
|
|
120
|
-
if (refe && refe.height && refe.height > maxHeight) {
|
|
120
|
+
if (refe && refe.height && refe.height > maxHeight.current) {
|
|
121
121
|
if (direction === "end") {
|
|
122
122
|
ellipsis.current.leading = (_c2 = (_a2 = ellipsis.current) == null ? void 0 : _a2.leading) == null ? void 0 : _c2.slice(0, ((_b2 = ellipsis.current) == null ? void 0 : _b2.leading.length) - 1);
|
|
123
123
|
} else {
|
|
@@ -3,7 +3,13 @@ const isFunction = (val) => typeof val === "function";
|
|
|
3
3
|
const isPromise = (val) => {
|
|
4
4
|
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
5
5
|
};
|
|
6
|
+
const upperCaseFirst = (str) => {
|
|
7
|
+
var str = str.toLowerCase();
|
|
8
|
+
str = str.replace(/\b\w+\b/g, (word) => word.substring(0, 1).toUpperCase() + word.substring(1));
|
|
9
|
+
return str;
|
|
10
|
+
};
|
|
6
11
|
export {
|
|
7
12
|
isObject as a,
|
|
8
|
-
isPromise as i
|
|
13
|
+
isPromise as i,
|
|
14
|
+
upperCaseFirst as u
|
|
9
15
|
};
|
|
@@ -5,13 +5,13 @@ import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
|
5
5
|
const defaultProps = {
|
|
6
6
|
...ComponentDefaults,
|
|
7
7
|
activeColor: "",
|
|
8
|
-
|
|
8
|
+
closeOnOverlayClick: true,
|
|
9
9
|
scrollFixed: false,
|
|
10
10
|
lockScroll: true,
|
|
11
11
|
icon: null
|
|
12
12
|
};
|
|
13
13
|
const Menu = (props) => {
|
|
14
|
-
const { className, icon, scrollFixed, lockScroll,
|
|
14
|
+
const { className, icon, scrollFixed, lockScroll, closeOnOverlayClick, children, activeColor, ...rest } = {
|
|
15
15
|
...defaultProps,
|
|
16
16
|
...props
|
|
17
17
|
};
|
|
@@ -54,7 +54,7 @@ const Menu = (props) => {
|
|
|
54
54
|
index,
|
|
55
55
|
activeColor,
|
|
56
56
|
parent: {
|
|
57
|
-
|
|
57
|
+
closeOnOverlayClick,
|
|
58
58
|
lockScroll,
|
|
59
59
|
toggleMenuItem,
|
|
60
60
|
updateTitle,
|
|
@@ -4,7 +4,7 @@ import { getSystemInfoSync } from "@tarojs/taro";
|
|
|
4
4
|
import { CSSTransition } from "react-transition-group";
|
|
5
5
|
import { Check } from "@nutui/icons-react-taro";
|
|
6
6
|
import { O as Overlay } from "./overlay.taro-75012bd3.js";
|
|
7
|
-
import { g as getRectByTaro } from "./use-client-rect-
|
|
7
|
+
import { g as getRectByTaro } from "./use-client-rect-2bb6c562.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
9
9
|
const defaultProps = {
|
|
10
10
|
...ComponentDefaults,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useState, useMemo, useEffect } from "react";
|
|
2
2
|
import { Notice, Close } from "@nutui/icons-react-taro";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { g as getRectByTaro } from "./use-client-rect-
|
|
4
|
+
import { g as getRectByTaro } from "./use-client-rect-2bb6c562.js";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
@@ -10,14 +10,14 @@ import { G } from "./grid.taro-fbbd8618.js";
|
|
|
10
10
|
import { G as G2 } from "./griditem.taro-b0c37077.js";
|
|
11
11
|
import { L } from "./layout.taro-9659a928.js";
|
|
12
12
|
import { R } from "./row.taro-8b7febd4.js";
|
|
13
|
-
import { S } from "./sticky.taro-
|
|
13
|
+
import { S } from "./sticky.taro-6bc62a96.js";
|
|
14
14
|
import { B as B2 } from "./backtop.taro-7de36464.js";
|
|
15
15
|
import { E } from "./elevator.taro-df8fde9d.js";
|
|
16
16
|
import { F } from "./fixednav.taro-b9ecf0d5.js";
|
|
17
17
|
import { N } from "./navbar.taro-5e1a0835.js";
|
|
18
|
-
import { S as S2 } from "./sidenavbar.taro-
|
|
19
|
-
import { S as S3 } from "./sidenavbaritem.taro-
|
|
20
|
-
import { S as S4 } from "./subsidenavbar.taro-
|
|
18
|
+
import { S as S2 } from "./sidenavbar.taro-1aefdd3c.js";
|
|
19
|
+
import { S as S3 } from "./sidenavbaritem.taro-7d805f92.js";
|
|
20
|
+
import { S as S4 } from "./subsidenavbar.taro-47bb6e74.js";
|
|
21
21
|
import { T } from "./tabbar.taro-18eee41f.js";
|
|
22
22
|
import { T as T2 } from "./tabbaritem.taro-89646ca1.js";
|
|
23
23
|
import { T as T3 } from "./tabpane.taro-f8d92ece.js";
|
|
@@ -27,48 +27,48 @@ import { C as C5 } from "./calendar.taro-10a6cb11.js";
|
|
|
27
27
|
import { C as C6 } from "./calendaritem.taro-3e5f114e.js";
|
|
28
28
|
import { C as C7 } from "./cascader.taro-fb7a0230.js";
|
|
29
29
|
import { C as C8, a } from "./checkbox.taro-303276d7.js";
|
|
30
|
-
import { D as D2 } from "./datepicker.taro-
|
|
30
|
+
import { D as D2 } from "./datepicker.taro-6304d59d.js";
|
|
31
31
|
import { F as F2 } from "./form.taro-b06754e8.js";
|
|
32
32
|
import { F as F3 } from "./formitem.taro-b326809d.js";
|
|
33
33
|
import { I as I2 } from "./input.taro-27d686c9.js";
|
|
34
34
|
import { I as I3 } from "./inputnumber.taro-6657d2c1.js";
|
|
35
|
-
import { M } from "./menu.taro-
|
|
36
|
-
import { M as M2 } from "./menuitem.taro-
|
|
35
|
+
import { M } from "./menu.taro-40d36e0a.js";
|
|
36
|
+
import { M as M2 } from "./menuitem.taro-6aa35a00.js";
|
|
37
37
|
import { N as N2 } from "./numberkeyboard.taro-ad8afaf9.js";
|
|
38
|
-
import { P } from "./picker.taro-
|
|
38
|
+
import { P } from "./picker.taro-8ba4624c.js";
|
|
39
39
|
import { R as R2, a as a2 } from "./radio.taro-5d6ca4ad.js";
|
|
40
|
-
import { R as R3 } from "./range.taro-
|
|
40
|
+
import { R as R3 } from "./range.taro-a1d1ad25.js";
|
|
41
41
|
import { R as R4 } from "./rate.taro-78c66969.js";
|
|
42
42
|
import { S as S5 } from "./searchbar.taro-09468fff.js";
|
|
43
43
|
import { S as S6 } from "./shortpassword.taro-eabbde1b.js";
|
|
44
|
-
import { S as S7 } from "./signature.taro-
|
|
44
|
+
import { S as S7 } from "./signature.taro-6e75a1ac.js";
|
|
45
45
|
import { S as S8 } from "./switch.taro-f0da73a3.js";
|
|
46
46
|
import { T as T5 } from "./textarea.taro-c110565e.js";
|
|
47
|
-
import { U } from "./uploader.taro-
|
|
47
|
+
import { U } from "./uploader.taro-fbd05e20.js";
|
|
48
48
|
import { A as A2 } from "./actionsheet.taro-697a594b.js";
|
|
49
49
|
import { B as B3 } from "./badge.taro-872605bf.js";
|
|
50
50
|
import { B as B4 } from "./dialog.taro-290eb9a6.js";
|
|
51
51
|
import { D as D3 } from "./drag.taro-48e1ff38.js";
|
|
52
52
|
import { E as E2 } from "./empty.taro-ca792f57.js";
|
|
53
53
|
import { I as I4 } from "./infiniteloading.taro-f8f23ac6.js";
|
|
54
|
-
import { N as N3 } from "./noticebar.taro-
|
|
54
|
+
import { N as N3 } from "./noticebar.taro-8d496dd6.js";
|
|
55
55
|
import { N as N4 } from "./notify.taro-5768403d.js";
|
|
56
|
-
import { P as P2 } from "./popover.taro-
|
|
56
|
+
import { P as P2 } from "./popover.taro-ba6c323a.js";
|
|
57
57
|
import { P as P3 } from "./pulltorefresh.taro-5b36a881.js";
|
|
58
58
|
import { S as S9 } from "./skeleton.taro-0552c2ec.js";
|
|
59
|
-
import { S as S10 } from "./swipe.taro-
|
|
59
|
+
import { S as S10 } from "./swipe.taro-966af6d3.js";
|
|
60
60
|
import { P as P4 } from "./popup.taro-e756f3fc.js";
|
|
61
61
|
import { T as T6 } from "./toast.taro-b2937e7c.js";
|
|
62
62
|
import { A as A3 } from "./animate.taro-c8b29242.js";
|
|
63
|
-
import {
|
|
64
|
-
import { A as
|
|
65
|
-
import { A as
|
|
66
|
-
import { A as
|
|
67
|
-
import { C as C9 } from "./circleprogress.taro-
|
|
63
|
+
import { default as default2 } from "./AnimatingNumbers.js";
|
|
64
|
+
import { A as A4 } from "./audio.taro-73011657.js";
|
|
65
|
+
import { A as A5 } from "./avatar.taro-01536aff.js";
|
|
66
|
+
import { A as A6 } from "./avatargroup.taro-ad5ffb46.js";
|
|
67
|
+
import { C as C9 } from "./circleprogress.taro-9064d69c.js";
|
|
68
68
|
import { C as C10 } from "./collapse.taro-98577a29.js";
|
|
69
69
|
import { C as C11 } from "./collapseitem.taro-9451f40f.js";
|
|
70
70
|
import { C as C12 } from "./countdown.taro-c399cc08.js";
|
|
71
|
-
import { E as E3 } from "./ellipsis.taro-
|
|
71
|
+
import { E as E3 } from "./ellipsis.taro-5653d0b2.js";
|
|
72
72
|
import { I as I5 } from "./imagepreview.taro-daa5a84f.js";
|
|
73
73
|
import { I as I6 } from "./indicator.taro-edbc71df.js";
|
|
74
74
|
import { V } from "./virtuallist.taro-97d3403a.js";
|
|
@@ -81,14 +81,14 @@ import { S as S13 } from "./swiper.taro-4aeb8526.js";
|
|
|
81
81
|
import { S as S14 } from "./swiperitem.taro-ef7342e8.js";
|
|
82
82
|
import { T as T7 } from "./table.taro-15a55c5d.js";
|
|
83
83
|
import { T as T8 } from "./tag.taro-1b4134a5.js";
|
|
84
|
-
import { V as V2 } from "./video-
|
|
85
|
-
import { B as B5 } from "./barrage.taro-
|
|
84
|
+
import { V as V2 } from "./video.taro-2a26d7da.js";
|
|
85
|
+
import { B as B5 } from "./barrage.taro-e87bc58e.js";
|
|
86
86
|
import { C as C13 } from "./card.taro-2080f4d2.js";
|
|
87
87
|
import { T as T9 } from "./timedetail.taro-8d2acbbf.js";
|
|
88
88
|
import { T as T10 } from "./timepannel.taro-ee4c5dfa.js";
|
|
89
89
|
import { T as T11 } from "./timeselect.taro-069deedd.js";
|
|
90
|
-
import { T as T12 } from "./trendarrow.taro-
|
|
91
|
-
import { W } from "./watermark.taro-
|
|
90
|
+
import { T as T12 } from "./trendarrow.taro-253025d2.js";
|
|
91
|
+
import { W } from "./watermark.taro-e2245bb1.js";
|
|
92
92
|
import "react";
|
|
93
93
|
import "classnames";
|
|
94
94
|
import "@nutui/icons-react-taro";
|
|
@@ -96,16 +96,16 @@ import "./typings-11d83a22.js";
|
|
|
96
96
|
import "@tarojs/components";
|
|
97
97
|
import "./UserContext-ab42ba7f.js";
|
|
98
98
|
import "@tarojs/taro";
|
|
99
|
-
import "./use-client-rect-
|
|
99
|
+
import "./use-client-rect-2bb6c562.js";
|
|
100
100
|
import "./can-use-dom-0e539bd3.js";
|
|
101
|
-
import "./
|
|
101
|
+
import "./context-f32a9246.js";
|
|
102
102
|
import "./use-props-value-7ac1b1b5.js";
|
|
103
103
|
import "./bem-cdccae08.js";
|
|
104
104
|
import "@bem-react/classname";
|
|
105
105
|
import "./ConfigProvider.js";
|
|
106
106
|
import "react-transition-group";
|
|
107
107
|
import "./use-touch-ff43512c.js";
|
|
108
|
-
import "./index-
|
|
108
|
+
import "./index-0a89a47b.js";
|
|
109
109
|
import "react-dom";
|
|
110
110
|
import "./context-d0fccf11.js";
|
|
111
111
|
import "./context-ab42ba7f.js";
|
|
@@ -113,10 +113,10 @@ export {
|
|
|
113
113
|
A2 as ActionSheet,
|
|
114
114
|
A as Address,
|
|
115
115
|
A3 as Animate,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
default2 as AnimatingNumbers,
|
|
117
|
+
A4 as Audio,
|
|
118
|
+
A5 as Avatar,
|
|
119
|
+
A6 as AvatarGroup,
|
|
120
120
|
B2 as BackTop,
|
|
121
121
|
B3 as Badge,
|
|
122
122
|
B5 as Barrage,
|
|
@@ -4,7 +4,7 @@ import Taro from "@tarojs/taro";
|
|
|
4
4
|
import { View, PickerView, PickerViewColumn } from "@tarojs/components";
|
|
5
5
|
import { P as Popup } from "./popup.taro-e756f3fc.js";
|
|
6
6
|
import { u as useTouch } from "./use-touch-ff43512c.js";
|
|
7
|
-
import { g as getRectByTaro } from "./use-client-rect-
|
|
7
|
+
import { g as getRectByTaro } from "./use-client-rect-2bb6c562.js";
|
|
8
8
|
import { c as canUseDom } from "./can-use-dom-0e539bd3.js";
|
|
9
9
|
import { u as useConfig } from "./configprovider.taro-25758d9f.js";
|
|
10
10
|
import { u as usePropsValue } from "./use-props-value-7ac1b1b5.js";
|
|
@@ -250,7 +250,7 @@ const defaultProps = {
|
|
|
250
250
|
};
|
|
251
251
|
const InternalPicker = (props, ref) => {
|
|
252
252
|
const { locale } = useConfig();
|
|
253
|
-
const { visible, title, options = [], defaultValue = [], className, style, threeDimensional, duration, onConfirm, onClose, afterClose, onChange, ...rest } = { ...defaultProps, ...props };
|
|
253
|
+
const { children, visible, title, options = [], defaultValue = [], className, style, threeDimensional, duration, onConfirm, onClose, afterClose, onChange, ...rest } = { ...defaultProps, ...props };
|
|
254
254
|
const classPrefix = "nut-picker";
|
|
255
255
|
const classes = classNames(classPrefix, className);
|
|
256
256
|
const [selectedValue, setSelectedValue] = usePropsValue({
|
|
@@ -262,6 +262,7 @@ const InternalPicker = (props, ref) => {
|
|
|
262
262
|
(_a = props.onConfirm) == null ? void 0 : _a.call(props, setSelectedOptions(), val);
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
|
+
const [innerValue, setInnerValue] = useState(selectedValue);
|
|
265
266
|
const [currentValue, setCurrentValue] = useState([]);
|
|
266
267
|
const [columnIndex, setColumnIndex] = useState(0);
|
|
267
268
|
const pickerRef = useRef(null);
|
|
@@ -300,40 +301,49 @@ const InternalPicker = (props, ref) => {
|
|
|
300
301
|
}
|
|
301
302
|
return "single";
|
|
302
303
|
};
|
|
303
|
-
const normalListData = () => {
|
|
304
|
+
const normalListData = (innerValue2) => {
|
|
304
305
|
const type = columnsType();
|
|
305
306
|
switch (type) {
|
|
306
307
|
case "multiple":
|
|
307
308
|
return options;
|
|
308
309
|
case "cascade":
|
|
309
|
-
return formatCascade(options,
|
|
310
|
+
return formatCascade(options, innerValue2);
|
|
310
311
|
default:
|
|
311
312
|
return [options];
|
|
312
313
|
}
|
|
313
314
|
};
|
|
314
315
|
const init = () => {
|
|
315
|
-
const normalData = normalListData();
|
|
316
|
+
const normalData = normalListData(innerValue);
|
|
316
317
|
setColumnsList(normalData);
|
|
317
318
|
const data = [];
|
|
318
319
|
normalData.length > 0 && normalData.map((item) => {
|
|
319
320
|
item[0] && data.push(item[0].value);
|
|
320
321
|
return item;
|
|
321
322
|
});
|
|
322
|
-
if (!
|
|
323
|
-
|
|
323
|
+
if (!innerValue.length && innerValue.length === 0) {
|
|
324
|
+
setInnerValue([...data]);
|
|
324
325
|
}
|
|
325
326
|
};
|
|
327
|
+
useEffect(() => {
|
|
328
|
+
setInnerValue(innerValue !== selectedValue ? selectedValue : innerValue);
|
|
329
|
+
}, [visible]);
|
|
330
|
+
useEffect(() => {
|
|
331
|
+
if (visible) {
|
|
332
|
+
init();
|
|
333
|
+
}
|
|
334
|
+
}, [options, visible]);
|
|
326
335
|
useEffect(() => {
|
|
327
336
|
if (!visible) {
|
|
328
337
|
return;
|
|
329
338
|
}
|
|
330
|
-
|
|
331
|
-
|
|
339
|
+
Taro.getEnv() !== "WEB" && setCurrentValue(defaultValuesConvert());
|
|
340
|
+
onChange && onChange(setSelectedOptions(), innerValue, columnIndex);
|
|
341
|
+
}, [innerValue, columnsList, visible]);
|
|
332
342
|
const setSelectedOptions = () => {
|
|
333
343
|
const options2 = [];
|
|
334
344
|
let currOptions = [];
|
|
335
345
|
columnsList.forEach((columnOptions, index) => {
|
|
336
|
-
currOptions = columnOptions.filter((item) => item.value ===
|
|
346
|
+
currOptions = columnOptions.filter((item) => item.value === innerValue[index]);
|
|
337
347
|
if (currOptions[0]) {
|
|
338
348
|
options2.push(currOptions[0]);
|
|
339
349
|
} else {
|
|
@@ -344,8 +354,8 @@ const InternalPicker = (props, ref) => {
|
|
|
344
354
|
};
|
|
345
355
|
const defaultValuesConvert = () => {
|
|
346
356
|
const defaultIndexs = [];
|
|
347
|
-
if (
|
|
348
|
-
|
|
357
|
+
if (innerValue.length > 0) {
|
|
358
|
+
innerValue.forEach((value, index) => {
|
|
349
359
|
var _a;
|
|
350
360
|
for (let i = 0; i < ((_a = columnsList == null ? void 0 : columnsList[index]) == null ? void 0 : _a.length); i++) {
|
|
351
361
|
if (columnsList[index][i].value === value) {
|
|
@@ -362,37 +372,30 @@ const InternalPicker = (props, ref) => {
|
|
|
362
372
|
}
|
|
363
373
|
return defaultIndexs;
|
|
364
374
|
};
|
|
365
|
-
useEffect(() => {
|
|
366
|
-
if (!visible) {
|
|
367
|
-
return;
|
|
368
|
-
}
|
|
369
|
-
Taro.getEnv() !== "WEB" && setCurrentValue(defaultValuesConvert());
|
|
370
|
-
onChange && onChange(setSelectedOptions(), selectedValue, columnIndex);
|
|
371
|
-
if (isConfirmEvent.current) {
|
|
372
|
-
isConfirmEvent.current = false;
|
|
373
|
-
onConfirm && onConfirm(setSelectedOptions(), selectedValue);
|
|
374
|
-
}
|
|
375
|
-
}, [selectedValue, columnsList, visible]);
|
|
376
375
|
const chooseItem = (columnOptions, columnIndex2) => {
|
|
377
376
|
var _a, _b;
|
|
377
|
+
const values = [];
|
|
378
|
+
const start = columnIndex2;
|
|
378
379
|
if (columnOptions && Object.keys(columnOptions).length) {
|
|
379
|
-
if (
|
|
380
|
+
if (values[columnIndex2] !== columnOptions.value) {
|
|
380
381
|
if (columnsType() === "cascade") {
|
|
381
|
-
|
|
382
|
-
setSelectedValue([...selectedValue]);
|
|
382
|
+
values[columnIndex2] = columnOptions.value || "";
|
|
383
383
|
while ((_a = columnOptions == null ? void 0 : columnOptions.children) == null ? void 0 : _a[0]) {
|
|
384
|
-
|
|
385
|
-
setSelectedValue([...selectedValue]);
|
|
384
|
+
values[columnIndex2 + 1] = columnOptions.children[0].value;
|
|
386
385
|
columnIndex2++;
|
|
387
386
|
columnOptions = columnOptions.children[0];
|
|
388
387
|
}
|
|
389
388
|
if ((_b = columnOptions == null ? void 0 : columnOptions.children) == null ? void 0 : _b.length) {
|
|
390
|
-
|
|
391
|
-
setSelectedValue([...selectedValue]);
|
|
389
|
+
values[columnIndex2 + 1] = "";
|
|
392
390
|
}
|
|
393
|
-
|
|
391
|
+
const combineResult = [
|
|
392
|
+
...innerValue.slice(0, start),
|
|
393
|
+
...values.splice(start)
|
|
394
|
+
];
|
|
395
|
+
setInnerValue(combineResult);
|
|
396
|
+
setColumnsList(normalListData(combineResult));
|
|
394
397
|
} else {
|
|
395
|
-
|
|
398
|
+
setInnerValue((data) => {
|
|
396
399
|
const cdata = [...data];
|
|
397
400
|
cdata[columnIndex2] = Object.prototype.hasOwnProperty.call(columnOptions, "value") ? columnOptions.value : "";
|
|
398
401
|
return cdata;
|
|
@@ -403,16 +406,16 @@ const InternalPicker = (props, ref) => {
|
|
|
403
406
|
}
|
|
404
407
|
};
|
|
405
408
|
const confirm = () => {
|
|
406
|
-
let
|
|
409
|
+
let moving = false;
|
|
407
410
|
refs.forEach((ref2) => {
|
|
408
411
|
if (ref2.moving)
|
|
409
|
-
|
|
412
|
+
moving = true;
|
|
410
413
|
ref2.stopMomentum();
|
|
411
414
|
});
|
|
412
|
-
if (
|
|
415
|
+
if (moving) {
|
|
413
416
|
isConfirmEvent.current = true;
|
|
414
417
|
} else {
|
|
415
|
-
|
|
418
|
+
setSelectedValue(innerValue);
|
|
416
419
|
closePicker();
|
|
417
420
|
}
|
|
418
421
|
setTimeout(() => {
|
|
@@ -420,8 +423,8 @@ const InternalPicker = (props, ref) => {
|
|
|
420
423
|
}, 0);
|
|
421
424
|
};
|
|
422
425
|
const closePicker = () => {
|
|
423
|
-
onClose && onClose(setSelectedOptions(),
|
|
424
|
-
afterClose && afterClose(setSelectedOptions(),
|
|
426
|
+
onClose && onClose(setSelectedOptions(), innerValue);
|
|
427
|
+
afterClose && afterClose(setSelectedOptions(), innerValue, pickerRef);
|
|
425
428
|
};
|
|
426
429
|
const renderTitleBar = () => {
|
|
427
430
|
return React.createElement(
|
|
@@ -432,7 +435,7 @@ const InternalPicker = (props, ref) => {
|
|
|
432
435
|
React.createElement("span", { className: `${classPrefix}__confirm-btn`, onClick: confirm }, locale.confirm)
|
|
433
436
|
);
|
|
434
437
|
};
|
|
435
|
-
const [
|
|
438
|
+
const [, setPickingStatus] = useState(false);
|
|
436
439
|
const pickerStart = () => {
|
|
437
440
|
setPickingStatus(true);
|
|
438
441
|
};
|
|
@@ -460,8 +463,9 @@ const InternalPicker = (props, ref) => {
|
|
|
460
463
|
View,
|
|
461
464
|
{ className: classes, style, ...rest, catchMove: true },
|
|
462
465
|
renderTitleBar(),
|
|
466
|
+
children,
|
|
463
467
|
React.createElement("div", { className: `${classPrefix}__panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
|
|
464
|
-
return React.createElement(PickerPanel$1, { ref: setRefs(index), defaultValue:
|
|
468
|
+
return React.createElement(PickerPanel$1, { ref: setRefs(index), defaultValue: innerValue == null ? void 0 : innerValue[index], options: item, threeDimensional, chooseItem: (value, index2) => chooseItem(value, index2), duration, key: index, keyIndex: index, itemShow: visible });
|
|
465
469
|
}) : React.createElement(PickerView, { ref: pickerRef, value: currentValue, immediateChange: true, onPickStart: pickerStart, onChange: pickerChange, onPickEnd: pickerEnd, className: "nut-picker-view-panel" }, columnsList == null ? void 0 : columnsList.map((columnOptions, index) => {
|
|
466
470
|
return React.createElement(PickerViewColumn, { key: `col${index}` }, columnOptions.map((item, index2) => {
|
|
467
471
|
return React.createElement(
|