@nutui/nutui-react 2.6.18 → 2.6.20
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 +32 -12
- package/dist/esm/ActionSheet.js +2 -1
- package/dist/esm/AnimatingNumbers.js +2 -2
- package/dist/esm/AvatarCropper.js +26 -26
- package/dist/esm/CalendarItem.js +5 -9
- package/dist/esm/CountDown.js +0 -2
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Dialog.js +4 -4
- package/dist/esm/Empty.js +0 -2
- package/dist/esm/InputNumber.js +1 -5
- package/dist/esm/Layout.js +1 -3
- package/dist/esm/Pagination.js +4 -8
- package/dist/esm/Uploader.js +2 -2
- package/dist/esm/cascader2.js +6 -1
- package/dist/esm/configprovider.taro.js +23 -0
- package/dist/esm/configprovider2.js +1 -134
- package/dist/esm/griditem2.js +0 -2
- package/dist/esm/menuitem2.js +2 -1
- package/dist/esm/merge-props.js +16 -0
- package/dist/esm/overlay2.js +3 -7
- package/dist/esm/popup2.js +4 -4
- package/dist/esm/zh-CN.js +141 -0
- package/dist/locales/base.d.ts +7 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +5 -1
- package/dist/locales/id-ID.js +5 -1
- package/dist/locales/tr-TR.js +5 -1
- package/dist/locales/zh-CN.js +5 -1
- package/dist/locales/zh-TW.js +5 -1
- package/dist/locales/zh-UG.js +5 -1
- package/dist/nutui.react.es.js +123 -91
- package/dist/nutui.react.umd.js +123 -91
- package/dist/packages/elevator/elevator.scss +1 -2
- package/dist/packages/popover/popover.scss +3 -3
- package/dist/packages/tabs/tabs.scss +3 -3
- package/dist/packages/uploader/uploader.scss +1 -2
- package/dist/types/index.d.ts +98 -98
- package/dist/types/locales/base.d.ts +7 -0
- package/dist/types/packages/actionsheet/actionsheet.d.ts +2 -2
- package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +2 -2
- package/dist/types/packages/address/address.d.ts +2 -2
- package/dist/types/packages/address/address.taro.d.ts +2 -2
- package/dist/types/packages/address/customRender.d.ts +2 -2
- package/dist/types/packages/address/customRender.taro.d.ts +2 -2
- 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/animatingnumbers/animatingnumbers.d.ts +2 -2
- package/dist/types/packages/animatingnumbers/animatingnumbers.taro.d.ts +2 -2
- package/dist/types/packages/audio/audio.d.ts +1 -2
- package/dist/types/packages/audio/audio.taro.d.ts +1 -1
- package/dist/types/packages/avatar/avatar.d.ts +2 -3
- package/dist/types/packages/avatar/avatar.taro.d.ts +2 -3
- package/dist/types/packages/avatarcropper/avatarcropper.d.ts +1 -1
- package/dist/types/packages/avatarcropper/avatarcropper.taro.d.ts +1 -1
- package/dist/types/packages/avatargroup/avatargroup.d.ts +1 -1
- package/dist/types/packages/avatargroup/avatargroup.taro.d.ts +1 -1
- package/dist/types/packages/avatargroup/context.d.ts +1 -1
- package/dist/types/packages/backtop/backtop.d.ts +1 -2
- package/dist/types/packages/backtop/backtop.taro.d.ts +1 -2
- package/dist/types/packages/barrage/barrage.d.ts +1 -1
- package/dist/types/packages/barrage/barrage.taro.d.ts +1 -1
- package/dist/types/packages/button/button.d.ts +1 -2
- package/dist/types/packages/button/button.taro.d.ts +1 -2
- package/dist/types/packages/calendar/calendar.d.ts +2 -2
- package/dist/types/packages/calendar/calendar.taro.d.ts +2 -2
- package/dist/types/packages/calendarcard/calendarcard.d.ts +2 -2
- package/dist/types/packages/calendarcard/calendarcard.taro.d.ts +2 -2
- package/dist/types/packages/calendaritem/calendaritem.d.ts +2 -2
- package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +2 -2
- package/dist/types/packages/card/card.d.ts +1 -1
- package/dist/types/packages/card/card.taro.d.ts +1 -1
- package/dist/types/packages/cascader/cascader.d.ts +2 -2
- package/dist/types/packages/cascader/cascader.taro.d.ts +2 -2
- package/dist/types/packages/cell/cell.d.ts +2 -2
- package/dist/types/packages/cell/cell.taro.d.ts +2 -2
- package/dist/types/packages/cellgroup/context.d.ts +1 -1
- package/dist/types/packages/checkbox/checkbox.d.ts +3 -3
- package/dist/types/packages/checkbox/checkbox.taro.d.ts +3 -3
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +3 -3
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +3 -3
- package/dist/types/packages/checkboxgroup/context.d.ts +1 -1
- package/dist/types/packages/circleprogress/circleprogress.d.ts +1 -1
- package/dist/types/packages/circleprogress/circleprogress.taro.d.ts +1 -1
- package/dist/types/packages/col/col.d.ts +1 -2
- package/dist/types/packages/col/col.taro.d.ts +1 -2
- package/dist/types/packages/collapse/collapse.d.ts +1 -1
- package/dist/types/packages/collapse/collapse.taro.d.ts +1 -1
- package/dist/types/packages/collapse/context.d.ts +1 -1
- package/dist/types/packages/collapseitem/collapseitem.d.ts +1 -1
- package/dist/types/packages/collapseitem/collapseitem.taro.d.ts +1 -1
- package/dist/types/packages/configprovider/configprovider.d.ts +1 -1
- package/dist/types/packages/configprovider/configprovider.taro.d.ts +1 -1
- package/dist/types/packages/countdown/countdown.d.ts +1 -1
- package/dist/types/packages/countdown/countdown.taro.d.ts +1 -1
- package/dist/types/packages/datepicker/datepicker.d.ts +2 -2
- package/dist/types/packages/datepicker/datepicker.taro.d.ts +2 -2
- package/dist/types/packages/dialog/config.d.ts +1 -2
- package/dist/types/packages/dialog/dialogwrap.d.ts +2 -2
- package/dist/types/packages/divider/divider.d.ts +1 -1
- package/dist/types/packages/divider/divider.taro.d.ts +1 -1
- package/dist/types/packages/drag/drag.d.ts +1 -1
- package/dist/types/packages/drag/drag.taro.d.ts +1 -1
- package/dist/types/packages/elevator/elevator.d.ts +1 -1
- package/dist/types/packages/elevator/elevator.taro.d.ts +1 -1
- package/dist/types/packages/ellipsis/ellipsis.d.ts +1 -1
- package/dist/types/packages/ellipsis/ellipsis.taro.d.ts +1 -1
- package/dist/types/packages/empty/empty.d.ts +2 -2
- package/dist/types/packages/empty/empty.taro.d.ts +2 -2
- package/dist/types/packages/fixednav/fixednav.d.ts +2 -2
- package/dist/types/packages/fixednav/fixednav.taro.d.ts +2 -2
- package/dist/types/packages/form/context.d.ts +1 -1
- package/dist/types/packages/form/form.d.ts +2 -2
- package/dist/types/packages/form/form.taro.d.ts +2 -2
- package/dist/types/packages/form/index.d.ts +2 -2
- package/dist/types/packages/form/index.taro.d.ts +2 -2
- package/dist/types/packages/formitem/formitem.d.ts +1 -1
- package/dist/types/packages/formitem/formitem.taro.d.ts +1 -1
- package/dist/types/packages/grid/grid.context.d.ts +1 -1
- package/dist/types/packages/grid/grid.d.ts +1 -1
- package/dist/types/packages/grid/grid.taro.context.d.ts +1 -1
- package/dist/types/packages/grid/grid.taro.d.ts +1 -1
- package/dist/types/packages/griditem/griditem.d.ts +1 -1
- package/dist/types/packages/griditem/griditem.taro.d.ts +1 -1
- package/dist/types/packages/image/image.d.ts +1 -1
- package/dist/types/packages/indicator/indicator.d.ts +1 -1
- package/dist/types/packages/indicator/indicator.taro.d.ts +1 -1
- package/dist/types/packages/infiniteloading/infiniteloading.d.ts +1 -1
- package/dist/types/packages/infiniteloading/infiniteloading.taro.d.ts +1 -1
- package/dist/types/packages/input/input.d.ts +1 -1
- package/dist/types/packages/input/input.taro.d.ts +1 -1
- package/dist/types/packages/inputnumber/inputnumber.d.ts +1 -1
- package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +1 -1
- package/dist/types/packages/layout/layout.d.ts +1 -1
- package/dist/types/packages/layout/layout.taro.d.ts +1 -1
- package/dist/types/packages/loading/loading.d.ts +1 -1
- package/dist/types/packages/loading/loading.taro.d.ts +1 -1
- package/dist/types/packages/menu/menu.d.ts +2 -2
- package/dist/types/packages/menu/menu.taro.d.ts +2 -2
- package/dist/types/packages/menuitem/menuitem.d.ts +1 -1
- package/dist/types/packages/menuitem/menuitem.taro.d.ts +1 -1
- package/dist/types/packages/navbar/navbar.d.ts +1 -1
- package/dist/types/packages/navbar/navbar.taro.d.ts +1 -1
- package/dist/types/packages/noticebar/noticebar.d.ts +1 -1
- package/dist/types/packages/noticebar/noticebar.taro.d.ts +1 -1
- package/dist/types/packages/notify/Notification.d.ts +1 -1
- package/dist/types/packages/notify/index.d.ts +1 -1
- package/dist/types/packages/notify/notify.d.ts +1 -1
- package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +2 -2
- package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +2 -2
- package/dist/types/packages/nutui.react.build.d.ts +197 -0
- package/dist/types/packages/nutui.react.d.ts +196 -196
- package/dist/types/packages/nutui.react.taro.d.ts +196 -196
- package/dist/types/packages/nutui.taro.react.build.d.ts +196 -196
- package/dist/types/packages/overlay/overlay.d.ts +1 -1
- package/dist/types/packages/overlay/overlay.taro.d.ts +1 -1
- package/dist/types/packages/pagination/pagination.d.ts +1 -1
- package/dist/types/packages/pagination/pagination.taro.d.ts +1 -1
- package/dist/types/packages/picker/index.d.ts +1 -1
- package/dist/types/packages/picker/index.taro.d.ts +1 -1
- package/dist/types/packages/picker/picker.d.ts +2 -2
- package/dist/types/packages/picker/picker.taro.d.ts +2 -2
- package/dist/types/packages/picker/pickerpanel.d.ts +1 -1
- package/dist/types/packages/picker/pickerpanel.taro.d.ts +1 -1
- package/dist/types/packages/popover/popover.d.ts +2 -2
- package/dist/types/packages/popover/popover.taro.d.ts +2 -2
- package/dist/types/packages/popup/popup.d.ts +2 -2
- package/dist/types/packages/popup/popup.taro.d.ts +2 -2
- package/dist/types/packages/progress/progress.d.ts +1 -1
- package/dist/types/packages/progress/progress.taro.d.ts +1 -1
- package/dist/types/packages/radio/radio.d.ts +3 -3
- package/dist/types/packages/radio/radio.taro.d.ts +3 -3
- package/dist/types/packages/radiogroup/context.d.ts +1 -1
- 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/range/range.d.ts +1 -1
- package/dist/types/packages/range/range.taro.d.ts +1 -1
- package/dist/types/packages/rate/rate.d.ts +1 -1
- package/dist/types/packages/rate/rate.taro.d.ts +1 -1
- package/dist/types/packages/row/UserContext.d.ts +1 -1
- package/dist/types/packages/row/row.d.ts +1 -2
- package/dist/types/packages/row/row.taro.d.ts +1 -2
- package/dist/types/packages/searchbar/searchbar.d.ts +15 -16
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +1 -16
- package/dist/types/packages/shortpassword/shortpassword.d.ts +2 -2
- package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +2 -2
- package/dist/types/packages/sidenavbar/context.d.ts +1 -1
- package/dist/types/packages/sidenavbar/sidenavbar.d.ts +1 -1
- package/dist/types/packages/sidenavbar/sidenavbar.taro.d.ts +1 -1
- package/dist/types/packages/sidenavbaritem/sidenavbaritem.d.ts +1 -1
- package/dist/types/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +1 -1
- package/dist/types/packages/signature/signature.d.ts +1 -1
- package/dist/types/packages/signature/signature.taro.d.ts +1 -1
- package/dist/types/packages/space/space.d.ts +1 -1
- package/dist/types/packages/space/space.taro.d.ts +1 -1
- package/dist/types/packages/step/step.d.ts +1 -1
- package/dist/types/packages/step/step.taro.d.ts +1 -1
- package/dist/types/packages/steps/context.d.ts +1 -1
- package/dist/types/packages/steps/steps.d.ts +1 -1
- package/dist/types/packages/steps/steps.taro.d.ts +1 -1
- package/dist/types/packages/sticky/sticky.d.ts +1 -1
- package/dist/types/packages/sticky/sticky.taro.d.ts +1 -1
- package/dist/types/packages/subsidenavbar/subsidenavbar.d.ts +1 -1
- package/dist/types/packages/subsidenavbar/subsidenavbar.taro.d.ts +1 -1
- package/dist/types/packages/swipe/swipe.d.ts +1 -2
- package/dist/types/packages/swipe/swipe.taro.d.ts +1 -2
- package/dist/types/packages/swiper/context.d.ts +1 -1
- package/dist/types/packages/swiper/effects/default.d.ts +1 -1
- package/dist/types/packages/swiper/effects/focus.d.ts +1 -1
- package/dist/types/packages/swiper/index.d.ts +3 -3
- package/dist/types/packages/swiper/index.taro.d.ts +2 -2
- package/dist/types/packages/swiper/swiper.d.ts +2 -2
- package/dist/types/packages/swiper/swiper.taro.d.ts +1 -1
- package/dist/types/packages/swiperitem/swiperitem.d.ts +1 -1
- package/dist/types/packages/switch/switch.d.ts +1 -1
- package/dist/types/packages/switch/switch.taro.d.ts +1 -1
- package/dist/types/packages/tabbar/context.d.ts +1 -1
- package/dist/types/packages/tabbar/tabbar.d.ts +1 -1
- package/dist/types/packages/tabbar/tabbar.taro.d.ts +1 -1
- package/dist/types/packages/table/table.d.ts +1 -1
- package/dist/types/packages/table/table.taro.d.ts +1 -1
- package/dist/types/packages/table/types.d.ts +1 -1
- package/dist/types/packages/tabpane/tabpane.d.ts +1 -1
- package/dist/types/packages/tabpane/tabpane.taro.d.ts +1 -1
- package/dist/types/packages/tabs/tabs.d.ts +2 -2
- package/dist/types/packages/tabs/tabs.taro.d.ts +2 -2
- package/dist/types/packages/tag/tag.d.ts +1 -2
- package/dist/types/packages/tag/tag.taro.d.ts +1 -2
- package/dist/types/packages/textarea/textarea.d.ts +1 -2
- package/dist/types/packages/timedetail/timedetail.d.ts +2 -2
- package/dist/types/packages/timedetail/timedetail.taro.d.ts +2 -2
- package/dist/types/packages/toast/Notification.d.ts +1 -1
- package/dist/types/packages/toast/index.d.ts +1 -1
- package/dist/types/packages/toast/toast.d.ts +1 -1
- package/dist/types/packages/toast/toast.taro.d.ts +1 -1
- package/dist/types/packages/tour/tour.d.ts +2 -3
- package/dist/types/packages/tour/tour.taro.d.ts +2 -3
- package/dist/types/packages/trendarrow/trendarrow.d.ts +1 -1
- package/dist/types/packages/trendarrow/trendarrow.taro.d.ts +1 -1
- package/dist/types/packages/uploader/preview.d.ts +1 -1
- package/dist/types/packages/uploader/preview.taro.d.ts +1 -1
- package/dist/types/packages/uploader/uploader.d.ts +1 -1
- package/dist/types/packages/uploader/uploader.taro.d.ts +2 -5
- package/dist/types/packages/video/video.d.ts +1 -1
- package/dist/types/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/types/packages/watermark/watermark.d.ts +1 -1
- package/dist/types/packages/watermark/watermark.taro.d.ts +1 -1
- package/dist/types/utils/merge-props.d.ts +9 -5
- package/dist/types/utils/render.d.ts +1 -1
- package/dist/types/utils/typings.d.ts +1 -1
- package/dist/types/utils/use-lock-scoll-taro.d.ts +1 -1
- package/dist/types/utils/use-touch.d.ts +1 -1
- package/package.json +2 -2
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.nutui = {}, global2.React, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react v2.6.
|
|
5
|
+
* @nutui/nutui-react v2.6.19 Fri Sep 20 2024 13:46:38 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
style: {}
|
|
613
613
|
};
|
|
614
614
|
const prefixCls$2 = "nut-button";
|
|
615
|
-
const defaultProps$
|
|
615
|
+
const defaultProps$1t = {
|
|
616
616
|
...ComponentDefaults,
|
|
617
617
|
color: "",
|
|
618
618
|
type: "default",
|
|
@@ -648,7 +648,7 @@
|
|
|
648
648
|
onClick,
|
|
649
649
|
...rest
|
|
650
650
|
} = {
|
|
651
|
-
...defaultProps$
|
|
651
|
+
...defaultProps$1t,
|
|
652
652
|
...props
|
|
653
653
|
};
|
|
654
654
|
const getStyle = React.useCallback(() => {
|
|
@@ -707,7 +707,7 @@
|
|
|
707
707
|
);
|
|
708
708
|
Button.displayName = "NutButton";
|
|
709
709
|
const CellGroupContext = React.createContext(null);
|
|
710
|
-
const defaultProps$
|
|
710
|
+
const defaultProps$1s = {
|
|
711
711
|
...ComponentDefaults,
|
|
712
712
|
title: "",
|
|
713
713
|
description: "",
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
const classPrefix$r = "nut-cell-group";
|
|
717
717
|
const CellGroup = (props) => {
|
|
718
718
|
const { children, className, title, description, divider, ...rest } = {
|
|
719
|
-
...defaultProps$
|
|
719
|
+
...defaultProps$1s,
|
|
720
720
|
...props
|
|
721
721
|
};
|
|
722
722
|
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(
|
|
@@ -728,7 +728,7 @@
|
|
|
728
728
|
));
|
|
729
729
|
};
|
|
730
730
|
CellGroup.displayName = "NutCellGroup";
|
|
731
|
-
const defaultProps$
|
|
731
|
+
const defaultProps$1r = {
|
|
732
732
|
...ComponentDefaults,
|
|
733
733
|
title: null,
|
|
734
734
|
description: null,
|
|
@@ -755,7 +755,7 @@
|
|
|
755
755
|
style,
|
|
756
756
|
...rest
|
|
757
757
|
} = {
|
|
758
|
-
...defaultProps$
|
|
758
|
+
...defaultProps$1r,
|
|
759
759
|
...props
|
|
760
760
|
};
|
|
761
761
|
const handleClick2 = (event) => {
|
|
@@ -1740,6 +1740,8 @@
|
|
|
1740
1740
|
noData: "暂无数据",
|
|
1741
1741
|
placeholder: "请输入内容",
|
|
1742
1742
|
select: "请选择",
|
|
1743
|
+
edit: "编辑",
|
|
1744
|
+
reset: "重置",
|
|
1743
1745
|
video: {
|
|
1744
1746
|
errorTip: "视频加载失败",
|
|
1745
1747
|
clickRetry: "点击重试"
|
|
@@ -1777,6 +1779,7 @@
|
|
|
1777
1779
|
tips: "忘记密码"
|
|
1778
1780
|
},
|
|
1779
1781
|
uploader: {
|
|
1782
|
+
list: "上传文件",
|
|
1780
1783
|
ready: "准备完成",
|
|
1781
1784
|
readyUpload: "准备上传",
|
|
1782
1785
|
waitingUpload: "等待上传",
|
|
@@ -1843,6 +1846,7 @@
|
|
|
1843
1846
|
mute: "静音",
|
|
1844
1847
|
tips: "onPlayEnd事件在loop=false时才会触发"
|
|
1845
1848
|
},
|
|
1849
|
+
avatarCropper: { rotate: "旋转", selectImage: "选择图片" },
|
|
1846
1850
|
datepicker: {
|
|
1847
1851
|
year: "年",
|
|
1848
1852
|
month: "月",
|
|
@@ -1880,20 +1884,20 @@
|
|
|
1880
1884
|
}
|
|
1881
1885
|
const requestAniFrame$1 = requestAniFrame();
|
|
1882
1886
|
const classPrefix$p = "nut-configprovider";
|
|
1883
|
-
const defaultConfigRef = {
|
|
1887
|
+
const defaultConfigRef$1 = {
|
|
1884
1888
|
current: {
|
|
1885
1889
|
locale: zhCN
|
|
1886
1890
|
}
|
|
1887
1891
|
};
|
|
1888
1892
|
const setDefaultConfig = (config2) => {
|
|
1889
|
-
defaultConfigRef.current = config2;
|
|
1893
|
+
defaultConfigRef$1.current = config2;
|
|
1890
1894
|
};
|
|
1891
|
-
const getDefaultConfig = () => {
|
|
1892
|
-
return defaultConfigRef.current;
|
|
1895
|
+
const getDefaultConfig$1 = () => {
|
|
1896
|
+
return defaultConfigRef$1.current;
|
|
1893
1897
|
};
|
|
1894
|
-
const ConfigContext = React.createContext(null);
|
|
1895
|
-
const useConfig = () => {
|
|
1896
|
-
return React.useContext(ConfigContext) ?? getDefaultConfig();
|
|
1898
|
+
const ConfigContext$1 = React.createContext(null);
|
|
1899
|
+
const useConfig$1 = () => {
|
|
1900
|
+
return React.useContext(ConfigContext$1) ?? getDefaultConfig$1();
|
|
1897
1901
|
};
|
|
1898
1902
|
function convertThemeVarsToCSSVars(themeVars) {
|
|
1899
1903
|
const cssVars = {};
|
|
@@ -1903,7 +1907,7 @@
|
|
|
1903
1907
|
return cssVars;
|
|
1904
1908
|
}
|
|
1905
1909
|
const useRtl = () => {
|
|
1906
|
-
const { direction } = useConfig();
|
|
1910
|
+
const { direction } = useConfig$1();
|
|
1907
1911
|
if (direction) {
|
|
1908
1912
|
return direction === "rtl";
|
|
1909
1913
|
}
|
|
@@ -1914,7 +1918,7 @@
|
|
|
1914
1918
|
const mergedConfig = useMemo(
|
|
1915
1919
|
() => {
|
|
1916
1920
|
return {
|
|
1917
|
-
...getDefaultConfig(),
|
|
1921
|
+
...getDefaultConfig$1(),
|
|
1918
1922
|
...config2,
|
|
1919
1923
|
direction
|
|
1920
1924
|
};
|
|
@@ -1928,7 +1932,7 @@
|
|
|
1928
1932
|
const cssVarStyle = React.useMemo(() => {
|
|
1929
1933
|
return convertThemeVarsToCSSVars(mergedConfig.theme || {});
|
|
1930
1934
|
}, [mergedConfig.theme]);
|
|
1931
|
-
return /* @__PURE__ */ React.createElement(ConfigContext.Provider, { value: mergedConfig }, /* @__PURE__ */ React.createElement(
|
|
1935
|
+
return /* @__PURE__ */ React.createElement(ConfigContext$1.Provider, { value: mergedConfig }, /* @__PURE__ */ React.createElement(
|
|
1932
1936
|
"div",
|
|
1933
1937
|
{
|
|
1934
1938
|
className: classNames(classPrefix$p, className),
|
|
@@ -1946,7 +1950,7 @@
|
|
|
1946
1950
|
const pxCheck = (value) => {
|
|
1947
1951
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
1948
1952
|
};
|
|
1949
|
-
const defaultProps$
|
|
1953
|
+
const defaultProps$1q = {
|
|
1950
1954
|
...ComponentDefaults,
|
|
1951
1955
|
fit: "fill",
|
|
1952
1956
|
position: "center",
|
|
@@ -1976,7 +1980,7 @@
|
|
|
1976
1980
|
onClick,
|
|
1977
1981
|
onLoad,
|
|
1978
1982
|
onError
|
|
1979
|
-
} = { ...defaultProps$
|
|
1983
|
+
} = { ...defaultProps$1q, ...props };
|
|
1980
1984
|
const [innerLoading, setInnerLoading] = React.useState(false);
|
|
1981
1985
|
const [isError, setIsError] = React.useState(false);
|
|
1982
1986
|
const [complete, setComplete] = React.useState(false);
|
|
@@ -2812,7 +2816,7 @@
|
|
|
2812
2816
|
const onHandleClosed = (e) => {
|
|
2813
2817
|
afterClose && afterClose();
|
|
2814
2818
|
};
|
|
2815
|
-
return /* @__PURE__ */ React.createElement(
|
|
2819
|
+
return /* @__PURE__ */ React.createElement(
|
|
2816
2820
|
CSSTransition,
|
|
2817
2821
|
{
|
|
2818
2822
|
nodeRef,
|
|
@@ -2834,11 +2838,11 @@
|
|
|
2834
2838
|
},
|
|
2835
2839
|
children
|
|
2836
2840
|
)
|
|
2837
|
-
)
|
|
2841
|
+
);
|
|
2838
2842
|
};
|
|
2839
2843
|
Overlay.displayName = "NutOverlay";
|
|
2840
2844
|
const DataContext$1 = React.createContext({});
|
|
2841
|
-
const defaultProps$
|
|
2845
|
+
const defaultProps$1p = {
|
|
2842
2846
|
...ComponentDefaults,
|
|
2843
2847
|
span: "24",
|
|
2844
2848
|
offset: "0",
|
|
@@ -2846,7 +2850,7 @@
|
|
|
2846
2850
|
};
|
|
2847
2851
|
const Col = (props) => {
|
|
2848
2852
|
const { className, style, span, offset, children, onClick } = {
|
|
2849
|
-
...defaultProps$
|
|
2853
|
+
...defaultProps$1p,
|
|
2850
2854
|
...props
|
|
2851
2855
|
};
|
|
2852
2856
|
const [colName, setColName] = React.useState("");
|
|
@@ -2879,7 +2883,7 @@
|
|
|
2879
2883
|
);
|
|
2880
2884
|
};
|
|
2881
2885
|
Col.displayName = "NutCol";
|
|
2882
|
-
const defaultProps$
|
|
2886
|
+
const defaultProps$1o = {
|
|
2883
2887
|
...ComponentDefaults,
|
|
2884
2888
|
contentPosition: "center",
|
|
2885
2889
|
direction: "horizontal"
|
|
@@ -2887,7 +2891,7 @@
|
|
|
2887
2891
|
const classPrefix$n = `nut-divider`;
|
|
2888
2892
|
const Divider = (props) => {
|
|
2889
2893
|
const { children, contentPosition, style, className, direction, ...rest } = {
|
|
2890
|
-
...defaultProps$
|
|
2894
|
+
...defaultProps$1o,
|
|
2891
2895
|
...props
|
|
2892
2896
|
};
|
|
2893
2897
|
const classes = direction === "horizontal" ? classNames({
|
|
@@ -2908,7 +2912,7 @@
|
|
|
2908
2912
|
}
|
|
2909
2913
|
};
|
|
2910
2914
|
const GridContext = React.createContext(gridContext);
|
|
2911
|
-
const defaultProps$
|
|
2915
|
+
const defaultProps$1n = {
|
|
2912
2916
|
text: "",
|
|
2913
2917
|
columns: 4,
|
|
2914
2918
|
gap: 0,
|
|
@@ -2918,7 +2922,6 @@
|
|
|
2918
2922
|
direction: "vertical"
|
|
2919
2923
|
};
|
|
2920
2924
|
const GridItem = (props) => {
|
|
2921
|
-
useConfig();
|
|
2922
2925
|
const {
|
|
2923
2926
|
children,
|
|
2924
2927
|
style,
|
|
@@ -2934,7 +2937,7 @@
|
|
|
2934
2937
|
onClick,
|
|
2935
2938
|
...rest
|
|
2936
2939
|
} = {
|
|
2937
|
-
...defaultProps$
|
|
2940
|
+
...defaultProps$1n,
|
|
2938
2941
|
...props
|
|
2939
2942
|
};
|
|
2940
2943
|
const classPrefix2 = "nut-grid-item";
|
|
@@ -2993,7 +2996,7 @@
|
|
|
2993
2996
|
);
|
|
2994
2997
|
};
|
|
2995
2998
|
GridItem.displayName = "NutGridItem";
|
|
2996
|
-
const defaultProps$
|
|
2999
|
+
const defaultProps$1m = {
|
|
2997
3000
|
columns: 4,
|
|
2998
3001
|
gap: 0,
|
|
2999
3002
|
center: true,
|
|
@@ -3014,7 +3017,7 @@
|
|
|
3014
3017
|
className,
|
|
3015
3018
|
onClick,
|
|
3016
3019
|
...rest
|
|
3017
|
-
} = { ...defaultProps$
|
|
3020
|
+
} = { ...defaultProps$1m, ...props };
|
|
3018
3021
|
const childrenDom = React.Children.toArray(children);
|
|
3019
3022
|
const classPrefix2 = "nut-grid";
|
|
3020
3023
|
const rootClass = () => {
|
|
@@ -3050,9 +3053,7 @@
|
|
|
3050
3053
|
};
|
|
3051
3054
|
Grid.displayName = "NutGrid";
|
|
3052
3055
|
Grid.Item = GridItem;
|
|
3053
|
-
const
|
|
3054
|
-
const Layout = (props) => {
|
|
3055
|
-
({ ...defaultProps$1m, ...props });
|
|
3056
|
+
const Layout = () => {
|
|
3056
3057
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-layout" }, "Layout");
|
|
3057
3058
|
};
|
|
3058
3059
|
Layout.displayName = "NutLayout";
|
|
@@ -8478,7 +8479,7 @@
|
|
|
8478
8479
|
}
|
|
8479
8480
|
};
|
|
8480
8481
|
const FixedNav = (props) => {
|
|
8481
|
-
const { locale } = useConfig();
|
|
8482
|
+
const { locale } = useConfig$1();
|
|
8482
8483
|
const {
|
|
8483
8484
|
className,
|
|
8484
8485
|
overlay,
|
|
@@ -8822,7 +8823,7 @@
|
|
|
8822
8823
|
);
|
|
8823
8824
|
};
|
|
8824
8825
|
const renderNode = () => {
|
|
8825
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, overlay ? /* @__PURE__ */ React.createElement(
|
|
8826
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, overlay ? /* @__PURE__ */ React.createElement(
|
|
8826
8827
|
Overlay,
|
|
8827
8828
|
{
|
|
8828
8829
|
style: overlayStyles,
|
|
@@ -8833,7 +8834,7 @@
|
|
|
8833
8834
|
duration,
|
|
8834
8835
|
onClick: onHandleClickOverlay
|
|
8835
8836
|
}
|
|
8836
|
-
)
|
|
8837
|
+
) : null, /* @__PURE__ */ React.createElement(React.Fragment, null, renderPop()));
|
|
8837
8838
|
};
|
|
8838
8839
|
React.useEffect(() => {
|
|
8839
8840
|
visible && open();
|
|
@@ -9576,6 +9577,19 @@
|
|
|
9576
9577
|
return pathNodes;
|
|
9577
9578
|
}
|
|
9578
9579
|
}
|
|
9580
|
+
const defaultConfigRef = {
|
|
9581
|
+
current: {
|
|
9582
|
+
locale: zhCN,
|
|
9583
|
+
direction: "ltr"
|
|
9584
|
+
}
|
|
9585
|
+
};
|
|
9586
|
+
const getDefaultConfig = () => {
|
|
9587
|
+
return defaultConfigRef.current;
|
|
9588
|
+
};
|
|
9589
|
+
const ConfigContext = React.createContext(null);
|
|
9590
|
+
const useConfig = () => {
|
|
9591
|
+
return React.useContext(ConfigContext) ?? getDefaultConfig();
|
|
9592
|
+
};
|
|
9579
9593
|
const defaultProps$16 = {
|
|
9580
9594
|
...ComponentDefaults,
|
|
9581
9595
|
activeColor: "",
|
|
@@ -9598,6 +9612,7 @@
|
|
|
9598
9612
|
}
|
|
9599
9613
|
};
|
|
9600
9614
|
const InternalCascader = (props, ref) => {
|
|
9615
|
+
const { locale } = useConfig();
|
|
9601
9616
|
const {
|
|
9602
9617
|
className,
|
|
9603
9618
|
style,
|
|
@@ -9673,6 +9688,9 @@
|
|
|
9673
9688
|
React.useEffect(() => {
|
|
9674
9689
|
initData();
|
|
9675
9690
|
}, [options2, format2]);
|
|
9691
|
+
React.useEffect(() => {
|
|
9692
|
+
syncValue();
|
|
9693
|
+
}, [value]);
|
|
9676
9694
|
const initData = async () => {
|
|
9677
9695
|
state.lazyLoadMap.clear();
|
|
9678
9696
|
if (format2 && Object.keys(format2).length > 0) {
|
|
@@ -9894,7 +9912,7 @@
|
|
|
9894
9912
|
className: `nut-tabs-titles-item ${tabvalue === pane.paneKey ? "nut-tabs-titles-item-active" : ""}`,
|
|
9895
9913
|
key: pane.paneKey
|
|
9896
9914
|
},
|
|
9897
|
-
/* @__PURE__ */ React.createElement("span", { className: "nut-tabs-titles-item-text" }, !state.initLoading && state.panes.length && ((_a = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _a.text), !state.initLoading && state.panes.length && !((_b = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _b.text) &&
|
|
9915
|
+
/* @__PURE__ */ React.createElement("span", { className: "nut-tabs-titles-item-text" }, !state.initLoading && state.panes.length && ((_a = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _a.text), !state.initLoading && state.panes.length && !((_b = pane == null ? void 0 : pane.selectedNode) == null ? void 0 : _b.text) && `${locale.select}`, !(!state.initLoading && state.panes.length) && "Loading..."),
|
|
9898
9916
|
/* @__PURE__ */ React.createElement("span", { className: "nut-tabs-titles-item-line" })
|
|
9899
9917
|
);
|
|
9900
9918
|
});
|
|
@@ -9988,7 +10006,7 @@
|
|
|
9988
10006
|
custom: false
|
|
9989
10007
|
};
|
|
9990
10008
|
const ExistRender = (props) => {
|
|
9991
|
-
const { locale } = useConfig();
|
|
10009
|
+
const { locale } = useConfig$1();
|
|
9992
10010
|
const {
|
|
9993
10011
|
children,
|
|
9994
10012
|
type,
|
|
@@ -10044,7 +10062,7 @@
|
|
|
10044
10062
|
backIcon: null
|
|
10045
10063
|
};
|
|
10046
10064
|
const InternalAddress = (props, ref) => {
|
|
10047
|
-
const { locale } = useConfig();
|
|
10065
|
+
const { locale } = useConfig$1();
|
|
10048
10066
|
const {
|
|
10049
10067
|
style,
|
|
10050
10068
|
className,
|
|
@@ -10439,7 +10457,7 @@
|
|
|
10439
10457
|
}
|
|
10440
10458
|
};
|
|
10441
10459
|
const CalendarItem = React.forwardRef((props, ref) => {
|
|
10442
|
-
const { locale } = useConfig();
|
|
10460
|
+
const { locale } = useConfig$1();
|
|
10443
10461
|
const {
|
|
10444
10462
|
style,
|
|
10445
10463
|
className,
|
|
@@ -11005,7 +11023,7 @@
|
|
|
11005
11023
|
const renderFooter = () => {
|
|
11006
11024
|
return /* @__PURE__ */ React.createElement("div", { className: "nut-calendar-footer" }, children, /* @__PURE__ */ React.createElement("div", { className: "calendar-confirm-btn", onClick: confirm2 }, confirmText || locale.confirm));
|
|
11007
11025
|
};
|
|
11008
|
-
return /* @__PURE__ */ React.createElement(
|
|
11026
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : "");
|
|
11009
11027
|
});
|
|
11010
11028
|
CalendarItem.displayName = "NutCalendarItem";
|
|
11011
11029
|
const defaultProps$11 = {
|
|
@@ -11041,7 +11059,7 @@
|
|
|
11041
11059
|
}
|
|
11042
11060
|
};
|
|
11043
11061
|
const Calendar = React.forwardRef((props, ref) => {
|
|
11044
|
-
const { locale } = useConfig();
|
|
11062
|
+
const { locale } = useConfig$1();
|
|
11045
11063
|
const {
|
|
11046
11064
|
style,
|
|
11047
11065
|
className,
|
|
@@ -11258,7 +11276,7 @@
|
|
|
11258
11276
|
};
|
|
11259
11277
|
const prefixCls = "nut-calendarcard";
|
|
11260
11278
|
const CalendarCard = React.forwardRef((props, ref) => {
|
|
11261
|
-
const { locale } = useConfig();
|
|
11279
|
+
const { locale } = useConfig$1();
|
|
11262
11280
|
const {
|
|
11263
11281
|
style,
|
|
11264
11282
|
className,
|
|
@@ -12104,7 +12122,7 @@
|
|
|
12104
12122
|
duration: 1e3
|
|
12105
12123
|
};
|
|
12106
12124
|
const InternalPicker = (props, ref) => {
|
|
12107
|
-
const { locale } = useConfig();
|
|
12125
|
+
const { locale } = useConfig$1();
|
|
12108
12126
|
const {
|
|
12109
12127
|
children,
|
|
12110
12128
|
visible,
|
|
@@ -12400,7 +12418,7 @@
|
|
|
12400
12418
|
...defaultProps$Y,
|
|
12401
12419
|
...props
|
|
12402
12420
|
};
|
|
12403
|
-
const { locale } = useConfig();
|
|
12421
|
+
const { locale } = useConfig$1();
|
|
12404
12422
|
const lang = locale.datepicker;
|
|
12405
12423
|
const zhCNType = {
|
|
12406
12424
|
day: lang.day,
|
|
@@ -12661,7 +12679,7 @@
|
|
|
12661
12679
|
React.useEffect(() => {
|
|
12662
12680
|
setPickerOptions(columns());
|
|
12663
12681
|
}, [selectedDate, startDate, endDate]);
|
|
12664
|
-
return /* @__PURE__ */ React.createElement("div", { className: `nut-datepicker ${className}`, style, ...rest }, pickerOptions.length && /* @__PURE__ */ React.createElement(
|
|
12682
|
+
return /* @__PURE__ */ React.createElement("div", { className: `nut-datepicker ${className}`, style, ...rest }, pickerOptions.length > 0 && /* @__PURE__ */ React.createElement(
|
|
12665
12683
|
Picker,
|
|
12666
12684
|
{
|
|
12667
12685
|
...pickerProps,
|
|
@@ -14207,7 +14225,7 @@
|
|
|
14207
14225
|
const Input = React.forwardRef(
|
|
14208
14226
|
(props, ref) => {
|
|
14209
14227
|
const rtl = useRtl();
|
|
14210
|
-
const { locale } = useConfig();
|
|
14228
|
+
const { locale } = useConfig$1();
|
|
14211
14229
|
const {
|
|
14212
14230
|
type,
|
|
14213
14231
|
name,
|
|
@@ -14560,7 +14578,7 @@
|
|
|
14560
14578
|
[`${classPrefix$g}-icon-disabled`]: shadowValue === min || disabled
|
|
14561
14579
|
})
|
|
14562
14580
|
}
|
|
14563
|
-
)), /* @__PURE__ */ React.createElement(
|
|
14581
|
+
)), /* @__PURE__ */ React.createElement(
|
|
14564
14582
|
"input",
|
|
14565
14583
|
{
|
|
14566
14584
|
ref: inputRef,
|
|
@@ -14572,7 +14590,7 @@
|
|
|
14572
14590
|
onBlur: handleBlur,
|
|
14573
14591
|
onFocus: handleFocus
|
|
14574
14592
|
}
|
|
14575
|
-
)
|
|
14593
|
+
), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add", onClick: handlePlus }, /* @__PURE__ */ React.createElement(
|
|
14576
14594
|
n,
|
|
14577
14595
|
{
|
|
14578
14596
|
className: classNames("nut-inputnumber-icon icon-plus", {
|
|
@@ -14747,6 +14765,7 @@
|
|
|
14747
14765
|
};
|
|
14748
14766
|
};
|
|
14749
14767
|
const micRef = React.useRef(null);
|
|
14768
|
+
const cssRef = React.useRef(null);
|
|
14750
14769
|
const targetSet = [micRef.current];
|
|
14751
14770
|
useClickAway(
|
|
14752
14771
|
() => {
|
|
@@ -14790,6 +14809,7 @@
|
|
|
14790
14809
|
/* @__PURE__ */ React.createElement(
|
|
14791
14810
|
CSSTransition,
|
|
14792
14811
|
{
|
|
14812
|
+
nodeRef: cssRef,
|
|
14793
14813
|
in: showPopup,
|
|
14794
14814
|
timeout: 100,
|
|
14795
14815
|
classNames: direction === "down" ? "nut-menu-container-down" : "nut-menu-container-up"
|
|
@@ -15018,7 +15038,7 @@
|
|
|
15018
15038
|
}
|
|
15019
15039
|
};
|
|
15020
15040
|
const NumberKeyboard = (props) => {
|
|
15021
|
-
const { locale } = useConfig();
|
|
15041
|
+
const { locale } = useConfig$1();
|
|
15022
15042
|
const {
|
|
15023
15043
|
title,
|
|
15024
15044
|
rightActions,
|
|
@@ -15906,7 +15926,7 @@
|
|
|
15906
15926
|
};
|
|
15907
15927
|
const SearchBar = (props) => {
|
|
15908
15928
|
const classPrefix2 = "nut-searchbar";
|
|
15909
|
-
const { locale } = useConfig();
|
|
15929
|
+
const { locale } = useConfig$1();
|
|
15910
15930
|
const searchRef = React.useRef(null);
|
|
15911
15931
|
const {
|
|
15912
15932
|
value: outerValue,
|
|
@@ -16059,7 +16079,7 @@
|
|
|
16059
16079
|
autoFocus: false
|
|
16060
16080
|
};
|
|
16061
16081
|
const InternalShortPassword = (props, ref) => {
|
|
16062
|
-
const { locale } = useConfig();
|
|
16082
|
+
const { locale } = useConfig$1();
|
|
16063
16083
|
const {
|
|
16064
16084
|
title,
|
|
16065
16085
|
description,
|
|
@@ -16157,7 +16177,7 @@
|
|
|
16157
16177
|
unsupported: ""
|
|
16158
16178
|
};
|
|
16159
16179
|
const InternalSignature = (props, ref) => {
|
|
16160
|
-
const { locale } = useConfig();
|
|
16180
|
+
const { locale } = useConfig$1();
|
|
16161
16181
|
const {
|
|
16162
16182
|
type,
|
|
16163
16183
|
lineWidth,
|
|
@@ -16338,7 +16358,7 @@
|
|
|
16338
16358
|
autoSize: false
|
|
16339
16359
|
};
|
|
16340
16360
|
const TextArea = (props) => {
|
|
16341
|
-
const { locale } = useConfig();
|
|
16361
|
+
const { locale } = useConfig$1();
|
|
16342
16362
|
const {
|
|
16343
16363
|
className,
|
|
16344
16364
|
value,
|
|
@@ -16726,7 +16746,7 @@
|
|
|
16726
16746
|
class FileItem {
|
|
16727
16747
|
constructor() {
|
|
16728
16748
|
this.status = "ready";
|
|
16729
|
-
this.message = "
|
|
16749
|
+
this.message = "";
|
|
16730
16750
|
this.uid = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
16731
16751
|
this.percentage = 0;
|
|
16732
16752
|
this.formData = {};
|
|
@@ -16760,7 +16780,7 @@
|
|
|
16760
16780
|
}
|
|
16761
16781
|
};
|
|
16762
16782
|
const InternalUploader = (props, ref) => {
|
|
16763
|
-
const { locale } = useConfig();
|
|
16783
|
+
const { locale } = useConfig$1();
|
|
16764
16784
|
const fileListRef = React.useRef([]);
|
|
16765
16785
|
const {
|
|
16766
16786
|
children,
|
|
@@ -17009,7 +17029,7 @@
|
|
|
17009
17029
|
const handleItemClick = (file, index) => {
|
|
17010
17030
|
onFileItemClick == null ? void 0 : onFileItemClick(file, index);
|
|
17011
17031
|
};
|
|
17012
|
-
return /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-slot" }, children || /* @__PURE__ */ React.createElement(Button, { size: "small", type: "primary" },
|
|
17032
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-slot" }, children || /* @__PURE__ */ React.createElement(Button, { size: "small", type: "primary" }, locale.uploader.list), Number(maxCount) > fileList.length && /* @__PURE__ */ React.createElement(
|
|
17013
17033
|
"input",
|
|
17014
17034
|
{
|
|
17015
17035
|
className: "nut-uploader-input",
|
|
@@ -17059,6 +17079,19 @@
|
|
|
17059
17079
|
};
|
|
17060
17080
|
const Uploader = React.forwardRef(InternalUploader);
|
|
17061
17081
|
Uploader.displayName = "NutUploader";
|
|
17082
|
+
function mergeProps(...items) {
|
|
17083
|
+
const ret = {};
|
|
17084
|
+
items.forEach((item) => {
|
|
17085
|
+
if (item) {
|
|
17086
|
+
Object.keys(item).forEach((key) => {
|
|
17087
|
+
if (item[key] !== void 0) {
|
|
17088
|
+
ret[key] = item[key];
|
|
17089
|
+
}
|
|
17090
|
+
});
|
|
17091
|
+
}
|
|
17092
|
+
});
|
|
17093
|
+
return ret;
|
|
17094
|
+
}
|
|
17062
17095
|
const defaultProps$F = {
|
|
17063
17096
|
...ComponentDefaults,
|
|
17064
17097
|
visible: false,
|
|
@@ -17085,7 +17118,7 @@
|
|
|
17085
17118
|
className,
|
|
17086
17119
|
style,
|
|
17087
17120
|
...rest
|
|
17088
|
-
} =
|
|
17121
|
+
} = mergeProps(defaultProps$F, props);
|
|
17089
17122
|
const classPrefix2 = "nut-actionsheet";
|
|
17090
17123
|
const cancelActionSheet = () => {
|
|
17091
17124
|
onCancel && onCancel();
|
|
@@ -17385,7 +17418,7 @@
|
|
|
17385
17418
|
beforeClose: () => true
|
|
17386
17419
|
};
|
|
17387
17420
|
const BaseDialog = (props, ref) => {
|
|
17388
|
-
const { locale } = useConfig();
|
|
17421
|
+
const { locale } = useConfig$1();
|
|
17389
17422
|
const {
|
|
17390
17423
|
visible,
|
|
17391
17424
|
footer,
|
|
@@ -17404,7 +17437,7 @@
|
|
|
17404
17437
|
beforeCancel,
|
|
17405
17438
|
beforeClose,
|
|
17406
17439
|
...restProps
|
|
17407
|
-
} = props;
|
|
17440
|
+
} = mergeProps(defaultProps$E, props);
|
|
17408
17441
|
const classPrefix2 = "nut-dialog";
|
|
17409
17442
|
const [loading, setLoading] = React.useState(false);
|
|
17410
17443
|
const renderFooter = () => {
|
|
@@ -17489,7 +17522,6 @@
|
|
|
17489
17522
|
});
|
|
17490
17523
|
};
|
|
17491
17524
|
});
|
|
17492
|
-
Dialog.defaultProps = defaultProps$E;
|
|
17493
17525
|
Dialog.displayName = "NutDialog";
|
|
17494
17526
|
const defaultProps$D = {
|
|
17495
17527
|
...ComponentDefaults,
|
|
@@ -17615,7 +17647,6 @@
|
|
|
17615
17647
|
};
|
|
17616
17648
|
const classPrefix$e = `nut-empty`;
|
|
17617
17649
|
const Empty = (props) => {
|
|
17618
|
-
useConfig();
|
|
17619
17650
|
const {
|
|
17620
17651
|
image,
|
|
17621
17652
|
imageSize,
|
|
@@ -17684,7 +17715,7 @@
|
|
|
17684
17715
|
};
|
|
17685
17716
|
const classPrefix$d = `nut-infiniteloading`;
|
|
17686
17717
|
const InfiniteLoading = (props) => {
|
|
17687
|
-
const { locale } = useConfig();
|
|
17718
|
+
const { locale } = useConfig$1();
|
|
17688
17719
|
const {
|
|
17689
17720
|
children,
|
|
17690
17721
|
type,
|
|
@@ -18383,7 +18414,6 @@
|
|
|
18383
18414
|
...ComponentDefaults,
|
|
18384
18415
|
id: "",
|
|
18385
18416
|
duration: 3e3,
|
|
18386
|
-
// 时长
|
|
18387
18417
|
type: "danger",
|
|
18388
18418
|
position: "top",
|
|
18389
18419
|
onClose: () => {
|
|
@@ -18755,7 +18785,7 @@
|
|
|
18755
18785
|
};
|
|
18756
18786
|
const PullToRefresh = (p2) => {
|
|
18757
18787
|
const classPrefix2 = "nut-pulltorefresh";
|
|
18758
|
-
const { locale } = useConfig();
|
|
18788
|
+
const { locale } = useConfig$1();
|
|
18759
18789
|
const props = {
|
|
18760
18790
|
...defaultProps$x,
|
|
18761
18791
|
...p2,
|
|
@@ -19542,10 +19572,7 @@
|
|
|
19542
19572
|
thousands,
|
|
19543
19573
|
style,
|
|
19544
19574
|
...reset
|
|
19545
|
-
} =
|
|
19546
|
-
...defaultProps$r,
|
|
19547
|
-
...props
|
|
19548
|
-
};
|
|
19575
|
+
} = mergeProps(defaultProps$r, props);
|
|
19549
19576
|
const classPrefix2 = "nut-countup";
|
|
19550
19577
|
const countupRef = React.useRef(null);
|
|
19551
19578
|
const timerRef = React.useRef(0);
|
|
@@ -19607,7 +19634,6 @@
|
|
|
19607
19634
|
);
|
|
19608
19635
|
})));
|
|
19609
19636
|
};
|
|
19610
|
-
CountUp.defaultProps = defaultProps$r;
|
|
19611
19637
|
CountUp.displayName = "NutCountUp";
|
|
19612
19638
|
const defaultProps$q = {};
|
|
19613
19639
|
const _AnimatingNumbers = class _AnimatingNumbers extends React.Component {
|
|
@@ -19648,7 +19674,7 @@
|
|
|
19648
19674
|
}
|
|
19649
19675
|
};
|
|
19650
19676
|
const Audio = (props) => {
|
|
19651
|
-
const { locale } = useConfig();
|
|
19677
|
+
const { locale } = useConfig$1();
|
|
19652
19678
|
const {
|
|
19653
19679
|
className,
|
|
19654
19680
|
src,
|
|
@@ -20167,7 +20193,6 @@
|
|
|
20167
20193
|
destroy: false
|
|
20168
20194
|
};
|
|
20169
20195
|
const InternalCountDown = (props, ref) => {
|
|
20170
|
-
useConfig();
|
|
20171
20196
|
const {
|
|
20172
20197
|
paused,
|
|
20173
20198
|
startTime,
|
|
@@ -21338,7 +21363,7 @@
|
|
|
21338
21363
|
ellipse: false
|
|
21339
21364
|
};
|
|
21340
21365
|
const Pagination = (props) => {
|
|
21341
|
-
const { locale } = useConfig();
|
|
21366
|
+
const { locale } = useConfig$1();
|
|
21342
21367
|
const {
|
|
21343
21368
|
value,
|
|
21344
21369
|
mode,
|
|
@@ -21433,7 +21458,7 @@
|
|
|
21433
21458
|
onClick: (e) => handleSelectPage(currentPage + 1)
|
|
21434
21459
|
},
|
|
21435
21460
|
next || locale.pagination.next
|
|
21436
|
-
)), mode === "lite" && /* @__PURE__ */ React.createElement(
|
|
21461
|
+
)), mode === "lite" && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite-active` }, 2), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite-default` }, 8)));
|
|
21437
21462
|
};
|
|
21438
21463
|
Pagination.displayName = "NutPagination";
|
|
21439
21464
|
const defaultProps$d = {
|
|
@@ -21685,7 +21710,7 @@
|
|
|
21685
21710
|
showHeader: true
|
|
21686
21711
|
};
|
|
21687
21712
|
const Table = (props) => {
|
|
21688
|
-
const { locale } = useConfig();
|
|
21713
|
+
const { locale } = useConfig$1();
|
|
21689
21714
|
const rtl = useRtl();
|
|
21690
21715
|
defaultProps$a.noData = locale.noData;
|
|
21691
21716
|
const {
|
|
@@ -21955,7 +21980,7 @@
|
|
|
21955
21980
|
};
|
|
21956
21981
|
const classPrefix$2 = "nut-tour";
|
|
21957
21982
|
const Tour = (props) => {
|
|
21958
|
-
const { locale } = useConfig();
|
|
21983
|
+
const { locale } = useConfig$1();
|
|
21959
21984
|
const {
|
|
21960
21985
|
children,
|
|
21961
21986
|
className,
|
|
@@ -22610,7 +22635,7 @@
|
|
|
22610
22635
|
}
|
|
22611
22636
|
};
|
|
22612
22637
|
const TimeSelect = (props) => {
|
|
22613
|
-
const { locale } = useConfig();
|
|
22638
|
+
const { locale } = useConfig$1();
|
|
22614
22639
|
const {
|
|
22615
22640
|
visible,
|
|
22616
22641
|
className,
|
|
@@ -22835,7 +22860,7 @@
|
|
|
22835
22860
|
fontSize: 14
|
|
22836
22861
|
};
|
|
22837
22862
|
const WaterMark = (props) => {
|
|
22838
|
-
const { locale } = useConfig();
|
|
22863
|
+
const { locale } = useConfig$1();
|
|
22839
22864
|
const {
|
|
22840
22865
|
content,
|
|
22841
22866
|
fullPage,
|
|
@@ -22934,22 +22959,29 @@
|
|
|
22934
22959
|
maxZoom: 3,
|
|
22935
22960
|
space: 10,
|
|
22936
22961
|
toolbar: [
|
|
22937
|
-
/* @__PURE__ */ React.createElement(Button, { type: "danger", key: "cancel" }, "
|
|
22938
|
-
/* @__PURE__ */ React.createElement(Button, { key: "reset" }, "
|
|
22939
|
-
/* @__PURE__ */ React.createElement(Button, { key: "rotate" }, "
|
|
22940
|
-
/* @__PURE__ */ React.createElement(Button, { type: "success", key: "confirm" }, "
|
|
22962
|
+
/* @__PURE__ */ React.createElement(Button, { type: "danger", key: "cancel" }, "Cancel"),
|
|
22963
|
+
/* @__PURE__ */ React.createElement(Button, { key: "reset" }, "Reset"),
|
|
22964
|
+
/* @__PURE__ */ React.createElement(Button, { key: "rotate" }, "Rotate"),
|
|
22965
|
+
/* @__PURE__ */ React.createElement(Button, { type: "success", key: "confirm" }, "Confirm")
|
|
22941
22966
|
],
|
|
22942
22967
|
toolbarPosition: "bottom",
|
|
22943
|
-
editText: "
|
|
22968
|
+
editText: "Edit",
|
|
22944
22969
|
shape: "square"
|
|
22945
22970
|
};
|
|
22946
22971
|
const classPrefix = `nut-avatar-cropper`;
|
|
22947
22972
|
const AvatarCropper = (props) => {
|
|
22973
|
+
const { locale } = useConfig();
|
|
22974
|
+
defaultProps.toolbar = [
|
|
22975
|
+
/* @__PURE__ */ React.createElement(Button, { type: "danger", key: "cancel" }, locale.cancel),
|
|
22976
|
+
/* @__PURE__ */ React.createElement(Button, { key: "reset" }, locale.reset),
|
|
22977
|
+
/* @__PURE__ */ React.createElement(Button, { key: "rotate" }, locale.avatarCropper.rotate),
|
|
22978
|
+
/* @__PURE__ */ React.createElement(Button, { type: "success", key: "confirm" }, locale.confirm)
|
|
22979
|
+
];
|
|
22948
22980
|
const {
|
|
22949
22981
|
children,
|
|
22950
|
-
toolbar,
|
|
22951
22982
|
maxZoom,
|
|
22952
22983
|
space,
|
|
22984
|
+
toolbar,
|
|
22953
22985
|
toolbarPosition,
|
|
22954
22986
|
editText,
|
|
22955
22987
|
shape,
|
|
@@ -23243,7 +23275,7 @@
|
|
|
23243
23275
|
};
|
|
23244
23276
|
const ToolBar = () => {
|
|
23245
23277
|
const actions = [cancel, reset, rotate, confirm2];
|
|
23246
|
-
return /* @__PURE__ */ React.createElement(
|
|
23278
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix}-popup-toolbar-flex` }, actions.map((action, index) => /* @__PURE__ */ React.createElement(
|
|
23247
23279
|
"div",
|
|
23248
23280
|
{
|
|
23249
23281
|
key: index,
|
|
@@ -23251,10 +23283,10 @@
|
|
|
23251
23283
|
onClick: (_e) => action()
|
|
23252
23284
|
},
|
|
23253
23285
|
toolbar[index]
|
|
23254
|
-
)))
|
|
23286
|
+
)));
|
|
23255
23287
|
};
|
|
23256
23288
|
const CropperPopup = () => {
|
|
23257
|
-
return /* @__PURE__ */ React.createElement(
|
|
23289
|
+
return /* @__PURE__ */ React.createElement(
|
|
23258
23290
|
"div",
|
|
23259
23291
|
{
|
|
23260
23292
|
ref: cropperPopupRef,
|
|
@@ -23273,7 +23305,7 @@
|
|
|
23273
23305
|
/* @__PURE__ */ React.createElement("div", { className: "highlight", style: highlightStyle })
|
|
23274
23306
|
),
|
|
23275
23307
|
/* @__PURE__ */ React.createElement("div", { className: toolbarPositionCls }, /* @__PURE__ */ React.createElement(ToolBar, null))
|
|
23276
|
-
)
|
|
23308
|
+
);
|
|
23277
23309
|
};
|
|
23278
23310
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: cls, ...rest, style }, children, /* @__PURE__ */ React.createElement(
|
|
23279
23311
|
"input",
|
|
@@ -23283,7 +23315,7 @@
|
|
|
23283
23315
|
accept: "image/*",
|
|
23284
23316
|
className: `${classPrefix}-input`,
|
|
23285
23317
|
onChange: (e) => inputImageChange(e),
|
|
23286
|
-
"aria-label":
|
|
23318
|
+
"aria-label": locale.avatarCropper.selectImage
|
|
23287
23319
|
}
|
|
23288
23320
|
), /* @__PURE__ */ React.createElement("div", { className: "nut-avatar-cropper-edit-text" }, editText)), CropperPopup());
|
|
23289
23321
|
};
|
|
@@ -23386,9 +23418,9 @@
|
|
|
23386
23418
|
exports2.Video = Video;
|
|
23387
23419
|
exports2.VirtualList = VirtualList;
|
|
23388
23420
|
exports2.WaterMark = WaterMark;
|
|
23389
|
-
exports2.getDefaultConfig = getDefaultConfig;
|
|
23421
|
+
exports2.getDefaultConfig = getDefaultConfig$1;
|
|
23390
23422
|
exports2.setDefaultConfig = setDefaultConfig;
|
|
23391
|
-
exports2.useConfig = useConfig;
|
|
23423
|
+
exports2.useConfig = useConfig$1;
|
|
23392
23424
|
exports2.useRtl = useRtl;
|
|
23393
23425
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
23394
23426
|
});
|