fix vc-upload propstype

pull/165/head
wangxueliang 2018-04-16 15:14:30 +08:00
parent 69ecd05c58
commit 7f7423b44b
2 changed files with 5 additions and 5 deletions

View File

@ -4,8 +4,8 @@ import BaseMixin from '../../_util/BaseMixin'
import AjaxUpload from './AjaxUploader'
import IframeUpload from './IframeUploader'
// function empty () {
// }
function empty () {
}
const uploadProps = {
componentTag: PropTypes.string,
@ -47,8 +47,8 @@ export default {
// onSuccess: empty,
supportServerRender: false,
multiple: false,
beforeUpload: null,
customRequest: null,
beforeUpload: empty,
customRequest: empty,
withCredentials: false,
}),
data () {

View File

@ -3,7 +3,7 @@ import Layout from './components/layout.vue'
const AsyncTestComp = () => {
const d = window.location.hash.replace('#', '')
return {
component: import(`../components/tree/demo/${d}`),
component: import(`../components/vc-upload/demo/${d}`),
}
}