Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-admin

> 前端框架
Open source

A magical react admin

196 stars0 likes1 views
WebsiteGitHub

About

A magical react admin

React Admin Template

✨ 特性

  • TypeScript: 应用程序级 JavaScript 的语言
  • 优雅美观:基于 Ant Design 体系精心设计
  • 最新技术栈:使用 React/umi/antd 等前端前沿技术开发
  • 国际化:内建业界通用的国际化方案
  • Mock 数据:实用的本地数据调试方案
  • ⚙️ 最佳实践:良好的工程实践助您持续产出高质量代码
  • 优秀的权限设计:目前能找到的最好的权限实现方案

推荐

  • 微前端版本 micro-frontends-template 正在同步开发中...
  • 好用的水印组件 watermark

目录

…

关于权限

基于 umi-plugin-authority 提供权限功能,暴露 useAuthority hooks 和 Authority 组件实现权限控制的能力

使用示例如下

typescript
import React from 'react';
import { useAuthority, Authority } from 'umi';

const PageA = props => {
  const { foo } = props;
  const { combinationVerify } = useAuthority();
 
  // 使用 hooks 提供的能力  
  if (combinationVerify('module1/action1')) {
    // 存在 module1/action1 权限,则...
  }
  
  return (
    
}
      >
        Foo content.
      
      {/** 直接指定权限 */}
      
        Update foo.
      
      {/** 复杂的校验 */}
      
        Update foo.
      
      {/** children 为function */}
      
        {(isMatch) => 权限校验结果: {isMatch}}
      
    
  );
};

⌨️ 本地开发

bash
# 克隆项目到本地
git clone [email protected]:ts-react/react-admin-template.git

# 切换到项目目录
cd ./react-admin-template

# 安装依赖
yarn

# 启动服务
npm run start

支持环境

现代浏览器及 IE11。

IE / Edge Firefox Chrome Safari Opera
IE11, Edge last 2 versions last 2 versions last 2 versions last 2 versions

社区互助

Github Issue 钉钉群 微信群
issues

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptadminadmin-templateant-designless

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架