@nutui/nutui-react 2.6.10 → 2.6.12

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 CHANGED
@@ -1,3 +1,24 @@
1
+ # v2.6.12
2
+ `2024-07-05`
3
+
4
+
5
+ * :sparkles: feat: add pagination whether to show pages in imagepreview (#2411) @xiaoyatong
6
+ * :bug: fix(uploader): pre-upload pmage preview bug (#2416) @Alex-huxiyang
7
+ * :bug: fix(taro-form-demo): 点击演示demo表单内的重置会触发提交表单事件bug修复 (#2415) @Skedush
8
+ * :bug: fix(form): validator 中的 value 类型更新为 any (#2406) @oasis-cloud
9
+ * :bug: fix(uploader): 京东小程序中可上传时可选择图片和视频 (#2410) @xueshufive
10
+ * :bug: fix(avatarcropper): 报错 (#2364) @Alex-huxiyang
11
+ * :bug: fix(form): setFields未触发校验 (#2400) @Alex-huxiyang
12
+
13
+
14
+ # v2.6.11
15
+ `2024-06-28`
16
+
17
+
18
+ * :sparkles: feat(table): table新增自定义行 (#2390) @zanyuki-jd
19
+ * :bug: fix(fixednav): 可拖拽元素样式缺失 (#2391) @oasis-cloud
20
+
21
+
1
22
  # v2.6.10
2
23
  `2024-06-21`
3
24
 
@@ -57,12 +78,12 @@
57
78
  `2024-05-17`
58
79
 
59
80
 
60
- *🏡 chore(image): 官网taro的demo显示与h5不一致 (#2244) @Alex.huxiyang
81
+ *🏡 chore(image): 官网taro的demo显示与h5不一致 (#2244) @Alex-huxiyang
61
82
  * :bug: fix(circleprogress): update demo (#2260) @Eiinu
62
83
  * :bug: fix: 移除 defaultProps(2) (#2254) @Eiinu
63
- * :bug: fix: 关于checkbox&tabs的doc与demo修改 (#2253) @Alex.huxiyang
64
- * :bug: fix(table): 修复部分由于场景下width未生效导致的一些问题 (#2241) @Alex.huxiyang
65
- * :bug: fix(menu): 选项文字很多时右侧箭头展示异常 (#2252) @Alex.huxiyang
84
+ * :bug: fix: 关于checkbox&tabs的doc与demo修改 (#2253) @Alex-huxiyang
85
+ * :bug: fix(table): 修复部分由于场景下width未生效导致的一些问题 (#2241) @Alex-huxiyang
86
+ * :bug: fix(menu): 选项文字很多时右侧箭头展示异常 (#2252) @Alex-huxiyang
66
87
  * :bug: fix(input): 修复特殊场景下自动清除失效问题 (#2240) @Eiinu
67
88
 
68
89
 
@@ -1 +1 @@
1
- .nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));z-index:var(--nutui-overlay-zIndex, 1000)}.nut-overlay .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-7, #1a1a1a))}[dir=rtl] .nut-overlay,.nut-rtl .nut-overlay{left:auto;right:0}.nut-overflow-hidden,.nut-overflow-hidden .taro_page{overflow:hidden!important}@keyframes nut-fade-in{0%{opacity:0}1%{opacity:0}to{opacity:1}}@keyframes nut-fade-out{0%{opacity:1}1%{opacity:1}to{opacity:0}}.nut-overlay-slide-enter-active,.nut-overlay-slide-appear-active{animation-fill-mode:both;animation-name:nut-fade-in;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-overlay-slide-exit-active{animation-fill-mode:both;animation-name:nut-fade-out;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-fixednav{position:fixed;z-index:var(--nutui-fixednav-index, 900);display:inline-block;height:50px;right:0}.nut-fixednav.active .nut-fixednav-btn .nut-icon{transform:rotate(180deg)}.nut-fixednav.active .nut-fixednav-list{transform:translate(0)!important}.nut-fixednav.active.left .nut-icon{transform:rotate(0)!important}.nut-fixednav-btn{box-sizing:border-box;position:absolute;right:0;z-index:var(--nutui-fixednav-index, 900);width:70px;height:100%;background:var(--nutui-fixednav-button-background, var(--nutui-color-primary, #fa2c19));border-radius:45px 0 0 45px;box-shadow:0 2px 4px #0003;display:flex;align-items:center;justify-content:center}.nut-fixednav-btn .text{width:24px;line-height:13px;font-size:var(--nutui-font-size-2, 12px);color:#fff;flex-shrink:0}.nut-fixednav-btn .nut-icon{margin-right:5px;transform:rotate(0);transition:all .3s}.nut-fixednav-list{position:absolute;right:0;transform:translate(100%);transition:all .5s;z-index:var(--nutui-fixednav-index, 900);flex-shrink:0;height:100%;background:var(--nutui-fixednav-background-color, #ffffff);display:flex;justify-content:space-between;border-radius:25px 0 0 25px;box-shadow:2px 2px 8px #0003;padding-left:20px;padding-right:80px}.nut-fixednav-list-item{position:relative;flex:1;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:50px;flex-shrink:0;color:var(--nutui-fixednav-color, #1a1a1a)}.nut-fixednav-list-item img{width:20px;height:20px;margin-bottom:2px}.nut-fixednav-list-item .nut-fixednav-list-text{font-size:10px}.nut-fixednav-list-item .b{position:absolute;right:0;top:1px;height:14px;line-height:14px;font-size:10px;padding:0 3px;color:#fff;background:var(--nutui-color-primary, #fa2c19);border-radius:7px;text-align:center;min-width:12px}.nut-fixednav.left{right:auto;left:0}.nut-fixednav.left .nut-fixednav-btn{flex-direction:row-reverse;right:auto;left:0;border-radius:0 45px 45px 0}.nut-fixednav.left .nut-fixednav-btn .nut-icon{transform:rotate(180deg);margin-right:0;margin-left:5px}.nut-fixednav.left .nut-fixednav-list{transform:translate(-100%);right:auto;border-radius:0 25px 25px 0;padding-left:80px;padding-right:20px;margin:0}[dir=rtl] .nut-fixednav,.nut-rtl .nut-fixednav{right:auto;left:0}[dir=rtl] .nut-fixednav.active .nut-icon,.nut-rtl .nut-fixednav.active .nut-icon{transform:rotate(-180deg)}[dir=rtl] .nut-fixednav-btn,.nut-rtl .nut-fixednav-btn{right:auto;left:0;border-radius:0 45px 45px 0}[dir=rtl] .nut-fixednav-btn .nut-icon,.nut-rtl .nut-fixednav-btn .nut-icon{margin-right:0;margin-left:5px;transform:rotate(180deg)}[dir=rtl] .nut-fixednav-list,.nut-rtl .nut-fixednav-list{right:auto;left:0;transform:translate(-100%);border-radius:0 25px 25px 0;box-shadow:-2px 2px 8px #0003;padding-right:20px;padding-left:80px}[dir=rtl] .nut-fixednav-list-item .b,.nut-rtl .nut-fixednav-list-item .b{right:auto;left:0}[dir=rtl] .nut-fixednav.left,.nut-rtl .nut-fixednav.left{left:auto;right:0}[dir=rtl] .nut-fixednav.left .nut-fixednav-btn,.nut-rtl .nut-fixednav.left .nut-fixednav-btn{left:auto;right:0;border-radius:45px 0 0 45px}[dir=rtl] .nut-fixednav.left .nut-fixednav-btn .nut-icon,.nut-rtl .nut-fixednav.left .nut-fixednav-btn .nut-icon{transform:rotate(0);margin-right:5px;margin-left:0}[dir=rtl] .nut-fixednav.left .nut-fixednav-list,.nut-rtl .nut-fixednav.left .nut-fixednav-list{transform:translate(100%);right:auto;left:auto;border-radius:25px 0 0 25px;padding-right:80px;padding-left:20px}.nut-drag .nut-fixednav{position:inherit}
1
+ .nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));z-index:var(--nutui-overlay-zIndex, 1000)}.nut-overlay .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-7, #1a1a1a))}[dir=rtl] .nut-overlay,.nut-rtl .nut-overlay{left:auto;right:0}.nut-overflow-hidden,.nut-overflow-hidden .taro_page{overflow:hidden!important}@keyframes nut-fade-in{0%{opacity:0}1%{opacity:0}to{opacity:1}}@keyframes nut-fade-out{0%{opacity:1}1%{opacity:1}to{opacity:0}}.nut-overlay-slide-enter-active,.nut-overlay-slide-appear-active{animation-fill-mode:both;animation-name:nut-fade-in;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-overlay-slide-exit-active{animation-fill-mode:both;animation-name:nut-fade-out;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-fixednav{position:fixed;z-index:var(--nutui-fixednav-index, 900);display:inline-block;height:50px;right:0}.nut-fixednav.active .nut-fixednav-btn .nut-icon{transform:rotate(180deg)}.nut-fixednav.active .nut-fixednav-list{transform:translate(0)!important}.nut-fixednav.active.left .nut-icon{transform:rotate(0)!important}.nut-fixednav-btn{box-sizing:border-box;position:absolute;right:0;z-index:var(--nutui-fixednav-index, 900);width:70px;height:100%;background:var(--nutui-fixednav-button-background, var(--nutui-color-primary, #fa2c19));border-radius:45px 0 0 45px;box-shadow:0 2px 4px #0003;display:flex;align-items:center;justify-content:center}.nut-fixednav-btn .text{width:24px;line-height:13px;font-size:var(--nutui-font-size-2, 12px);color:#fff;flex-shrink:0}.nut-fixednav-btn .nut-icon{margin-right:5px;transform:rotate(0);transition:all .3s}.nut-fixednav-list{position:absolute;right:0;transform:translate(100%);transition:all .5s;z-index:var(--nutui-fixednav-index, 900);flex-shrink:0;height:100%;background:var(--nutui-fixednav-background-color, #ffffff);display:flex;justify-content:space-between;border-radius:25px 0 0 25px;box-shadow:2px 2px 8px #0003;padding-left:20px;padding-right:80px}.nut-fixednav-list-item{position:relative;flex:1;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:50px;flex-shrink:0;color:var(--nutui-fixednav-color, #1a1a1a)}.nut-fixednav-list-item img{width:20px;height:20px;margin-bottom:2px}.nut-fixednav-list-item .nut-fixednav-list-text{font-size:10px}.nut-fixednav-list-item .b{position:absolute;right:0;top:1px;height:14px;line-height:14px;font-size:10px;padding:0 3px;color:#fff;background:var(--nutui-color-primary, #fa2c19);border-radius:7px;text-align:center;min-width:12px}.nut-fixednav.left{right:auto;left:0}.nut-fixednav.left .nut-fixednav-btn{flex-direction:row-reverse;right:auto;left:0;border-radius:0 45px 45px 0}.nut-fixednav.left .nut-fixednav-btn .nut-icon{transform:rotate(180deg);margin-right:0;margin-left:5px}.nut-fixednav.left .nut-fixednav-list{transform:translate(-100%);right:auto;border-radius:0 25px 25px 0;padding-left:80px;padding-right:20px;margin:0}[dir=rtl] .nut-fixednav,.nut-rtl .nut-fixednav{right:auto;left:0}[dir=rtl] .nut-fixednav.active .nut-icon,.nut-rtl .nut-fixednav.active .nut-icon{transform:rotate(-180deg)}[dir=rtl] .nut-fixednav-btn,.nut-rtl .nut-fixednav-btn{right:auto;left:0;border-radius:0 45px 45px 0}[dir=rtl] .nut-fixednav-btn .nut-icon,.nut-rtl .nut-fixednav-btn .nut-icon{margin-right:0;margin-left:5px;transform:rotate(180deg)}[dir=rtl] .nut-fixednav-list,.nut-rtl .nut-fixednav-list{right:auto;left:0;transform:translate(-100%);border-radius:0 25px 25px 0;box-shadow:-2px 2px 8px #0003;padding-right:20px;padding-left:80px}[dir=rtl] .nut-fixednav-list-item .b,.nut-rtl .nut-fixednav-list-item .b{right:auto;left:0}[dir=rtl] .nut-fixednav.left,.nut-rtl .nut-fixednav.left{left:auto;right:0}[dir=rtl] .nut-fixednav.left .nut-fixednav-btn,.nut-rtl .nut-fixednav.left .nut-fixednav-btn{left:auto;right:0;border-radius:45px 0 0 45px}[dir=rtl] .nut-fixednav.left .nut-fixednav-btn .nut-icon,.nut-rtl .nut-fixednav.left .nut-fixednav-btn .nut-icon{transform:rotate(0);margin-right:5px;margin-left:0}[dir=rtl] .nut-fixednav.left .nut-fixednav-list,.nut-rtl .nut-fixednav.left .nut-fixednav-list{transform:translate(100%);right:auto;left:auto;border-radius:25px 0 0 25px;padding-right:80px;padding-left:20px}.nut-drag .nut-fixednav{position:relative}
@@ -8,11 +8,11 @@ import Swiper__default from "./Swiper.js";
8
8
  import SwiperItem__default from "./SwiperItem.js";
9
9
  import { C as ComponentDefaults } from "./typings.js";
10
10
  import { u as usePropsValue } from "./use-props-value.js";
11
- const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { images: [], videos: [], visible: false, autoPlay: 3e3, defaultValue: 0, closeOnContentClick: false, indicator: false, indicatorColor: "#fff", closeIcon: false, closeIconPosition: "top-right", onChange: (value) => {
11
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { images: [], videos: [], visible: false, autoPlay: 3e3, defaultValue: 0, closeOnContentClick: false, pagination: true, indicator: false, indicatorColor: "#fff", closeIcon: false, closeIconPosition: "top-right", onChange: (value) => {
12
12
  }, onClose: () => {
13
13
  } });
14
14
  const ImagePreview = (props) => {
15
- const { value, className, style, images, videos, visible, defaultValue, indicatorColor, indicator, autoPlay, closeOnContentClick, closeIcon, closeIconPosition, onClose, onChange } = Object.assign(Object.assign({}, defaultProps), props);
15
+ const { value, className, style, images, videos, visible, defaultValue, indicatorColor, pagination, indicator, autoPlay, closeOnContentClick, closeIcon, closeIconPosition, onClose, onChange } = Object.assign(Object.assign({}, defaultProps), props);
16
16
  const classPrefix = "nut-imagepreview";
17
17
  const ref = useRef(null);
18
18
  const [innerNo, setInnerNo] = usePropsValue({
@@ -156,13 +156,13 @@ const ImagePreview = (props) => {
156
156
  React__default.createElement(Image__default, { src: item.src, draggable: false })
157
157
  );
158
158
  }) : [])) : null),
159
- React__default.createElement(
159
+ pagination ? React__default.createElement(
160
160
  "div",
161
161
  { className: `${classPrefix}-index` },
162
162
  active,
163
163
  "/",
164
164
  (images ? images.length : 0) + (videos ? videos.length : 0)
165
- ),
165
+ ) : null,
166
166
  closeIcon !== false ? React__default.createElement("div", { className: `${classPrefix}-close ${closeIconPosition}`, onClick: onCloseInner }, closeIcon === true ? React__default.createElement(Close, null) : closeIcon) : null
167
167
  );
168
168
  };
package/dist/esm/Table.js CHANGED
@@ -130,6 +130,10 @@ const Table = (props) => {
130
130
  });
131
131
  };
132
132
  const renderBodyTds = (item, rowIndex) => {
133
+ const { rowRender } = item;
134
+ if (rowRender && typeof rowRender === "function") {
135
+ return rowRender(item, rowIndex);
136
+ }
133
137
  return sortDataItem().map(([value, render]) => {
134
138
  return React__default.createElement("div", { className: classNames(`${bodyClassPrefix}-td`, cellClasses(getColumnItem(value)), getStickyClass(value)), key: value, style: getStickyStyle(value) }, typeof item[value] === "function" || typeof render === "function" ? React__default.createElement("div", null, render ? render(item, rowIndex) : item[value](item)) : item[value]);
135
139
  });
@@ -188,8 +188,7 @@ const InternalUploader = (props, ref) => {
188
188
  setUploadQueue(uploadQueue);
189
189
  } else {
190
190
  setUploadQueue([]);
191
- fileList.splice(0, fileList.length);
192
- setFileList([...fileList]);
191
+ setFileList([]);
193
192
  }
194
193
  };
195
194
  const clearInputValue = (el) => {
@@ -296,13 +295,11 @@ const InternalUploader = (props, ref) => {
296
295
  const reader = new FileReader();
297
296
  reader.onload = (event) => {
298
297
  fileItem.url = event.target.result;
299
- fileList.push(fileItem);
300
- setFileList([...fileList]);
298
+ setFileList([...fileList, fileItem]);
301
299
  };
302
300
  reader.readAsDataURL(file);
303
301
  } else {
304
- fileList.push(fileItem);
305
- setFileList([...fileList]);
302
+ setFileList([...fileList, fileItem]);
306
303
  }
307
304
  });
308
305
  };
@@ -61,6 +61,7 @@ class FormStore {
61
61
  item.entity.onStoreChange("update");
62
62
  }
63
63
  });
64
+ this.validateFields();
64
65
  };
65
66
  this.setCallback = (callback) => {
66
67
  this.callbacks = Object.assign(Object.assign({}, this.callbacks), callback);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.10 Fri Jun 21 2024 18:22:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.12 Fri Jul 05 2024 14:48:45 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.10 Fri Jun 21 2024 18:22:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.12 Fri Jul 05 2024 14:48:45 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.10 Fri Jun 21 2024 18:22:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.12 Fri Jul 05 2024 14:48:45 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.10 Fri Jun 21 2024 18:22:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.12 Fri Jul 05 2024 14:48:45 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.10 Fri Jun 21 2024 18:22:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.12 Fri Jul 05 2024 14:48:45 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.10 Fri Jun 21 2024 18:22:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.12 Fri Jul 05 2024 14:48:45 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.10 Fri Jun 21 2024 18:22:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.12 Fri Jul 05 2024 14:48:45 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.6.10 Fri Jun 21 2024 18:21:45 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.6.12 Fri Jul 05 2024 14:48:13 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -13703,6 +13703,7 @@ class FormStore {
13703
13703
  item.entity.onStoreChange("update");
13704
13704
  }
13705
13705
  });
13706
+ this.validateFields();
13706
13707
  };
13707
13708
  this.setCallback = (callback) => {
13708
13709
  this.callbacks = {
@@ -16695,8 +16696,7 @@ const InternalUploader = (props, ref) => {
16695
16696
  setUploadQueue(uploadQueue);
16696
16697
  } else {
16697
16698
  setUploadQueue([]);
16698
- fileList.splice(0, fileList.length);
16699
- setFileList([...fileList]);
16699
+ setFileList([]);
16700
16700
  }
16701
16701
  };
16702
16702
  const clearInputValue = (el) => {
@@ -16809,13 +16809,11 @@ const InternalUploader = (props, ref) => {
16809
16809
  const reader = new FileReader();
16810
16810
  reader.onload = (event) => {
16811
16811
  fileItem.url = event.target.result;
16812
- fileList.push(fileItem);
16813
- setFileList([...fileList]);
16812
+ setFileList([...fileList, fileItem]);
16814
16813
  };
16815
16814
  reader.readAsDataURL(file);
16816
16815
  } else {
16817
- fileList.push(fileItem);
16818
- setFileList([...fileList]);
16816
+ setFileList([...fileList, fileItem]);
16819
16817
  }
16820
16818
  });
16821
16819
  };
@@ -20951,6 +20949,7 @@ const defaultProps$f = {
20951
20949
  autoPlay: 3e3,
20952
20950
  defaultValue: 0,
20953
20951
  closeOnContentClick: false,
20952
+ pagination: true,
20954
20953
  indicator: false,
20955
20954
  indicatorColor: "#fff",
20956
20955
  closeIcon: false,
@@ -20970,6 +20969,7 @@ const ImagePreview = (props) => {
20970
20969
  visible,
20971
20970
  defaultValue,
20972
20971
  indicatorColor,
20972
+ pagination,
20973
20973
  indicator,
20974
20974
  autoPlay,
20975
20975
  closeOnContentClick,
@@ -21158,7 +21158,7 @@ const ImagePreview = (props) => {
21158
21158
  )
21159
21159
  ) : null
21160
21160
  ),
21161
- /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)),
21161
+ pagination ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)) : null,
21162
21162
  closeIcon !== false ? /* @__PURE__ */ React__default.createElement(
21163
21163
  "div",
21164
21164
  {
@@ -21620,6 +21620,10 @@ const Table = (props) => {
21620
21620
  });
21621
21621
  };
