添加了类型声明文件
This commit is contained in:
parent
9237c995b5
commit
b58d0638c4
1
src/types/index.d.ts
vendored
1
src/types/index.d.ts
vendored
@ -17,4 +17,5 @@ export interface FromSend {
|
|||||||
export interface VideoInfo {
|
export interface VideoInfo {
|
||||||
type: string;
|
type: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
uid: string;
|
||||||
}
|
}
|
@ -53,7 +53,7 @@ import { defineComponent, reactive, Ref, ref } from 'vue';
|
|||||||
import { PlaySquareOutlined, PlusOutlined } from '@ant-design/icons-vue';
|
import { PlaySquareOutlined, PlusOutlined } from '@ant-design/icons-vue';
|
||||||
import NavBottom from '@/components/NavBottom.vue';
|
import NavBottom from '@/components/NavBottom.vue';
|
||||||
import { previewCover } from '@/static/js/common';
|
import { previewCover } from '@/static/js/common';
|
||||||
import { ImgInfo } from '@/types';
|
import { FromSend, ImgInfo, VideoInfo } from '@/types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'ReleaseWebcast',
|
name: 'ReleaseWebcast',
|
||||||
@ -117,7 +117,7 @@ export default defineComponent({
|
|||||||
* 上传文件之前的钩子
|
* 上传文件之前的钩子
|
||||||
* @param file 上传的文件
|
* @param file 上传的文件
|
||||||
*/
|
*/
|
||||||
const beforeVideoUpload = (file: any): boolean => {
|
const beforeVideoUpload = (file: VideoInfo): boolean => {
|
||||||
console.log(file);
|
console.log(file);
|
||||||
if(file.type != '') {
|
if(file.type != '') {
|
||||||
// handleRemove(file);
|
// handleRemove(file);
|
||||||
@ -128,7 +128,7 @@ export default defineComponent({
|
|||||||
/**
|
/**
|
||||||
* 表单提交
|
* 表单提交
|
||||||
*/
|
*/
|
||||||
const onSubmit = (e: any) => {
|
const onSubmit = (e: FromSend) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user