antd-mobile 5.31.0 → 5.31.1

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.
@@ -20812,7 +20812,7 @@ const FormSubscribe = (props) => {
20812
20812
  const update2 = useUpdate$1();
20813
20813
  const form = useContext(Context$1);
20814
20814
  const value = form.getFieldsValue(props.to);
20815
- const childNode = React__default.useMemo(() => props.children(value, form), [JSON.stringify(value)]);
20815
+ const childNode = React__default.useMemo(() => props.children(value, form), [JSON.stringify(value), props.children]);
20816
20816
  return React__default.createElement(React__default.Fragment, null, childNode, props.to.map((namePath) => React__default.createElement(Watcher, {
20817
20817
  key: namePath.toString(),
20818
20818
  form,
@@ -25108,10 +25108,10 @@ const Swiper = forwardRef(staged_1((p, ref) => {
25108
25108
  var _a;
25109
25109
  const roundedIndex = Math.round(index2);
25110
25110
  const targetIndex = loop2 ? modulus(roundedIndex, count) : bound(roundedIndex, 0, count - 1);
25111
- setCurrent(targetIndex);
25112
25111
  if (targetIndex !== getCurrent()) {
25113
25112
  (_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, targetIndex);
25114
25113
  }
25114
+ setCurrent(targetIndex);
25115
25115
  api.start({
25116
25116
  position: (loop2 ? roundedIndex : boundIndex(roundedIndex)) * 100,
25117
25117
  immediate
@@ -14597,7 +14597,7 @@ const T$ = "__SPLIT__", We = "adm-form-item", R$ = l.memo(({
14597
14597
  return V(ge, ye, Y, Ee);
14598
14598
  });
14599
14599
  }, L$ = (e) => {
14600
- const t = hd(), n = ot(Nn), r = n.getFieldsValue(e.to), i = l.useMemo(() => e.children(r, n), [JSON.stringify(r)]);
14600
+ const t = hd(), n = ot(Nn), r = n.getFieldsValue(e.to), i = l.useMemo(() => e.children(r, n), [JSON.stringify(r), e.children]);
14601
14601
  return l.createElement(l.Fragment, null, i, e.to.map((a) => l.createElement(D$, {
14602
14602
  key: a.toString(),
14603
14603
  form: n,
@@ -17825,7 +17825,7 @@ const Z_ = de(Tl((e, t) => {
17825
17825
  function P(T, W = !1) {
17826
17826
  var H;
17827
17827
  const z = Math.round(T), Y = d ? ts(z, u) : Se(z, 0, u - 1);
17828
- v(Y), Y !== h() && ((H = n.onIndexChange) === null || H === void 0 || H.call(n, Y)), E.start({
17828
+ Y !== h() && ((H = n.onIndexChange) === null || H === void 0 || H.call(n, Y)), v(Y), E.start({
17829
17829
  position: (d ? z : y(z)) * 100,
17830
17830
  immediate: W
17831
17831
  });
@@ -20834,7 +20834,7 @@ Please add \`${key}Action\` when creating your handler.`);
20834
20834
  const update2 = useUpdate$1();
20835
20835
  const form = React$4.useContext(Context$1);
20836
20836
  const value = form.getFieldsValue(props.to);
20837
- const childNode = React__default.default.useMemo(() => props.children(value, form), [JSON.stringify(value)]);
20837
+ const childNode = React__default.default.useMemo(() => props.children(value, form), [JSON.stringify(value), props.children]);
20838
20838
  return React__default.default.createElement(React__default.default.Fragment, null, childNode, props.to.map((namePath) => React__default.default.createElement(Watcher, {
20839
20839
  key: namePath.toString(),
20840
20840
  form,
@@ -25130,10 +25130,10 @@ Please add \`${key}Action\` when creating your handler.`);
25130
25130
  var _a;
25131
25131
  const roundedIndex = Math.round(index2);
25132
25132
  const targetIndex = loop2 ? modulus(roundedIndex, count) : bound(roundedIndex, 0, count - 1);
25133
- setCurrent(targetIndex);
25134
25133
  if (targetIndex !== getCurrent()) {
25135
25134
  (_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, targetIndex);
25136
25135
  }
25136
+ setCurrent(targetIndex);
25137
25137
  api.start({
25138
25138
  position: (loop2 ? roundedIndex : boundIndex(roundedIndex)) * 100,
25139
25139
  immediate