@nutui/nutui-react-taro 2.6.12 → 2.6.14

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 (48) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/esm/Address/style/style.css +1 -1
  3. package/dist/esm/Address.js +1 -1
  4. package/dist/esm/Calendar.js +1 -1
  5. package/dist/esm/CalendarItem.js +1 -1
  6. package/dist/esm/Cascader/style/style.css +1 -1
  7. package/dist/esm/Cascader.js +1 -1
  8. package/dist/esm/Drag.js +1 -1
  9. package/dist/esm/Empty/style/style.css +1 -1
  10. package/dist/esm/Form.js +1 -1
  11. package/dist/esm/FormItem.js +1 -1
  12. package/dist/esm/ImagePreview.js +1 -1
  13. package/dist/esm/InfiniteLoading.js +1 -1
  14. package/dist/esm/Menu.js +1 -1
  15. package/dist/esm/MenuItem.js +1 -1
  16. package/dist/esm/Tabs/style/style.css +1 -1
  17. package/dist/esm/{address.taro-CtVpobLw.js → address.taro-BYzOGUEN.js} +1 -1
  18. package/dist/esm/{calendar.taro-DN6uEJw-.js → calendar.taro-Bf5owfGd.js} +1 -1
  19. package/dist/esm/{calendaritem.taro-CiGznRkW.js → calendaritem.taro-PLHReAvU.js} +2 -0
  20. package/dist/esm/{cascader.taro-y9_hSUSJ.js → cascader.taro-jxe42b68.js} +2 -2
  21. package/dist/esm/{drag.taro-CI7ZFwaM.js → drag.taro-B_TO4Nnu.js} +8 -2
  22. package/dist/esm/{formitem.taro-BsnxUebv.js → formitem.taro-Dmt5-wxG.js} +3 -3
  23. package/dist/esm/{imagepreview.taro-BLXFYocO.js → imagepreview.taro-DtgQJEQ_.js} +12 -5
  24. package/dist/esm/{infiniteloading.taro-g1RbqnSS.js → infiniteloading.taro-DmDQKk_d.js} +7 -7
  25. package/dist/esm/{menu.taro-JDg_-XpO.js → menu.taro-CrPdDbYM.js} +1 -1
  26. package/dist/esm/{menuitem.taro-BFfGgTms.js → menuitem.taro-DMV3j4DK.js} +4 -2
  27. package/dist/esm/nutui-react.es.js +10 -10
  28. package/dist/locales/base.js +1 -1
  29. package/dist/locales/en-US.js +1 -1
  30. package/dist/locales/id-ID.js +1 -1
  31. package/dist/locales/tr-TR.js +1 -1
  32. package/dist/locales/zh-CN.js +1 -1
  33. package/dist/locales/zh-TW.js +1 -1
  34. package/dist/locales/zh-UG.js +1 -1
  35. package/dist/nutui.react.es.js +47 -19
  36. package/dist/nutui.react.umd.js +47 -19
  37. package/dist/packages/empty/empty.scss +1 -1
  38. package/dist/packages/tabs/tabs.scss +1 -0
  39. package/dist/style.css +1 -1
  40. package/dist/styles/variables-jmapp.scss +1 -0
  41. package/dist/styles/variables.scss +1 -0
  42. package/dist/types/packages/configprovider/types.d.ts +1 -1
  43. package/dist/types/packages/drag/drag.d.ts +6 -0
  44. package/dist/types/packages/drag/drag.taro.d.ts +16 -0
  45. package/dist/types/packages/form/types.d.ts +1 -0
  46. package/dist/types/packages/infiniteloading/infiniteloading.taro.d.ts +2 -1
  47. package/package.json +1 -1
  48. package/dist/types/packages/form/usewatch.d.ts +0 -2
@@ -24,19 +24,19 @@ import { T } from "./tabbar.taro-CXk0zLdz.js";
24
24
  import { T as T2 } from "./tabbaritem.taro-BZNabTBp.js";
25
25
  import { T as T3 } from "./tabpane.taro-BAe86j3t.js";
26
26
  import { T as T4 } from "./tabs.taro-B2D3AtVV.js";
