@nutui/nutui-react-taro 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.
Files changed (101) hide show
  1. package/CHANGELOG.md +25 -9
  2. package/dist/esm/Address.js +1 -1
  3. package/dist/esm/Audio.js +1 -1
  4. package/dist/esm/AvatarCropper.js +1 -1
  5. package/dist/esm/BackTop.js +1 -1
  6. package/dist/esm/Badge.js +1 -1
  7. package/dist/esm/Barrage.js +1 -1
  8. package/dist/esm/Calendar.js +1 -1
  9. package/dist/esm/CalendarCard.js +1 -1
  10. package/dist/esm/CalendarItem.js +1 -1
  11. package/dist/esm/Cascader.js +1 -1
  12. package/dist/esm/ConfigProvider.js +2 -2
  13. package/dist/esm/CountDown.js +1 -1
  14. package/dist/esm/DatePicker.js +1 -1
  15. package/dist/esm/Dialog.js +1 -1
  16. package/dist/esm/Ellipsis.js +1 -1
  17. package/dist/esm/Empty.js +1 -1
  18. package/dist/esm/FixedNav.js +1 -1
  19. package/dist/esm/Grid.js +1 -1
  20. package/dist/esm/GridItem.js +1 -1
  21. package/dist/esm/InfiniteLoading.js +1 -1
  22. package/dist/esm/Input.js +1 -1
  23. package/dist/esm/NoticeBar.js +1 -1
  24. package/dist/esm/NumberKeyboard.js +1 -1
  25. package/dist/esm/Pagination.js +1 -1
  26. package/dist/esm/Picker.js +1 -1
  27. package/dist/esm/Popover.js +1 -1
  28. package/dist/esm/Progress.js +1 -1
  29. package/dist/esm/PullToRefresh.js +1 -1
  30. package/dist/esm/Range.js +1 -1
  31. package/dist/esm/SearchBar.js +1 -1
  32. package/dist/esm/ShortPassword.js +1 -1
  33. package/dist/esm/Signature.js +1 -1
  34. package/dist/esm/Tabbar.js +1 -1
  35. package/dist/esm/TabbarItem.js +1 -1
  36. package/dist/esm/Table.js +1 -1
  37. package/dist/esm/Tabs.js +1 -1
  38. package/dist/esm/TextArea.js +1 -1
  39. package/dist/esm/TimeSelect.js +1 -1
  40. package/dist/esm/Tour.js +1 -1
  41. package/dist/esm/Uploader.js +1 -1
  42. package/dist/esm/WaterMark.js +1 -1
  43. package/dist/esm/{address.taro-DErzR2nE.js → address.taro-CWr6jIYg.js} +2 -2
  44. package/dist/esm/{audio.taro-C8UEIiBR.js → audio.taro--yoX2oyx.js} +2 -2
  45. package/dist/esm/{avatarcropper.taro-Bmx6gexj.js → avatarcropper.taro-B0I9uLNp.js} +14 -5
  46. package/dist/esm/{backtop.taro-jWlJ1ZWG.js → backtop.taro-CpzSXDW3.js} +1 -1
  47. package/dist/esm/{badge.taro-BGaxpEYi.js → badge.taro-B42_7q8v.js} +1 -1
  48. package/dist/esm/{barrage.taro-CA-9uADD.js → barrage.taro-D2lmvcB-.js} +40 -26
  49. package/dist/esm/{calendar.taro-CuPrPO_2.js → calendar.taro-Csq-7imv.js} +2 -2
  50. package/dist/esm/{calendarcard.taro-CbvCWF1k.js → calendarcard.taro-CvWyBqnr.js} +1 -1
  51. package/dist/esm/{calendaritem.taro-DbaK10II.js → calendaritem.taro-BOMJjsx9.js} +1 -1
  52. package/dist/esm/{cascader.taro-Cad_4Sqw.js → cascader.taro-DZ_oBTm0.js} +4 -2
  53. package/dist/esm/{configprovider.taro-DA4GDDFu.js → configprovider.taro-C3WyeHSO.js} +4 -0
  54. package/dist/esm/{countdown.taro-mKXeisK0.js → countdown.taro-Dyryl4pq.js} +0 -3
  55. package/dist/esm/{datepicker.taro-DjTr__43.js → datepicker.taro-DibmSueg.js} +2 -2
  56. package/dist/esm/{dialog.taro-CzGba5-2.js → dialog.taro-Bg730q8d.js} +1 -1
  57. package/dist/esm/{ellipsis.taro-Ba2Kokb7.js → ellipsis.taro-fvcP85Ir.js} +1 -1
  58. package/dist/esm/{empty.taro-CnwDznke.js → empty.taro-Dr4eSaDg.js} +0 -2
  59. package/dist/esm/{fixednav.taro-eCRdeuqJ.js → fixednav.taro-BodErnYy.js} +1 -1
  60. package/dist/esm/{grid.taro-ZJywVaVe.js → grid.taro-Bi-DXjbo.js} +1 -1
  61. package/dist/esm/{griditem.taro-CcWyYchl.js → griditem.taro-DMvds46i.js} +0 -2
  62. package/dist/esm/{infiniteloading.taro-TbcBB0Qr.js → infiniteloading.taro-DzIrZvc0.js} +1 -1
  63. package/dist/esm/{input.taro-DbAbbzIX.js → input.taro-CA9ZpM9a.js} +1 -1
  64. package/dist/esm/{noticebar.taro-CGUTg60Q.js → noticebar.taro-BjKDC7We.js} +1 -1
  65. package/dist/esm/{numberkeyboard.taro-B1LfptyA.js → numberkeyboard.taro-CIlStObb.js} +1 -1
  66. package/dist/esm/nutui-react.es.js +41 -41
  67. package/dist/esm/{pagination.taro-D0HOQwW2.js → pagination.taro-BSwytb0-.js} +1 -1
  68. package/dist/esm/{picker.taro-D9CKPl5K.js → picker.taro-mCnxpFCY.js} +1 -1
  69. package/dist/esm/{popover.taro-BvMcsCRf.js → popover.taro-BHcidbZG.js} +1 -1
  70. package/dist/esm/{progress.taro-De9-206U.js → progress.taro-CaIUT9Uo.js} +1 -1
  71. package/dist/esm/{pulltorefresh.taro-DSr2dBjM.js → pulltorefresh.taro-BiSDwLpA.js} +1 -1
  72. package/dist/esm/{range.taro-D_qsx_j6.js → range.taro-BilM3sMH.js} +1 -1
  73. package/dist/esm/{searchbar.taro-C8cg7NeJ.js → searchbar.taro-LaO2Xr2t.js} +1 -1
  74. package/dist/esm/{shortpassword.taro-DPmvilhN.js → shortpassword.taro-ByEtEDDl.js} +1 -1
  75. package/dist/esm/{signature.taro-zgwaJkIE.js → signature.taro-BW4eiGIR.js} +1 -1
  76. package/dist/esm/{tabbar.taro-CXk0zLdz.js → tabbar.taro-BiQDgZQF.js} +1 -1
  77. package/dist/esm/{tabbaritem.taro-BZNabTBp.js → tabbaritem.taro-BiIVucQz.js} +1 -1
  78. package/dist/esm/{table.taro-B6WCKTkO.js → table.taro-1nFkDxbh.js} +1 -1
  79. package/dist/esm/{tabs.taro-8X51sTol.js → tabs.taro-CJiI4q_-.js} +1 -1
  80. package/dist/esm/{textarea.taro-DuceTjAx.js → textarea.taro-EJQxRHZR.js} +1 -1
  81. package/dist/esm/{timeselect.taro-BqP2APht.js → timeselect.taro-DE_a87DT.js} +1 -1
  82. package/dist/esm/{tour.taro-XysJDnqf.js → tour.taro-BvBZa8nq.js} +1 -1
  83. package/dist/esm/{uploader.taro-Do8LZqUn.js → uploader.taro-DZyZiEi2.js} +11 -14
  84. package/dist/esm/{watermark.taro-CZ6R5FlJ.js → watermark.taro-CbO7mKFD.js} +1 -1
  85. package/dist/locales/base.d.ts +7 -0
  86. package/dist/locales/base.js +1 -1
  87. package/dist/locales/en-US.js +5 -1
  88. package/dist/locales/id-ID.js +5 -1
  89. package/dist/locales/tr-TR.js +5 -1
  90. package/dist/locales/zh-CN.js +5 -1
  91. package/dist/locales/zh-TW.js +5 -1
  92. package/dist/locales/zh-UG.js +5 -1
  93. package/dist/nutui.react.es.js +74 -52
  94. package/dist/nutui.react.umd.js +74 -52
  95. package/dist/types/index.d.ts +196 -196
  96. package/dist/types/locales/base.d.ts +7 -0
  97. package/dist/types/packages/searchbar/searchbar.d.ts +0 -14
  98. package/dist/types/packages/searchbar/searchbar.taro.d.ts +14 -14
  99. package/dist/types/packages/uploader/uploader.d.ts +1 -0
  100. package/dist/types/packages/uploader/uploader.taro.d.ts +5 -3
  101. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.19 Fri Sep 13 2024 15:43:00 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.21 Fri Sep 27 2024 14:03:03 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -11,6 +11,8 @@ const o = {
11
11
  noData: "No Data",
12
12
  placeholder: "Placeholder",
13
13
  select: "Select",
14
+ edit: "Edit",
15
+ reset: "Reset",
14
16
  video: {
15
17
  errorTip: "Error Tip",
16
18
  clickRetry: "Click Retry"
@@ -46,6 +48,7 @@ const o = {
46
48
  tips: "Forget password"
47
49
  },
48
50
  uploader: {
51
+ list: "Upload Files",
49
52
  ready: "Ready",
50
53
  readyUpload: "Ready to upload",
51
54
  waitingUpload: "Waiting for upload",
@@ -112,6 +115,7 @@ const o = {
112
115
  mute: "mute",
113
116
  tips: "The onplayend event will only be triggered when loop = false"
114
117
  },
118
+ avatarCropper: { rotate: "Rotate", selectImage: "Select Image" },
115
119
  datepicker: {
116
120
  year: "Year",
117
121
  month: "Month",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.19 Fri Sep 13 2024 15:43:00 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.21 Fri Sep 27 2024 14:03:03 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -11,6 +11,8 @@ const n = {
11
11
  noData: "Tidak Ada Data",
12
12
  placeholder: "Kolom Input",
13
13
  select: "Pilih",
14
+ edit: "Sunting",
15
+ reset: "Mengatur Ulang",
14
16
  video: {
15
17
  errorTip: "Terjadi Kesalahan",
16
18
  clickRetry: "Coba Lagi"
@@ -46,6 +48,7 @@ const n = {
46
48
  tips: "Lupa Kata Sandi"
47
49
  },
48
50
  uploader: {
51
+ list: "Unggah file",
49
52
  ready: "File berhasil diunggah",
50
53
  readyUpload: "Siap untuk mengunggah",
51
54
  waitingUpload: "Menunggu untuk diunggah",
@@ -112,6 +115,7 @@ const n = {
112
115
  mute: "bisu",
113
116
  tips: "Acara Onplayend hanya akan dipicu saat loop = false"
114
117
  },
118
+ avatarCropper: { rotate: "Memutar", selectImage: "Pilih gambar" },
115
119
  datepicker: {
116
120
  year: "Tahun",
117
121
  month: "Bulan",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.19 Fri Sep 13 2024 15:43:00 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.21 Fri Sep 27 2024 14:03:03 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -11,6 +11,8 @@ const i = {
11
11
  noData: "Veri Yok",
12
12
  placeholder: "Placeholder",
13
13
  select: "Seçiniz",
14
+ edit: "düzenlemek",
15
+ reset: "sıfırlama",
14
16
  video: {
15
17
  errorTip: "Video yüklenemedi",
16
18
  clickRetry: "Yeniden Tıklayın"
@@ -54,6 +56,7 @@ const i = {
54
56
  tips: "Şifrenizi mi unuttunuz"
55
57
  },
56
58
  uploader: {
59
+ list: "Dosyaları yükle",
57
60
  ready: "Tamamlamaya hazır",
58
61
  readyUpload: "Yüklemeye hazır",
59
62
  waitingUpload: "Yükleme için bekleniyor",
@@ -120,6 +123,7 @@ const i = {
120
123
  mute: "sessiz",
121
124
  tips: "onPlayEnd olayı loop=false olduğunda ateşlenir"
122
125
  },
126
+ avatarCropper: { rotate: "döndürmek", selectImage: "Resim seç" },
123
127
  datepicker: {
124
128
  year: "yıl",
125
129
  month: "ay",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.19 Fri Sep 13 2024 15:43:00 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.21 Fri Sep 27 2024 14:03:03 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -11,6 +11,8 @@ const a = {
11
11
  noData: "暂无数据",
12
12
  placeholder: "请输入内容",
13
13
  select: "请选择",
14
+ edit: "编辑",
15
+ reset: "重置",
14
16
  video: {
15
17
  errorTip: "视频加载失败",
16
18
  clickRetry: "点击重试"
@@ -48,6 +50,7 @@ const a = {
48
50
  tips: "忘记密码"
49
51
  },
50
52
  uploader: {
53
+ list: "上传文件",
51
54
  ready: "准备完成",
52
55
  readyUpload: "准备上传",
53
56
  waitingUpload: "等待上传",
@@ -114,6 +117,7 @@ const a = {
114
117
  mute: "静音",
115
118
  tips: "onPlayEnd事件在loop=false时才会触发"
116
119
  },
120
+ avatarCropper: { rotate: "旋转", selectImage: "选择图片" },
117
121
  datepicker: {
118
122
  year: "年",
119
123
  month: "月",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.19 Fri Sep 13 2024 15:43:00 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.21 Fri Sep 27 2024 14:03:03 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -11,6 +11,8 @@ const a = {
11
11
  noData: "暫無數據",
12
12
  placeholder: "請輸入內容",
13
13
  select: "請選擇",
14
+ edit: "編輯",
15
+ reset: "重置",
14
16
  video: {
15
17
  errorTip: "視頻加載失敗",
16
18
  clickRetry: "點擊重試"
@@ -48,6 +50,7 @@ const a = {
48
50
  tips: "忘記密碼"
49
51
  },
50
52
  uploader: {
53
+ list: "上傳文件",
51
54
  ready: "準備完成",
52
55
  readyUpload: "準備上傳",
53
56
  waitingUpload: "等待上傳",
@@ -114,6 +117,7 @@ const a = {
114
117
  mute: "靜音",
115
118
  tips: "onPlayEnd事件在loop=false時才會觸發"
116
119
  },
120
+ avatarCropper: { rotate: "旋轉", selectImage: "選擇圖片" },
117
121
  datepicker: {
118
122
  year: "年",
119
123
  month: "月",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.19 Fri Sep 13 2024 15:43:00 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.21 Fri Sep 27 2024 14:03:03 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -11,6 +11,8 @@ const a = {
11
11
  noData: "مەزمۇن يوق",
12
12
  placeholder: "كىرگۈزۈڭ",
13
13
  select: "تاللاڭ",
14
+ edit: "يحرر",
15
+ reset: "إعادة ضبط",
14
16
  video: {
15
17
  errorTip: "فىلىمنى قويۇش مەغلۇپ بولدى",
16
18
  clickRetry: "قايتا سىناش"
@@ -46,6 +48,7 @@ const a = {
46
48
  tips: "ئۇنتۇپ قاپتىمەن"
47
49
  },
48
50
  uploader: {
51
+ list: "تحميل الملفات",
49
52
  ready: "تاماملىنىۋاتىدۇ",
50
53
  readyUpload: "يوللاش ئالدىدا",
51
54
  waitingUpload: "ساقلاۋاتىدۇ",
@@ -112,6 +115,7 @@ const a = {
112
115
  mute: "جىم",
113
116
  tips: "onPlayEnd بولسا loop=false بولغاندا ئىشلەيدۇ"
114
117
  },
118
+ avatarCropper: { rotate: "تناوب", selectImage: "حدد الصورة" },
115
119
  datepicker: {
116
120
  year: "يىل",
117
121
  month: "ئاي",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.19 Fri Sep 13 2024 15:42:35 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.21 Fri Sep 27 2024 14:02:22 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1399,6 +1399,8 @@ const zhCN = {
1399
1399
  noData: "暂无数据",
1400
1400
  placeholder: "请输入内容",
1401
1401
  select: "请选择",
1402
+ edit: "编辑",
1403
+ reset: "重置",
1402
1404
  video: {
1403
1405
  errorTip: "视频加载失败",
1404
1406
  clickRetry: "点击重试"
@@ -1436,6 +1438,7 @@ const zhCN = {
1436
1438
  tips: "忘记密码"
1437
1439
  },
1438
1440
  uploader: {
1441
+ list: "上传文件",
1439
1442
  ready: "准备完成",
1440
1443
  readyUpload: "准备上传",
1441
1444
  waitingUpload: "等待上传",
@@ -1502,6 +1505,7 @@ const zhCN = {
1502
1505
  mute: "静音",
1503
1506
  tips: "onPlayEnd事件在loop=false时才会触发"
1504
1507
  },
1508
+ avatarCropper: { rotate: "旋转", selectImage: "选择图片" },
1505
1509
  datepicker: {
1506
1510
  year: "年",
1507
1511
  month: "月",
@@ -3707,7 +3711,6 @@ const defaultProps$1o = {
3707
3711
  direction: "vertical"
3708
3712
  };
3709
3713
  const GridItem = (props) => {
3710
- useConfig$1();
3711
3714
  const {
3712
3715
  children,
3713
3716
  style,
@@ -5685,6 +5688,7 @@ const defaultProps$16 = {
5685
5688
  }
5686
5689
  };
5687
5690
  const InternalCascader = (props, ref) => {
5691
+ const { locale } = useConfig$1();
5688
5692
  const {
5689
5693
  className,
5690
5694
  style,
@@ -5984,7 +5988,7 @@ const InternalCascader = (props, ref) => {
5984
5988
  className: `nut-tabs-titles-item ${tabvalue === pane.paneKey ? "nut-tabs-titles-item-active" : ""}`,
5985
5989
  key: pane.paneKey
5986
5990
  },
5987
- /* @__PURE__ */ React__default.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) && "请选择", !(!state.initLoading && state.panes.length) && "Loading..."),
5991
+ /* @__PURE__ */ React__default.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..."),
5988
5992
  /* @__PURE__ */ React__default.createElement("span", { className: "nut-tabs-titles-item-line" })
5989
5993
  );
5990
5994
  });
@@ -12301,7 +12305,7 @@ const InternalSignature = (props, ref) => {
12301
12305
  onConfirm && onConfirm(res2.tempFilePath, isSignedRef.current);
12302
12306
  },
12303
12307
  fail: (res2) => {
12304
- console.warn("保存失败");
12308
+ console.warn("保存失败", res2);
12305
12309
  }
12306
12310
  });
12307
12311
  });
@@ -12695,7 +12699,7 @@ const funcInterceptor = (interceptor, {
12695
12699
  class FileItem {
12696
12700
  constructor() {
12697
12701
  this.status = "ready";
12698
- this.message = "准备中..";
12702
+ this.message = "";
12699
12703
  this.uid = (/* @__PURE__ */ new Date()).getTime().toString();
12700
12704
  this.percentage = 0;
12701
12705
  this.formData = {};
@@ -12858,6 +12862,7 @@ const Preview = ({
12858
12862
  onDeleteItem,
12859
12863
  handleItemClick,
12860
12864
  previewUrl,
12865
+ deleteIcon,
12861
12866
  children
12862
12867
  }) => {
12863
12868
  const renderIcon = (item) => {
@@ -12875,12 +12880,12 @@ const Preview = ({
12875
12880
  key: item.uid
12876
12881
  },
12877
12882
  previewType === "picture" && !children && deletable && /* @__PURE__ */ React__default.createElement(
12878
- u$1,
12883
+ View,
12879
12884
  {
12880
- color: "rgba(0,0,0,0.6)",
12881
12885
  className: "close",
12882
12886
  onClick: () => onDeleteItem(item, index)
12883
- }
12887
+ },
12888
+ deleteIcon
12884
12889
  ),
12885
12890
  previewType === "picture" && !children && /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-preview-img" }, item.status === "ready" ? /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-preview-progress" }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-preview-progress-msg" }, item.message)) : item.status !== "success" && /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-preview-progress" }, renderIcon(item), /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-preview-progress-msg" }, item.message)), ((_a = item.type) == null ? void 0 : _a.includes("image")) ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, item.url && /* @__PURE__ */ React__default.createElement(
12886
12891
  Image$2,
@@ -12943,6 +12948,7 @@ const defaultProps$H = {
12943
12948
  mediaType: ["image", "video"],
12944
12949
  camera: "back",
12945
12950
  uploadIcon: /* @__PURE__ */ React__default.createElement(y, { size: "20px", color: "#808080" }),
12951
+ deleteIcon: /* @__PURE__ */ React__default.createElement(u$1, { color: "rgba(0,0,0,0.6)" }),
12946
12952
  uploadLabel: "",
12947
12953
  previewType: "picture",
12948
12954
  fit: "cover",
@@ -12970,6 +12976,7 @@ const InternalUploader = (props, ref) => {
12970
12976
  const {
12971
12977
  children,
12972
12978
  uploadIcon,
12979
+ deleteIcon,
12973
12980
  uploadLabel,
12974
12981
  accept,
12975
12982
  name,
@@ -13066,7 +13073,6 @@ const InternalUploader = (props, ref) => {
13066
13073
  }
13067
13074
  if ((getEnv() === "WEAPP" || getEnv() === "JD") && chooseMedia) {
13068
13075
  chooseMedia({
13069
- /** 最多可以选择的文件个数 */
13070
13076
  count: multiple ? maxCount * 1 - fileList.length : 1,
13071
13077
  /** 文件类型 */
13072
13078
  mediaType,
@@ -13078,16 +13084,13 @@ const InternalUploader = (props, ref) => {
13078
13084
  sizeType,
13079
13085
  /** 仅在 sourceType 为 camera 时生效,使用前置或后置摄像头 */
13080
13086
  camera,
13081
- /** 接口调用失败的回调函数 */
13082
13087
  fail: (res) => {
13083
13088
  onFailure && onFailure(res);
13084
13089
  },
13085
- /** 接口调用成功的回调函数 */
13086
13090
  success: onChangeMedia
13087
13091
  });
13088
13092
  } else {
13089
13093
  chooseImage({
13090
- // 选择数量
13091
13094
  count: multiple ? maxCount * 1 - fileList.length : 1,
13092
13095
  // 可以指定是原图还是压缩图,默认二者都有
13093
13096
  sizeType,
@@ -13283,7 +13286,7 @@ const InternalUploader = (props, ref) => {
13283
13286
  const handleItemClick = (file, index) => {
13284
13287
  onFileItemClick == null ? void 0 : onFileItemClick(file, index);
13285
13288
  };
13286
- return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-slot" }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children || /* @__PURE__ */ React__default.createElement(Button, { nativeType: "button", size: "small", type: "primary" }, "上传文件"), Number(maxCount) > fileList.length && /* @__PURE__ */ React__default.createElement(
13289
+ return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-slot" }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children || /* @__PURE__ */ React__default.createElement(Button, { nativeType: "button", size: "small", type: "primary" }, locale.uploader.list), Number(maxCount) > fileList.length && /* @__PURE__ */ React__default.createElement(
13287
13290
  Button,
13288
13291
  {
13289
13292
  nativeType: "button",
@@ -13300,6 +13303,7 @@ const InternalUploader = (props, ref) => {
13300
13303
  onDeleteItem,
13301
13304
  handleItemClick,
13302
13305
  previewUrl,
13306
+ deleteIcon,
13303
13307
  children
13304
13308
  }
13305
13309
  }
@@ -13829,7 +13833,6 @@ const defaultProps$D = {
13829
13833
  };
13830
13834
  const classPrefix$f = `nut-empty`;
13831
13835
  const Empty = (props) => {
13832
- useConfig$1();
13833
13836
  const {
13834
13837
  image,
13835
13838
  imageSize,
@@ -14477,7 +14480,6 @@ const defaultProps$z = {
14477
14480
  ...ComponentDefaults,
14478
14481
  id: "",
14479
14482
  duration: 3e3,
14480
- // 时长
14481
14483
  type: "danger",
14482
14484
  position: "top",
14483
14485
  visible: false,
@@ -16269,7 +16271,6 @@ const defaultProps$k = {
16269
16271
  destroy: false
16270
16272
  };
16271
16273
  const InternalCountDown = (props, ref) => {
16272
- useConfig$1();
16273
16274
  const {
16274
16275
  paused,
16275
16276
  startTime,
@@ -16298,7 +16299,6 @@ const InternalCountDown = (props, ref) => {
16298
16299
  isIninted: false,
16299
16300
  timer: 0,
16300
16301
  restTime: 0,
16301
- // 倒计时剩余时间时间
16302
16302
  counting: !paused && autoStart,
16303
16303
  // 是否处于倒计时中
16304
16304
  handleEndTime: Date.now(),
@@ -18359,6 +18359,7 @@ const InternalBarrage = (props, ref) => {
18359
18359
  const barrageContainer = useRef(null);
18360
18360
  const barrageCWidth = useRef(0);
18361
18361
  const timer = useRef(0);
18362
+ const domTimer = useRef(0);
18362
18363
  const index = useRef(0);
18363
18364
  const times = useRef([]);
18364
18365
  const historyIndex = useRef(-1);
@@ -18380,28 +18381,34 @@ const InternalBarrage = (props, ref) => {
18380
18381
  }
18381
18382
  return 0;
18382
18383
  };
18384
+ const clearDomTimeout = () => {
18385
+ if (domTimer.current) {
18386
+ clearTimeout(domTimer.current);
18387
+ domTimer.current = 0;
18388
+ }
18389
+ };
18383
18390
  useEffect(() => {
18384
18391
  const init = async () => {
18392
+ var _a;
18385
18393
  if (barrageBody.current) {
18386
18394
  barrageCWidth.current = await getNodeWidth(barrageBody.current);
18395
+ (_a = barrageBody.current) == null ? void 0 : _a.style.setProperty(
18396
+ "--move-distance",
18397
+ `-${barrageCWidth.current}px`
18398
+ );
18399
+ index.current = 0;
18400
+ run();
18387
18401
  }
18388
18402
  };
18389
- init();
18390
- setTimeout(() => {
18391
- var _a;
18392
- (_a = barrageBody.current) == null ? void 0 : _a.style.setProperty(
18393
- "--move-distance",
18394
- `-${barrageCWidth.current}px`
18395
- );
18396
- index.current = 0;
18397
- run();
18403
+ domTimer.current = window.setTimeout(() => {
18404
+ init();
18398
18405
  }, 300);
18399
18406
  return () => {
18400
- clearInterval(timer.current);
18407
+ clearDomTimeout();
18401
18408
  };
18402
18409
  }, [list]);
18403
18410
  const run = () => {
18404
- clearInterval(timer.current);
18411
+ clearTimeout(timer.current);
18405
18412
  let intervalCache = interval;
18406
18413
  const _index = (loop ? index.current % list.length : index.current) % rows;
18407
18414
  const result = times.current[_index] - rows * interval;
@@ -18412,7 +18419,30 @@ const InternalBarrage = (props, ref) => {
18412
18419
  play();
18413
18420
  }, intervalCache);
18414
18421
  };
18415
- const play = async () => {
18422
+ const setStyle = async (el, currentIndex) => {
18423
+ try {
18424
+ if (el) {
18425
+ const refe = await getRectByTaro(el);
18426
+ const width = refe.width;
18427
+ const height = refe.height;
18428
+ el.classList.add("move");
18429
+ const elScrollDuration = Math.round(
18430
+ width / barrageCWidth.current * duration
18431
+ );
18432
+ times.current[currentIndex] = elScrollDuration;
18433
+ el.style.animationDuration = `${duration + elScrollDuration}ms`;
18434
+ el.style.top = `${currentIndex * (height + gapY) + 20}px`;
18435
+ el.style.width = `${width}px`;
18436
+ }
18437
+ } catch (error) {
18438
+ console.log("异常自动流转到下一个", error);
18439
+ barrageContainer.current.removeChild(el);
18440
+ }
18441
+ el.addEventListener("animationend", () => {
18442
+ barrageContainer.current.removeChild(el);
18443
+ });
18444
+ };
18445
+ const play = () => {
18416
18446
  if (!loop && index.current >= list.length) {
18417
18447
  return;
18418
18448
  }
@@ -18424,25 +18454,9 @@ const InternalBarrage = (props, ref) => {
18424
18454
  }
18425
18455
  historyIndex.current = currentIndex;
18426
18456
  el.innerHTML = list[_index];
18427
- el.classList.add("barrage-item");
18428
18457
  barrageContainer.current.appendChild(el);
18429
- try {
18430
- const width = await getNodeWidth(el);
18431
- const height = await getNodeWidth(el, "height");
18432
- el.classList.add("move");
18433
- const elScrollDuration = width / barrageCWidth.current * duration;
18434
- times.current[currentIndex] = Math.ceil(elScrollDuration);
18435
- el.style.animationDuration = `${(duration + elScrollDuration).toFixed(
18436
- 2
18437
- )}ms`;
18438
- el.style.top = `${currentIndex * (height + gapY) + 20}px`;
18439
- el.style.width = `${width}px`;
18440
- } catch (error) {
18441
- console.log("异常自动流转到下一个");
18442
- }
18443
- el.addEventListener("animationend", () => {
18444
- barrageContainer.current.removeChild(el);
18445
- });
18458
+ el.classList.add("barrage-item");
18459
+ requestAnimationFrame(() => setStyle(el, currentIndex));
18446
18460
  index.current++;
18447
18461
  run();
18448
18462
  };
@@ -18907,19 +18921,27 @@ const defaultProps = {
18907
18921
  maxZoom: 3,
18908
18922
  space: 10,
18909
18923
  toolbar: [
18910
- /* @__PURE__ */ React__default.createElement(Button, { type: "danger", key: "cancel" }, "取消"),
18911
- /* @__PURE__ */ React__default.createElement(Button, { key: "reset" }, "重置"),
18912
- /* @__PURE__ */ React__default.createElement(Button, { key: "rotate" }, "旋转"),
18913
- /* @__PURE__ */ React__default.createElement(Button, { type: "success", key: "confirm" }, "确认")
18924
+ /* @__PURE__ */ React__default.createElement(Button, { type: "danger", key: "cancel" }, "Cancel"),
18925
+ /* @__PURE__ */ React__default.createElement(Button, { key: "reset" }, "Reset"),
18926
+ /* @__PURE__ */ React__default.createElement(Button, { key: "rotate" }, "Rotate"),
18927
+ /* @__PURE__ */ React__default.createElement(Button, { type: "success", key: "confirm" }, "Confirm")
18914
18928
  ],
18915
18929
  toolbarPosition: "bottom",
18916
- editText: "编辑",
18930
+ editText: "Edit",
18917
18931
  sizeType: ["original", "compressed"],
18918
18932
  sourceType: ["album", "camera"],
18919
18933
  shape: "square"
18920
18934
  };
18921
18935
  const classPrefix = `nut-avatar-cropper`;
18922
18936
  const AvatarCropper = (props) => {
18937
+ const { locale } = useConfig$1();
18938
+ defaultProps.toolbar = [
18939
+ /* @__PURE__ */ React__default.createElement(Button, { type: "danger", key: "cancel" }, locale.cancel),
18940
+ /* @__PURE__ */ React__default.createElement(Button, { key: "reset" }, locale.reset),
18941
+ /* @__PURE__ */ React__default.createElement(Button, { key: "rotate" }, locale.avatarCropper.rotate),
18942
+ /* @__PURE__ */ React__default.createElement(Button, { type: "success", key: "confirm" }, locale.confirm)
18943
+ ];
18944
+ defaultProps.editText = locale.edit;
18923
18945
  const {
18924
18946
  children,
18925
18947
  toolbar,