Giter Site home page Giter Site logo

Comments (4)

lian-yue avatar lian-yue commented on May 22, 2024

@crazy0x vue 2.0 请使用
https://github.com/lian-yue/vue-upload-component/tree/2.0

2.0 的分支

from vue-upload-component.

crazy0x avatar crazy0x commented on May 22, 2024

@lian-yue 您好,我目前使用的是这个分支,但是events中的回调似乎都失效了,我要如何去注册并使用这些回调?

from vue-upload-component.

lian-yue avatar lian-yue commented on May 22, 2024

vue 2 不支持 events

vuejs/vue#2873
events deprecated, since no more event propaga

需要 events 作为属性传入 才行

var events  = {
  add(file, component) {
    console.log('add');
  }
}
<file-upload  :events=events></file-upload>

@crazy0x

from vue-upload-component.

crazy0x avatar crazy0x commented on May 22, 2024

@lian-yue 感谢解答,确实解决了问题,其实已经在example中写得很全了,是我没仔细看2.0分支的example。

from vue-upload-component.

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.