1.0.1 • Published 2 years ago

@winman-f2e/video-upload v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Foo

Demo:

import React from 'react';
import { VideoUpload } from '@winman-f2e/video-upload';

export default () => <VideoUpload />;

api

interface Props {
  hint?: string; // 额外的描述文字,比如'限制width:xxx,height:xxx'
  value?: string;
  onChange?: (value: string) => void;
  accept?: string;  // 接收上传的类型
  prefix?: boolean;  // 接口请求的前缀,newbackend可以传false
  beforeUpload?: (file: File) => void; // 图片上传前的事件,返回 boolean
}