# @winman-f2e/video-upload

> Demo:

Latest version **1.0.1** (published 2021-11-22) · 0 weekly downloads

## Install

```sh
npm install @winman-f2e/video-upload
pnpm add @winman-f2e/video-upload
yarn add @winman-f2e/video-upload
bun add @winman-f2e/video-upload
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-11-22 |
| First published | 2021-11-22 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 32.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yousy, guoyeeg, azgaga, liushichuan, yaochen, shenyuan, aflyermin, ignous, jeekdong |

## Links

- npm: https://www.npmjs.com/package/@winman-f2e/video-upload
- npm.io page: https://npm.io/package/@winman-f2e/video-upload

## Dependencies (4)

- [antd](https://npm.io/package/antd.md) ^4.16.13
- [react](https://npm.io/package/react.md) ^16.12.0 || ^17.0.0
- [umi-request](https://npm.io/package/umi-request.md) ^1.4.0
- [@ant-design/icons](https://npm.io/package/@ant-design/icons.md) ^4.7.0

## Recent versions

- 1.0.1 (latest) — 2021-11-22
- 1.0.0 — 2021-11-22

## README

## Foo

Demo:

```tsx
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
}
```

---
_Source: https://npm.io/package/@winman-f2e/video-upload · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
