@sunggang/ui-lib 0.2.1 → 0.2.2
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 +3 -1
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -84307,7 +84307,9 @@ var DropImage = function(param) {
|
|
|
84307
84307
|
maxSize: 5000000,
|
|
84308
84308
|
onDrop: function(dropFiles) {
|
|
84309
84309
|
var newFiles = [];
|
|
84310
|
-
setFiles(
|
|
84310
|
+
setFiles(function(prevFiles) {
|
|
84311
|
+
return _to_consumable_array$3(prevFiles).concat(_to_consumable_array$3(dropFiles));
|
|
84312
|
+
});
|
|
84311
84313
|
dropFiles.forEach(function(dropFile, index) {
|
|
84312
84314
|
Object.assign(dropFile, {
|
|
84313
84315
|
preview: URL.createObjectURL(dropFile),
|