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.
- package/2x/bundle/antd-mobile.cjs.development.js +2 -2
- package/2x/bundle/antd-mobile.cjs.js +2 -2
- package/2x/bundle/antd-mobile.es.development.js +2 -2
- package/2x/bundle/antd-mobile.es.js +2 -2
- package/2x/bundle/antd-mobile.umd.development.js +2 -2
- package/2x/bundle/antd-mobile.umd.js +2 -2
- package/2x/bundle/style.css +2 -0
- package/2x/cjs/components/form/form-subscribe.js +1 -1
- package/2x/cjs/components/notice-bar/notice-bar.css +2 -0
- package/2x/cjs/components/swiper/swiper.js +1 -1
- package/2x/es/components/form/form-subscribe.js +1 -1
- package/2x/es/components/notice-bar/notice-bar.css +2 -0
- package/2x/es/components/swiper/swiper.js +1 -1
- package/2x/package.json +1 -1
- package/bundle/antd-mobile.cjs.development.js +2 -2
- package/bundle/antd-mobile.cjs.js +2 -2
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +2 -2
- package/bundle/antd-mobile.es.js +2 -2
- package/bundle/antd-mobile.umd.development.js +2 -2
- package/bundle/antd-mobile.umd.js +2 -2
- package/bundle/style.css +1 -1
- package/cjs/components/form/form-subscribe.js +1 -1
- package/cjs/components/notice-bar/notice-bar.css +2 -0
- package/cjs/components/swiper/swiper.js +1 -1
- package/es/components/form/form-subscribe.js +1 -1
- package/es/components/notice-bar/notice-bar.css +2 -0
- package/es/components/swiper/swiper.js +1 -1
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
|
@@ -20834,7 +20834,7 @@ const FormSubscribe = (props) => {
|
|
|
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 @@ const Swiper = React$4.forwardRef(staged_1((p, ref) => {
|
|
|
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
|