21622
21622
  const renderBodyTds = (item, rowIndex) => {
21623
+ const { rowRender } = item;
21624
+ if (rowRender && typeof rowRender === "function") {
21625
+ return rowRender(item, rowIndex);
21626
+ }
21623
21627
  return sortDataItem().map(([value, render2]) => {
21624
21628
  return /* @__PURE__ */ React__default.createElement(
21625
21629
  "div",
@@ -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.10 Fri Jun 21 2024 18:21:45 GMT+0800 (China Standard Time)
5
+ * @nutui/nutui-react v2.6.12 Fri Jul 05 2024 14:48:13 GMT+0800 (China Standard Time)
6
6
  * (c) 2023 @jdf2e.
7
7
  * Released under the MIT License.
8
8
  */
@@ -13721,6 +13721,7 @@
13721
13721
  item.entity.onStoreChange("update");
13722
13722
  }
13723
13723
  });
13724
+ this.validateFields();
13724
13725
  };
13725
13726
  this.setCallback = (callback) => {
13726
13727
  this.callbacks = {
@@ -16713,8 +16714,7 @@
16713
16714
  setUploadQueue(uploadQueue);
16714
16715
  } else {
16715
16716
  setUploadQueue([]);
16716
- fileList.splice(0, fileList.length);
16717
- setFileList([...fileList]);
16717
+ setFileList([]);
16718
16718
  }
16719
16719
  };
