@react-spy/antd
📚 文档
✨ 特性
- 基于 antd 封装,开箱即用
- 包含大量提炼业务组件
- 包含丰富的基础 demo 样式
- 使用 TypeScript 构建,提供完整的类型定义文件
📦 安装
$ npm install @react-spy/antd --save
或者
$ yarn add @react-spy/antd
🔨 简单使用
/**
* title: 自定义上传按钮组件
* transform: true
*/
import React from 'react';
import { ButtonUpload } from "@react-spy/antd";
export default () => {
return (
<ButtonUpload
uploadButtonRender={
<div className='button'>
<div className="button__content">Hover me and Click me</div>
</div>
}
/>
);
};