@nutui/nutui-react-taro 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.
Files changed (32) hide show
  1. package/CHANGELOG.md +25 -4
  2. package/dist/esm/AvatarCropper.js +1 -1
  3. package/dist/esm/FixedNav/style/style.css +1 -1
  4. package/dist/esm/Form.js +1 -1
  5. package/dist/esm/FormItem.js +1 -1
  6. package/dist/esm/ImagePreview.js +1 -1
  7. package/dist/esm/Table.js +1 -1
  8. package/dist/esm/Uploader.js +1 -1
  9. package/dist/esm/{avatarcropper.taro-R3OfWq1H.js → avatarcropper.taro-CAVcFvKC.js} +2 -0
  10. package/dist/esm/{formitem.taro-tLWeQ0P5.js → formitem.taro-BsnxUebv.js} +1 -0
  11. package/dist/esm/{imagepreview.taro-B7eJN5Hn.js → imagepreview.taro-BLXFYocO.js} +4 -4
  12. package/dist/esm/nutui-react.es.js +5 -5
  13. package/dist/esm/{table.taro-C2XPk7AJ.js → table.taro-D2M3D2Vj.js} +4 -0
  14. package/dist/esm/{uploader.taro-E6R-Ow7M.js → uploader.taro-CiamsRGo.js} +3 -5
  15. package/dist/locales/base.js +1 -1
  16. package/dist/locales/en-US.js +1 -1
  17. package/dist/locales/id-ID.js +1 -1
  18. package/dist/locales/tr-TR.js +1 -1
  19. package/dist/locales/zh-CN.js +1 -1
  20. package/dist/locales/zh-TW.js +1 -1
  21. package/dist/locales/zh-UG.js +1 -1
  22. package/dist/nutui.react.es.js +13 -7
  23. package/dist/nutui.react.umd.js +13 -7
  24. package/dist/packages/fixednav/fixednav.scss +2 -2
  25. package/dist/style.css +1 -1
  26. package/dist/types/packages/form/usewatch.d.ts +2 -0
  27. package/dist/types/packages/formitem/types.d.ts +1 -1
  28. package/dist/types/packages/imagepreview/imagepreview.d.ts +1 -0
  29. package/dist/types/packages/imagepreview/imagepreview.taro.d.ts +5 -0
  30. package/dist/types/packages/table/index.d.ts +1 -0
  31. package/dist/types/packages/table/index.taro.d.ts +1 -0
  32. package/package.json +1 -1
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,4 +1,4 @@
1
- import { A as AvatarCropper } from "./avatarcropper.taro-R3OfWq1H.js";
1
+ import { A as AvatarCropper } from "./avatarcropper.taro-CAVcFvKC.js";
2
2
  export {
3
3
  AvatarCropper as default
4
4
  };
@@ -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}
package/dist/esm/Form.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React__default from "react";
2
2
  import classNames from "classnames";
3
- import { u as useForm, S as SECRET, C as Context, F as FormItem } from "./formitem.taro-tLWeQ0P5.js";
3
+ import { u as useForm, S as SECRET, C as Context, F as FormItem } from "./formitem.taro-BsnxUebv.js";
4
4
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
5
  import { C as Cell } from "./cell.taro-CVFlcls2.js";
