@varlet/ui 2.5.4 → 2.5.5-alpha.1672917543560
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/es/snackbar/style/index.js +1 -1
- package/es/uploader/Uploader.js +2 -2
- package/es/varlet.esm.js +230 -230
- package/highlight/web-types.json +1 -1
- package/lib/uploader/Uploader.js +2 -2
- package/package.json +7 -7
- package/umd/varlet.js +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.css'
|
|
2
|
-
import '../SnackbarSfc.css'
|
|
3
2
|
import '../../styles/elevation.css'
|
|
4
3
|
import '../../loading/loading.css'
|
|
5
4
|
import '../../button/button.css'
|
|
6
5
|
import '../../icon/icon.css'
|
|
7
6
|
import '../snackbar.css'
|
|
8
7
|
import '../coreSfc.css'
|
|
8
|
+
import '../SnackbarSfc.css'
|
package/es/uploader/Uploader.js
CHANGED
|
@@ -368,7 +368,7 @@ export default defineComponent({
|
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
if (onBeforeRemove) {
|
|
371
|
-
var results = call(onBeforeRemove);
|
|
371
|
+
var results = call(onBeforeRemove, reactive(removedVarFile));
|
|
372
372
|
results = isArray(results) ? results : [results];
|
|
373
373
|
|
|
374
374
|
if ((yield Promise.all(results)).some(result => !result)) {
|
|
@@ -377,7 +377,7 @@ export default defineComponent({
|
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
var expectedFiles = modelValue.filter(varFile => varFile !== removedVarFile);
|
|
380
|
-
call(onRemove, removedVarFile);
|
|
380
|
+
call(onRemove, reactive(removedVarFile));
|
|
381
381
|
validateWithTrigger('onRemove');
|
|
382
382
|
call(props['onUpdate:modelValue'], expectedFiles);
|
|
383
383
|
});
|