Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to show a local PNG as a background image using :images props #279

Open
vik17ag opened this issue Oct 9, 2020 · 2 comments
Open

Comments

@vik17ag
Copy link

vik17ag commented Oct 9, 2020

I am unable to show a local PNG as a background image to the VueSignaturePad. Can someone tell me what is wrong with my code?

I am setting prpos like this
:images="[require('../assets/logo.png')]"

Full template below -

<template>
    <div>
        <VueSignaturePad style=" margin: auto;" class="mt-10" :customStyle="{ border: 'black 3px solid' }" :images="[require('../assets/logo.png')]" width="100%" height="100%" ref="signaturePad" :options="{  onEnd }"></VueSignaturePad>
    </div>
</template>

Below is the file structure, the PNG is in the asset folder
Untitled

@vik17ag vik17ag changed the title Unable to merge images using props unable to show a local PNG as a background image using :images props Oct 10, 2020
@zhiyong-ft
Copy link

I am having the same issue. Did anyone get it to work? I got 404 for the background image in laravel-mix compiled js file.

@autorunman22
Copy link

i think theres no hopes for this man. any hacks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants