free-fe-core-modules 0.1.16 → 0.1.18
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.
|
@@ -41,7 +41,7 @@ export default defineComponent({
|
|
|
41
41
|
if (props.name.startsWith('blob:')) return props.name;
|
|
42
42
|
|
|
43
43
|
// TODO:默认使用二倍图?
|
|
44
|
-
if (props.relative) return
|
|
44
|
+
if (props.relative) return `${import.meta.env.BASE_URL}images/${props.name}${props.defaultSize}.png`;
|
|
45
45
|
|
|
46
46
|
const ret = props.thumb
|
|
47
47
|
? vm.$filter('serverThumb', props.name)
|
|
@@ -150,7 +150,9 @@ export default defineComponent({
|
|
|
150
150
|
fieldsClass: { type: String, default: '' },
|
|
151
151
|
dialogClass: { type: String, default: '' },
|
|
152
152
|
|
|
153
|
-
remove: { type: Function, default: () => {}}
|
|
153
|
+
remove: { type: Function, default: () => {}},
|
|
154
|
+
|
|
155
|
+
noRejectOnCancel: { type: Boolean, default: false },
|
|
154
156
|
},
|
|
155
157
|
components: {
|
|
156
158
|
FreeField,
|
|
@@ -242,12 +244,16 @@ export default defineComponent({
|
|
|
242
244
|
}
|
|
243
245
|
|
|
244
246
|
if (reject.value) {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
if (!props.noRejectOnCancel) {
|
|
248
|
+
reject.value('cancel');
|
|
249
|
+
} else {
|
|
250
|
+
emit('ok');
|
|
249
251
|
}
|
|
250
252
|
}
|
|
253
|
+
|
|
254
|
+
if (typeof props.remove === 'function'){
|
|
255
|
+
props.remove();
|
|
256
|
+
}
|
|
251
257
|
};
|
|
252
258
|
|
|
253
259
|
const btn_ok = () => {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
default_link_target: (Field && Field.Options && Field.Options.LinkTarget) || '_blank',
|
|
52
52
|
|
|
53
53
|
automatic_uploads: (Field && Field.Options && Field.Options.NoUpload) ? false : true,
|
|
54
|
-
images_upload_url:
|
|
54
|
+
images_upload_url: `${this.ctx.config.baseUrl}/upload`,
|
|
55
55
|
images_reuse_filename: true,
|
|
56
56
|
images_upload_handler,
|
|
57
57
|
|