|
|
|
@ -9,6 +9,7 @@
|
|
|
|
<ReplaceButton
|
|
|
|
<ReplaceButton
|
|
|
|
v-if="withReplaceButton"
|
|
|
|
v-if="withReplaceButton"
|
|
|
|
:template-id="template.id"
|
|
|
|
:template-id="template.id"
|
|
|
|
|
|
|
|
:accept-file-types="acceptFileTypes"
|
|
|
|
@click.stop
|
|
|
|
@click.stop
|
|
|
|
@success="$emit('replace', { replaceSchemaItem: item, ...$event })"
|
|
|
|
@success="$emit('replace', { replaceSchemaItem: item, ...$event })"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
@ -62,6 +63,11 @@ export default {
|
|
|
|
type: Object,
|
|
|
|
type: Object,
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
acceptFileTypes: {
|
|
|
|
|
|
|
|
type: String,
|
|
|
|
|
|
|
|
required: false,
|
|
|
|
|
|
|
|
default: 'image/*, application/pdf'
|
|
|
|
|
|
|
|
},
|
|
|
|
withReplaceButton: {
|
|
|
|
withReplaceButton: {
|
|
|
|
type: Boolean,
|
|
|
|
type: Boolean,
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
|