16720
16720
  const clearInputValue = (el) => {
@@ -16827,13 +16827,11 @@
16827
16827
  const reader = new FileReader();
16828
16828
  reader.onload = (event) => {
16829
16829
  fileItem.url = event.target.result;
16830
- fileList.push(fileItem);
16831
- setFileList([...fileList]);
16830
+ setFileList([...fileList, fileItem]);
16832
16831
  };
16833
16832
  reader.readAsDataURL(file);
16834
16833
  } else {
16835
- fileList.push(fileItem);
16836
- setFileList([...fileList]);
16834
+ setFileList([...fileList, fileItem]);
16837
16835
  }
16838
16836
  });
16839
16837
  };
@@ -20969,6 +20967,7 @@
20969
20967
  autoPlay: 3e3,
20970
20968
  defaultValue: 0,
20971
20969
  closeOnContentClick: false,
20970
+ pagination: true,
20972
20971
  indicator: false,
20973
20972
  indicatorColor: "#fff",
20974
20973
  closeIcon: false,
@@ -20988,6 +20987,7 @@
20988
20987
  visible,
20989
20988
  defaultValue,
20990
20989
  indicatorColor,
20990
+ pagination,
20991
20991
  indicator,
20992
20992
  autoPlay,
20993
20993
  closeOnContentClick,
