forked from opentiny/tiny-vue
26 lines
561 B
Vue
26 lines
561 B
Vue
<template>
|
|
<tiny-file-upload :action="action" list-type="picture-single" source-type="video" :file-list="fileList">
|
|
</tiny-file-upload>
|
|
</template>
|
|
|
|
<script>
|
|
import { FileUpload } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyFileUpload: FileUpload
|
|
},
|
|
data() {
|
|
return {
|
|
action: 'http://localhost:3000/api/upload',
|
|
fileList: [
|
|
{
|
|
name: 'video-test.mp4',
|
|
url: 'http://hicdev.huawei.com/mirrors/academy/Intro%20to%20Vue.js/1%29%20The%20Vue%20Instance.mp4'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
</script>
|