@sunggang/ui-lib 0.1.77 → 0.1.79
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/index.esm.js +6 -5
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -79769,15 +79769,16 @@ var DropImage = function(param) {
|
|
|
79769
79769
|
onDrop: function(dropFiles) {
|
|
79770
79770
|
var newFiles = [];
|
|
79771
79771
|
setFiles(dropFiles);
|
|
79772
|
-
dropFiles.forEach(function(dropFile) {
|
|
79772
|
+
dropFiles.forEach(function(dropFile, index) {
|
|
79773
79773
|
Object.assign(dropFile, {
|
|
79774
79774
|
preview: URL.createObjectURL(dropFile),
|
|
79775
|
-
|
|
79775
|
+
id: v4(),
|
|
79776
|
+
index: (previewFiles === null || previewFiles === void 0 ? void 0 : previewFiles.length) + index + 1
|
|
79776
79777
|
});
|
|
79777
79778
|
newFiles.push(dropFile);
|
|
79778
|
-
|
|
79779
|
-
|
|
79780
|
-
|
|
79779
|
+
});
|
|
79780
|
+
setPreviewFiles(function(prev) {
|
|
79781
|
+
return _to_consumable_array$2(prev).concat(_to_consumable_array$2(newFiles));
|
|
79781
79782
|
});
|
|
79782
79783
|
}
|
|
79783
79784
|
}), getRootProps = _useDropzone.getRootProps, getInputProps = _useDropzone.getInputProps; _useDropzone.isDragActive; _useDropzone.isDragAccept; _useDropzone.isDragReject;
|