File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { createApp } from 'vue'
2
- import uploader from '../dist/vue-simple-uploader.es'
3
- import '../dist/style.css'
2
+ // import uploader from '../dist/vue-simple-uploader.es'
3
+ // import '../dist/style.css'
4
+ import uploader from '../src'
4
5
import App from './App.vue'
5
6
6
7
const app = createApp ( App )
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export default {
193
193
processResponse (args[2 ])
194
194
return
195
195
}
196
- instance .setupState [ ` _ ${ event } ` ](args)
196
+ instance .ctx [ ` ${ event } ` ](args)
197
197
}
198
198
}
199
199
const fileProgress = () => {
Original file line number Diff line number Diff line change 102
102
if (handler === true ) {
103
103
return
104
104
}
105
- instance[handler].apply (instance[handler], args .slice (1 ))
105
+ instance . ctx [handler].apply (instance . ctx [handler], args .slice (1 ))
106
106
}
107
107
args[0 ] = kebabCase (name)
108
- emit .apply (instance, args)
108
+ emit .apply (instance . ctx , args)
109
109
}
110
110
111
111
props .options .initialPaused = ! props .autoStart
You can’t perform that action at this time.
0 commit comments