Code Monkey home page Code Monkey logo

Comments (6)

zhanziyang avatar zhanziyang commented on May 28, 2024 1

from vue-croppa.

zhanziyang avatar zhanziyang commented on May 28, 2024

version 1.1.4 comes with a new prop: replace-drop

<croppa replace-drop></croppa>

turning on replace-drop mode will result in current image getting replaced by the new one on drag and drop.

  • type: boolean
  • default: false (By default you need to remove the current image to drop a new one)

from vue-croppa.

PrimozRome avatar PrimozRome commented on May 28, 2024

@zhanziyang awesome, thanks for quick feature update.

from vue-croppa.

PrimozRome avatar PrimozRome commented on May 28, 2024

@zhanziyang I tried the 1.1.4. and added replace-drop but you have a bug - the drag and drop with new attribute won't work over the initial image like this:

<croppa
    v-model="myCroppa"
    replace-drop>
    <img src="~/assets/img/profiles/1.png" slot="initial">
</croppa>

With a setup like this you need to first remove the initial image and then drag and drop will work. Can you fix this in next release?

from vue-croppa.

zhanziyang avatar zhanziyang commented on May 28, 2024

@PrimozRome I can't reproduce your issue. I made a demo and it works fine here. Take a look. https://codepen.io/zhanziyang/pen/MONOeP

from vue-croppa.

PrimozRome avatar PrimozRome commented on May 28, 2024

@zhanziyang thanks. I am not using your CSS and looks like I have problem with my CSS... Thanks for your effort.

from vue-croppa.

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.