@nutui/nutui-react-taro 2.3.1 → 2.3.2
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 +12 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +4 -4
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +5 -5
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/AvatarCropper.js +2 -2
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Calendar.js +4 -4
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cascader.js +4 -4
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/DatePicker.js +5 -5
- package/dist/esm/Dialog.js +3 -3
- package/dist/esm/FixedNav.js +3 -3
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/ImagePreview.js +4 -4
- package/dist/esm/Menu.js +4 -4
- package/dist/esm/MenuItem.js +3 -3
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/NumberKeyboard.js +4 -4
- package/dist/esm/Overlay.js +2 -2
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +4 -4
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +4 -4
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/Popup.js +3 -3
- package/dist/esm/PullToRefresh.js +2 -2
- package/dist/esm/Range.js +2 -2
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +4 -4
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/SideNavBar.js +4 -4
- package/dist/esm/Swipe.js +2 -2
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/TimeSelect.js +4 -4
- package/dist/esm/Toast.js +3 -3
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/Tour.js +5 -5
- package/dist/esm/{actionsheet.taro-1SIVktd6.js → actionsheet.taro-gfhQciJ4.js} +1 -1
- package/dist/esm/{address.taro-0oHDMjvi.js → address.taro-DwplktN_.js} +2 -2
- package/dist/esm/{audio.taro-TwVp1boF.js → audio.taro-Z23xRUZF.js} +1 -1
- package/dist/esm/{avatarcropper.taro-xTaDqZuh.js → avatarcropper.taro-H77gHZmo.js} +1 -1
- package/dist/esm/{calendar.taro-UTNDbfde.js → calendar.taro-Tuy-Kr-q.js} +1 -1
- package/dist/esm/{cascader.taro-TXNqGqoz.js → cascader.taro-gspYp5PT.js} +2 -2
- package/dist/esm/{datepicker.taro-XBRswbnv.js → datepicker.taro-a2BIZNUH.js} +1 -1
- package/dist/esm/{dialog.taro-8KQTLwUg.js → dialog.taro-UQN2mJZR.js} +1 -1
- package/dist/esm/{fixednav.taro-Y7yk8THh.js → fixednav.taro-7OfzwFBE.js} +2 -2
- package/dist/esm/{imagepreview.taro-RbAHvSoF.js → imagepreview.taro-DKFWoFNy.js} +1 -1
- package/dist/esm/{menu.taro-EytwZPzh.js → menu.taro-ODwHYGFM.js} +1 -1
- package/dist/esm/{menuitem.taro-nLVATeRi.js → menuitem.taro-9nyTDLpt.js} +1 -1
- package/dist/esm/{numberkeyboard.taro-5LPPRBFw.js → numberkeyboard.taro-gJhSoXsl.js} +1 -1
- package/dist/esm/nutui-react.es.js +26 -26
- package/dist/esm/{overlay.taro-Iqz9hm-3.js → overlay.taro-HsGeVyPh.js} +1 -1
- package/dist/esm/{picker.taro-77giqVEH.js → picker.taro-4lJuJ4rX.js} +3 -3
- package/dist/esm/{popover.taro-dXJi9liV.js → popover.taro-N1dZfUxf.js} +1 -1
- package/dist/esm/{popup.taro-KqkDIedA.js → popup.taro-2FdJu1kg.js} +1 -1
- package/dist/esm/{pulltorefresh.taro-oRUwveUX.js → pulltorefresh.taro-GxK5LBIE.js} +1 -1
- package/dist/esm/{range.taro-708Gnv2w.js → range.taro-S6WTiP1X.js} +1 -1
- package/dist/esm/{shortpassword.taro-641T08nE.js → shortpassword.taro-uFeVULsY.js} +1 -1
- package/dist/esm/{sidenavbar.taro-jJvAbDgx.js → sidenavbar.taro-J5SEKQIh.js} +1 -1
- package/dist/esm/{swipe.taro-AVgWtTnP.js → swipe.taro-p2ONOq1o.js} +1 -1
- package/dist/esm/{timeselect.taro-HE0xZtNu.js → timeselect.taro-7FWR9oaJ.js} +1 -1
- package/dist/esm/{toast.taro-eCBeePr8.js → toast.taro-xnEQSCDJ.js} +2 -2
- package/dist/esm/{tour.taro-omnaIavI.js → tour.taro-_3C-szH1.js} +1 -1
- package/dist/esm/types/src/packages/address/address.d.ts +1 -1
- package/dist/esm/types/src/packages/address/address.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/address/existRender.d.ts +1 -1
- package/dist/esm/types/src/packages/address/existRender.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/animate.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/animate.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/index.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/index.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/calendar/calendar.d.ts +1 -1
- package/dist/esm/types/src/packages/calendar/calendar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/calendar/utils.d.ts +1 -1
- package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +1 -1
- package/dist/esm/types/src/packages/calendaritem/calendaritem.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +1 -1
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +2 -6
- package/dist/esm/types/src/packages/fixednav/fixednav.taro.d.ts +2 -6
- package/dist/esm/types/src/packages/fixednav/index.d.ts +2 -1
- package/dist/esm/types/src/packages/fixednav/index.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/fixednav/types.d.ts +12 -0
- package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +1 -1
- package/dist/esm/types/src/packages/radiogroup/radiogroup.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/utils.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +1 -1
- package/dist/esm/types/src/utils/use-touch.d.ts +2 -0
- package/dist/esm/{use-touch-DODa8svc.js → use-touch-BUFdkOSA.js} +7 -0
- 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 +13 -14
- package/dist/nutui.react.umd.js +13 -14
- package/dist/packages/cascader/cascader.scss +1 -6
- package/dist/packages/popup/popup.scss +2 -2
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/address/address.d.ts +1 -1
- package/dist/types/packages/address/address.taro.d.ts +1 -1
- package/dist/types/packages/address/existRender.d.ts +1 -1
- package/dist/types/packages/address/existRender.taro.d.ts +1 -1
- package/dist/types/packages/animate/animate.d.ts +1 -1
- package/dist/types/packages/animate/animate.taro.d.ts +1 -1
- package/dist/types/packages/animate/index.d.ts +1 -1
- package/dist/types/packages/animate/index.taro.d.ts +1 -1
- package/dist/types/packages/calendar/calendar.d.ts +1 -1
- package/dist/types/packages/calendar/calendar.taro.d.ts +1 -1
- package/dist/types/packages/calendar/utils.d.ts +1 -1
- package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
- package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +1 -1
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +1 -1
- package/dist/types/packages/fixednav/fixednav.d.ts +2 -6
- package/dist/types/packages/fixednav/fixednav.taro.d.ts +2 -6
- package/dist/types/packages/fixednav/index.d.ts +2 -1
- package/dist/types/packages/fixednav/index.taro.d.ts +2 -1
- package/dist/types/packages/fixednav/types.d.ts +12 -0
- package/dist/types/packages/radiogroup/radiogroup.d.ts +1 -1
- package/dist/types/packages/radiogroup/radiogroup.taro.d.ts +1 -1
- package/dist/types/packages/virtuallist/utils.d.ts +1 -1
- package/dist/types/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/types/packages/virtuallist/virtuallist.taro.d.ts +1 -1
- package/dist/types/utils/use-touch.d.ts +2 -0
- package/package.json +1 -1
- /package/dist/esm/types/src/packages/address/{type.d.ts → types.d.ts} +0 -0
- /package/dist/esm/types/src/packages/animate/{type.d.ts → types.d.ts} +0 -0
- /package/dist/esm/types/src/packages/calendar/{type.d.ts → types.d.ts} +0 -0
- /package/dist/esm/types/src/packages/checkboxgroup/{type.d.ts → types.d.ts} +0 -0
- /package/dist/esm/types/src/packages/radiogroup/{type.d.ts → types.d.ts} +0 -0
- /package/dist/esm/types/src/packages/virtuallist/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/address/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/animate/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/calendar/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/checkboxgroup/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/radiogroup/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/virtuallist/{type.d.ts → types.d.ts} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Key, ReactNode } from 'react';
|
|
2
|
+
export type FixedNavDirection = 'right' | 'left';
|
|
3
|
+
export type FixedNavPosition = {
|
|
4
|
+
top?: string;
|
|
5
|
+
bottom?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface FixedNavItem {
|
|
8
|
+
id: Key;
|
|
9
|
+
num?: number;
|
|
10
|
+
text: ReactNode;
|
|
11
|
+
icon: ReactNode;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PositionType, Data } from './
|
|
1
|
+
import { PositionType, Data } from './types';
|
|
2
2
|
declare const initPositinoCache: (reaItemSize: number, length?: number) => PositionType[];
|
|
3
3
|
declare const getListTotalSize: (positions: Array<PositionType>, horizontal: true | false) => number;
|
|
4
4
|
declare const binarySearch: (positionsList: Array<PositionType>, horizontal: true | false, value?: number) => number;
|
|
@@ -4,10 +4,12 @@ export declare function useTouch(): {
|
|
|
4
4
|
move: (event: React.TouchEvent<HTMLElement>) => void;
|
|
5
5
|
start: (event: React.TouchEvent<HTMLElement>) => void;
|
|
6
6
|
reset: () => void;
|
|
7
|
+
touchTime: React.MutableRefObject<number | null>;
|
|
7
8
|
startX: React.MutableRefObject<number>;
|
|
8
9
|
startY: React.MutableRefObject<number>;
|
|
9
10
|
deltaX: React.MutableRefObject<number>;
|
|
10
11
|
deltaY: React.MutableRefObject<number>;
|
|
12
|
+
delta: React.MutableRefObject<number>;
|
|
11
13
|
offsetX: React.MutableRefObject<number>;
|
|
12
14
|
offsetY: React.MutableRefObject<number>;
|
|
13
15
|
direction: React.MutableRefObject<Direction>;
|
|
@@ -14,12 +14,15 @@ function useTouch() {
|
|
|
14
14
|
const startY = useRef(0);
|
|
15
15
|
const deltaX = useRef(0);
|
|
16
16
|
const deltaY = useRef(0);
|
|
17
|
+
const delta = useRef(0);
|
|
17
18
|
const offsetX = useRef(0);
|
|
18
19
|
const offsetY = useRef(0);
|
|
19
20
|
const direction = useRef("");
|
|
21
|
+
const touchTime = useRef(null);
|
|
20
22
|
const isVertical = () => direction.current === "vertical";
|
|
21
23
|
const isHorizontal = () => direction.current === "horizontal";
|
|
22
24
|
const reset = () => {
|
|
25
|
+
touchTime.current = null;
|
|
23
26
|
deltaX.current = 0;
|
|
24
27
|
deltaY.current = 0;
|
|
25
28
|
offsetX.current = 0;
|
|
@@ -28,6 +31,7 @@ function useTouch() {
|
|
|
28
31
|
};
|
|
29
32
|
const start = (event) => {
|
|
30
33
|
reset();
|
|
34
|
+
touchTime.current = Date.now();
|
|
31
35
|
startX.current = event.touches[0].clientX;
|
|
32
36
|
startY.current = event.touches[0].clientY;
|
|
33
37
|
};
|
|
@@ -37,6 +41,7 @@ function useTouch() {
|
|
|
37
41
|
deltaY.current = touch.clientY - startY.current;
|
|
38
42
|
offsetX.current = Math.abs(deltaX.current);
|
|
39
43
|
offsetY.current = Math.abs(deltaY.current);
|
|
44
|
+
delta.current = isVertical() ? deltaY.current : deltaX.current;
|
|
40
45
|
if (!direction.current) {
|
|
41
46
|
direction.current = getDirection(offsetX.current, offsetY.current);
|
|
42
47
|
}
|
|
@@ -45,10 +50,12 @@ function useTouch() {
|
|
|
45
50
|
move,
|
|
46
51
|
start,
|
|
47
52
|
reset,
|
|
53
|
+
touchTime,
|
|
48
54
|
startX,
|
|
49
55
|
startY,
|
|
50
56
|
deltaX,
|
|
51
57
|
deltaY,
|
|
58
|
+
delta,
|
|
52
59
|
offsetX,
|
|
53
60
|
offsetY,
|
|
54
61
|
direction,
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v2.3.
|
|
8
|
+
* @nutui/nutui-react-taro v2.3.2 Fri Dec 15 2023 18:55:55 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -3968,12 +3968,15 @@ function useTouch() {
|
|
|
3968
3968
|
const startY = useRef(0);
|
|
3969
3969
|
const deltaX = useRef(0);
|
|
3970
3970
|
const deltaY = useRef(0);
|
|
3971
|
+
const delta = useRef(0);
|
|
3971
3972
|
const offsetX = useRef(0);
|
|
3972
3973
|
const offsetY = useRef(0);
|
|
3973
3974
|
const direction = useRef("");
|
|
3975
|
+
const touchTime = useRef(null);
|
|
3974
3976
|
const isVertical = () => direction.current === "vertical";
|
|
3975
3977
|
const isHorizontal = () => direction.current === "horizontal";
|
|
3976
3978
|
const reset = () => {
|
|
3979
|
+
touchTime.current = null;
|
|
3977
3980
|
deltaX.current = 0;
|
|
3978
3981
|
deltaY.current = 0;
|
|
3979
3982
|
offsetX.current = 0;
|
|
@@ -3982,6 +3985,7 @@ function useTouch() {
|
|
|
3982
3985
|
};
|
|
3983
3986
|
const start = (event) => {
|
|
3984
3987
|
reset();
|
|
3988
|
+
touchTime.current = Date.now();
|
|
3985
3989
|
startX.current = event.touches[0].clientX;
|
|
3986
3990
|
startY.current = event.touches[0].clientY;
|
|
3987
3991
|
};
|
|
@@ -3991,6 +3995,7 @@ function useTouch() {
|
|
|
3991
3995
|
deltaY.current = touch.clientY - startY.current;
|
|
3992
3996
|
offsetX.current = Math.abs(deltaX.current);
|
|
3993
3997
|
offsetY.current = Math.abs(deltaY.current);
|
|
3998
|
+
delta.current = isVertical() ? deltaY.current : deltaX.current;
|
|
3994
3999
|
if (!direction.current) {
|
|
3995
4000
|
direction.current = getDirection(offsetX.current, offsetY.current);
|
|
3996
4001
|
}
|
|
@@ -3999,10 +4004,12 @@ function useTouch() {
|
|
|
3999
4004
|
move,
|
|
4000
4005
|
start,
|
|
4001
4006
|
reset,
|
|
4007
|
+
touchTime,
|
|
4002
4008
|
startX,
|
|
4003
4009
|
startY,
|
|
4004
4010
|
deltaX,
|
|
4005
4011
|
deltaY,
|
|
4012
|
+
delta,
|
|
4006
4013
|
offsetX,
|
|
4007
4014
|
offsetY,
|
|
4008
4015
|
direction,
|
|
@@ -5090,7 +5097,7 @@ const FixedNav = (props) => {
|
|
|
5090
5097
|
onClick: (event) => handleClick(item, event),
|
|
5091
5098
|
key: item.id || index
|
|
5092
5099
|
},
|
|
5093
|
-
/* @__PURE__ */ React__default.createElement("img", { src: item.icon, alt: "" }),
|
|
5100
|
+
React__default.isValidElement(item.icon) ? item.icon : /* @__PURE__ */ React__default.createElement("img", { src: item.icon, alt: "" }),
|
|
5094
5101
|
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-list-text` }, item.text),
|
|
5095
5102
|
item.num && /* @__PURE__ */ React__default.createElement("div", { className: "b" }, item.num)
|
|
5096
5103
|
);
|
|
@@ -6484,17 +6491,9 @@ const InternalCascader = (props, ref) => {
|
|
|
6484
6491
|
},
|
|
6485
6492
|
!state.initLoading && state.panes.length ? optionsData.map((pane) => {
|
|
6486
6493
|
var _a;
|
|
6487
|
-
return /* @__PURE__ */ React__default.createElement(Tabs.TabPane, { key: pane.paneKey, value: pane.paneKey }, /* @__PURE__ */ React__default.createElement(
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
className: classesPane,
|
|
6491
|
-
scrollY: true,
|
|
6492
|
-
style: { height: "100%" }
|
|
6493
|
-
},
|
|
6494
|
-
(_a = pane.nodes) == null ? void 0 : _a.map(
|
|
6495
|
-
(node, index) => renderItem(pane, node, index)
|
|
6496
|
-
)
|
|
6497
|
-
));
|
|
6494
|
+
return /* @__PURE__ */ React__default.createElement(Tabs.TabPane, { key: pane.paneKey, value: pane.paneKey }, /* @__PURE__ */ React__default.createElement(ScrollView, { className: classesPane, scrollY: true }, (_a = pane.nodes) == null ? void 0 : _a.map(
|
|
6495
|
+
(node, index) => renderItem(pane, node, index)
|
|
6496
|
+
)));
|
|
6498
6497
|
}) : /* @__PURE__ */ React__default.createElement(Tabs.TabPane, null, /* @__PURE__ */ React__default.createElement("div", { className: classesPane }))
|
|
6499
6498
|
));
|
|
6500
6499
|
};
|
|
@@ -16393,7 +16392,7 @@ const defaultProps$t = {
|
|
|
16393
16392
|
icon: null,
|
|
16394
16393
|
iconSize: "20",
|
|
16395
16394
|
msg: "",
|
|
16396
|
-
duration:
|
|
16395
|
+
duration: 2,
|
|
16397
16396
|
// 时长,duration为0则一直展示
|
|
16398
16397
|
position: "center",
|
|
16399
16398
|
type: "text",
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v2.3.
|
|
11
|
+
* @nutui/nutui-react-taro v2.3.2 Fri Dec 15 2023 18:55:55 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -3984,12 +3984,15 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
3984
3984
|
const startY = React.useRef(0);
|
|
3985
3985
|
const deltaX = React.useRef(0);
|
|
3986
3986
|
const deltaY = React.useRef(0);
|
|
3987
|
+
const delta = React.useRef(0);
|
|
3987
3988
|
const offsetX = React.useRef(0);
|
|
3988
3989
|
const offsetY = React.useRef(0);
|
|
3989
3990
|
const direction = React.useRef("");
|
|
3991
|
+
const touchTime = React.useRef(null);
|
|
3990
3992
|
const isVertical = () => direction.current === "vertical";
|
|
3991
3993
|
const isHorizontal = () => direction.current === "horizontal";
|
|
3992
3994
|
const reset = () => {
|
|
3995
|
+
touchTime.current = null;
|
|
3993
3996
|
deltaX.current = 0;
|
|
3994
3997
|
deltaY.current = 0;
|
|
3995
3998
|
offsetX.current = 0;
|
|
@@ -3998,6 +4001,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
3998
4001
|
};
|
|
3999
4002
|
const start = (event) => {
|
|
4000
4003
|
reset();
|
|
4004
|
+
touchTime.current = Date.now();
|
|
4001
4005
|
startX.current = event.touches[0].clientX;
|
|
4002
4006
|
startY.current = event.touches[0].clientY;
|
|
4003
4007
|
};
|
|
@@ -4007,6 +4011,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4007
4011
|
deltaY.current = touch.clientY - startY.current;
|
|
4008
4012
|
offsetX.current = Math.abs(deltaX.current);
|
|
4009
4013
|
offsetY.current = Math.abs(deltaY.current);
|
|
4014
|
+
delta.current = isVertical() ? deltaY.current : deltaX.current;
|
|
4010
4015
|
if (!direction.current) {
|
|
4011
4016
|
direction.current = getDirection(offsetX.current, offsetY.current);
|
|
4012
4017
|
}
|
|
@@ -4015,10 +4020,12 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4015
4020
|
move,
|
|
4016
4021
|
start,
|
|
4017
4022
|
reset,
|
|
4023
|
+
touchTime,
|
|
4018
4024
|
startX,
|
|
4019
4025
|
startY,
|
|
4020
4026
|
deltaX,
|
|
4021
4027
|
deltaY,
|
|
4028
|
+
delta,
|
|
4022
4029
|
offsetX,
|
|
4023
4030
|
offsetY,
|
|
4024
4031
|
direction,
|
|
@@ -5106,7 +5113,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5106
5113
|
onClick: (event) => handleClick(item, event),
|
|
5107
5114
|
key: item.id || index
|
|
5108
5115
|
},
|
|
5109
|
-
/* @__PURE__ */ React.createElement("img", { src: item.icon, alt: "" }),
|
|
5116
|
+
React.isValidElement(item.icon) ? item.icon : /* @__PURE__ */ React.createElement("img", { src: item.icon, alt: "" }),
|
|
5110
5117
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-list-text` }, item.text),
|
|
5111
5118
|
item.num && /* @__PURE__ */ React.createElement("div", { className: "b" }, item.num)
|
|
5112
5119
|
);
|
|
@@ -6500,17 +6507,9 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
6500
6507
|
},
|
|
6501
6508
|
!state.initLoading && state.panes.length ? optionsData.map((pane) => {
|
|
6502
6509
|
var _a;
|
|
6503
|
-
return /* @__PURE__ */ React.createElement(Tabs.TabPane, { key: pane.paneKey, value: pane.paneKey }, /* @__PURE__ */ React.createElement(
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
className: classesPane,
|
|
6507
|
-
scrollY: true,
|
|
6508
|
-
style: { height: "100%" }
|
|
6509
|
-
},
|
|
6510
|
-
(_a = pane.nodes) == null ? void 0 : _a.map(
|
|
6511
|
-
(node, index) => renderItem(pane, node, index)
|
|
6512
|
-
)
|
|
6513
|
-
));
|
|
6510
|
+
return /* @__PURE__ */ React.createElement(Tabs.TabPane, { key: pane.paneKey, value: pane.paneKey }, /* @__PURE__ */ React.createElement(components.ScrollView, { className: classesPane, scrollY: true }, (_a = pane.nodes) == null ? void 0 : _a.map(
|
|
6511
|
+
(node, index) => renderItem(pane, node, index)
|
|
6512
|
+
)));
|
|
6514
6513
|
}) : /* @__PURE__ */ React.createElement(Tabs.TabPane, null, /* @__PURE__ */ React.createElement("div", { className: classesPane }))
|
|
6515
6514
|
));
|
|
6516
6515
|
};
|
|
@@ -16409,7 +16408,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16409
16408
|
icon: null,
|
|
16410
16409
|
iconSize: "20",
|
|
16411
16410
|
msg: "",
|
|
16412
|
-
duration:
|
|
16411
|
+
duration: 2,
|
|
16413
16412
|
// 时长,duration为0则一直展示
|
|
16414
16413
|
position: "center",
|
|
16415
16414
|
type: "text",
|
|
@@ -16,11 +16,6 @@
|
|
|
16
16
|
white-space: nowrap;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.nut-tabs-content {
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
max-height: 372px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
19
|
.nut-tabpane {
|
|
25
20
|
padding: 0;
|
|
26
21
|
background: $color-background-overlay;
|
|
@@ -39,7 +34,7 @@
|
|
|
39
34
|
display: flex;
|
|
40
35
|
align-items: center;
|
|
41
36
|
justify-content: center;
|
|
42
|
-
height: $cascader-item-height;
|
|
37
|
+
// height: $cascader-item-height;
|
|
43
38
|
padding: $cascader-item-padding;
|
|
44
39
|
margin: $cascader-item-margin;
|
|
45
40
|
border-bottom: $cascader-item-border-bottom;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
.nut-popup {
|
|
3
3
|
position: fixed;
|
|
4
|
-
min-height:
|
|
4
|
+
min-height: 26%;
|
|
5
5
|
max-height: 100%;
|
|
6
6
|
overflow-y: auto;
|
|
7
7
|
background-color: $overlay-content-bg-color;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
16
|
-
height: $popup-title-height;
|
|
16
|
+
// height: $popup-title-height;
|
|
17
17
|
border-bottom: $popup-title-border-bottom;
|
|
18
18
|
padding: $popup-title-padding;
|
|
19
19
|
position: relative;
|