mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2026-01-07 12:28:13 +00:00
46 lines
825 B
TypeScript
46 lines
825 B
TypeScript
import {
|
|
ITextConfigType,
|
|
IUploadConfigType,
|
|
TTextDefaultType,
|
|
TUploadDefaultType,
|
|
} from '@/components/FormComponents/types';
|
|
|
|
export type TVideoEditData = Array<IUploadConfigType | ITextConfigType>;
|
|
export interface IVideoConfig {
|
|
poster: TUploadDefaultType;
|
|
url: TTextDefaultType;
|
|
}
|
|
|
|
export interface IVideoSchema {
|
|
editData: TVideoEditData;
|
|
config: IVideoConfig;
|
|
}
|
|
|
|
const Video: IVideoSchema = {
|
|
editData: [
|
|
{
|
|
key: 'poster',
|
|
name: '视频封面',
|
|
type: 'Upload',
|
|
},
|
|
{
|
|
key: 'url',
|
|
name: '视频链接',
|
|
type: 'Text',
|
|
},
|
|
],
|
|
config: {
|
|
poster: [
|
|
{
|
|
uid: '001',
|
|
name: 'image.png',
|
|
status: 'done',
|
|
url: 'http://49.234.61.19/uploads/1_1740c6fbcd9.png',
|
|
},
|
|
],
|
|
url: '',
|
|
},
|
|
};
|
|
|
|
export default Video;
|