sprintify-ui 0.1.0 → 0.1.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/package.json
CHANGED
|
@@ -141,10 +141,6 @@ watch(
|
|
|
141
141
|
watch(
|
|
142
142
|
() => props.modelValue,
|
|
143
143
|
(newValue, oldValue) => {
|
|
144
|
-
if (newValue == oldValue) {
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
144
|
if (props.showRouteUrl == null) {
|
|
149
145
|
return;
|
|
150
146
|
}
|
|
@@ -154,6 +150,10 @@ watch(
|
|
|
154
150
|
return;
|
|
155
151
|
}
|
|
156
152
|
|
|
153
|
+
if (newValue == oldValue) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
157
|
http
|
|
158
158
|
.get(props.showRouteUrl(props.modelValue))
|
|
159
159
|
.then((response: AxiosResponse) => {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
|
|
98
98
|
<script lang="ts" setup>
|
|
99
99
|
import { PropType } from 'vue';
|
|
100
|
-
import { cloneDeep, isArray, capitalize
|
|
100
|
+
import { cloneDeep, isArray, capitalize } from 'lodash';
|
|
101
101
|
import { UploadedFile } from '@/types/UploadedFile';
|
|
102
102
|
import { Media } from '@/types/Media';
|
|
103
103
|
import { BaseCropperConfig, MediaLibraryPayload } from '@/types';
|
|
@@ -268,8 +268,6 @@ function onUploadSuccess(file: UploadedFile) {
|
|
|
268
268
|
modelValue = [];
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
file.id = 'new' + uniqueId();
|
|
272
|
-
|
|
273
271
|
modelValue.push(file);
|
|
274
272
|
|
|
275
273
|
sync(modelValue);
|