6
6
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { labelPosition: "right", starPosition: "left", divider: false, onFinish: (values) => {
@@ -1,4 +1,4 @@
1
- import { F as FormItem } from "./formitem.taro-tLWeQ0P5.js";
1
+ import { F as FormItem } from "./formitem.taro-BsnxUebv.js";
2
2
  export {
3
3
  FormItem as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { I as ImagePreview } from "./imagepreview.taro-B7eJN5Hn.js";
1
+ import { I as ImagePreview } from "./imagepreview.taro-BLXFYocO.js";
2
2
  export {
3
3
  ImagePreview as default
4
4
  };
package/dist/esm/Table.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as Table } from "./table.taro-C2XPk7AJ.js";
1
+ import { T as Table } from "./table.taro-D2M3D2Vj.js";
2
2
  export {
3
3
  Table as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { U as Uploader } from "./uploader.taro-E6R-Ow7M.js";
1
+ import { U as Uploader } from "./uploader.taro-CiamsRGo.js";
2
2
  export {
3
3
  Uploader as default
4
4
  };
@@ -137,6 +137,8 @@ const AvatarCropper = (props) => {
137
137
  if ((canvasDom === null || canvasDom === void 0 ? void 0 : canvasDom.tagName) !== "CANVAS") {
138
138
  canvas = canvasDom === null || canvasDom === void 0 ? void 0 : canvasDom.getElementsByTagName("canvas")[0];
139
139
  }
140
+ if (!canvas)
141
+ return;
140
142
  canvas.width = state.displayWidth;
141
143
  canvas.height = state.displayHeight;
142
144
  const ctx = canvas.getContext("2d");
@@ -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);
@@ -9,11 +9,11 @@ import InnerSwiper from "./Swiper.js";
9
9
  import { S as SwiperItem } from "./swiperitem.taro-DeiNSrJV.js";
10
10
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
11
11
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
12
- const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { images: [], videos: [], visible: false, autoPlay: false, defaultValue: 1, closeOnContentClick: false, indicator: false, indicatorColor: "#fff", closeIcon: false, closeIconPosition: "top-right", showMenuByLongpress: false, onChange: (value) => {
12
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { images: [], videos: [], visible: false, autoPlay: false, defaultValue: 1, closeOnContentClick: false, pagination: true, indicator: false, indicatorColor: "#fff", closeIcon: false, closeIconPosition: "top-right", showMenuByLongpress: false, onChange: (value) => {
13
13
  }, onClose: () => {
14
14
  } });
15
15
  const ImagePreview = (props) => {
16
- const { value, className, style, images, videos, visible, defaultValue, indicatorColor, indicator, autoPlay, closeOnContentClick, closeIcon, closeIconPosition, showMenuByLongpress, onClose, onChange } = Object.assign(Object.assign({}, defaultProps), props);
16
+ const { value, className, style, images, videos, visible, defaultValue, indicatorColor, pagination, indicator, autoPlay, closeOnContentClick, closeIcon, closeIconPosition, showMenuByLongpress, onClose, onChange } = Object.assign(Object.assign({}, defaultProps), props);
17
17
  const classPrefix = "nut-imagepreview";
18
18
  const ref = useRef(null);
19
19
  const [innerNo, setInnerNo] = usePropsValue({
@@ -159,13 +159,13 @@ const ImagePreview = (props) => {
159
159
  return React__default.createElement(SwiperItem, { key: index, className: "nut-imagepreview-swiper-item" }, Taro.getEnv() === "WEB" ? React__default.createElement(Image, { src: item.src, mode: "aspectFit" }) : React__default.createElement(Image, { src: item.src, mode: "aspectFit", showMenuByLongpress: !!showMenuByLongpress }));
160
160
  }) : []))
161
161
  ),
162
- React__default.createElement(
162
+ pagination ? React__default.createElement(
163
163
  "div",
164
164
  { className: `${classPrefix}-index` },
165
165
  active,
166
166
  "/",
167
167
  (images ? images.length : 0) + (videos ? videos.length : 0)
168
- ),
168
+ ) : null,
169
169
  closeIcon !== false ? React__default.createElement("div", { className: `${classPrefix}-close ${closeIconPosition}`, onClick: onCloseInner }, closeIcon === true ? React__default.createElement(Close, null) : closeIcon) : null
170
170
  );
171
171
  };
@@ -32,7 +32,7 @@ import { C as C8 } from "./cascader.taro-y9_hSUSJ.js";
32
32
  import { C as C9, a as a2 } from "./checkbox.taro-Dc054oRo.js";
33
33
  import { D as D2 } from "./datepicker.taro-DTyJrlhD.js";
34
34
  import { default as default2 } from "./Form.js";
35
- import { F as F2 } from "./formitem.taro-tLWeQ0P5.js";
35
+ import { F as F2 } from "./formitem.taro-BsnxUebv.js";
36
36
  import { I as I2 } from "./input.taro-B_B1lJq2.js";
37
37
  import { I as I3 } from "./inputnumber.taro-WN5Drnyz.js";
38
38
  import { M } from "./menu.taro-JDg_-XpO.js";
@@ -47,7 +47,7 @@ import { S as S8 } from "./shortpassword.taro-DpdtRsQ-.js";
47
47
  import { S as S9 } from "./signature.taro-zgwaJkIE.js";
48
48
  import { S as S10 } from "./switch.taro-CdBmDo18.js";
49
49
  import { T as T5 } from "./textarea.taro-DuceTjAx.js";
50
- import { U } from "./uploader.taro-E6R-Ow7M.js";
50
+ import { U } from "./uploader.taro-CiamsRGo.js";
51
51
  import { A as A2 } from "./actionsheet.taro-CJjNsNrH.js";
52
52
  import { B as B3 } from "./badge.taro-BGaxpEYi.js";
53
53
  import { B as B4 } from "./dialog.taro-BW9D2Gsr.js";
@@ -73,7 +73,7 @@ import { C as C11 } from "./collapse.taro-wqL6MWZr.js";
73
73
  import { C as C12 } from "./collapseitem.taro-DjUx5Nx8.js";
74
74
  import { C as C13 } from "./countdown.taro-mKXeisK0.js";
75
75
  import { E as E3 } from "./ellipsis.taro-cMTr1Wcw.js";
76
- import { I as I5 } from "./imagepreview.taro-B7eJN5Hn.js";
76
+ import { I as I5 } from "./imagepreview.taro-BLXFYocO.js";
77
77
  import { I as I6 } from "./indicator.taro-k8bxJf86.js";
78
78
  import { P as P5 } from "./pagination.taro-DdLO3OTc.js";
79
79
  import { P as P6 } from "./price.taro-DUW-OR83.js";
@@ -82,7 +82,7 @@ import { S as S13 } from "./step.taro-Cc1dc5Qb.js";
82
82
  import { S as S14 } from "./steps.taro-CUEhZGfy.js";
83
83
  import { default as default4 } from "./Swiper.js";
84
84
  import { S as S15 } from "./swiperitem.taro-DeiNSrJV.js";
85
- import { T as T7 } from "./table.taro-C2XPk7AJ.js";
85
+ import { T as T7 } from "./table.taro-D2M3D2Vj.js";
86
86
  import { T as T8 } from "./tag.taro-CFt28RLm.js";
87
87
  import { T as T9 } from "./tour.taro-SPMrhDA9.js";
88
88
  import { V } from "./video.taro-CecLv4sr.js";
@@ -93,7 +93,7 @@ import { T as T10 } from "./timedetail.taro-ya5JNy2L.js";
93
93
  import { T as T11 } from "./timeselect.taro-DncKbp3l.js";
94
94
  import { T as T12 } from "./trendarrow.taro-DKx5cGIh.js";
95
95
  import { W } from "./watermark.taro-BR12yZQt.js";
96
- import { A as A7 } from "./avatarcropper.taro-R3OfWq1H.js";
96
+ import { A as A7 } from "./avatarcropper.taro-CAVcFvKC.js";
97
97
  export {
98
98
  A2 as ActionSheet,
99
99
  A as Address,
@@ -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
  });
