|
@@ -1,3 +1,4 @@
|
|
|
+import ColCropper from '@/components/col-cropper'
|
|
|
import ColUpload from '@/components/col-upload'
|
|
|
import ColUploadVideo from '@/components/col-upload-video'
|
|
|
import ColVideo from '@/components/col-video'
|
|
@@ -85,7 +86,20 @@ export default defineComponent({
|
|
|
prop={`styleVideo.${index}.cover`}
|
|
|
rules={[{ required: true, message: '请上传视频封面' }]}
|
|
|
>
|
|
|
- <ColUpload v-model:modelValue={item.cover} />
|
|
|
+ {/* <ColUpload v-model:modelValue={item.cover} /> */}
|
|
|
+ <ColCropper
|
|
|
+ modelValue={item.cover}
|
|
|
+ bucket="video-course"
|
|
|
+ cropUploadSuccess={(data: any) => {
|
|
|
+ item.cover = data
|
|
|
+ }}
|
|
|
+ options={{
|
|
|
+ title: '视频封面',
|
|
|
+ fixedNumber: [3.34, 2],
|
|
|
+ autoCropWidth: 375,
|
|
|
+ autoCropHeight: 212
|
|
|
+ }}
|
|
|
+ />
|
|
|
</ElFormItem>
|
|
|
</ElCol>
|
|
|
</ElRow>
|