@nutui/nutui-react-taro 2.6.15-beta.0 → 2.6.15
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 +914 -909
- package/README.md +21 -28
- package/dist/esm/Audio.js +1 -1
- package/dist/esm/Checkbox.js +1 -1
- package/dist/esm/CheckboxGroup.js +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/Menu.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/Swipe.js +1 -1
- package/dist/esm/Swiper.js +1 -2
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/Table.js +1 -1
- package/dist/esm/{audio.taro-DzSc40G9.js → audio.taro-CD-vP_u0.js} +7 -8
- package/dist/esm/{checkbox.taro-Dc054oRo.js → checkbox.taro-CgqJyhrh.js} +4 -5
- package/dist/esm/{datepicker.taro-DTyJrlhD.js → datepicker.taro-BxaZ3Fjv.js} +3 -4
- package/dist/esm/{imagepreview.taro-DtgQJEQ_.js → imagepreview.taro-CF-CCJ1Q.js} +1 -1
- package/dist/esm/{menu.taro-CrPdDbYM.js → menu.taro-BeuoJcj7.js} +2 -2
- package/dist/esm/nutui-react.es.js +10 -10
- package/dist/esm/{pulltorefresh.taro-CZReoWwU.js → pulltorefresh.taro-BScP6uPx.js} +0 -1
- package/dist/esm/{radio.taro-BNSceequ.js → radio.taro-CzOHqD3O.js} +0 -2
- package/dist/esm/{swipe.taro-yUhne9XU.js → swipe.taro-Bsk2fnEl.js} +0 -1
- package/dist/esm/{swiperitem.taro-DeiNSrJV.js → swiperitem.taro-BleF1EOs.js} +0 -5
- package/dist/esm/{table.taro-D2M3D2Vj.js → table.taro-B6WCKTkO.js} +6 -5
- 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 +187 -204
- package/dist/nutui.react.umd.js +187 -204
- package/dist/types/packages/swiperitem/swiperitem.d.ts +0 -1
- package/package.json +2 -2
- package/dist/types/packages/griditem/types.d.ts +0 -13
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, Taro, components, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react-taro v2.6.
|
|
5
|
+
* @nutui/nutui-react-taro v2.6.15 Fri Jul 26 2024 15:18:34 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -143,7 +143,6 @@
|
|
|
143
143
|
const g$6 = (M) => /* @__PURE__ */ React.createElement(S, { ...M, name: M.name || "ArrowDown", svg64: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0xNTguMTcgMjg5LjgzYTQyLjY3IDQyLjY3IDAgMSAwLTYwLjM0IDYwLjM0bDM4NCAzODRhNDIuNjcgNDIuNjcgMCAwIDAgNjAuMzYgMGwzODQtMzg0YTQyLjY3IDQyLjY3IDAgMSAwLTYwLjM2LTYwLjM0TDUxMiA2NDMuNjd6Ii8+PC9zdmc+" });
|
|
144
144
|
g$6.defaultProps = k;
|
|
145
145
|
const g$5 = (M) => /* @__PURE__ */ React.createElement(S, { ...M, name: M.name || "ArrowLeft", svg64: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik03MTIuODMgMTU4LjE3YTQyLjY3IDQyLjY3IDAgMSAwLTYwLjMzLTYwLjM0bC0zODQgMzg0YTQyLjY3IDQyLjY3IDAgMCAwIDAgNjAuMzZsMzg0IDM4NGE0Mi42NyA0Mi42NyAwIDEgMCA2MC4zMy02MC4zNkwzNTkgNTEyeiIvPjwvc3ZnPg==" });
|
|
146
|
-
g$5.defaultProps = k;
|
|
147
146
|
const a$2 = (M) => /* @__PURE__ */ React.createElement(S, { ...M, name: M.name || "ArrowUp", svg64: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMxQTFBMUEiIGQ9Ik0xNTguMTcgNzM0LjE3YTQyLjY3IDQyLjY3IDAgMSAxLTYwLjM0LTYwLjM0bDM4NC0zODRhNDIuNjcgNDIuNjcgMCAwIDEgNjAuMzYgMGwzODQgMzg0YTQyLjY3IDQyLjY3IDAgMSAxLTYwLjM2IDYwLjM0TDUxMiAzODAuMzN6Ii8+PC9zdmc+" });
|
|
148
147
|
a$2.defaultProps = k;
|
|
149
148
|
const g$4 = (M) => /* @__PURE__ */ React.createElement(S, { ...M, name: M.name || "CheckChecked", svg64: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGZpbGw9IiMzMzMiIGQ9Ik01MDYuNjUgMi44MkMyMjguMDEgMi44Mi4wMyAyMzAuOC4wMyA1MDkuNDRzMjI3Ljk4IDUwNi42MiA1MDYuNjIgNTA2LjYyIDUwNi42Mi0yMjcuOTggNTA2LjYzLTUwNi42MlM3ODguMTEgMi44MiA1MDYuNjUgMi44Mm0wIDc4OC4wOGMtMTU0LjggMC0yODEuNDYtMTI2LjY2LTI4MS40NS0yODEuNDZzMTI2LjY2LTI4MS40NiAyODEuNDUtMjgxLjQ2IDI4MS40NiAxMjYuNjYgMjgxLjQ2IDI4MS40NlM2NjEuNDUgNzkwLjkgNTA2LjY1IDc5MC45Ii8+PHBhdGggZmlsbD0iIzMzMyIgZD0iTTM4MCA1MDkuNDRhMTI2LjY2IDEyNi42NiAwIDEgMCAyNTMuMzEgMCAxMjYuNjYgMTI2LjY2IDAgMSAwLTI1My4zMSAwIi8+PC9zdmc+" });
|
|
@@ -213,7 +212,7 @@
|
|
|
213
212
|
style: {}
|
|
214
213
|
};
|
|
215
214
|
const prefixCls$2 = "nut-button";
|
|
216
|
-
const defaultProps$
|
|
215
|
+
const defaultProps$1u = {
|
|
217
216
|
...ComponentDefaults,
|
|
218
217
|
color: "",
|
|
219
218
|
type: "default",
|
|
@@ -248,7 +247,7 @@
|
|
|
248
247
|
onClick,
|
|
249
248
|
...rest
|
|
250
249
|
} = {
|
|
251
|
-
...defaultProps$
|
|
250
|
+
...defaultProps$1u,
|
|
252
251
|
...props
|
|
253
252
|
};
|
|
254
253
|
const getStyle = React.useCallback(() => {
|
|
@@ -315,7 +314,7 @@
|
|
|
315
314
|
);
|
|
316
315
|
Button.displayName = "NutButton";
|
|
317
316
|
const CellGroupContext = React.createContext(null);
|
|
318
|
-
const defaultProps$
|
|
317
|
+
const defaultProps$1t = {
|
|
319
318
|
...ComponentDefaults,
|
|
320
319
|
title: "",
|
|
321
320
|
description: "",
|
|
@@ -324,7 +323,7 @@
|
|
|
324
323
|
const classPrefix$r = "nut-cell-group";
|
|
325
324
|
const CellGroup = (props) => {
|
|
326
325
|
const { children, className, title, description, divider, ...rest } = {
|
|
327
|
-
...defaultProps$
|
|
326
|
+
...defaultProps$1t,
|
|
328
327
|
...props
|
|
329
328
|
};
|
|
330
329
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$r, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$r}-title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$r}-description` }, description) : null, /* @__PURE__ */ React.createElement(
|
|
@@ -336,7 +335,7 @@
|
|
|
336
335
|
));
|
|
337
336
|
};
|
|
338
337
|
CellGroup.displayName = "NutCellGroup";
|
|
339
|
-
const defaultProps$
|
|
338
|
+
const defaultProps$1s = {
|
|
340
339
|
...ComponentDefaults,
|
|
341
340
|
title: null,
|
|
342
341
|
description: null,
|
|
@@ -361,7 +360,7 @@
|
|
|
361
360
|
style,
|
|
362
361
|
...rest
|
|
363
362
|
} = {
|
|
364
|
-
...defaultProps$
|
|
363
|
+
...defaultProps$1s,
|
|
365
364
|
...props
|
|
366
365
|
};
|
|
367
366
|
const handleClick = (event) => {
|
|
@@ -1536,7 +1535,7 @@
|
|
|
1536
1535
|
const pxCheck = (value) => {
|
|
1537
1536
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
1538
1537
|
};
|
|
1539
|
-
const defaultProps$
|
|
1538
|
+
const defaultProps$1r = {
|
|
1540
1539
|
src: "",
|
|
1541
1540
|
error: true,
|
|
1542
1541
|
loading: true
|
|
@@ -1555,7 +1554,7 @@
|
|
|
1555
1554
|
onLoad,
|
|
1556
1555
|
onError,
|
|
1557
1556
|
...rest
|
|
1558
|
-
} = { ...defaultProps$
|
|
1557
|
+
} = { ...defaultProps$1r, ...props };
|
|
1559
1558
|
const [innerLoading, setInnerLoading] = React.useState(true);
|
|
1560
1559
|
const [isError, setIsError] = React.useState(false);
|
|
1561
1560
|
const handleLoad = (e2) => {
|
|
@@ -3574,7 +3573,7 @@
|
|
|
3574
3573
|
};
|
|
3575
3574
|
Overlay.displayName = "NutOverlay";
|
|
3576
3575
|
const DataContext$1 = React.createContext({});
|
|
3577
|
-
const defaultProps$
|
|
3576
|
+
const defaultProps$1q = {
|
|
3578
3577
|
...ComponentDefaults,
|
|
3579
3578
|
span: "24",
|
|
3580
3579
|
offset: "0",
|
|
@@ -3582,7 +3581,7 @@
|
|
|
3582
3581
|
};
|
|
3583
3582
|
const Col = (props) => {
|
|
3584
3583
|
const { className, style, span, offset, children, onClick } = {
|
|
3585
|
-
...defaultProps$
|
|
3584
|
+
...defaultProps$1q,
|
|
3586
3585
|
...props
|
|
3587
3586
|
};
|
|
3588
3587
|
const [colName, setColName] = React.useState("");
|
|
@@ -3615,7 +3614,7 @@
|
|
|
3615
3614
|
);
|
|
3616
3615
|
};
|
|
3617
3616
|
Col.displayName = "NutCol";
|
|
3618
|
-
const defaultProps$
|
|
3617
|
+
const defaultProps$1p = {
|
|
3619
3618
|
...ComponentDefaults,
|
|
3620
3619
|
contentPosition: "center",
|
|
3621
3620
|
direction: "horizontal"
|
|
@@ -3623,7 +3622,7 @@
|
|
|
3623
3622
|
const classPrefix$o = `nut-divider`;
|
|
3624
3623
|
const Divider = (props) => {
|
|
3625
3624
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
3626
|
-
...defaultProps$
|
|
3625
|
+
...defaultProps$1p,
|
|
3627
3626
|
...props
|
|
3628
3627
|
};
|
|
3629
3628
|
const classes = direction === "horizontal" ? classNames({
|
|
@@ -3644,7 +3643,7 @@
|
|
|
3644
3643
|
}
|
|
3645
3644
|
};
|
|
3646
3645
|
const GridContext = React.createContext(gridContext);
|
|
3647
|
-
const defaultProps$
|
|
3646
|
+
const defaultProps$1o = {
|
|
3648
3647
|
text: "",
|
|
3649
3648
|
columns: 4,
|
|
3650
3649
|
gap: 0,
|
|
@@ -3670,7 +3669,7 @@
|
|
|
3670
3669
|
onClick,
|
|
3671
3670
|
...rest
|
|
3672
3671
|
} = {
|
|
3673
|
-
...defaultProps$
|
|
3672
|
+
...defaultProps$1o,
|
|
3674
3673
|
...props
|
|
3675
3674
|
};
|
|
3676
3675
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -3729,7 +3728,7 @@
|
|
|
3729
3728
|
);
|
|
3730
3729
|
};
|
|
3731
3730
|
GridItem.displayName = "NutGridItem";
|
|
3732
|
-
const defaultProps$
|
|
3731
|
+
const defaultProps$1n = {
|
|
3733
3732
|
columns: 4,
|
|
3734
3733
|
gap: 0,
|
|
3735
3734
|
center: true,
|
|
@@ -3750,7 +3749,7 @@
|
|
|
3750
3749
|
className,
|
|
3751
3750
|
onClick,
|
|
3752
3751
|
...rest
|
|
3753
|
-
} = { ...defaultProps$
|
|
3752
|
+
} = { ...defaultProps$1n, ...props };
|
|
3754
3753
|
const childrenDom = React.Children.toArray(children);
|
|
3755
3754
|
const classPrefix2 = "nut-grid";
|
|
3756
3755
|
const rootClass = () => {
|
|
@@ -3786,14 +3785,14 @@
|
|
|
3786
3785
|
};
|
|
3787
3786
|
Grid.displayName = "NutGrid";
|
|
3788
3787
|
Grid.Item = GridItem;
|
|
3789
|
-
const defaultProps$
|
|
3788
|
+
const defaultProps$1m = {};
|
|
3790
3789
|
const Layout = (props) => {
|
|
3791
|
-
({ ...defaultProps$
|
|
3790
|
+
({ ...defaultProps$1m, ...props });
|
|
3792
3791
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-layout" }, "Layout");
|
|
3793
3792
|
};
|
|
3794
3793
|
Layout.displayName = "NutLayout";
|
|
3795
3794
|
const classPrefix$n = "nut-row";
|
|
3796
|
-
const defaultProps$
|
|
3795
|
+
const defaultProps$1l = {
|
|
3797
3796
|
...ComponentDefaults,
|
|
3798
3797
|
type: "",
|
|
3799
3798
|
justify: "start",
|
|
@@ -3813,7 +3812,7 @@
|
|
|
3813
3812
|
gutter,
|
|
3814
3813
|
onClick
|
|
3815
3814
|
} = {
|
|
3816
|
-
...defaultProps$
|
|
3815
|
+
...defaultProps$1l,
|
|
3817
3816
|
...props
|
|
3818
3817
|
};
|
|
3819
3818
|
const getClass = (prefix, type22) => {
|
|
@@ -3847,12 +3846,12 @@
|
|
|
3847
3846
|
};
|
|
3848
3847
|
Row.displayName = "NutRow";
|
|
3849
3848
|
const prefixCls$1 = "nut-space";
|
|
3850
|
-
const defaultProps$
|
|
3849
|
+
const defaultProps$1k = {
|
|
3851
3850
|
direction: "horizontal"
|
|
3852
3851
|
};
|
|
3853
3852
|
const Space = (props) => {
|
|
3854
3853
|
const { className, style, children, wrap, align, direction, justify } = {
|
|
3855
|
-
...defaultProps$
|
|
3854
|
+
...defaultProps$1k,
|
|
3856
3855
|
...props
|
|
3857
3856
|
};
|
|
3858
3857
|
const cls = classNames(
|
|
@@ -3944,7 +3943,7 @@
|
|
|
3944
3943
|
}
|
|
3945
3944
|
return Promise.resolve(makeRect(0, 0));
|
|
3946
3945
|
};
|
|
3947
|
-
const defaultProps$
|
|
3946
|
+
const defaultProps$1j = {
|
|
3948
3947
|
...ComponentDefaults,
|
|
3949
3948
|
position: "top",
|
|
3950
3949
|
zIndex: 900
|
|
@@ -3961,7 +3960,7 @@
|
|
|
3961
3960
|
className,
|
|
3962
3961
|
onChange,
|
|
3963
3962
|
...rest
|
|
3964
|
-
} = { ...defaultProps$
|
|
3963
|
+
} = { ...defaultProps$1j, ...props };
|
|
3965
3964
|
const stickyRef = React.useRef(null);
|
|
3966
3965
|
const rootRef = React.useRef(null);
|
|
3967
3966
|
const [rootRect, setRootRect] = React.useState({});
|
|
@@ -4077,7 +4076,7 @@
|
|
|
4077
4076
|
);
|
|
4078
4077
|
};
|
|
4079
4078
|
SafeArea.displayName = "NutSafeArea";
|
|
4080
|
-
const defaultProps$
|
|
4079
|
+
const defaultProps$1i = {
|
|
4081
4080
|
...ComponentDefaults,
|
|
4082
4081
|
threshold: 200,
|
|
4083
4082
|
zIndex: 900,
|
|
@@ -4086,7 +4085,7 @@
|
|
|
4086
4085
|
const BackTop = (props) => {
|
|
4087
4086
|
const rtl = useRtl();
|
|
4088
4087
|
const { children, threshold, zIndex, className, duration, style, onClick } = {
|
|
4089
|
-
...defaultProps$
|
|
4088
|
+
...defaultProps$1i,
|
|
4090
4089
|
...props
|
|
4091
4090
|
};
|
|
4092
4091
|
const classPrefix2 = "nut-backtop";
|
|
@@ -4130,7 +4129,7 @@
|
|
|
4130
4129
|
};
|
|
4131
4130
|
BackTop.displayName = "NutBackTop";
|
|
4132
4131
|
const elevatorContext = React.createContext({});
|
|
4133
|
-
const defaultProps$
|
|
4132
|
+
const defaultProps$1h = {
|
|
4134
4133
|
...ComponentDefaults,
|
|
4135
4134
|
height: "200px",
|
|
4136
4135
|
floorKey: "title",
|
|
@@ -4157,7 +4156,7 @@
|
|
|
4157
4156
|
children,
|
|
4158
4157
|
...rest
|
|
4159
4158
|
} = {
|
|
4160
|
-
...defaultProps$
|
|
4159
|
+
...defaultProps$1h,
|
|
4161
4160
|
...props
|
|
4162
4161
|
};
|
|
4163
4162
|
const classPrefix2 = "nut-elevator";
|
|
@@ -4372,7 +4371,7 @@
|
|
|
4372
4371
|
};
|
|
4373
4372
|
Elevator.displayName = "NutElevator";
|
|
4374
4373
|
Elevator.Context = elevatorContext;
|
|
4375
|
-
const defaultProps$
|
|
4374
|
+
const defaultProps$1g = {
|
|
4376
4375
|
...ComponentDefaults,
|
|
4377
4376
|
activeText: "",
|
|
4378
4377
|
inactiveText: "",
|
|
@@ -4400,7 +4399,7 @@
|
|
|
4400
4399
|
content,
|
|
4401
4400
|
...rest
|
|
4402
4401
|
} = {
|
|
4403
|
-
...defaultProps$
|
|
4402
|
+
...defaultProps$1g,
|
|
4404
4403
|
...props
|
|
4405
4404
|
};
|
|
4406
4405
|
const classPrefix2 = "nut-fixednav";
|
|
@@ -4453,7 +4452,7 @@
|
|
|
4453
4452
|
);
|
|
4454
4453
|
};
|
|
4455
4454
|
FixedNav.displayName = "NutFixedNav";
|
|
4456
|
-
const defaultProps$
|
|
4455
|
+
const defaultProps$1f = {
|
|
4457
4456
|
...ComponentDefaults,
|
|
4458
4457
|
left: "",
|
|
4459
4458
|
right: "",
|
|
@@ -4478,7 +4477,7 @@
|
|
|
4478
4477
|
zIndex,
|
|
4479
4478
|
onBackClick
|
|
4480
4479
|
} = {
|
|
4481
|
-
...defaultProps$
|
|
4480
|
+
...defaultProps$1f,
|
|
4482
4481
|
...props
|
|
4483
4482
|
};
|
|
4484
4483
|
const classPrefix2 = "nut-navbar";
|
|
@@ -4557,7 +4556,7 @@
|
|
|
4557
4556
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix2}-placeholder` }, renderWrapper()) : renderWrapper());
|
|
4558
4557
|
};
|
|
4559
4558
|
NavBar.displayName = "NutNavBar";
|
|
4560
|
-
const defaultProps$
|
|
4559
|
+
const defaultProps$1e = {
|
|
4561
4560
|
...ComponentDefaults,
|
|
4562
4561
|
position: "center",
|
|
4563
4562
|
transition: "",
|
|
@@ -4610,7 +4609,7 @@
|
|
|
4610
4609
|
afterShow,
|
|
4611
4610
|
afterClose,
|
|
4612
4611
|
onClick
|
|
4613
|
-
} = { ...defaultProps$
|
|
4612
|
+
} = { ...defaultProps$1e, ...props };
|
|
4614
4613
|
let innerIndex = zIndex || _zIndex;
|
|
4615
4614
|
const [index, setIndex] = React.useState(innerIndex);
|
|
4616
4615
|
const [innerVisible, setInnerVisible] = React.useState(visible);
|
|
@@ -4752,7 +4751,7 @@
|
|
|
4752
4751
|
};
|
|
4753
4752
|
Popup.displayName = "NutPopup";
|
|
4754
4753
|
const OffsetContext = React.createContext(20);
|
|
4755
|
-
const defaultProps$
|
|
4754
|
+
const defaultProps$1d = {
|
|
4756
4755
|
...ComponentDefaults,
|
|
4757
4756
|
position: "left",
|
|
4758
4757
|
width: "80%"
|
|
@@ -4770,7 +4769,7 @@
|
|
|
4770
4769
|
indent,
|
|
4771
4770
|
...rest
|
|
4772
4771
|
} = {
|
|
4773
|
-
...defaultProps$
|
|
4772
|
+
...defaultProps$1d,
|
|
4774
4773
|
...props
|
|
4775
4774
|
};
|
|
4776
4775
|
const innerIndent = indent ? Number(indent) : 20;
|
|
@@ -4828,13 +4827,13 @@
|
|
|
4828
4827
|
title
|
|
4829
4828
|
);
|
|
4830
4829
|
};
|
|
4831
|
-
const defaultProps$
|
|
4830
|
+
const defaultProps$1c = {
|
|
4832
4831
|
open: true
|
|
4833
4832
|
};
|
|
4834
4833
|
const SubSideNavBar = (props) => {
|
|
4835
4834
|
const classPrefix2 = "nut-subsidenavbar";
|
|
4836
4835
|
const { title, value, children, onClick, open: open2, ...rest } = {
|
|
4837
|
-
...defaultProps$
|
|
4836
|
+
...defaultProps$1c,
|
|
4838
4837
|
...props
|
|
4839
4838
|
};
|
|
4840
4839
|
const [subShow, setSubShow] = React.useState(open2);
|
|
@@ -4912,7 +4911,7 @@
|
|
|
4912
4911
|
);
|
|
4913
4912
|
return [stateRef.current, setState];
|
|
4914
4913
|
}
|
|
4915
|
-
const defaultProps$
|
|
4914
|
+
const defaultProps$1b = {
|
|
4916
4915
|
...ComponentDefaults,
|
|
4917
4916
|
value: "",
|
|
4918
4917
|
dot: false,
|
|
@@ -4937,7 +4936,7 @@
|
|
|
4937
4936
|
color,
|
|
4938
4937
|
fill
|
|
4939
4938
|
} = {
|
|
4940
|
-
...defaultProps$
|
|
4939
|
+
...defaultProps$1b,
|
|
4941
4940
|
...props
|
|
4942
4941
|
};
|
|
4943
4942
|
const classPrefix2 = "nut-badge";
|
|
@@ -4991,7 +4990,7 @@
|
|
|
4991
4990
|
};
|
|
4992
4991
|
Badge.displayName = "NutBadge";
|
|
4993
4992
|
const TabbarContext = React.createContext(null);
|
|
4994
|
-
const defaultProps$
|
|
4993
|
+
const defaultProps$1a = {
|
|
4995
4994
|
...ComponentDefaults,
|
|
4996
4995
|
title: "",
|
|
4997
4996
|
icon: null,
|
|
@@ -5017,7 +5016,7 @@
|
|
|
5017
5016
|
index,
|
|
5018
5017
|
...rest
|
|
5019
5018
|
} = {
|
|
5020
|
-
...defaultProps$
|
|
5019
|
+
...defaultProps$1a,
|
|
5021
5020
|
...props
|
|
5022
5021
|
};
|
|
5023
5022
|
const active = index === (ctx == null ? void 0 : ctx.selectIndex);
|
|
@@ -5055,7 +5054,7 @@
|
|
|
5055
5054
|
icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: titleClass }, title))
|
|
5056
5055
|
);
|
|
5057
5056
|
};
|
|
5058
|
-
const defaultProps$
|
|
5057
|
+
const defaultProps$19 = {
|
|
5059
5058
|
...ComponentDefaults,
|
|
5060
5059
|
defaultValue: 0,
|
|
5061
5060
|
fixed: false,
|
|
@@ -5078,7 +5077,7 @@
|
|
|
5078
5077
|
style,
|
|
5079
5078
|
onSwitch
|
|
5080
5079
|
} = {
|
|
5081
|
-
...defaultProps$
|
|
5080
|
+
...defaultProps$19,
|
|
5082
5081
|
...props
|
|
5083
5082
|
};
|
|
5084
5083
|
const classPrefix2 = "nut-tabbar";
|
|
@@ -5120,14 +5119,14 @@
|
|
|
5120
5119
|
};
|
|
5121
5120
|
Tabbar.displayName = "NutTabbar";
|
|
5122
5121
|
Tabbar.Item = TabbarItem;
|
|
5123
|
-
const defaultProps$
|
|
5122
|
+
const defaultProps$18 = {
|
|
5124
5123
|
title: "",
|
|
5125
5124
|
value: "",
|
|
5126
5125
|
disabled: false
|
|
5127
5126
|
};
|
|
5128
5127
|
const TabPane = (props) => {
|
|
5129
5128
|
const { children, autoHeightClassName, className, disabled } = {
|
|
5130
|
-
...defaultProps$
|
|
5129
|
+
...defaultProps$18,
|
|
5131
5130
|
...props
|
|
5132
5131
|
};
|
|
5133
5132
|
const classPrefix2 = "nut-tabpane";
|
|
@@ -5168,7 +5167,7 @@
|
|
|
5168
5167
|
const idRef = React.useRef(uniqueId());
|
|
5169
5168
|
return idRef.current;
|
|
5170
5169
|
}
|
|
5171
|
-
const defaultProps$
|
|
5170
|
+
const defaultProps$17 = {
|
|
5172
5171
|
...ComponentDefaults,
|
|
5173
5172
|
tabStyle: {},
|
|
5174
5173
|
activeColor: "",
|
|
@@ -5198,7 +5197,7 @@
|
|
|
5198
5197
|
defaultValue: outerDefaultValue,
|
|
5199
5198
|
...rest
|
|
5200
5199
|
} = {
|
|
5201
|
-
...defaultProps$
|
|
5200
|
+
...defaultProps$17,
|
|
5202
5201
|
...props
|
|
5203
5202
|
};
|
|
5204
5203
|
const uuid = useUuid();
|
|
@@ -5421,7 +5420,7 @@
|
|
|
5421
5420
|
};
|
|
5422
5421
|
Tabs.displayName = "NutTabs";
|
|
5423
5422
|
Tabs.TabPane = TabPane;
|
|
5424
|
-
const defaultProps$
|
|
5423
|
+
const defaultProps$16 = {
|
|
5425
5424
|
type: "custom",
|
|
5426
5425
|
existList: [],
|
|
5427
5426
|
defaultIcon: null,
|
|
@@ -5440,7 +5439,7 @@
|
|
|
5440
5439
|
onSelect,
|
|
5441
5440
|
onSwitch,
|
|
5442
5441
|
...rest
|
|
5443
|
-
} = { ...defaultProps$
|
|
5442
|
+
} = { ...defaultProps$16, ...props };
|
|
5444
5443
|
const classPrefix2 = "nut-address";
|
|
5445
5444
|
const selectedExist = (item) => {
|
|
5446
5445
|
existList.forEach((list, index) => {
|
|
@@ -5602,7 +5601,7 @@
|
|
|
5602
5601
|
return pathNodes;
|
|
5603
5602
|
}
|
|
5604
5603
|
}
|
|
5605
|
-
const defaultProps$
|
|
5604
|
+
const defaultProps$15 = {
|
|
5606
5605
|
...ComponentDefaults,
|
|
5607
5606
|
activeColor: "",
|
|
5608
5607
|
activeIcon: "checklist",
|
|
@@ -5647,7 +5646,7 @@
|
|
|
5647
5646
|
onClose,
|
|
5648
5647
|
onChange,
|
|
5649
5648
|
onPathChange
|
|
5650
|
-
} = { ...defaultProps$
|
|
5649
|
+
} = { ...defaultProps$15, ...props };
|
|
5651
5650
|
const [tabvalue, setTabvalue] = React.useState("c1");
|
|
5652
5651
|
const [optionsData, setOptionsData] = React.useState([]);
|
|
5653
5652
|
const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
|
|
@@ -5955,7 +5954,7 @@
|
|
|
5955
5954
|
};
|
|
5956
5955
|
const Cascader = React.forwardRef(InternalCascader);
|
|
5957
5956
|
Cascader.displayName = "NutCascader";
|
|
5958
|
-
const defaultProps$
|
|
5957
|
+
const defaultProps$14 = {
|
|
5959
5958
|
...ComponentDefaults,
|
|
5960
5959
|
visible: false,
|
|
5961
5960
|
type: "custom",
|
|
@@ -5982,7 +5981,7 @@
|
|
|
5982
5981
|
onPathChange,
|
|
5983
5982
|
...rest
|
|
5984
5983
|
} = {
|
|
5985
|
-
...defaultProps$
|
|
5984
|
+
...defaultProps$14,
|
|
5986
5985
|
...props
|
|
5987
5986
|
};
|
|
5988
5987
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, type2 === "custom" && /* @__PURE__ */ React.createElement(
|
|
@@ -6007,7 +6006,7 @@
|
|
|
6007
6006
|
}
|
|
6008
6007
|
));
|
|
6009
6008
|
};
|
|
6010
|
-
const defaultProps$
|
|
6009
|
+
const defaultProps$13 = {
|
|
6011
6010
|
...ComponentDefaults,
|
|
6012
6011
|
defaultValue: [],
|
|
6013
6012
|
type: "custom",
|
|
@@ -6049,7 +6048,7 @@
|
|
|
6049
6048
|
onSwitch,
|
|
6050
6049
|
...rest
|
|
6051
6050
|
} = {
|
|
6052
|
-
...defaultProps$
|
|
6051
|
+
...defaultProps$13,
|
|
6053
6052
|
...props
|
|
6054
6053
|
};
|
|
6055
6054
|
const classPrefix2 = "nut-address";
|
|
@@ -6387,7 +6386,7 @@
|
|
|
6387
6386
|
const isStartAndEnd = (days) => {
|
|
6388
6387
|
return days.length >= 2 && Utils.isEqual(days[0], days[1]);
|
|
6389
6388
|
};
|
|
6390
|
-
const defaultProps$
|
|
6389
|
+
const defaultProps$12 = {
|
|
6391
6390
|
...ComponentDefaults,
|
|
6392
6391
|
type: "single",
|
|
6393
6392
|
autoBackfill: false,
|
|
@@ -6448,7 +6447,7 @@
|
|
|
6448
6447
|
onUpdate,
|
|
6449
6448
|
onDayClick,
|
|
6450
6449
|
onPageChange
|
|
6451
|
-
} = { ...defaultProps$
|
|
6450
|
+
} = { ...defaultProps$12, ...props };
|
|
6452
6451
|
const weekdays = locale.calendaritem.weekdays;
|
|
6453
6452
|
const weeks = [
|
|
6454
6453
|
...weekdays.slice(firstDayOfWeek, 7),
|
|
@@ -6998,7 +6997,7 @@
|
|
|
6998
6997
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
|
|
6999
6998
|
});
|
|
7000
6999
|
CalendarItem.displayName = "NutCalendarItem";
|
|
7001
|
-
const defaultProps$
|
|
7000
|
+
const defaultProps$11 = {
|
|
7002
7001
|
...ComponentDefaults,
|
|
7003
7002
|
type: "single",
|
|
7004
7003
|
autoBackfill: false,
|
|
@@ -7061,7 +7060,7 @@
|
|
|
7061
7060
|
onConfirm,
|
|
7062
7061
|
onDayClick,
|
|
7063
7062
|
onPageChange
|
|
7064
|
-
} = { ...defaultProps$
|
|
7063
|
+
} = { ...defaultProps$11, ...props };
|
|
7065
7064
|
const calendarRef = React.useRef(null);
|
|
7066
7065
|
const close2 = () => {
|
|
7067
7066
|
onClose && onClose();
|
|
@@ -7210,7 +7209,7 @@
|
|
|
7210
7209
|
)
|
|
7211
7210
|
];
|
|
7212
7211
|
};
|
|
7213
|
-
const defaultProps$
|
|
7212
|
+
const defaultProps$10 = {
|
|
7214
7213
|
...ComponentDefaults,
|
|
7215
7214
|
type: "single",
|
|
7216
7215
|
firstDayOfWeek: 0
|
|
@@ -7234,7 +7233,7 @@
|
|
|
7234
7233
|
onDayClick,
|
|
7235
7234
|
onPageChange,
|
|
7236
7235
|
onChange
|
|
7237
|
-
} = { ...defaultProps$
|
|
7236
|
+
} = { ...defaultProps$10, ...props };
|
|
7238
7237
|
const [month, setMonth] = React.useState(() => {
|
|
7239
7238
|
let date2 = new Date(Date.now());
|
|
7240
7239
|
const val = value || defaultValue;
|
|
@@ -7538,7 +7537,7 @@
|
|
|
7538
7537
|
});
|
|
7539
7538
|
CalendarCard.displayName = "NutCalendarCard";
|
|
7540
7539
|
const CheckboxGroupContext = React.createContext(null);
|
|
7541
|
-
const defaultProps
|
|
7540
|
+
const defaultProps$$ = {
|
|
7542
7541
|
max: void 0,
|
|
7543
7542
|
min: void 0,
|
|
7544
7543
|
list: false,
|
|
@@ -7558,17 +7557,17 @@
|
|
|
7558
7557
|
className,
|
|
7559
7558
|
disabled,
|
|
7560
7559
|
list,
|
|
7561
|
-
onChange,
|
|
7562
7560
|
value,
|
|
7563
7561
|
defaultValue,
|
|
7564
7562
|
max,
|
|
7565
7563
|
min,
|
|
7566
|
-
onLimit,
|
|
7567
7564
|
labelPosition,
|
|
7568
7565
|
direction,
|
|
7569
7566
|
options,
|
|
7567
|
+
onChange,
|
|
7568
|
+
onLimit,
|
|
7570
7569
|
...rest
|
|
7571
|
-
} = { ...defaultProps
|
|
7570
|
+
} = { ...defaultProps$$, ...props };
|
|
7572
7571
|
React.useImperativeHandle(ref, () => ({
|
|
7573
7572
|
toggle(state) {
|
|
7574
7573
|
if (state === false) {
|
|
@@ -7595,8 +7594,8 @@
|
|
|
7595
7594
|
}
|
|
7596
7595
|
}));
|
|
7597
7596
|
const [_value, setValue] = usePropsValue({
|
|
7598
|
-
value
|
|
7599
|
-
defaultValue
|
|
7597
|
+
value,
|
|
7598
|
+
defaultValue,
|
|
7600
7599
|
finalValue: [],
|
|
7601
7600
|
onChange
|
|
7602
7601
|
});
|
|
@@ -7648,7 +7647,7 @@
|
|
|
7648
7647
|
className: classNames(
|
|
7649
7648
|
classPrefix$j,
|
|
7650
7649
|
{
|
|
7651
|
-
[`nut-checkboxgroup-${
|
|
7650
|
+
[`nut-checkboxgroup-${direction}`]: direction,
|
|
7652
7651
|
[`nut-checkboxgroup-list`]: list
|
|
7653
7652
|
},
|
|
7654
7653
|
className
|
|
@@ -7660,9 +7659,8 @@
|
|
|
7660
7659
|
);
|
|
7661
7660
|
}
|
|
7662
7661
|
);
|
|
7663
|
-
CheckboxGroup.defaultProps = defaultProps$10;
|
|
7664
7662
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
7665
|
-
const defaultProps
|
|
7663
|
+
const defaultProps$_ = {
|
|
7666
7664
|
...ComponentDefaults,
|
|
7667
7665
|
disabled: false,
|
|
7668
7666
|
shape: "round",
|
|
@@ -7676,7 +7674,7 @@
|
|
|
7676
7674
|
const classPrefix$i = "nut-checkbox";
|
|
7677
7675
|
const Checkbox = (props) => {
|
|
7678
7676
|
const { children } = {
|
|
7679
|
-
...defaultProps
|
|
7677
|
+
...defaultProps$_,
|
|
7680
7678
|
...props
|
|
7681
7679
|
};
|
|
7682
7680
|
const {
|
|
@@ -8057,7 +8055,7 @@
|
|
|
8057
8055
|
}, []);
|
|
8058
8056
|
return [refs.current, setRefs, reset];
|
|
8059
8057
|
}
|
|
8060
|
-
const defaultProps$
|
|
8058
|
+
const defaultProps$Z = {
|
|
8061
8059
|
...ComponentDefaults,
|
|
8062
8060
|
visible: false,
|
|
8063
8061
|
title: "",
|
|
@@ -8088,7 +8086,7 @@
|
|
|
8088
8086
|
afterClose,
|
|
8089
8087
|
onChange,
|
|
8090
8088
|
...rest
|
|
8091
|
-
} = { ...defaultProps$
|
|
8089
|
+
} = { ...defaultProps$Z, ...props };
|
|
8092
8090
|
const classPrefix2 = "nut-picker";
|
|
8093
8091
|
const classes = classNames(classPrefix2, className);
|
|
8094
8092
|
const [selectedValue, setSelectedValue] = usePropsValue({
|
|
@@ -8400,7 +8398,7 @@
|
|
|
8400
8398
|
return str;
|
|
8401
8399
|
};
|
|
8402
8400
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
8403
|
-
const defaultProps$
|
|
8401
|
+
const defaultProps$Y = {
|
|
8404
8402
|
...ComponentDefaults,
|
|
8405
8403
|
visible: false,
|
|
8406
8404
|
title: "",
|
|
@@ -8433,7 +8431,7 @@
|
|
|
8433
8431
|
style,
|
|
8434
8432
|
...rest
|
|
8435
8433
|
} = {
|
|
8436
|
-
...defaultProps$
|
|
8434
|
+
...defaultProps$Y,
|
|
8437
8435
|
...props
|
|
8438
8436
|
};
|
|
8439
8437
|
const { locale } = useConfig$1();
|
|
@@ -8557,7 +8555,7 @@
|
|
|
8557
8555
|
if (!isEqual) {
|
|
8558
8556
|
setSelectedDate(formatValue(newDate));
|
|
8559
8557
|
}
|
|
8560
|
-
|
|
8558
|
+
onChange == null ? void 0 : onChange(
|
|
8561
8559
|
selectedOptions,
|
|
8562
8560
|
[
|
|
8563
8561
|
String(newDate.getFullYear()),
|
|
@@ -8654,8 +8652,8 @@
|
|
|
8654
8652
|
}
|
|
8655
8653
|
pickerValue[columnIndex] = (_a = arr[index]) == null ? void 0 : _a.value;
|
|
8656
8654
|
setPickerValue([...pickerValue]);
|
|
8657
|
-
if (
|
|
8658
|
-
return
|
|
8655
|
+
if (filter == null ? void 0 : filter(type22, arr)) {
|
|
8656
|
+
return filter == null ? void 0 : filter(type22, arr);
|
|
8659
8657
|
}
|
|
8660
8658
|
return arr;
|
|
8661
8659
|
};
|
|
@@ -8722,7 +8720,6 @@
|
|
|
8722
8720
|
)
|
|
8723
8721
|
);
|
|
8724
8722
|
};
|
|
8725
|
-
DatePicker.defaultProps = defaultProps$Z;
|
|
8726
8723
|
DatePicker.displayName = "NutDatePicker";
|
|
8727
8724
|
const Context = React.createContext({});
|
|
8728
8725
|
function _extends() {
|
|
@@ -9959,7 +9956,7 @@
|
|
|
9959
9956
|
}
|
|
9960
9957
|
return [formRef.current];
|
|
9961
9958
|
};
|
|
9962
|
-
const defaultProps$
|
|
9959
|
+
const defaultProps$X = {
|
|
9963
9960
|
...ComponentDefaults,
|
|
9964
9961
|
labelPosition: "right",
|
|
9965
9962
|
starPosition: "left",
|
|
@@ -9990,7 +9987,7 @@
|
|
|
9990
9987
|
starPosition,
|
|
9991
9988
|
form
|
|
9992
9989
|
} = {
|
|
9993
|
-
...defaultProps$
|
|
9990
|
+
...defaultProps$X,
|
|
9994
9991
|
...props
|
|
9995
9992
|
};
|
|
9996
9993
|
let formInstance;
|
|
@@ -10046,7 +10043,7 @@
|
|
|
10046
10043
|
}
|
|
10047
10044
|
).$$typeof === component.type.$$typeof;
|
|
10048
10045
|
}
|
|
10049
|
-
const defaultProps$
|
|
10046
|
+
const defaultProps$W = {
|
|
10050
10047
|
...ComponentDefaults,
|
|
10051
10048
|
required: false,
|
|
10052
10049
|
name: "",
|
|
@@ -10142,7 +10139,7 @@
|
|
|
10142
10139
|
style,
|
|
10143
10140
|
errorMessageAlign
|
|
10144
10141
|
} = {
|
|
10145
|
-
...defaultProps$
|
|
10142
|
+
...defaultProps$W,
|
|
10146
10143
|
...this.props
|
|
10147
10144
|
};
|
|
10148
10145
|
const requiredInRules = rules2 == null ? void 0 : rules2.some((rule) => rule.required);
|
|
@@ -10211,7 +10208,7 @@
|
|
|
10211
10208
|
return /* @__PURE__ */ React.createElement(React.Fragment, { key: this.state.resetCount }, this.props.noStyle ? returnChildNode : this.renderLayout(returnChildNode));
|
|
10212
10209
|
}
|
|
10213
10210
|
};
|
|
10214
|
-
_FormItem.defaultProps = defaultProps$
|
|
10211
|
+
_FormItem.defaultProps = defaultProps$W;
|
|
10215
10212
|
_FormItem.contextType = Context;
|
|
10216
10213
|
let FormItem = _FormItem;
|
|
10217
10214
|
const InnerForm = Form;
|
|
@@ -10241,7 +10238,7 @@
|
|
|
10241
10238
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
10242
10239
|
return value.replace(regExp, "");
|
|
10243
10240
|
}
|
|
10244
|
-
const defaultProps$
|
|
10241
|
+
const defaultProps$V = {
|
|
10245
10242
|
...ComponentDefaults,
|
|
10246
10243
|
type: "text",
|
|
10247
10244
|
name: "",
|
|
@@ -10286,7 +10283,7 @@
|
|
|
10286
10283
|
value: _value,
|
|
10287
10284
|
...rest
|
|
10288
10285
|
} = {
|
|
10289
|
-
...defaultProps$
|
|
10286
|
+
...defaultProps$V,
|
|
10290
10287
|
...props
|
|
10291
10288
|
};
|
|
10292
10289
|
const [value, setValue] = usePropsValue({
|
|
@@ -10437,7 +10434,7 @@
|
|
|
10437
10434
|
}
|
|
10438
10435
|
);
|
|
10439
10436
|
Input.displayName = "NutInput";
|
|
10440
|
-
const defaultProps$
|
|
10437
|
+
const defaultProps$U = {
|
|
10441
10438
|
...ComponentDefaults,
|
|
10442
10439
|
disabled: false,
|
|
10443
10440
|
readOnly: false,
|
|
@@ -10475,7 +10472,7 @@
|
|
|
10475
10472
|
onChange,
|
|
10476
10473
|
...restProps
|
|
10477
10474
|
} = {
|
|
10478
|
-
...defaultProps$
|
|
10475
|
+
...defaultProps$U,
|
|
10479
10476
|
...props
|
|
10480
10477
|
};
|
|
10481
10478
|
const classes = classNames(classPrefix$h, className, {
|
|
@@ -10628,7 +10625,7 @@
|
|
|
10628
10625
|
)));
|
|
10629
10626
|
};
|
|
10630
10627
|
InputNumber.displayName = "NutInputNumber";
|
|
10631
|
-
const defaultProps$
|
|
10628
|
+
const defaultProps$T = {
|
|
10632
10629
|
...ComponentDefaults,
|
|
10633
10630
|
columns: 1,
|
|
10634
10631
|
direction: "down",
|
|
@@ -10659,7 +10656,7 @@
|
|
|
10659
10656
|
parent,
|
|
10660
10657
|
index
|
|
10661
10658
|
} = {
|
|
10662
|
-
...defaultProps$
|
|
10659
|
+
...defaultProps$T,
|
|
10663
10660
|
...props
|
|
10664
10661
|
};
|
|
10665
10662
|
const [showPopup, setShowPopup] = React.useState(show2);
|
|
@@ -10840,7 +10837,7 @@
|
|
|
10840
10837
|
));
|
|
10841
10838
|
});
|
|
10842
10839
|
MenuItem.displayName = "NutMenuItem";
|
|
10843
|
-
const defaultProps$
|
|
10840
|
+
const defaultProps$S = {
|
|
10844
10841
|
...ComponentDefaults,
|
|
10845
10842
|
activeColor: "",
|
|
10846
10843
|
closeOnOverlayClick: true,
|
|
@@ -10867,7 +10864,7 @@
|
|
|
10867
10864
|
onOpen,
|
|
10868
10865
|
...rest
|
|
10869
10866
|
} = {
|
|
10870
|
-
...defaultProps$
|
|
10867
|
+
...defaultProps$S,
|
|
10871
10868
|
...props
|
|
10872
10869
|
};
|
|
10873
10870
|
const menuRef = React.useRef(null);
|
|
@@ -10946,14 +10943,10 @@
|
|
|
10946
10943
|
return /* @__PURE__ */ React.createElement(
|
|
10947
10944
|
"div",
|
|
10948
10945
|
{
|
|
10949
|
-
className: classNames(
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
disabled
|
|
10954
|
-
},
|
|
10955
|
-
className
|
|
10956
|
-
),
|
|
10946
|
+
className: classNames("nut-menu-title", `nut-menu-title-${index}`, {
|
|
10947
|
+
active: showMenuItem[index],
|
|
10948
|
+
disabled
|
|
10949
|
+
}),
|
|
10957
10950
|
style: { color: showMenuItem[index] ? activeColor : "" },
|
|
10958
10951
|
key: index,
|
|
10959
10952
|
onClick: () => {
|
|
@@ -11130,7 +11123,7 @@
|
|
|
11130
11123
|
};
|
|
11131
11124
|
NumberKeyboard.displayName = "NutNumberKeyboard";
|
|
11132
11125
|
const RadioContext = React.createContext(null);
|
|
11133
|
-
const defaultProps$
|
|
11126
|
+
const defaultProps$R = {
|
|
11134
11127
|
labelPosition: "right",
|
|
11135
11128
|
onChange: (value) => {
|
|
11136
11129
|
},
|
|
@@ -11152,7 +11145,7 @@
|
|
|
11152
11145
|
options,
|
|
11153
11146
|
disabled,
|
|
11154
11147
|
...rest
|
|
11155
|
-
} = { ...defaultProps$
|
|
11148
|
+
} = { ...defaultProps$R, ...props };
|
|
11156
11149
|
const [val2State, setVal2State] = usePropsValue({
|
|
11157
11150
|
defaultValue: props.defaultValue,
|
|
11158
11151
|
value: props.value,
|
|
@@ -11209,9 +11202,8 @@
|
|
|
11209
11202
|
);
|
|
11210
11203
|
}
|
|
11211
11204
|
);
|
|
11212
|
-
RadioGroup.defaultProps = defaultProps$S;
|
|
11213
11205
|
RadioGroup.displayName = "NutRadioGroup";
|
|
11214
|
-
const defaultProps$
|
|
11206
|
+
const defaultProps$Q = {
|
|
11215
11207
|
...ComponentDefaults,
|
|
11216
11208
|
disabled: false,
|
|
11217
11209
|
shape: "round",
|
|
@@ -11237,7 +11229,7 @@
|
|
|
11237
11229
|
onChange,
|
|
11238
11230
|
...others
|
|
11239
11231
|
} = {
|
|
11240
|
-
...defaultProps$
|
|
11232
|
+
...defaultProps$Q,
|
|
11241
11233
|
...props
|
|
11242
11234
|
};
|
|
11243
11235
|
let { labelPosition, disabled, ...rest } = others;
|
|
@@ -11337,10 +11329,9 @@
|
|
|
11337
11329
|
renderRadioItem()
|
|
11338
11330
|
);
|
|
11339
11331
|
};
|
|
11340
|
-
Radio.defaultProps = defaultProps$R;
|
|
11341
11332
|
Radio.displayName = "NutRadio";
|
|
11342
11333
|
Radio.Group = RadioGroup;
|
|
11343
|
-
const defaultProps$
|
|
11334
|
+
const defaultProps$P = {
|
|
11344
11335
|
...ComponentDefaults,
|
|
11345
11336
|
range: false,
|
|
11346
11337
|
min: 0,
|
|
@@ -11369,7 +11360,7 @@
|
|
|
11369
11360
|
step,
|
|
11370
11361
|
value,
|
|
11371
11362
|
defaultValue
|
|
11372
|
-
} = { ...defaultProps$
|
|
11363
|
+
} = { ...defaultProps$P, ...props };
|
|
11373
11364
|
const classPrefix2 = "nut-range";
|
|
11374
11365
|
const [buttonIndex, setButtonIndex] = React.useState(0);
|
|
11375
11366
|
const [dragStatus, setDragStatus] = React.useState("start");
|
|
@@ -11651,7 +11642,7 @@
|
|
|
11651
11642
|
))), maxDescription !== null && /* @__PURE__ */ React.createElement("div", { className: "max" }, maxDescription || max));
|
|
11652
11643
|
};
|
|
11653
11644
|
Range.displayName = "NutRange";
|
|
11654
|
-
const defaultProps$
|
|
11645
|
+
const defaultProps$O = {
|
|
11655
11646
|
...ComponentDefaults,
|
|
11656
11647
|
count: 5,
|
|
11657
11648
|
min: 0,
|
|
@@ -11679,7 +11670,7 @@
|
|
|
11679
11670
|
onChange,
|
|
11680
11671
|
onTouchEnd
|
|
11681
11672
|
} = {
|
|
11682
|
-
...defaultProps$
|
|
11673
|
+
...defaultProps$O,
|
|
11683
11674
|
...props
|
|
11684
11675
|
};
|
|
11685
11676
|
const classPrefix2 = "nut-rate";
|
|
@@ -11836,7 +11827,7 @@
|
|
|
11836
11827
|
);
|
|
11837
11828
|
};
|
|
11838
11829
|
Rate.displayName = "NutRate";
|
|
11839
|
-
const defaultProps$
|
|
11830
|
+
const defaultProps$N = {
|
|
11840
11831
|
...ComponentDefaults,
|
|
11841
11832
|
placeholder: "",
|
|
11842
11833
|
shape: "square",
|
|
@@ -11878,7 +11869,7 @@
|
|
|
11878
11869
|
onSearch,
|
|
11879
11870
|
onInputClick
|
|
11880
11871
|
} = {
|
|
11881
|
-
...defaultProps$
|
|
11872
|
+
...defaultProps$N,
|
|
11882
11873
|
...props
|
|
11883
11874
|
};
|
|
11884
11875
|
const [value, setValue] = React.useState(() => outerValue);
|
|
@@ -11995,7 +11986,7 @@
|
|
|
11995
11986
|
);
|
|
11996
11987
|
};
|
|
11997
11988
|
SearchBar.displayName = "NutSearchBar";
|
|
11998
|
-
const defaultProps$
|
|
11989
|
+
const defaultProps$M = {
|
|
11999
11990
|
...ComponentDefaults,
|
|
12000
11991
|
value: "",
|
|
12001
11992
|
visible: false,
|
|
@@ -12032,7 +12023,7 @@
|
|
|
12032
12023
|
onCloseIconClick,
|
|
12033
12024
|
...rest
|
|
12034
12025
|
} = {
|
|
12035
|
-
...defaultProps$
|
|
12026
|
+
...defaultProps$M,
|
|
12036
12027
|
...props
|
|
12037
12028
|
};
|
|
12038
12029
|
const classPrefix2 = "nut-shortpassword";
|
|
@@ -12092,7 +12083,7 @@
|
|
|
12092
12083
|
);
|
|
12093
12084
|
};
|
|
12094
12085
|
const ShortPassword = React.forwardRef(InternalShortPassword);
|
|
12095
|
-
const defaultProps$
|
|
12086
|
+
const defaultProps$L = {
|
|
12096
12087
|
...ComponentDefaults,
|
|
12097
12088
|
canvasId: "spcanvas",
|
|
12098
12089
|
type: "png",
|
|
@@ -12111,7 +12102,7 @@
|
|
|
12111
12102
|
onClear,
|
|
12112
12103
|
...rest
|
|
12113
12104
|
} = {
|
|
12114
|
-
...defaultProps$
|
|
12105
|
+
...defaultProps$L,
|
|
12115
12106
|
...props
|
|
12116
12107
|
};
|
|
12117
12108
|
const classPrefix2 = `nut-signature`;
|
|
@@ -12268,7 +12259,7 @@
|
|
|
12268
12259
|
InternalSignature
|
|
12269
12260
|
);
|
|
12270
12261
|
Signature.displayName = "NutSignature";
|
|
12271
|
-
const defaultProps$
|
|
12262
|
+
const defaultProps$K = {
|
|
12272
12263
|
...ComponentDefaults,
|
|
12273
12264
|
disabled: false,
|
|
12274
12265
|
activeText: "",
|
|
@@ -12286,7 +12277,7 @@
|
|
|
12286
12277
|
onChange,
|
|
12287
12278
|
...rest
|
|
12288
12279
|
} = {
|
|
12289
|
-
...defaultProps$
|
|
12280
|
+
...defaultProps$K,
|
|
12290
12281
|
...props
|
|
12291
12282
|
};
|
|
12292
12283
|
const classPrefix2 = "nut-switch";
|
|
@@ -12314,7 +12305,7 @@
|
|
|
12314
12305
|
);
|
|
12315
12306
|
};
|
|
12316
12307
|
Switch.displayName = "NutSwitch";
|
|
12317
|
-
const defaultProps$
|
|
12308
|
+
const defaultProps$J = {
|
|
12318
12309
|
...ComponentDefaults,
|
|
12319
12310
|
defaultValue: "",
|
|
12320
12311
|
showCount: false,
|
|
@@ -12342,7 +12333,7 @@
|
|
|
12342
12333
|
onBlur,
|
|
12343
12334
|
onFocus,
|
|
12344
12335
|
...rest
|
|
12345
|
-
} = { ...defaultProps$
|
|
12336
|
+
} = { ...defaultProps$J, ...props };
|
|
12346
12337
|
const classPrefix2 = "nut-textarea";
|
|
12347
12338
|
const compositionRef = React.useRef(false);
|
|
12348
12339
|
const format2 = (value2) => {
|
|
@@ -12572,7 +12563,7 @@
|
|
|
12572
12563
|
this.formData = {};
|
|
12573
12564
|
}
|
|
12574
12565
|
}
|
|
12575
|
-
const defaultProps$
|
|
12566
|
+
const defaultProps$I = {
|
|
12576
12567
|
...ComponentDefaults,
|
|
12577
12568
|
percent: 0,
|
|
12578
12569
|
showText: false,
|
|
@@ -12596,7 +12587,7 @@
|
|
|
12596
12587
|
delay,
|
|
12597
12588
|
...rest
|
|
12598
12589
|
} = {
|
|
12599
|
-
...defaultProps$
|
|
12590
|
+
...defaultProps$I,
|
|
12600
12591
|
...props
|
|
12601
12592
|
};
|
|
12602
12593
|
const classPrefix2 = "nut-progress";
|
|
@@ -12805,7 +12796,7 @@
|
|
|
12805
12796
|
);
|
|
12806
12797
|
}));
|
|
12807
12798
|
};
|
|
12808
|
-
const defaultProps$
|
|
12799
|
+
const defaultProps$H = {
|
|
12809
12800
|
...ComponentDefaults,
|
|
12810
12801
|
url: "",
|
|
12811
12802
|
maxCount: 1,
|
|
@@ -12880,7 +12871,7 @@
|
|
|
12880
12871
|
beforeXhrUpload,
|
|
12881
12872
|
beforeDelete,
|
|
12882
12873
|
...restProps
|
|
12883
|
-
} = { ...defaultProps$
|
|
12874
|
+
} = { ...defaultProps$H, ...props };
|
|
12884
12875
|
const [fileList, setFileList] = usePropsValue({
|
|
12885
12876
|
value,
|
|
12886
12877
|
defaultValue,
|
|
@@ -13171,7 +13162,7 @@
|
|
|
13171
13162
|
};
|
|
13172
13163
|
const Uploader = React.forwardRef(InternalUploader);
|
|
13173
13164
|
Uploader.displayName = "NutUploader";
|
|
13174
|
-
const defaultProps$
|
|
13165
|
+
const defaultProps$G = {
|
|
13175
13166
|
...ComponentDefaults,
|
|
13176
13167
|
visible: false,
|
|
13177
13168
|
description: "",
|
|
@@ -13197,7 +13188,7 @@
|
|
|
13197
13188
|
className,
|
|
13198
13189
|
style,
|
|
13199
13190
|
...rest
|
|
13200
|
-
} = { ...defaultProps$
|
|
13191
|
+
} = { ...defaultProps$G, ...props };
|
|
13201
13192
|
const classPrefix2 = "nut-actionsheet";
|
|
13202
13193
|
const cancelActionSheet = () => {
|
|
13203
13194
|
onCancel && onCancel();
|
|
@@ -13335,7 +13326,7 @@
|
|
|
13335
13326
|
const params = stateRef.current;
|
|
13336
13327
|
return { params, setParams };
|
|
13337
13328
|
}
|
|
13338
|
-
const defaultProps$
|
|
13329
|
+
const defaultProps$F = {
|
|
13339
13330
|
title: "",
|
|
13340
13331
|
content: "",
|
|
13341
13332
|
header: "",
|
|
@@ -13389,7 +13380,7 @@
|
|
|
13389
13380
|
beforeClose
|
|
13390
13381
|
},
|
|
13391
13382
|
setParams
|
|
13392
|
-
} = useParams({ ...defaultProps$
|
|
13383
|
+
} = useParams({ ...defaultProps$F, ...props });
|
|
13393
13384
|
useCustomEvent(
|
|
13394
13385
|
id,
|
|
13395
13386
|
({ status, options }) => {
|
|
@@ -13514,11 +13505,11 @@
|
|
|
13514
13505
|
const path = useCustomEventsPath(selector);
|
|
13515
13506
|
customEvents.trigger(path, { status: false });
|
|
13516
13507
|
}
|
|
13517
|
-
BaseDialog.defaultProps = defaultProps$
|
|
13508
|
+
BaseDialog.defaultProps = defaultProps$F;
|
|
13518
13509
|
BaseDialog.displayName = "NutDialog";
|
|
13519
13510
|
BaseDialog.open = open$1;
|
|
13520
13511
|
BaseDialog.close = close$1;
|
|
13521
|
-
const defaultProps$
|
|
13512
|
+
const defaultProps$E = {
|
|
13522
13513
|
...ComponentDefaults,
|
|
13523
13514
|
attract: false,
|
|
13524
13515
|
direction: void 0,
|
|
@@ -13543,7 +13534,7 @@
|
|
|
13543
13534
|
style,
|
|
13544
13535
|
...reset
|
|
13545
13536
|
} = {
|
|
13546
|
-
...defaultProps$
|
|
13537
|
+
...defaultProps$E,
|
|
13547
13538
|
...props
|
|
13548
13539
|
};
|
|
13549
13540
|
const classPrefix2 = "nut-drag";
|
|
@@ -13656,7 +13647,7 @@
|
|
|
13656
13647
|
error: "https://storage.360buyimg.com/imgtools/f3278d0ebb-0ce360c0-c0ac-11ee-8375-193101bb1a46.png",
|
|
13657
13648
|
network: "https://storage.360buyimg.com/imgtools/43c30f7e29-0d483d10-c0ac-11ee-bec4-eb4d2a09a51d.png"
|
|
13658
13649
|
};
|
|
13659
|
-
const defaultProps$
|
|
13650
|
+
const defaultProps$D = {
|
|
13660
13651
|
...ComponentDefaults,
|
|
13661
13652
|
title: "",
|
|
13662
13653
|
description: "",
|
|
@@ -13680,7 +13671,7 @@
|
|
|
13680
13671
|
actions,
|
|
13681
13672
|
...rest
|
|
13682
13673
|
} = {
|
|
13683
|
-
...defaultProps$
|
|
13674
|
+
...defaultProps$D,
|
|
13684
13675
|
...props
|
|
13685
13676
|
};
|
|
13686
13677
|
const [imgStyle, setImgStyle] = React.useState({});
|
|
@@ -13725,7 +13716,7 @@
|
|
|
13725
13716
|
})), children);
|
|
13726
13717
|
};
|
|
13727
13718
|
Empty.displayName = "NutEmpty";
|
|
13728
|
-
const defaultProps$
|
|
13719
|
+
const defaultProps$C = {
|
|
13729
13720
|
...ComponentDefaults,
|
|
13730
13721
|
type: "default",
|
|
13731
13722
|
hasMore: true,
|
|
@@ -13752,7 +13743,7 @@
|
|
|
13752
13743
|
onScroll,
|
|
13753
13744
|
...rest
|
|
13754
13745
|
} = {
|
|
13755
|
-
...defaultProps$
|
|
13746
|
+
...defaultProps$C,
|
|
13756
13747
|
...props
|
|
13757
13748
|
};
|
|
13758
13749
|
const [isInfiniting, setIsInfiniting] = React.useState(false);
|
|
@@ -13866,7 +13857,7 @@
|
|
|
13866
13857
|
circular: D$5,
|
|
13867
13858
|
spinner: I
|
|
13868
13859
|
};
|
|
13869
|
-
const defaultProps$
|
|
13860
|
+
const defaultProps$B = {
|
|
13870
13861
|
...ComponentDefaults,
|
|
13871
13862
|
// 对比一下,个人感觉还是Loading1比较好看一些,所以用它作为了默认的loading图标
|
|
13872
13863
|
type: "circular",
|
|
@@ -13874,7 +13865,7 @@
|
|
|
13874
13865
|
};
|
|
13875
13866
|
const Loading = (props) => {
|
|
13876
13867
|
const { className, style, children, direction, icon, ...rest } = {
|
|
13877
|
-
...defaultProps$
|
|
13868
|
+
...defaultProps$B,
|
|
13878
13869
|
...props
|
|
13879
13870
|
};
|
|
13880
13871
|
const classPrefix2 = "nut-loading";
|
|
@@ -13894,7 +13885,7 @@
|
|
|
13894
13885
|
);
|
|
13895
13886
|
};
|
|
13896
13887
|
Loading.displayName = "NutLoading";
|
|
13897
|
-
const defaultProps$
|
|
13888
|
+
const defaultProps$A = {
|
|
13898
13889
|
...ComponentDefaults,
|
|
13899
13890
|
align: "left",
|
|
13900
13891
|
direction: "horizontal",
|
|
@@ -13937,7 +13928,7 @@
|
|
|
13937
13928
|
onClick,
|
|
13938
13929
|
onItemClick
|
|
13939
13930
|
} = {
|
|
13940
|
-
...defaultProps$
|
|
13931
|
+
...defaultProps$A,
|
|
13941
13932
|
...props
|
|
13942
13933
|
};
|
|
13943
13934
|
const classPrefix2 = "nut-noticebar";
|
|
@@ -14311,7 +14302,7 @@
|
|
|
14311
14302
|
) : null);
|
|
14312
14303
|
};
|
|
14313
14304
|
NoticeBar.displayName = "NutNoticeBar";
|
|
14314
|
-
const defaultProps$
|
|
14305
|
+
const defaultProps$z = {
|
|
14315
14306
|
...ComponentDefaults,
|
|
14316
14307
|
id: "",
|
|
14317
14308
|
duration: 3e3,
|
|
@@ -14337,7 +14328,7 @@
|
|
|
14337
14328
|
duration,
|
|
14338
14329
|
onClose,
|
|
14339
14330
|
onClick
|
|
14340
|
-
} = { ...defaultProps$
|
|
14331
|
+
} = { ...defaultProps$z, ...props };
|
|
14341
14332
|
useCustomEvent(id, (status) => {
|
|
14342
14333
|
status ? show2() : hide2();
|
|
14343
14334
|
});
|
|
@@ -14408,11 +14399,11 @@
|
|
|
14408
14399
|
const path = useCustomEventsPath(selector);
|
|
14409
14400
|
customEvents.trigger(path, false);
|
|
14410
14401
|
}
|
|
14411
|
-
Notify.defaultProps = defaultProps$
|
|
14402
|
+
Notify.defaultProps = defaultProps$z;
|
|
14412
14403
|
Notify.displayName = "NutNotify";
|
|
14413
14404
|
Notify.open = open;
|
|
14414
14405
|
Notify.close = close;
|
|
14415
|
-
const defaultProps$
|
|
14406
|
+
const defaultProps$y = {
|
|
14416
14407
|
...ComponentDefaults,
|
|
14417
14408
|
list: [],
|
|
14418
14409
|
theme: "light",
|
|
@@ -14457,7 +14448,7 @@
|
|
|
14457
14448
|
onSelect,
|
|
14458
14449
|
...rest
|
|
14459
14450
|
} = {
|
|
14460
|
-
...defaultProps$
|
|
14451
|
+
...defaultProps$y,
|
|
14461
14452
|
...props
|
|
14462
14453
|
};
|
|
14463
14454
|
const popoverRef = React.useRef(null);
|
|
@@ -14715,7 +14706,7 @@
|
|
|
14715
14706
|
return position;
|
|
14716
14707
|
}
|
|
14717
14708
|
const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));
|
|
14718
|
-
const defaultProps$
|
|
14709
|
+
const defaultProps$x = {
|
|
14719
14710
|
...ComponentDefaults,
|
|
14720
14711
|
type: "default",
|
|
14721
14712
|
pullingText: "",
|
|
@@ -14735,7 +14726,7 @@
|
|
|
14735
14726
|
const { locale } = useConfig$1();
|
|
14736
14727
|
const touch = useTouch();
|
|
14737
14728
|
const props = {
|
|
14738
|
-
...defaultProps$
|
|
14729
|
+
...defaultProps$x,
|
|
14739
14730
|
...p,
|
|
14740
14731
|
...{
|
|
14741
14732
|
pullingText: p.pullingText || locale.pullToRefresh.pullingText,
|
|
@@ -14853,10 +14844,9 @@
|
|
|
14853
14844
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, props.children)
|
|
14854
14845
|
);
|
|
14855
14846
|
};
|
|
14856
|
-
PullToRefresh.defaultProps = defaultProps$y;
|
|
14857
14847
|
PullToRefresh.displayName = "NutPullToRefresh";
|
|
14858
14848
|
const AvatarContext = React.createContext({});
|
|
14859
|
-
const defaultProps$
|
|
14849
|
+
const defaultProps$w = {
|
|
14860
14850
|
...ComponentDefaults,
|
|
14861
14851
|
maxContent: "",
|
|
14862
14852
|
max: "",
|
|
@@ -14867,7 +14857,7 @@
|
|
|
14867
14857
|
};
|
|
14868
14858
|
const classPrefix$b = `nut-avatar-group`;
|
|
14869
14859
|
const AvatarGroup = (props) => {
|
|
14870
|
-
const propAvatarGroup = { ...defaultProps$
|
|
14860
|
+
const propAvatarGroup = { ...defaultProps$w, ...props };
|
|
14871
14861
|
const { className, style, children } = propAvatarGroup;
|
|
14872
14862
|
const avatarGroupRef = React.useRef(null);
|
|
14873
14863
|
const cls = classNames(classPrefix$b, className);
|
|
@@ -14878,7 +14868,7 @@
|
|
|
14878
14868
|
return /* @__PURE__ */ React.createElement(AvatarContext.Provider, { value: parentAvatar }, /* @__PURE__ */ React.createElement("div", { className: cls, style, ref: avatarGroupRef }, children));
|
|
14879
14869
|
};
|
|
14880
14870
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
14881
|
-
const defaultProps$
|
|
14871
|
+
const defaultProps$v = {
|
|
14882
14872
|
...ComponentDefaults,
|
|
14883
14873
|
size: "",
|
|
14884
14874
|
shape: "round",
|
|
@@ -14908,7 +14898,7 @@
|
|
|
14908
14898
|
onError,
|
|
14909
14899
|
...rest
|
|
14910
14900
|
} = {
|
|
14911
|
-
...defaultProps$
|
|
14901
|
+
...defaultProps$v,
|
|
14912
14902
|
...props
|
|
14913
14903
|
};
|
|
14914
14904
|
const [maxSum, setMaxSum] = React.useState(0);
|
|
@@ -14998,7 +14988,7 @@
|
|
|
14998
14988
|
};
|
|
14999
14989
|
Avatar.displayName = "NutAvatar";
|
|
15000
14990
|
Avatar.Group = AvatarGroup;
|
|
15001
|
-
const defaultProps$
|
|
14991
|
+
const defaultProps$u = {
|
|
15002
14992
|
...ComponentDefaults,
|
|
15003
14993
|
rows: 1,
|
|
15004
14994
|
animated: false,
|
|
@@ -15021,7 +15011,7 @@
|
|
|
15021
15011
|
avatarShape,
|
|
15022
15012
|
...rest
|
|
15023
15013
|
} = {
|
|
15024
|
-
...defaultProps$
|
|
15014
|
+
...defaultProps$u,
|
|
15025
15015
|
...props
|
|
15026
15016
|
};
|
|
15027
15017
|
const classPrefix2 = "nut-skeleton";
|
|
@@ -15067,7 +15057,7 @@
|
|
|
15067
15057
|
event.stopPropagation();
|
|
15068
15058
|
}
|
|
15069
15059
|
}
|
|
15070
|
-
const defaultProps$
|
|
15060
|
+
const defaultProps$t = {
|
|
15071
15061
|
...ComponentDefaults,
|
|
15072
15062
|
name: ""
|
|
15073
15063
|
};
|
|
@@ -15087,7 +15077,7 @@
|
|
|
15087
15077
|
};
|
|
15088
15078
|
Taro.nextTick(() => getWidth());
|
|
15089
15079
|
});
|
|
15090
|
-
const { children, className, style } = { ...defaultProps$
|
|
15080
|
+
const { children, className, style } = { ...defaultProps$t, ...props };
|
|
15091
15081
|
const root2 = React.useRef();
|
|
15092
15082
|
const opened = React.useRef(false);
|
|
15093
15083
|
const lockClick = React.useRef(false);
|
|
@@ -15247,9 +15237,8 @@
|
|
|
15247
15237
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-wrapper`, style: wrapperStyle }, renderActionContent("left"), children, renderActionContent("right"))
|
|
15248
15238
|
);
|
|
15249
15239
|
});
|
|
15250
|
-
Swipe.defaultProps = defaultProps$u;
|
|
15251
15240
|
Swipe.displayName = "NutSwipe";
|
|
15252
|
-
const defaultProps$
|
|
15241
|
+
const defaultProps$s = {
|
|
15253
15242
|
...ComponentDefaults,
|
|
15254
15243
|
id: "",
|
|
15255
15244
|
icon: null,
|
|
@@ -15298,7 +15287,7 @@
|
|
|
15298
15287
|
wordBreak
|
|
15299
15288
|
},
|
|
15300
15289
|
setParams
|
|
15301
|
-
} = useParams({ ...defaultProps$
|
|
15290
|
+
} = useParams({ ...defaultProps$s, ...props });
|
|
15302
15291
|
const timer = React.useRef(-1);
|
|
15303
15292
|
const [innerVisible, setInnerVisible] = usePropsValue({
|
|
15304
15293
|
value: visible,
|
|
@@ -15406,11 +15395,11 @@
|
|
|
15406
15395
|
const path = useCustomEventsPath(selector);
|
|
15407
15396
|
customEvents.trigger(path, { status: false });
|
|
15408
15397
|
}
|
|
15409
|
-
Toast.defaultProps = defaultProps$
|
|
15398
|
+
Toast.defaultProps = defaultProps$s;
|
|
15410
15399
|
Toast.displayName = "NutToast";
|
|
15411
15400
|
Toast.show = show;
|
|
15412
15401
|
Toast.hide = hide;
|
|
15413
|
-
const defaultProps$
|
|
15402
|
+
const defaultProps$r = {
|
|
15414
15403
|
...ComponentDefaults,
|
|
15415
15404
|
type: "shake",
|
|
15416
15405
|
action: "initial",
|
|
@@ -15421,7 +15410,7 @@
|
|
|
15421
15410
|
const classPrefix$8 = `nut-animate`;
|
|
15422
15411
|
const Animate = (props) => {
|
|
15423
15412
|
const { className, type: type2, action, loop, onClick, children, ...rest } = {
|
|
15424
|
-
...defaultProps$
|
|
15413
|
+
...defaultProps$r,
|
|
15425
15414
|
...props
|
|
15426
15415
|
};
|
|
15427
15416
|
const [clicked, setClicked] = React.useState(false);
|
|
@@ -15443,7 +15432,7 @@
|
|
|
15443
15432
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-animate" }, /* @__PURE__ */ React.createElement("div", { className: cls, onClick: handleClick, ...rest }, children));
|
|
15444
15433
|
};
|
|
15445
15434
|
Animate.displayName = "NutAnimate";
|
|
15446
|
-
const defaultProps$
|
|
15435
|
+
const defaultProps$q = {
|
|
15447
15436
|
...ComponentDefaults,
|
|
15448
15437
|
length: 0,
|
|
15449
15438
|
value: "",
|
|
@@ -15462,7 +15451,7 @@
|
|
|
15462
15451
|
style,
|
|
15463
15452
|
...reset
|
|
15464
15453
|
} = {
|
|
15465
|
-
...defaultProps$
|
|
15454
|
+
...defaultProps$q,
|
|
15466
15455
|
...props
|
|
15467
15456
|
};
|
|
15468
15457
|
const classPrefix2 = "nut-countup";
|
|
@@ -15536,9 +15525,9 @@
|
|
|
15536
15525
|
);
|
|
15537
15526
|
})));
|
|
15538
15527
|
};
|
|
15539
|
-
CountUp.defaultProps = defaultProps$
|
|
15528
|
+
CountUp.defaultProps = defaultProps$q;
|
|
15540
15529
|
CountUp.displayName = "NutCountUp";
|
|
15541
|
-
const defaultProps$
|
|
15530
|
+
const defaultProps$p = {};
|
|
15542
15531
|
const _AnimatingNumbers = class _AnimatingNumbers extends React.Component {
|
|
15543
15532
|
constructor(props) {
|
|
15544
15533
|
super(props);
|
|
@@ -15548,12 +15537,12 @@
|
|
|
15548
15537
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-animatingnumbers" });
|
|
15549
15538
|
}
|
|
15550
15539
|
};
|
|
15551
|
-
_AnimatingNumbers.defaultProps = defaultProps$
|
|
15540
|
+
_AnimatingNumbers.defaultProps = defaultProps$p;
|
|
15552
15541
|
_AnimatingNumbers.displayName = "NutAnimatingNumbers";
|
|
15553
15542
|
_AnimatingNumbers.CountUp = CountUp;
|
|
15554
15543
|
let AnimatingNumbers = _AnimatingNumbers;
|
|
15555
15544
|
AnimatingNumbers.CountUp = CountUp;
|
|
15556
|
-
const defaultProps$
|
|
15545
|
+
const defaultProps$o = {
|
|
15557
15546
|
...ComponentDefaults,
|
|
15558
15547
|
className: "",
|
|
15559
15548
|
url: "",
|
|
@@ -15597,7 +15586,7 @@
|
|
|
15597
15586
|
iconFontClassName,
|
|
15598
15587
|
...rest
|
|
15599
15588
|
} = {
|
|
15600
|
-
...defaultProps$
|
|
15589
|
+
...defaultProps$o,
|
|
15601
15590
|
...props
|
|
15602
15591
|
};
|
|
15603
15592
|
const [playing, setPlaying] = React.useState(false);
|
|
@@ -15616,19 +15605,19 @@
|
|
|
15616
15605
|
audioCtx.autoplay = autoplay || false;
|
|
15617
15606
|
audioCtx.loop = loop || false;
|
|
15618
15607
|
audioCtx.onPause(() => {
|
|
15619
|
-
|
|
15608
|
+
onPause == null ? void 0 : onPause(audioCtx);
|
|
15620
15609
|
});
|
|
15621
15610
|
audioCtx.onEnded(() => {
|
|
15622
|
-
if (
|
|
15611
|
+
if (loop) {
|
|
15623
15612
|
console.warn(locale.audio.tips || "onPlayEnd事件在loop=false时才会触发");
|
|
15624
15613
|
} else {
|
|
15625
|
-
|
|
15614
|
+
onPlayEnd == null ? void 0 : onPlayEnd(audioCtx);
|
|
15626
15615
|
}
|
|
15627
15616
|
});
|
|
15628
15617
|
audioCtx.onPlay(() => {
|
|
15629
15618
|
const { duration } = audioCtx;
|
|
15630
15619
|
setTotalSeconds(Math.floor(duration));
|
|
15631
|
-
|
|
15620
|
+
onPlay == null ? void 0 : onPlay(audioCtx);
|
|
15632
15621
|
});
|
|
15633
15622
|
audioCtx.onCanplay(() => {
|
|
15634
15623
|
const intervalID = setInterval(function() {
|
|
@@ -15638,7 +15627,7 @@
|
|
|
15638
15627
|
}
|
|
15639
15628
|
}, 500);
|
|
15640
15629
|
setIsCanPlay(true);
|
|
15641
|
-
|
|
15630
|
+
onCanPlay == null ? void 0 : onCanPlay(audioCtx);
|
|
15642
15631
|
});
|
|
15643
15632
|
audioCtx.onTimeUpdate(() => {
|
|
15644
15633
|
const time = parseInt(`${audioCtx.currentTime}`);
|
|
@@ -15670,14 +15659,14 @@
|
|
|
15670
15659
|
statusRef.current.currentTime = Math.max(currentTime - 1, 0);
|
|
15671
15660
|
setCurrentDuration(formatSeconds(statusRef.current.currentTime.toString()));
|
|
15672
15661
|
audioCtx.seek(statusRef.current.currentTime);
|
|
15673
|
-
|
|
15662
|
+
onFastBack == null ? void 0 : onFastBack(audioCtx);
|
|
15674
15663
|
};
|
|
15675
15664
|
const handleForward = () => {
|
|
15676
15665
|
const currentTime = Math.floor(audioCtx.currentTime);
|
|
15677
15666
|
statusRef.current.currentTime = Math.min(currentTime + 1, audioCtx.duration);
|
|
15678
15667
|
setCurrentDuration(formatSeconds(statusRef.current.currentTime.toString()));
|
|
15679
15668
|
audioCtx.seek(statusRef.current.currentTime);
|
|
15680
|
-
|
|
15669
|
+
onForward == null ? void 0 : onForward(audioCtx);
|
|
15681
15670
|
};
|
|
15682
15671
|
const handleStatusChange = () => {
|
|
15683
15672
|
setPlaying(!playing);
|
|
@@ -15761,9 +15750,8 @@
|
|
|
15761
15750
|
};
|
|
15762
15751
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, renderAudio());
|
|
15763
15752
|
};
|
|
15764
|
-
Audio.defaultProps = defaultProps$p;
|
|
15765
15753
|
Audio.displayName = "NutAudio";
|
|
15766
|
-
const defaultProps$
|
|
15754
|
+
const defaultProps$n = {
|
|
15767
15755
|
...ComponentDefaults,
|
|
15768
15756
|
strokeWidth: 5,
|
|
15769
15757
|
radius: 50,
|
|
@@ -15787,7 +15775,7 @@
|
|
|
15787
15775
|
strokeLinecap,
|
|
15788
15776
|
...restProps
|
|
15789
15777
|
} = {
|
|
15790
|
-
...defaultProps$
|
|
15778
|
+
...defaultProps$n,
|
|
15791
15779
|
...props
|
|
15792
15780
|
};
|
|
15793
15781
|
const oldValue = React.useRef(percent);
|
|
@@ -15887,7 +15875,7 @@
|
|
|
15887
15875
|
rotate: 180
|
|
15888
15876
|
};
|
|
15889
15877
|
const CollapseContext = React.createContext(collapseContext);
|
|
15890
|
-
const defaultProps$
|
|
15878
|
+
const defaultProps$m = {
|
|
15891
15879
|
...ComponentDefaults,
|
|
15892
15880
|
title: null,
|
|
15893
15881
|
name: "",
|
|
@@ -15908,7 +15896,7 @@
|
|
|
15908
15896
|
className,
|
|
15909
15897
|
...rest
|
|
15910
15898
|
} = {
|
|
15911
|
-
...defaultProps$
|
|
15899
|
+
...defaultProps$m,
|
|
15912
15900
|
...props
|
|
15913
15901
|
};
|
|
15914
15902
|
const classPrefix2 = "nut-collapse-item";
|
|
@@ -16021,7 +16009,7 @@
|
|
|
16021
16009
|
));
|
|
16022
16010
|
};
|
|
16023
16011
|
CollapseItem.displayName = "NutCollapseItem";
|
|
16024
|
-
const defaultProps$
|
|
16012
|
+
const defaultProps$l = {
|
|
16025
16013
|
...ComponentDefaults,
|
|
16026
16014
|
defaultActiveName: [],
|
|
16027
16015
|
accordion: false,
|
|
@@ -16040,7 +16028,7 @@
|
|
|
16040
16028
|
rotate,
|
|
16041
16029
|
onChange
|
|
16042
16030
|
} = {
|
|
16043
|
-
...defaultProps$
|
|
16031
|
+
...defaultProps$l,
|
|
16044
16032
|
...props
|
|
16045
16033
|
};
|
|
16046
16034
|
const classPrefix2 = "nut-collapse";
|
|
@@ -16099,7 +16087,7 @@
|
|
|
16099
16087
|
};
|
|
16100
16088
|
Collapse.displayName = "NutCollapse";
|
|
16101
16089
|
Collapse.Item = CollapseItem;
|
|
16102
|
-
const defaultProps$
|
|
16090
|
+
const defaultProps$k = {
|
|
16103
16091
|
...ComponentDefaults,
|
|
16104
16092
|
paused: false,
|
|
16105
16093
|
startTime: Date.now(),
|
|
@@ -16131,7 +16119,7 @@
|
|
|
16131
16119
|
onUpdate,
|
|
16132
16120
|
children,
|
|
16133
16121
|
...rest
|
|
16134
|
-
} = { ...defaultProps$
|
|
16122
|
+
} = { ...defaultProps$k, ...props };
|
|
16135
16123
|
const classPrefix2 = "nut-countdown";
|
|
16136
16124
|
const [restTimeStamp, setRestTime] = React.useState(0);
|
|
16137
16125
|
const stateRef = React.useRef({
|
|
@@ -16336,7 +16324,7 @@
|
|
|
16336
16324
|
InternalCountDown
|
|
16337
16325
|
);
|
|
16338
16326
|
CountDown.displayName = "NutCountDown";
|
|
16339
|
-
const defaultProps$
|
|
16327
|
+
const defaultProps$j = {
|
|
16340
16328
|
...ComponentDefaults,
|
|
16341
16329
|
content: "",
|
|
16342
16330
|
direction: "end",
|
|
@@ -16364,7 +16352,7 @@
|
|
|
16364
16352
|
onClick,
|
|
16365
16353
|
onChange,
|
|
16366
16354
|
...rest
|
|
16367
|
-
} = { ...defaultProps$
|
|
16355
|
+
} = { ...defaultProps$j, ...props };
|
|
16368
16356
|
const maxHeight = React.useRef(0);
|
|
16369
16357
|
const [exceeded, setExceeded] = React.useState(false);
|
|
16370
16358
|
const [expanded, setExpanded] = React.useState(false);
|
|
@@ -16656,7 +16644,7 @@
|
|
|
16656
16644
|
));
|
|
16657
16645
|
};
|
|
16658
16646
|
Ellipsis.displayName = "NutEllipsis";
|
|
16659
|
-
const defaultProps$
|
|
16647
|
+
const defaultProps$i = {
|
|
16660
16648
|
total: 3,
|
|
16661
16649
|
current: 0,
|
|
16662
16650
|
direction: "horizontal"
|
|
@@ -16664,7 +16652,7 @@
|
|
|
16664
16652
|
const classPrefix$5 = `nut-indicator`;
|
|
16665
16653
|
const Indicator = (props) => {
|
|
16666
16654
|
const { total, current, children, className, direction, ...rest } = {
|
|
16667
|
-
...defaultProps$
|
|
16655
|
+
...defaultProps$i,
|
|
16668
16656
|
...props
|
|
16669
16657
|
};
|
|
16670
16658
|
const classes = classNames({
|
|
@@ -16688,7 +16676,7 @@
|
|
|
16688
16676
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$5, classes, className), ...rest }, renderElement());
|
|
16689
16677
|
};
|
|
16690
16678
|
Indicator.displayName = "NutIndicator";
|
|
16691
|
-
const defaultProps$
|
|
16679
|
+
const defaultProps$h = {
|
|
16692
16680
|
direction: "horizontal",
|
|
16693
16681
|
indicator: false,
|
|
16694
16682
|
autoPlay: false,
|
|
@@ -16713,7 +16701,7 @@
|
|
|
16713
16701
|
style,
|
|
16714
16702
|
...rest
|
|
16715
16703
|
} = {
|
|
16716
|
-
...defaultProps$
|
|
16704
|
+
...defaultProps$h,
|
|
16717
16705
|
...props
|
|
16718
16706
|
};
|
|
16719
16707
|
const [current, setCurrent] = React.useState(defaultValue);
|
|
@@ -16824,17 +16812,11 @@
|
|
|
16824
16812
|
renderIndicator()
|
|
16825
16813
|
);
|
|
16826
16814
|
});
|
|
16827
|
-
Swiper.defaultProps = defaultProps$i;
|
|
16828
16815
|
Swiper.displayName = "NutSwiper";
|
|
16829
|
-
const defaultProps$h = {
|
|
16830
|
-
itemId: "",
|
|
16831
|
-
skipHiddenItemLayout: false
|
|
16832
|
-
};
|
|
16833
16816
|
const SwiperItem = (props) => {
|
|
16834
16817
|
const { children, ...rest } = props;
|
|
16835
16818
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
16836
16819
|
};
|
|
16837
|
-
SwiperItem.defaultProps = defaultProps$h;
|
|
16838
16820
|
SwiperItem.displayName = "NutSwiperItem";
|
|
16839
16821
|
const InnerSwiper = Swiper;
|
|
16840
16822
|
InnerSwiper.Item = SwiperItem;
|
|
@@ -17566,10 +17548,6 @@
|
|
|
17566
17548
|
});
|
|
17567
17549
|
};
|
|
17568
17550
|
const renderBodyTds = (item, rowIndex) => {
|
|
17569
|
-
const { rowRender } = item;
|
|
17570
|
-
if (rowRender && typeof rowRender === "function") {
|
|
17571
|
-
return rowRender(item, rowIndex);
|
|
17572
|
-
}
|
|
17573
17551
|
return sortDataItem().map(([value, render]) => {
|
|
17574
17552
|
return /* @__PURE__ */ React.createElement(
|
|
17575
17553
|
"div",
|
|
@@ -17588,7 +17566,12 @@
|
|
|
17588
17566
|
};
|
|
17589
17567
|
const renderBodyTrs = () => {
|
|
17590
17568
|
return innerValue.map((item, index) => {
|
|
17591
|
-
|
|
17569
|
+
const inner = renderBodyTds(item, index);
|
|
17570
|
+
const { rowRender } = item;
|
|
17571
|
+
if (rowRender && typeof rowRender === "function") {
|
|
17572
|
+
return rowRender(item, index, { inner });
|
|
17573
|
+
}
|
|
17574
|
+
return /* @__PURE__ */ React.createElement("div", { className: bodyClassPrefix, key: index }, inner);
|
|
17592
17575
|
});
|
|
17593
17576
|
};
|
|
17594
17577
|
return /* @__PURE__ */ React.createElement("div", { className: cls, ...rest }, /* @__PURE__ */ React.createElement(
|