@@ -231,8 +231,7 @@ const InternalUploader = (props, ref) => {
231
231
  setUploadQueue(uploadQueue);
232
232
  } else {
233
233
  setUploadQueue([]);
234
- fileList.splice(0, fileList.length);
235
- setFileList([...fileList]);
234
+ setFileList([]);
236
235
  }
237
236
  };
238
237
  const _chooseImage = () => {
@@ -252,7 +251,7 @@ const InternalUploader = (props, ref) => {
252
251
  document.body.appendChild(obj);
253
252
  }
254
253
  }
255
- if (getEnv() === "WEAPP" && chooseMedia) {
254
+ if ((getEnv() === "WEAPP" || getEnv() === "JD") && chooseMedia) {
256
255
  chooseMedia({
257
256
  /** 最多可以选择的文件个数 */
258
257
  count: multiple ? maxCount * 1 - fileList.length : 1,
@@ -398,8 +397,7 @@ const InternalUploader = (props, ref) => {
398
397
  if (preview) {
399
398
  fileItem.url = fileType === "video" ? file.thumbTempFilePath : filepath;
400
399
  }
401
- fileList.push(fileItem);
402
- setFileList(fileList);
400
+ setFileList([...fileList, fileItem]);
403
401
  executeUpload(fileItem, index);
404
402
  });
405
403
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.10 Fri Jun 21 2024 18:26:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.12 Fri Jul 05 2024 14:50:48 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-taro v2.6.10 Fri Jun 21 2024 18:26:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.12 Fri Jul 05 2024 14:50:48 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-taro v2.6.10 Fri Jun 21 2024 18:26:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.12 Fri Jul 05 2024 14:50:48 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-taro v2.6.10 Fri Jun 21 2024 18:26:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.12 Fri Jul 05 2024 14:50:48 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-taro v2.6.10 Fri Jun 21 2024 18:26:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.12 Fri Jul 05 2024 14:50:48 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-taro v2.6.10 Fri Jun 21 2024 18:26:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.12 Fri Jul 05 2024 14:50:48 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-taro v2.6.10 Fri Jun 21 2024 18:26:04 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.12 Fri Jul 05 2024 14:50:48 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-taro v2.6.10 Fri Jun 21 2024 18:25:39 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.12 Fri Jul 05 2024 14:50:21 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -9814,6 +9814,7 @@ class FormStore {
9814
9814
  item.entity.onStoreChange("update");
9815
9815
  }
9816
9816
  });
9817
+ this.validateFields();
9817
9818
  };