27
- import { A } from "./address.taro-CtVpobLw.js";
28
- import { C as C5 } from "./calendar.taro-DN6uEJw-.js";
29
- import { C as C6 } from "./calendaritem.taro-CiGznRkW.js";
27
+ import { A } from "./address.taro-BYzOGUEN.js";
28
+ import { C as C5 } from "./calendar.taro-Bf5owfGd.js";
29
+ import { C as C6 } from "./calendaritem.taro-PLHReAvU.js";
30
30
  import { C as C7 } from "./calendarcard.taro-CbvCWF1k.js";
31
- import { C as C8 } from "./cascader.taro-y9_hSUSJ.js";
31
+ import { C as C8 } from "./cascader.taro-jxe42b68.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-BsnxUebv.js";
35
+ import { F as F2 } from "./formitem.taro-Dmt5-wxG.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
- import { M } from "./menu.taro-JDg_-XpO.js";
39
- import { M as M2 } from "./menuitem.taro-BFfGgTms.js";
38
+ import { M } from "./menu.taro-CrPdDbYM.js";
39
+ import { M as M2 } from "./menuitem.taro-DMV3j4DK.js";
40
40
  import { N as N2 } from "./numberkeyboard.taro-BA0iCeGP.js";
41
41
  import { P } from "./picker.taro-CafNRRO5.js";
42
42
  import { R as R2, a as a3 } from "./radio.taro-BNSceequ.js";
@@ -51,9 +51,9 @@ 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";
54
- import { D as D3 } from "./drag.taro-CI7ZFwaM.js";
54
+ import { D as D3 } from "./drag.taro-B_TO4Nnu.js";
55
55
  import { E as E2 } from "./empty.taro-CnwDznke.js";
56
- import { I as I4 } from "./infiniteloading.taro-g1RbqnSS.js";
56
+ import { I as I4 } from "./infiniteloading.taro-DmDQKk_d.js";
57
57
  import { L as L2 } from "./loading.taro-n_qoNgCW.js";
58
58
  import { N as N3 } from "./noticebar.taro-CGUTg60Q.js";
59
59
  import { N as N4 } from "./notify.taro-jP7y9zMU.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-BLXFYocO.js";
76
+ import { I as I5 } from "./imagepreview.taro-DtgQJEQ_.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";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.6.12 Fri Jul 05 2024 14:50:48 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.14 Fri Jul 19 2024 16:24:05 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.12 Fri Jul 05 2024 14:50:48 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.14 Fri Jul 19 2024 16:24:05 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.12 Fri Jul 05 2024 14:50:48 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.14 Fri Jul 19 2024 16:24:05 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.12 Fri Jul 05 2024 14:50:48 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.14 Fri Jul 19 2024 16:24:05 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.12 Fri Jul 05 2024 14:50:48 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.14 Fri Jul 19 2024 16:24:05 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.12 Fri Jul 05 2024 14:50:48 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.14 Fri Jul 19 2024 16:24:05 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.12 Fri Jul 05 2024 14:50:48 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.14 Fri Jul 19 2024 16:24:05 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.12 Fri Jul 05 2024 14:50:21 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.6.14 Fri Jul 19 2024 16:23:26 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -5720,7 +5720,7 @@ const InternalCascader = (props, ref) => {
5720
5720
  };
