-1👍
✅
This is the fix:
interface ImagerProps {
source: string
}
export default {
name: 'Imager',
props: {
source: {
type: String,
required: true,
},
},
computed: {
style(props: ImagerProps): string {
return `background-image: url('${props.source}')`
},
},
}
Source:stackexchange.com