介绍
React Suite是一套转为后端打造的企业级UI组件库,它由 HYPERS 前端团队与 UX 团队共同打造,在经历了几次大版本更新后,积累了大量的通用组件和功能,而且支持 Typescript 与 Flow, 支持服务端渲染。
![904488b52ec1a7a8a98857e381bee482.png](https://img-blog.csdnimg.cn/img_convert/904488b52ec1a7a8a98857e381bee482.png)
官方网站
https://rsuite.gitee.io/#/
https://github.com/rsuite/rsuite
https://gitee.com/rsuite/rsuite
平台支持
- 浏览器端
React Suite支持目前市面上主流的浏览器,在3.0版本以后不支持IE9及以下,移动端端不推荐使用,总体如下截图,来源于官网
![5a633d5b0e71be2352df3e7ca6a079bf.png](https://img-blog.csdnimg.cn/img_convert/5a633d5b0e71be2352df3e7ca6a079bf.png)
- 服务端
React Suite 支持服务端渲染, 支持通过 Next.js 构建应用。
开发环境支持
- 支持 React 16 +
- 支持 TypeScript
- 支持 Flow
- 支持 Electron
示例
官网提供了很多中示例模板,可以在下载体验
- 管理系统(https://github.com/rsuite/rsuite-management-system)
- 模块化按需加载(https://github.com/rsuite/examples/tree/master/modular-import)
- CDN 引入(https://github.com/rsuite/examples/tree/master/cdn)
- 国际化方案(https://github.com/rsuite/examples/tree/master/intl-app)
- 多主题方案(https://github.com/rsuite/examples/tree/master/multiple-themes)
- 在 create-react-app 中使用(https://github.com/rsuite/examples/tree/master/create-react-app)
- 在 Flow 中使用(https://github.com/rsuite/examples/tree/master/flow-app)
- 在 TypeScript 中使用(https://github.com/rsuite/examples/tree/master/typescript-app)
- 在 Next.js 中使用(https://github.com/rsuite/rsuite-management-system-ssr)
下面是一个DEMO截图
![ad6bede80e658fb5f714cd9538e62f5d.png](https://img-blog.csdnimg.cn/img_convert/ad6bede80e658fb5f714cd9538e62f5d.png)
官网提供了多个使用方法,我在这里就不介绍了,可以直接到官网查看
![df3c500989f57c9f1f46eb4dc805d430.png](https://img-blog.csdnimg.cn/img_convert/df3c500989f57c9f1f46eb4dc805d430.png)
组件介绍
既然是一套完整的UI组件库,其组件必然是相当的丰富,我们有选择性的查看以下
- 通用组件
![13bd2d1fb70d928e2e838a7420f86fd5.png](https://img-blog.csdnimg.cn/img_convert/13bd2d1fb70d928e2e838a7420f86fd5.png)
按钮
![f17e241f76312b3f0e4a9c72c529561d.png](https://img-blog.csdnimg.cn/img_convert/f17e241f76312b3f0e4a9c72c529561d.png)
图标
![9c2a0934b89e96065ae1c26731874f29.png](https://img-blog.csdnimg.cn/img_convert/9c2a0934b89e96065ae1c26731874f29.png)
tooltip
![a8bb46e674d4fbcd95e708ef4e9c756a.png](https://img-blog.csdnimg.cn/img_convert/a8bb46e674d4fbcd95e708ef4e9c756a.png)
alert
![08b84d7f7e536ae62802675b0e0c2337.png](https://img-blog.csdnimg.cn/img_convert/08b84d7f7e536ae62802675b0e0c2337.png)
通知
![c7ec1ff6515d6f4b604c1eacdfbbb258.png](https://img-blog.csdnimg.cn/img_convert/c7ec1ff6515d6f4b604c1eacdfbbb258.png)
模态框
![9824c191966108ca30f469cd330952d4.png](https://img-blog.csdnimg.cn/img_convert/9824c191966108ca30f469cd330952d4.png)
侧边栏弹出
- 导航组件
![706c21119177e290321ffed352449a7b.png](https://img-blog.csdnimg.cn/img_convert/706c21119177e290321ffed352449a7b.png)
顶部
![6a320bee1442b672edcb1ce72db4214d.png](https://img-blog.csdnimg.cn/img_convert/6a320bee1442b672edcb1ce72db4214d.png)
侧边
![0baae0bf771dc185c2b305d7de6fc856.png](https://img-blog.csdnimg.cn/img_convert/0baae0bf771dc185c2b305d7de6fc856.png)
分步
![dc1040dc032a055a5763b9f832a1e802.png](https://img-blog.csdnimg.cn/img_convert/dc1040dc032a055a5763b9f832a1e802.png)
分页
- 数据表单
表单组件太多就不一一截图了,日常使用的基本组件都有
![3e504c2d4f5fa03cf464d19e0826af7e.png](https://img-blog.csdnimg.cn/img_convert/3e504c2d4f5fa03cf464d19e0826af7e.png)
- 数据展示(支持虚拟化,赞)
![373257ae54e5faabc9eddfaf62a992bb.png](https://img-blog.csdnimg.cn/img_convert/373257ae54e5faabc9eddfaf62a992bb.png)
表格
![a48efdd17e85fbeb6dfba8564fa7f904.png](https://img-blog.csdnimg.cn/img_convert/a48efdd17e85fbeb6dfba8564fa7f904.png)
树
![0e77d0e0b67494e4a4e1981dae1be5e7.png](https://img-blog.csdnimg.cn/img_convert/0e77d0e0b67494e4a4e1981dae1be5e7.png)
复选框
![ab10fd7dacbdd53536cc41d31471cdbd.png](https://img-blog.csdnimg.cn/img_convert/ab10fd7dacbdd53536cc41d31471cdbd.png)
时间轴
组件太多,仅仅选择性的截了几张图,更多组件实例可以到官网体验。
原型设计
这个功能非常的厉害,提供了原型设计,这就给设计师和工程师提供了便捷,官网提供在线原型设计,非常的给力
![0306e9c3084502cc115ced61b27b685d.png](https://img-blog.csdnimg.cn/img_convert/0306e9c3084502cc115ced61b27b685d.png)
总结
优秀的框架市面上有很多,不论是哪一款,只要能有效的解决我们的问题,那么就是好框架,节省了我们本身大量的时间,提升了工作效率,而且国产中良心的不多,之前文章推荐的阿里的Fusion Desgin更加强大,欢迎大家阅读,感谢支持!