@@ -21176,7 +21176,7 @@
21176
21176
  )
21177
21177
  ) : null
21178
21178
  ),
21179
- /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)),
21179
+ pagination ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)) : null,
21180
21180
  closeIcon !== false ? /* @__PURE__ */ React.createElement(
21181
21181
  "div",
21182
21182
  {
@@ -21638,6 +21638,10 @@
21638
21638
  });
21639
21639
  };
21640
21640
  const renderBodyTds = (item, rowIndex) => {
21641
+ const { rowRender } = item;
21642
+ if (rowRender && typeof rowRender === "function") {
21643
+ return rowRender(item, rowIndex);
21644
+ }
21641
21645
  return sortDataItem().map(([value, render2]) => {
21642
21646
  return /* @__PURE__ */ React.createElement(
21643
21647
  "div",
@@ -7,7 +7,7 @@
7
7
  right: 0;
8
8
 
9
9
  &.active {
10
- .nut-fixednav-btn{
10
+ .nut-fixednav-btn {
11
11
  .nut-icon {
12
12
  transform: rotate(180deg);
13
13
  }
@@ -218,5 +218,5 @@
218
218
  }
219
219
 
220
220
  .nut-drag .nut-fixednav {
221
- position: inherit;
221
+ position: relative;
222
222
  }