5721
5721
  const syncValue = async () => {
5722
5722
  const currentValue = innerValue;
5723
- if (currentValue === void 0 || currentValue !== defaultValue || !state.tree.nodes.length) {
5723
+ if (currentValue === void 0 || ![defaultValue, value].includes(currentValue) || !state.tree.nodes.length) {
5724
5724
  return;
5725
5725
  }
5726
5726
  if (currentValue.length === 0) {
@@ -5752,7 +5752,7 @@ const InternalCascader = (props, ref) => {
5752
5752
  state.initLoading = false;
5753
5753
  }
5754
5754
  }
5755
- if (needToSync.length && currentValue === defaultValue) {
5755
+ if (needToSync.length && [defaultValue, value].includes(currentValue)) {
5756
5756
  const pathNodes = state.tree.getPathNodesByValue(needToSync);
5757
5757
  pathNodes.forEach((node, index) => {
5758
5758
  state.tabsCursor = index;
@@ -6775,6 +6775,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
6775
6775
  const scrollTop2 = e2.target.scrollTop;
6776
6776
  Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
6777
6777
  let current = Math.floor(scrollTop2 / avgHeight);
6778
+ if (current < 0) return;
6778
6779
  if (!monthsData[current + 1]) return;
6779
6780
  const nextTop = monthsData[current + 1].scrollTop;
6780
6781
  const nextHeight = monthsData[current + 1].cssHeight;
@@ -9792,7 +9793,7 @@ class FormStore {
9792
9793
  this.store = values;
9793
9794
  }
9794
9795
  };
9795
- this.setFieldsValue = (newStore) => {
9796
+ this.setFieldsValue = (newStore, needValidate = true) => {
9796
9797
  this.store = {
9797
9798
  ...this.store,
9798
9799
  ...newStore
@@ -9814,7 +9815,7 @@ class FormStore {
9814
9815
  item.entity.onStoreChange("update");
9815
9816
  }
9816
9817
  });
9817
- this.validateFields();
9818
+ needValidate && this.validateFields();
9818
9819
  };
9819
9820
  this.setCallback = (callback) => {
9820
9821
  this.callbacks = {
@@ -10064,7 +10065,7 @@ const _FormItem = class _FormItem extends React__default.Component {
10064
10065
  if (this.props.getValueFromEvent) {
10065
10066
  next = this.props.getValueFromEvent(...args);
10066
10067
  }
10067
- setFieldsValue({ [name]: next });
10068
+ setFieldsValue({ [name]: next }, false);
10068
10069
  }
10069
10070
  };
10070
10071
  const { validateTrigger } = this.props;
@@ -10797,18 +10798,20 @@ const MenuItem = forwardRef((props, ref) => {
10797
10798
  handleClick(item);
10798
10799
  }
10799
10800
  },
10800
- item.value === innerValue ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, icon || /* @__PURE__ */ React__default.createElement(
10801
+ item.value === innerValue ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, icon ? React__default.cloneElement(icon, {
10802
+ className: `nut-menu-container-item-icon ${icon.props.className || ""}`
10803
+ }) : /* @__PURE__ */ React__default.createElement(
10801
10804
  g$3,
10802
10805
  {
10803
10806
  color: activeColor,
10804
10807
  size: 16,
10805
- className: getIconCName(item.value, value)
10808
+ className: `nut-menu-container-item-icon ${getIconCName(item.value, value)}`
10806
10809
  }
10807
10810
  )) : null,
10808
10811
  /* @__PURE__ */ React__default.createElement(
10809
10812
  View,
10810
10813
  {
10811
- className: getIconCName(item.value, value),
10814
+ className: `nut-menu-container-item-title ${getIconCName(item.value, value)}`,
10812
10815
  style: {
10813
10816
  color: `${item.value === innerValue ? activeColor : ""}`
10814
10817
  }
@@ -13510,7 +13513,18 @@ const defaultProps$F = {
13510
13513
  className: "myDrag"
13511
13514
  };
13512
13515
  const Drag = (props) => {
13513
- const { attract, direction, boundary, children, className, style, ...reset } = {
13516
+ const {
13517
+ attract,
13518
+ direction,
13519
+ boundary,
13520
+ onDrag,
13521
+ onDragStart,
13522
+ onDragEnd,
13523
+ children,
13524
+ className,
13525
+ style,
13526
+ ...reset
13527
+ } = {
13514
13528
  ...defaultProps$F,
13515
13529
  ...props
13516
13530
  };
@@ -13545,7 +13559,7 @@ const Drag = (props) => {
13545
13559
  }
13546
13560
  };
13547
13561
  const touchStart = (e2) => {
13548
- e2.currentTarget;
13562
+ onDragStart == null ? void 0 : onDragStart();
13549
13563
  const touches = e2.touches[0];
13550
13564
  axisCache.current = { x: touches.clientX, y: touches.clientY };
13551
13565
  transformCache.current = { x: translateX.current, y: translateY.current };
@@ -13557,6 +13571,9 @@ const Drag = (props) => {
13557
13571
  const y = touch.clientY - axisCache.current.y;
13558
13572
  translateX.current = x + transformCache.current.x;
13559
13573
  translateY.current = y + transformCache.current.y;
13574
+ onDrag == null ? void 0 : onDrag({
13575
+ offset: [translateX.current, translateY.current]
13576
+ });
13560
13577
  if (translateX.current < boundaryState.left) {
13561
13578
  translateX.current = boundaryState.left;
13562
13579
  } else if (translateX.current > boundaryState.right) {
@@ -13572,6 +13589,9 @@ const Drag = (props) => {
13572
13589
  }
13573
13590
  };
13574
13591
  const touchEnd = (e2) => {
13592
+ onDragEnd == null ? void 0 : onDragEnd({
13593
+ offset: [translateX.current, translateY.current]
13594
+ });
13575
13595
  if (direction !== "y" && attract && dragRef.current) {
13576
13596
  if (translateX.current < middleLine.current) {
13577
13597
  translateX.current = boundaryState.left;
@@ -13711,7 +13731,8 @@ const InfiniteLoading = (props) => {
13711
13731
  className,
13712
13732
  onRefresh,
13713
13733
  onLoadMore,
13714
- onScroll
13734
+ onScroll,
13735
+ ...rest
13715
13736
  } = {
13716
13737
  ...defaultProps$D,
13717
13738
  ...props
@@ -13814,7 +13835,8 @@ const InfiniteLoading = (props) => {
13814
13835
  onScrollToLower: lower,
13815
13836
  onTouchStart: touchStart,
13816
13837
  onTouchMove: touchMove,
13817
- onTouchEnd: touchEnd
13838
+ onTouchEnd: touchEnd,
13839
+ ...rest
13818
13840
  },
13819
13841
  /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-top", ref: refreshTop, style: getStyle() }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-top-tips" }, pullingText || locale.infiniteloading.pullRefreshText)),
13820
13842
  /* @__PURE__ */ React__default.createElement("div", { className: "nut-infinite-container" }, children),
@@ -16989,7 +17011,6 @@ const ImagePreview = (props) => {
16989
17011
  className: classNames(classPrefix2, className),
16990
17012
  style,
16991
17013
  ref,
16992
- onClick: closeOnImg,
16993
17014
  onTouchStart
16994
17015
  },
16995
17016
  /* @__PURE__ */ React__default.createElement(
@@ -17021,6 +17042,7 @@ const ImagePreview = (props) => {
17021
17042
  Video$1,
17022
17043
  {
17023
17044
  src: item.source.src,
17045
+ onClick: closeOnImg,
17024
17046
  controls: item.options.controls,
17025
17047
  autoplay: false,
17026
17048
  loop: false,
@@ -17036,14 +17058,20 @@ const ImagePreview = (props) => {
17036
17058
  key: index,
17037
17059
  className: "nut-imagepreview-swiper-item"
17038
17060
  },
17039
- Taro.getEnv() === "WEB" ? /* @__PURE__ */ React__default.createElement(Image$1, { src: item.src, mode: "aspectFit" }) : /* @__PURE__ */ React__default.createElement(
17040
- Image$1,
17061
+ "(",
17062
+ /* @__PURE__ */ React__default.createElement(
17063
+ Image$2,
17041
17064
  {
17042
17065
  src: item.src,
17043
- mode: "aspectFit",
17044
- showMenuByLongpress: !!showMenuByLongpress
17066
+ mode: "widthFix",
17067
+ onClick: closeOnImg,
17068
+ style: { width: "100%" },
17069
+ ...Taro.getEnv() !== "WEB" && {
17070
+ showMenuByLongpress
17071
+ }
17045
17072
  }
17046
- )
17073
+ ),
17074
+ ")"
17047
17075
  );
17048
17076
  }) : []
17049
17077
  )
@@ -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.12 Fri Jul 05 2024 14:50:21 GMT+0800 (China Standard Time)
5
+ * @nutui/nutui-react-taro v2.6.14 Fri Jul 19 2024 16:23:26 GMT+0800 (China Standard Time)
6
6
  * (c) 2023 @jdf2e.
7
7
  * Released under the MIT License.
8
8
  */
@@ -5736,7 +5736,7 @@
5736
5736
  };
5737
5737
  const syncValue = async () => {
5738
5738
  const currentValue = innerValue;
5739
- if (currentValue === void 0 || currentValue !== defaultValue || !state.tree.nodes.length) {
5739
+ if (currentValue === void 0 || ![defaultValue, value].includes(currentValue) || !state.tree.nodes.length) {
5740
5740
  return;
5741
5741
  }
5742
5742
  if (currentValue.length === 0) {
@@ -5768,7 +5768,7 @@
5768
5768
  state.initLoading = false;
5769
5769
  }
5770
5770
  }
5771
- if (needToSync.length && currentValue === defaultValue) {
5771
+ if (needToSync.length && [defaultValue, value].includes(currentValue)) {
5772
5772
  const pathNodes = state.tree.getPathNodesByValue(needToSync);
5773
5773
  pathNodes.forEach((node, index) => {
5774
5774
  state.tabsCursor = index;
@@ -6791,6 +6791,7 @@
6791
6791
  const scrollTop2 = e2.target.scrollTop;
6792
6792
  Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
6793
6793
  let current = Math.floor(scrollTop2 / avgHeight);
6794
+ if (current < 0) return;
6794
6795
  if (!monthsData[current + 1]) return;
6795
6796
  const nextTop = monthsData[current + 1].scrollTop;
6796
6797
  const nextHeight = monthsData[current + 1].cssHeight;
@@ -9808,7 +9809,7 @@
9808
9809
  this.store = values;
9809
9810
  }
9810
9811
  };
9811
- this.setFieldsValue = (newStore) => {
9812
+ this.setFieldsValue = (newStore, needValidate = true) => {
9812
9813
  this.store = {
9813
9814
  ...this.store,
9814
9815
  ...newStore
@@ -9830,7 +9831,7 @@
9830
9831
  item.entity.onStoreChange("update");
9831
9832
  }
9832
9833
  });
9833
- this.validateFields();
9834
+ needValidate && this.validateFields();
9834
9835
  };
9835
9836
  this.setCallback = (callback) => {
9836
9837
  this.callbacks = {
@@ -10080,7 +10081,7 @@
10080
10081
  if (this.props.getValueFromEvent) {
10081
10082
  next = this.props.getValueFromEvent(...args);
10082
10083
  }
10083
- setFieldsValue({ [name]: next });
10084
+ setFieldsValue({ [name]: next }, false);
10084
10085
  }
10085
10086
  };
10086
10087
  const { validateTrigger } = this.props;
@@ -10813,18 +10814,20 @@
10813
10814
  handleClick(item);
10814
10815
  }
10815
10816
  },
10816
- item.value === innerValue ? /* @__PURE__ */ React.createElement(React.Fragment, null, icon || /* @__PURE__ */ React.createElement(
10817
+ item.value === innerValue ? /* @__PURE__ */ React.createElement(React.Fragment, null, icon ? React.cloneElement(icon, {
10818
+ className: `nut-menu-container-item-icon ${icon.props.className || ""}`
10819
+ }) : /* @__PURE__ */ React.createElement(
10817
10820
  g$3,
10818
10821
  {
10819
10822
  color: activeColor,
10820
10823
  size: 16,
10821
- className: getIconCName(item.value, value)
10824
+ className: `nut-menu-container-item-icon ${getIconCName(item.value, value)}`
10822
10825
  }
10823
10826
  )) : null,
10824
10827
  /* @__PURE__ */ React.createElement(
10825
10828
  components.View,
10826
10829
  {
10827
- className: getIconCName(item.value, value),
10830
+ className: `nut-menu-container-item-title ${getIconCName(item.value, value)}`,
10828
10831
  style: {
10829
10832
  color: `${item.value === innerValue ? activeColor : ""}`
10830
10833
  }
@@ -13526,7 +13529,18 @@
13526
13529
  className: "myDrag"
13527
13530
  };
13528
13531
  const Drag = (props) => {
13529
- const { attract, direction, boundary, children, className, style, ...reset } = {
13532
+ const {
13533
+ attract,
13534
+ direction,
13535
+ boundary,
13536
+ onDrag,
13537
+ onDragStart,
13538
+ onDragEnd,
13539
+ children,
13540
+ className,
13541
+ style,
13542
+ ...reset
13543
+ } = {
13530
13544
  ...defaultProps$F,
13531
13545
  ...props
13532
13546
  };
@@ -13561,7 +13575,7 @@
13561
13575
  }
13562
13576
  };
13563
13577
  const touchStart = (e2) => {
13564
- e2.currentTarget;
13578
+ onDragStart == null ? void 0 : onDragStart();
13565
13579
  const touches = e2.touches[0];
13566
13580
  axisCache.current = { x: touches.clientX, y: touches.clientY };
13567
13581
  transformCache.current = { x: translateX.current, y: translateY.current };
@@ -13573,6 +13587,9 @@
13573
13587
  const y = touch.clientY - axisCache.current.y;
13574
13588
  translateX.current = x + transformCache.current.x;
13575
13589
  translateY.current = y + transformCache.current.y;
13590
+ onDrag == null ? void 0 : onDrag({
13591
+ offset: [translateX.current, translateY.current]
13592
+ });
13576
13593
  if (translateX.current < boundaryState.left) {
13577
13594
  translateX.current = boundaryState.left;
13578
13595
  } else if (translateX.current > boundaryState.right) {
@@ -13588,6 +13605,9 @@
13588
13605
  }
13589
13606
  };
13590
13607
  const touchEnd = (e2) => {
13608
+ onDragEnd == null ? void 0 : onDragEnd({
13609
+ offset: [translateX.current, translateY.current]
13610
+ });
13591
13611
  if (direction !== "y" && attract && dragRef.current) {
13592
13612
  if (translateX.current < middleLine.current) {
13593
13613
  translateX.current = boundaryState.left;
@@ -13727,7 +13747,8 @@
13727
13747
  className,
13728
13748
  onRefresh,
13729
13749
  onLoadMore,
13730
- onScroll
13750
+ onScroll,
13751
+ ...rest
13731
13752
  } = {
13732
13753
  ...defaultProps$D,
13733
13754
  ...props
@@ -13830,7 +13851,8 @@
13830
13851
  onScrollToLower: lower,
13831
13852
  onTouchStart: touchStart,
13832
13853
  onTouchMove: touchMove,
13833
- onTouchEnd: touchEnd
13854
+ onTouchEnd: touchEnd,
13855
+ ...rest
13834
13856
  },
13835
13857
  /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-top", ref: refreshTop, style: getStyle() }, /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-top-tips" }, pullingText || locale.infiniteloading.pullRefreshText)),
13836
13858
  /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-container" }, children),
@@ -17005,7 +17027,6 @@
17005
17027
  className: classNames(classPrefix2, className),
17006
17028
  style,
17007
17029
  ref,
17008
- onClick: closeOnImg,
17009
17030
  onTouchStart
17010
17031
  },
17011
17032
  /* @__PURE__ */ React.createElement(
@@ -17037,6 +17058,7 @@
17037
17058
  components.Video,
17038
17059
  {
17039
17060
  src: item.source.src,
17061
+ onClick: closeOnImg,
17040
17062
  controls: item.options.controls,
17041
17063
  autoplay: false,
17042
17064
  loop: false,
@@ -17052,14 +17074,20 @@
17052
17074
  key: index,
17053
17075
  className: "nut-imagepreview-swiper-item"
17054
17076
  },
17055
- Taro.getEnv() === "WEB" ? /* @__PURE__ */ React.createElement(Image$1, { src: item.src, mode: "aspectFit" }) : /* @__PURE__ */ React.createElement(
17056
- Image$1,
17077
+ "(",
17078
+ /* @__PURE__ */ React.createElement(
17079
+ components.Image,
17057
17080
  {
17058
17081
  src: item.src,
17059
- mode: "aspectFit",
17060
- showMenuByLongpress: !!showMenuByLongpress
17082
+ mode: "widthFix",
17083
+ onClick: closeOnImg,
17084
+ style: { width: "100%" },
17085
+ ...Taro.getEnv() !== "WEB" && {
17086
+ showMenuByLongpress
17087
+ }
17061
17088
  }
17062
- )
17089
+ ),
17090
+ ")"
17063
17091
  );
17064
17092
  }) : []
17065
17093
  )
@@ -5,7 +5,7 @@
5
5
  flex-direction: column;
6
6
  justify-content: center;
7
7
  padding: $empty-padding;
8
- background-color: $color-background-overlay;
8
+ background-color: $empty-background-color;
9
9
 
10
10
  &-image {
11
11
  width: $empty-image-size;
@@ -11,6 +11,7 @@
11
11
  user-select: none;
12
12
  overflow: hidden;
13
13
  background: $tabs-titles-background-color;
14
+ scrollbar-width: none;
14
15
 
15
16
  &::-webkit-scrollbar {
16
17
  display: none;