kui-crm 0.0.289 → 0.0.290
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/cjs/index.js +3 -0
- package/cjs/index.js.map +1 -1
- package/index.d.ts +93 -93
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -3778,8 +3778,11 @@ var GalleryWithThumbnails = React.forwardRef(function (_a) {
|
|
|
3778
3778
|
(_b = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(index);
|
|
3779
3779
|
};
|
|
3780
3780
|
var handleDelete = function () {
|
|
3781
|
+
var _a, _b;
|
|
3781
3782
|
if (onDelete) {
|
|
3782
3783
|
onDelete(currentIndex);
|
|
3784
|
+
var toIndex = currentIndex > 0 ? currentIndex - 1 : 0;
|
|
3785
|
+
(_b = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(toIndex);
|
|
3783
3786
|
}
|
|
3784
3787
|
};
|
|
3785
3788
|
if ((images === null || images === void 0 ? void 0 : images.length) === 0) {
|