@winman-f2e/video-upload
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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
}

Readme

Keywords

none

Package Sidebar

Install

npm i @winman-f2e/video-upload

Weekly Downloads

0

Version

1.0.1

License

none

Unpacked Size

33.2 kB

Total Files

17

Last publish

Collaborators

  • luofeiyue
  • whiskeyi
  • yousy
  • guoyeeg
  • azgaga
  • liushichuan
  • yaochen
  • shenyuan
  • aflyermin
  • ignous
  • jeekdong