@nutui/nutui-react 2.6.19 → 2.6.21
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 +25 -9
- package/dist/esm/AvatarCropper.js +15 -7
- package/dist/esm/CountDown.js +0 -2
- package/dist/esm/Empty.js +0 -2
- package/dist/esm/Uploader.js +9 -8
- package/dist/esm/cascader2.js +3 -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/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 +82 -57
- package/dist/nutui.react.umd.js +82 -57
- package/dist/types/index.d.ts +196 -196
- package/dist/types/locales/base.d.ts +7 -0
- package/dist/types/packages/nutui.react.build.d.ts +197 -0
- package/dist/types/packages/rate/rate.d.ts +2 -2
- package/dist/types/packages/searchbar/searchbar.d.ts +14 -14
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +0 -14
- package/dist/types/packages/uploader/uploader.d.ts +5 -0
- package/dist/types/packages/uploader/uploader.taro.d.ts +1 -3
- 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.21 Fri Sep 27 2024 14:09:32 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -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),
|
|
@@ -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,
|
|
@@ -8476,7 +8479,7 @@
|
|
|
8476
8479
|
}
|
|
8477
8480
|
};
|
|
8478
8481
|
const FixedNav = (props) => {
|
|
8479
|
-
const { locale } = useConfig();
|
|
8482
|
+
const { locale } = useConfig$1();
|
|
8480
8483
|
const {
|
|
8481
8484
|
className,
|
|
8482
8485
|
overlay,
|
|
@@ -9574,6 +9577,19 @@
|
|
|
9574
9577
|
return pathNodes;
|
|
9575
9578
|
}
|
|
9576
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
|
+
};
|
|
9577
9593
|
const defaultProps$16 = {
|
|
9578
9594
|
...ComponentDefaults,
|
|
9579
9595
|
activeColor: "",
|
|
@@ -9596,6 +9612,7 @@
|
|
|
9596
9612
|
}
|
|
9597
9613
|
};
|
|
9598
9614
|
const InternalCascader = (props, ref) => {
|
|
9615
|
+
const { locale } = useConfig();
|
|
9599
9616
|
const {
|
|
9600
9617
|
className,
|
|
9601
9618
|
style,
|
|
@@ -9895,7 +9912,7 @@
|
|
|
9895
9912
|
className: `nut-tabs-titles-item ${tabvalue === pane.paneKey ? "nut-tabs-titles-item-active" : ""}`,
|
|
9896
9913
|
key: pane.paneKey
|
|
9897
9914
|
},
|
|
9898
|
-
/* @__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..."),
|
|
9899
9916
|
/* @__PURE__ */ React.createElement("span", { className: "nut-tabs-titles-item-line" })
|
|
9900
9917
|
);
|
|
9901
9918
|
});
|
|
@@ -9989,7 +10006,7 @@
|
|
|
9989
10006
|
custom: false
|
|
9990
10007
|
};
|
|
9991
10008
|
const ExistRender = (props) => {
|
|
9992
|
-
const { locale } = useConfig();
|
|
10009
|
+
const { locale } = useConfig$1();
|
|
9993
10010
|
const {
|
|
9994
10011
|
children,
|
|
9995
10012
|
type,
|
|
@@ -10045,7 +10062,7 @@
|
|
|
10045
10062
|
backIcon: null
|
|
10046
10063
|
};
|
|
10047
10064
|
const InternalAddress = (props, ref) => {
|
|
10048
|
-
const { locale } = useConfig();
|
|
10065
|
+
const { locale } = useConfig$1();
|
|
10049
10066
|
const {
|
|
10050
10067
|
style,
|
|
10051
10068
|
className,
|
|
@@ -10440,7 +10457,7 @@
|
|
|
10440
10457
|
}
|
|
10441
10458
|
};
|
|
10442
10459
|
const CalendarItem = React.forwardRef((props, ref) => {
|
|
10443
|
-
const { locale } = useConfig();
|
|
10460
|
+
const { locale } = useConfig$1();
|
|
10444
10461
|
const {
|
|
10445
10462
|
style,
|
|
10446
10463
|
className,
|
|
@@ -11042,7 +11059,7 @@
|
|
|
11042
11059
|
}
|
|
11043
11060
|
};
|
|
11044
11061
|
const Calendar = React.forwardRef((props, ref) => {
|
|
11045
|
-
const { locale } = useConfig();
|
|
11062
|
+
const { locale } = useConfig$1();
|
|
11046
11063
|
const {
|
|
11047
11064
|
style,
|
|
11048
11065
|
className,
|
|
@@ -11259,7 +11276,7 @@
|
|
|
11259
11276
|
};
|
|
11260
11277
|
const prefixCls = "nut-calendarcard";
|
|
11261
11278
|
const CalendarCard = React.forwardRef((props, ref) => {
|
|
11262
|
-
const { locale } = useConfig();
|
|
11279
|
+
const { locale } = useConfig$1();
|
|
11263
11280
|
const {
|
|
11264
11281
|
style,
|
|
11265
11282
|
className,
|
|
@@ -12105,7 +12122,7 @@
|
|
|
12105
12122
|
duration: 1e3
|
|
12106
12123
|
};
|
|
12107
12124
|
const InternalPicker = (props, ref) => {
|
|
12108
|
-
const { locale } = useConfig();
|
|
12125
|
+
const { locale } = useConfig$1();
|
|
12109
12126
|
const {
|
|
12110
12127
|
children,
|
|
12111
12128
|
visible,
|
|
@@ -12401,7 +12418,7 @@
|
|
|
12401
12418
|
...defaultProps$Y,
|
|
12402
12419
|
...props
|
|
12403
12420
|
};
|
|
12404
|
-
const { locale } = useConfig();
|
|
12421
|
+
const { locale } = useConfig$1();
|
|
12405
12422
|
const lang = locale.datepicker;
|
|
12406
12423
|
const zhCNType = {
|
|
12407
12424
|
day: lang.day,
|
|
@@ -14208,7 +14225,7 @@
|
|
|
14208
14225
|
const Input = React.forwardRef(
|
|
14209
14226
|
(props, ref) => {
|
|
14210
14227
|
const rtl = useRtl();
|
|
14211
|
-
const { locale } = useConfig();
|
|
14228
|
+
const { locale } = useConfig$1();
|
|
14212
14229
|
const {
|
|
14213
14230
|
type,
|
|
14214
14231
|
name,
|
|
@@ -15021,7 +15038,7 @@
|
|
|
15021
15038
|
}
|
|
15022
15039
|
};
|
|
15023
15040
|
const NumberKeyboard = (props) => {
|
|
15024
|
-
const { locale } = useConfig();
|
|
15041
|
+
const { locale } = useConfig$1();
|
|
15025
15042
|
const {
|
|
15026
15043
|
title,
|
|
15027
15044
|
rightActions,
|
|
@@ -15909,7 +15926,7 @@
|
|
|
15909
15926
|
};
|
|
15910
15927
|
const SearchBar = (props) => {
|
|
15911
15928
|
const classPrefix2 = "nut-searchbar";
|
|
15912
|
-
const { locale } = useConfig();
|
|
15929
|
+
const { locale } = useConfig$1();
|
|
15913
15930
|
const searchRef = React.useRef(null);
|
|
15914
15931
|
const {
|
|
15915
15932
|
value: outerValue,
|
|
@@ -16062,7 +16079,7 @@
|
|
|
16062
16079
|
autoFocus: false
|
|
16063
16080
|
};
|
|
16064
16081
|
const InternalShortPassword = (props, ref) => {
|
|
16065
|
-
const { locale } = useConfig();
|
|
16082
|
+
const { locale } = useConfig$1();
|
|
16066
16083
|
const {
|
|
16067
16084
|
title,
|
|
16068
16085
|
description,
|
|
@@ -16160,7 +16177,7 @@
|
|
|
16160
16177
|
unsupported: ""
|
|
16161
16178
|
};
|
|
16162
16179
|
const InternalSignature = (props, ref) => {
|
|
16163
|
-
const { locale } = useConfig();
|
|
16180
|
+
const { locale } = useConfig$1();
|
|
16164
16181
|
const {
|
|
16165
16182
|
type,
|
|
16166
16183
|
lineWidth,
|
|
@@ -16341,7 +16358,7 @@
|
|
|
16341
16358
|
autoSize: false
|
|
16342
16359
|
};
|
|
16343
16360
|
const TextArea = (props) => {
|
|
16344
|
-
const { locale } = useConfig();
|
|
16361
|
+
const { locale } = useConfig$1();
|
|
16345
16362
|
const {
|
|
16346
16363
|
className,
|
|
16347
16364
|
value,
|
|
@@ -16650,6 +16667,7 @@
|
|
|
16650
16667
|
onDeleteItem,
|
|
16651
16668
|
handleItemClick,
|
|
16652
16669
|
previewUrl,
|
|
16670
|
+
deleteIcon,
|
|
16653
16671
|
children
|
|
16654
16672
|
}) => {
|
|
16655
16673
|
const renderIcon = (item) => {
|
|
@@ -16667,12 +16685,12 @@
|
|
|
16667
16685
|
key: item.uid
|
|
16668
16686
|
},
|
|
16669
16687
|
previewType === "picture" && !children && deletable && /* @__PURE__ */ React.createElement(
|
|
16670
|
-
|
|
16688
|
+
"div",
|
|
16671
16689
|
{
|
|
16672
|
-
|
|
16673
|
-
className: "close"
|
|
16674
|
-
|
|
16675
|
-
|
|
16690
|
+
onClick: () => onDeleteItem(item, index),
|
|
16691
|
+
className: "close"
|
|
16692
|
+
},
|
|
16693
|
+
deleteIcon
|
|
16676
16694
|
),
|
|
16677
16695
|
previewType === "picture" && !children && /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-img" }, item.status === "ready" ? /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-progress" }, /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-progress-msg" }, item.message)) : item.status !== "success" && /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-progress" }, renderIcon(item), /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-progress-msg" }, item.message)), ((_a = item.type) == null ? void 0 : _a.includes("image")) ? /* @__PURE__ */ React.createElement(React.Fragment, null, item.url && /* @__PURE__ */ React.createElement(
|
|
16678
16696
|
Image$1,
|
|
@@ -16729,7 +16747,7 @@
|
|
|
16729
16747
|
class FileItem {
|
|
16730
16748
|
constructor() {
|
|
16731
16749
|
this.status = "ready";
|
|
16732
|
-
this.message = "
|
|
16750
|
+
this.message = "";
|
|
16733
16751
|
this.uid = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
16734
16752
|
this.percentage = 0;
|
|
16735
16753
|
this.formData = {};
|
|
@@ -16758,16 +16776,18 @@
|
|
|
16758
16776
|
deletable: true,
|
|
16759
16777
|
capture: false,
|
|
16760
16778
|
uploadIcon: /* @__PURE__ */ React.createElement(c$1, { width: "20px", height: "20px", color: "#808080" }),
|
|
16779
|
+
deleteIcon: /* @__PURE__ */ React.createElement(p$3, { color: "rgba(0,0,0,0.6)" }),
|
|
16761
16780
|
beforeDelete: (file, files) => {
|
|
16762
16781
|
return true;
|
|
16763
16782
|
}
|
|
16764
16783
|
};
|
|
16765
16784
|
const InternalUploader = (props, ref) => {
|
|
16766
|
-
const { locale } = useConfig();
|
|
16785
|
+
const { locale } = useConfig$1();
|
|
16767
16786
|
const fileListRef = React.useRef([]);
|
|
16768
16787
|
const {
|
|
16769
16788
|
children,
|
|
16770
16789
|
uploadIcon,
|
|
16790
|
+
deleteIcon,
|
|
16771
16791
|
uploadLabel,
|
|
16772
16792
|
name,
|
|
16773
16793
|
accept,
|
|
@@ -17012,7 +17032,7 @@
|
|
|
17012
17032
|
const handleItemClick = (file, index) => {
|
|
17013
17033
|
onFileItemClick == null ? void 0 : onFileItemClick(file, index);
|
|
17014
17034
|
};
|
|
17015
|
-
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" },
|
|
17035
|
+
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(
|
|
17016
17036
|
"input",
|
|
17017
17037
|
{
|
|
17018
17038
|
className: "nut-uploader-input",
|
|
@@ -17034,7 +17054,8 @@
|
|
|
17034
17054
|
onDeleteItem,
|
|
17035
17055
|
handleItemClick,
|
|
17036
17056
|
previewUrl,
|
|
17037
|
-
children
|
|
17057
|
+
children,
|
|
17058
|
+
deleteIcon
|
|
17038
17059
|
}
|
|
17039
17060
|
}
|
|
17040
17061
|
), Number(maxCount) > fileList.length && previewType === "picture" && !children && /* @__PURE__ */ React.createElement(
|
|
@@ -17401,7 +17422,7 @@
|
|
|
17401
17422
|
beforeClose: () => true
|
|
17402
17423
|
};
|
|
17403
17424
|
const BaseDialog = (props, ref) => {
|
|
17404
|
-
const { locale } = useConfig();
|
|
17425
|
+
const { locale } = useConfig$1();
|
|
17405
17426
|
const {
|
|
17406
17427
|
visible,
|
|
17407
17428
|
footer,
|
|
@@ -17630,7 +17651,6 @@
|
|
|
17630
17651
|
};
|
|
17631
17652
|
const classPrefix$e = `nut-empty`;
|
|
17632
17653
|
const Empty = (props) => {
|
|
17633
|
-
useConfig();
|
|
17634
17654
|
const {
|
|
17635
17655
|
image,
|
|
17636
17656
|
imageSize,
|
|
@@ -17699,7 +17719,7 @@
|
|
|
17699
17719
|
};
|
|
17700
17720
|
const classPrefix$d = `nut-infiniteloading`;
|
|
17701
17721
|
const InfiniteLoading = (props) => {
|
|
17702
|
-
const { locale } = useConfig();
|
|
17722
|
+
const { locale } = useConfig$1();
|
|
17703
17723
|
const {
|
|
17704
17724
|
children,
|
|
17705
17725
|
type,
|
|
@@ -18398,7 +18418,6 @@
|
|
|
18398
18418
|
...ComponentDefaults,
|
|
18399
18419
|
id: "",
|
|
18400
18420
|
duration: 3e3,
|
|
18401
|
-
// 时长
|
|
18402
18421
|
type: "danger",
|
|
18403
18422
|
position: "top",
|
|
18404
18423
|
onClose: () => {
|
|
@@ -18770,7 +18789,7 @@
|
|
|
18770
18789
|
};
|
|
18771
18790
|
const PullToRefresh = (p2) => {
|
|
18772
18791
|
const classPrefix2 = "nut-pulltorefresh";
|
|
18773
|
-
const { locale } = useConfig();
|
|
18792
|
+
const { locale } = useConfig$1();
|
|
18774
18793
|
const props = {
|
|
18775
18794
|
...defaultProps$x,
|
|
18776
18795
|
...p2,
|
|
@@ -19659,7 +19678,7 @@
|
|
|
19659
19678
|
}
|
|
19660
19679
|
};
|
|
19661
19680
|
const Audio = (props) => {
|
|
19662
|
-
const { locale } = useConfig();
|
|
19681
|
+
const { locale } = useConfig$1();
|
|
19663
19682
|
const {
|
|
19664
19683
|
className,
|
|
19665
19684
|
src,
|
|
@@ -20178,7 +20197,6 @@
|
|
|
20178
20197
|
destroy: false
|
|
20179
20198
|
};
|
|
20180
20199
|
const InternalCountDown = (props, ref) => {
|
|
20181
|
-
useConfig();
|
|
20182
20200
|
const {
|
|
20183
20201
|
paused,
|
|
20184
20202
|
startTime,
|
|
@@ -21349,7 +21367,7 @@
|
|
|
21349
21367
|
ellipse: false
|
|
21350
21368
|
};
|
|
21351
21369
|
const Pagination = (props) => {
|
|
21352
|
-
const { locale } = useConfig();
|
|
21370
|
+
const { locale } = useConfig$1();
|
|
21353
21371
|
const {
|
|
21354
21372
|
value,
|
|
21355
21373
|
mode,
|
|
@@ -21696,7 +21714,7 @@
|
|
|
21696
21714
|
showHeader: true
|
|
21697
21715
|
};
|
|
21698
21716
|
const Table = (props) => {
|
|
21699
|
-
const { locale } = useConfig();
|
|
21717
|
+
const { locale } = useConfig$1();
|
|
21700
21718
|
const rtl = useRtl();
|
|
21701
21719
|
defaultProps$a.noData = locale.noData;
|
|
21702
21720
|
const {
|
|
@@ -21966,7 +21984,7 @@
|
|
|
21966
21984
|
};
|
|
21967
21985
|
const classPrefix$2 = "nut-tour";
|
|
21968
21986
|
const Tour = (props) => {
|
|
21969
|
-
const { locale } = useConfig();
|
|
21987
|
+
const { locale } = useConfig$1();
|
|
21970
21988
|
const {
|
|
21971
21989
|
children,
|
|
21972
21990
|
className,
|
|
@@ -22621,7 +22639,7 @@
|
|
|
22621
22639
|
}
|
|
22622
22640
|
};
|
|
22623
22641
|
const TimeSelect = (props) => {
|
|
22624
|
-
const { locale } = useConfig();
|
|
22642
|
+
const { locale } = useConfig$1();
|
|
22625
22643
|
const {
|
|
22626
22644
|
visible,
|
|
22627
22645
|
className,
|
|
@@ -22846,7 +22864,7 @@
|
|
|
22846
22864
|
fontSize: 14
|
|
22847
22865
|
};
|
|
22848
22866
|
const WaterMark = (props) => {
|
|
22849
|
-
const { locale } = useConfig();
|
|
22867
|
+
const { locale } = useConfig$1();
|
|
22850
22868
|
const {
|
|
22851
22869
|
content,
|
|
22852
22870
|
fullPage,
|
|
@@ -22945,22 +22963,29 @@
|
|
|
22945
22963
|
maxZoom: 3,
|
|
22946
22964
|
space: 10,
|
|
22947
22965
|
toolbar: [
|
|
22948
|
-
/* @__PURE__ */ React.createElement(Button, { type: "danger", key: "cancel" }, "
|
|
22949
|
-
/* @__PURE__ */ React.createElement(Button, { key: "reset" }, "
|
|
22950
|
-
/* @__PURE__ */ React.createElement(Button, { key: "rotate" }, "
|
|
22951
|
-
/* @__PURE__ */ React.createElement(Button, { type: "success", key: "confirm" }, "
|
|
22966
|
+
/* @__PURE__ */ React.createElement(Button, { type: "danger", key: "cancel" }, "Cancel"),
|
|
22967
|
+
/* @__PURE__ */ React.createElement(Button, { key: "reset" }, "Reset"),
|
|
22968
|
+
/* @__PURE__ */ React.createElement(Button, { key: "rotate" }, "Rotate"),
|
|
22969
|
+
/* @__PURE__ */ React.createElement(Button, { type: "success", key: "confirm" }, "Confirm")
|
|
22952
22970
|
],
|
|
22953
22971
|
toolbarPosition: "bottom",
|
|
22954
|
-
editText: "
|
|
22972
|
+
editText: "Edit",
|
|
22955
22973
|
shape: "square"
|
|
22956
22974
|
};
|
|
22957
22975
|
const classPrefix = `nut-avatar-cropper`;
|
|
22958
22976
|
const AvatarCropper = (props) => {
|
|
22977
|
+
const { locale } = useConfig();
|
|
22978
|
+
defaultProps.toolbar = [
|
|
22979
|
+
/* @__PURE__ */ React.createElement(Button, { type: "danger", key: "cancel" }, locale.cancel),
|
|
22980
|
+
/* @__PURE__ */ React.createElement(Button, { key: "reset" }, locale.reset),
|
|
22981
|
+
/* @__PURE__ */ React.createElement(Button, { key: "rotate" }, locale.avatarCropper.rotate),
|
|
22982
|
+
/* @__PURE__ */ React.createElement(Button, { type: "success", key: "confirm" }, locale.confirm)
|
|
22983
|
+
];
|
|
22959
22984
|
const {
|
|
22960
22985
|
children,
|
|
22961
|
-
toolbar,
|
|
22962
22986
|
maxZoom,
|
|
22963
22987
|
space,
|
|
22988
|
+
toolbar,
|
|
22964
22989
|
toolbarPosition,
|
|
22965
22990
|
editText,
|
|
22966
22991
|
shape,
|
|
@@ -23294,7 +23319,7 @@
|
|
|
23294
23319
|
accept: "image/*",
|
|
23295
23320
|
className: `${classPrefix}-input`,
|
|
23296
23321
|
onChange: (e) => inputImageChange(e),
|
|
23297
|
-
"aria-label":
|
|
23322
|
+
"aria-label": locale.avatarCropper.selectImage
|
|
23298
23323
|
}
|
|
23299
23324
|
), /* @__PURE__ */ React.createElement("div", { className: "nut-avatar-cropper-edit-text" }, editText)), CropperPopup());
|
|
23300
23325
|
};
|
|
@@ -23397,9 +23422,9 @@
|
|
|
23397
23422
|
exports2.Video = Video;
|
|
23398
23423
|
exports2.VirtualList = VirtualList;
|
|
23399
23424
|
exports2.WaterMark = WaterMark;
|
|
23400
|
-
exports2.getDefaultConfig = getDefaultConfig;
|
|
23425
|
+
exports2.getDefaultConfig = getDefaultConfig$1;
|
|
23401
23426
|
exports2.setDefaultConfig = setDefaultConfig;
|
|
23402
|
-
exports2.useConfig = useConfig;
|
|
23427
|
+
exports2.useConfig = useConfig$1;
|
|
23403
23428
|
exports2.useRtl = useRtl;
|
|
23404
23429
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
23405
23430
|
});
|