diff --git a/src/components/VideoUpload/index.vue b/src/components/VideoUpload/index.vue new file mode 100644 index 0000000..a506af3 --- /dev/null +++ b/src/components/VideoUpload/index.vue @@ -0,0 +1,346 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + 请上传 + + 大小不超过 {{ fileSize }}MB + + + 格式为 {{ fileType.join("/") }} + + 的文件 + + + + + + + + + + + + diff --git a/src/main.js b/src/main.js index 485e44c..759409f 100644 --- a/src/main.js +++ b/src/main.js @@ -39,6 +39,8 @@ import Editor from '@/components/Editor' import FileUpload from '@/components/FileUpload' // 图片上传组件 import ImageUpload from '@/components/ImageUpload' +// 视频上传组件 +import VideoUpload from '@/components/VideoUpload' // 图片预览组件 import ImagePreview from '@/components/ImagePreview' // 字典标签组件 @@ -76,6 +78,7 @@ Vue.component('RightToolbar', RightToolbar) Vue.component('Editor', Editor) Vue.component('FileUpload', FileUpload) Vue.component('ImageUpload', ImageUpload) +Vue.component('VideoUpload', VideoUpload) Vue.component('ImagePreview', ImagePreview) Vue.component('SiteOptions', SiteOptions)