Authored by htoooth

fix

... ... @@ -100,6 +100,7 @@ export default {
this.show = false;
this.$nextTick(() => {
this.show = true;
this.uploadList = this.$refs.upload.fileList;
})
}
},
... ... @@ -109,7 +110,7 @@ export default {
watch: {
defaultFile: function(newValue) {
if (newValue) {
this.$refs.upload.fileList.push({url: this.defaultFile});
this.defaultList = [{url: newValue}];
this.render();
}
}
... ...
/**
* Created by TaoHuang on 2017/5/5.
*/
... ...
... ... @@ -2,7 +2,7 @@
* Created by TaoHuang on 2017/4/26.
*/
const editProduct = r => require.ensure([], () => r(require('./edit')), 'product.edit');
const editProduct = r => require.ensure([], () => r(require('./test')), 'product.edit');
export default {
path: '/edit/:id',
... ...
<template>
<age v-model="a"></age>
<div>
<drag-file-upload :default-file="'http://img12.static.yhbimg.com/goodsimg/2017/05/05/17/027453d79e284b135a71864d9d9194adff.png'"
@on-success="uploadImageSuccess"
@on-remove="uploadImageRemove">
</drag-file-upload>
</div>
</template>
<script>
... ... @@ -40,6 +45,15 @@ export default {
}]
}
},
methods: {
uploadImageSuccess() {
},
uploadImageRemove() {
}
},
components: {
test: ProductTest,
material: ProductMaterial,
... ...