Giter Site home page Giter Site logo

Comments (7)

bensladden avatar bensladden commented on June 7, 2024

Hi, you will need to set the url for the component to work. The default for this prop is ../vue.png so if this file does not exist in your vue project it will not load.

from vue-fabric-wrapper.

locallyaccepted avatar locallyaccepted commented on June 7, 2024

I noticed that upon looking further. Thank you for the reply.

I do have one more question.

If I put a string url in the :url section, it loads correctly, but if I have the url as a reactive property (ie a computed property), no image is loading.

Thank you for your responses :) I'm not a programmer by trade, learning out of budget necessity to build tools for my shop

from vue-fabric-wrapper.

bensladden avatar bensladden commented on June 7, 2024

Not sure what is wrong here is an example: https://codesandbox.io/s/debug-eqeyv

from vue-fabric-wrapper.

locallyaccepted avatar locallyaccepted commented on June 7, 2024

https://codesandbox.io/s/debug-4kfd1

I replicated the issue I'm having. Nothing throws in the console, the object updates correctly but the image doesn't.

Once again, thank you so much for your help :)

from vue-fabric-wrapper.

bensladden avatar bensladden commented on June 7, 2024

Ahh i see your problem. The url prop does not refresh the image. To get around this see below:
https://codesandbox.io/s/debug-gf460
Basically don't render the component unless the url is set.
If you wish to swap the url once rendered you will likely need to set the prop back to "" then wait for next tick before setting it again.

from vue-fabric-wrapper.

bensladden avatar bensladden commented on June 7, 2024

example: https://codesandbox.io/s/debug-f5buh

from vue-fabric-wrapper.

locallyaccepted avatar locallyaccepted commented on June 7, 2024

Thank you so much :)

from vue-fabric-wrapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.