9818
9819
  this.setCallback = (callback) => {
9819
9820
  this.callbacks = {
@@ -12887,8 +12888,7 @@ const InternalUploader = (props, ref) => {
12887
12888
  setUploadQueue(uploadQueue);
12888
12889
  } else {
12889
12890
  setUploadQueue([]);
12890
- fileList.splice(0, fileList.length);
12891
- setFileList([...fileList]);
12891
+ setFileList([]);
12892
12892
  }
12893
12893
  };
12894
12894
  const _chooseImage = () => {
@@ -12911,7 +12911,7 @@ const InternalUploader = (props, ref) => {
12911
12911
  document.body.appendChild(obj);
12912
12912
  }
12913
12913
  }
12914
- if (getEnv() === "WEAPP" && chooseMedia) {
12914
+ if ((getEnv() === "WEAPP" || getEnv() === "JD") && chooseMedia) {
12915
12915
  chooseMedia({
12916
12916
  /** 最多可以选择的文件个数 */
12917
12917
  count: multiple ? maxCount * 1 - fileList.length : 1,
@@ -13063,8 +13063,7 @@ const InternalUploader = (props, ref) => {
13063
13063
  if (preview) {
13064
13064
  fileItem.url = fileType === "video" ? file.thumbTempFilePath : filepath;
13065
13065
  }
13066
- fileList.push(fileItem);
13067
- setFileList(fileList);
13066
+ setFileList([...fileList, fileItem]);
13068
13067
  executeUpload(fileItem, index);
13069
13068
  });
13070
13069
  };
@@ -16807,6 +16806,7 @@ const defaultProps$g = {
16807
16806
  autoPlay: false,
16808
16807
  defaultValue: 1,
16809
16808
  closeOnContentClick: false,
16809
+ pagination: true,
16810
16810
  indicator: false,
16811
16811
  indicatorColor: "#fff",
16812
16812
  closeIcon: false,
@@ -16827,6 +16827,7 @@ const ImagePreview = (props) => {
16827
16827
  visible,
16828
16828
  defaultValue,
16829
16829
  indicatorColor,
16830
+ pagination,
16830
16831
  indicator,
16831
16832
  autoPlay,
16832
16833
  closeOnContentClick,
@@ -17048,7 +17049,7 @@ const ImagePreview = (props) => {
17048
17049
  )
17049
17050
  )
17050
17051
  ),
17051
- /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)),
17052
+ pagination ? /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)) : null,
17052
17053
  closeIcon !== false ? /* @__PURE__ */ React__default.createElement(
17053
17054
  "div",
17054
17055
  {
@@ -17519,6 +17520,10 @@ const Table = (props) => {
17519
17520
  });
17520
17521
  };
17521
17522
  const renderBodyTds = (item, rowIndex) => {
17523
+ const { rowRender } = item;
17524
+ if (rowRender && typeof rowRender === "function") {
17525
+ return rowRender(item, rowIndex);
17526
+ }
17522
17527
  return sortDataItem().map(([value, render]) => {
17523
17528
  return /* @__PURE__ */ React__default.createElement(
17524
17529
  "div",
@@ -18870,6 +18875,7 @@ const AvatarCropper = (props) => {
18870
18875
  if ((canvasDom == null ? void 0 : canvasDom.tagName) !== "CANVAS") {
18871
18876
  canvas = canvasDom == null ? void 0 : canvasDom.getElementsByTagName("canvas")[0];
18872
18877
  }
18878
+ if (!canvas) return;
18873
18879
  canvas.width = state.displayWidth;
18874
18880
  canvas.height = state.displayHeight;
18875
18881
  const ctx = canvas.getContext("2d");
@@ -2,7 +2,7 @@
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
3
3
  })(this, function(exports2, React, Taro, components, ReactDOM) {
4
4
  "use strict";/*!
5
- * @nutui/nutui-react-taro v2.6.10 Fri Jun 21 2024 18:25:39 GMT+0800 (China Standard Time)
5
+ * @nutui/nutui-react-taro v2.6.12 Fri Jul 05 2024 14:50:21 GMT+0800 (China Standard Time)
6
6
  * (c) 2023 @jdf2e.
7
7
  * Released under the MIT License.
8
8
  */
@@ -9830,6 +9830,7 @@
9830
9830
  item.entity.onStoreChange("update");
9831
9831
  }
9832
9832
  });
9833
+ this.validateFields();
9833
9834
  };
9834
9835
  this.setCallback = (callback) => {
9835
9836
  this.callbacks = {
@@ -12903,8 +12904,7 @@
12903
12904
  setUploadQueue(uploadQueue);
12904
12905
  } else {
12905
12906
  setUploadQueue([]);
12906
- fileList.splice(0, fileList.length);
12907
- setFileList([...fileList]);
12907
+ setFileList([]);
12908
12908
  }
12909
12909
  };
12910
12910
  const _chooseImage = () => {
@@ -12927,7 +12927,7 @@
12927
12927
  document.body.appendChild(obj);
12928
12928
  }
12929
12929
  }
12930
- if (Taro.getEnv() === "WEAPP" && Taro.chooseMedia) {
12930
+ if ((Taro.getEnv() === "WEAPP" || Taro.getEnv() === "JD") && Taro.chooseMedia) {
12931
12931
  Taro.chooseMedia({
12932
12932
  /** 最多可以选择的文件个数 */
12933
12933
  count: multiple ? maxCount * 1 - fileList.length : 1,
@@ -13079,8 +13079,7 @@
13079
13079
  if (preview) {
13080
13080
  fileItem.url = fileType === "video" ? file.thumbTempFilePath : filepath;
13081
13081
  }
13082
- fileList.push(fileItem);
13083
- setFileList(fileList);
13082
+ setFileList([...fileList, fileItem]);
13084
13083
  executeUpload(fileItem, index);
13085
13084
  });
13086
13085
  };
@@ -16823,6 +16822,7 @@
16823
16822
  autoPlay: false,
16824
16823
  defaultValue: 1,
16825
16824
  closeOnContentClick: false,
16825
+ pagination: true,
16826
16826
  indicator: false,
16827
16827
  indicatorColor: "#fff",
16828
16828
  closeIcon: false,
@@ -16843,6 +16843,7 @@
16843
16843
  visible,
16844
16844
  defaultValue,
16845
16845
  indicatorColor,
16846
+ pagination,
16846
16847
  indicator,
16847
16848
  autoPlay,
16848
16849
  closeOnContentClick,
@@ -17064,7 +17065,7 @@
17064
17065
  )
17065
17066
  )
17066
17067
  ),
17067
- /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)),
17068
+ pagination ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-index` }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)) : null,
17068
17069
  closeIcon !== false ? /* @__PURE__ */ React.createElement(
17069
17070
  "div",
17070
17071
  {
@@ -17535,6 +17536,10 @@
17535
17536
  });
17536
17537
  };
17537
17538
  const renderBodyTds = (item, rowIndex) => {
17539
+ const { rowRender } = item;
17540
+ if (rowRender && typeof rowRender === "function") {
17541
+ return rowRender(item, rowIndex);
17542
+ }
17538
17543
  return sortDataItem().map(([value, render]) => {
17539
17544
  return /* @__PURE__ */ React.createElement(
17540
17545
  "div",
@@ -18886,6 +18891,7 @@
18886
18891
  if ((canvasDom == null ? void 0 : canvasDom.tagName) !== "CANVAS") {
18887
18892
  canvas = canvasDom == null ? void 0 : canvasDom.getElementsByTagName("canvas")[0];
18888
18893
  }
18894
+ if (!canvas) return;
18889
18895
  canvas.width = state.displayWidth;
18890
18896
  canvas.height = state.displayHeight;
18891
18897
  const ctx = canvas.getContext("2d");
@@ -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
  }