Giter Site home page Giter Site logo

hsl947 / react-antd-multi-tabs-admin Goto Github PK

View Code? Open in Web Editor NEW
543.0 8.0 130.0 4.94 MB

ts+react+antd-多页签后台模板(纯净版,非 antd pro!)

Home Page: https://react-antd-multi-tabs-admin.4everland.website/

License: MIT License

JavaScript 5.99% HTML 1.28% TypeScript 21.04% Less 71.64% CSS 0.05%
react antd redux multitabs ant-design tabs typescript hooks admin-dashboard dashboard

react-antd-multi-tabs-admin's Introduction

Hi there 👋 , I'm Souleigh, a Frontend Developer 🚀 from China.


Souleigh's github stats


Languages and Tools

Html Css JavaScript Es6 TypeScript Nodejs Vue React
html css javascript es6 typescript nodejs vue react

react-antd-multi-tabs-admin's People

Contributors

dependabot[bot] avatar hsl947 avatar yinghualiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-antd-multi-tabs-admin's Issues

这样做多tab功能,当页面元素多了是否会卡顿

我粗略看了看你的demo、从dom上看使用tab直接实现的缓存?就只是显示隐藏吗,这样页面内容多了是否会很卡顿?毕竟后台管理系统表格几百上千条数据也是常有的?(用了虚拟滚动也要保证首次渲染要100+),是否考虑类似vue一样缓存虚拟dom、通过位移api计算渲染?(想用你的框架、但是我的项目已经使用antd pro写太多了。。难受,想进来借鉴一下多tab的**的,但好像不是我想要的,如果你的实现了,下个项目考虑使用你的框架,挺好的,挺简洁的)

为什么我的项目里配置alias无效呢?

// webpack.config.js
module.exports = override(
//增加路径别名的处理
addWebpackAlias({
'@': path.resolve('src')
}),
// ...
)
tsconfig.json文件里与你做了同样的配置,但是我的react-scripts版本是5.0.1

lodash这个包异常

我没有安装这个包,为什么analyze包分析里面会存在打包了lodash这个库啊

可否做些依赖升级?!

Feature request(新功能建议)

拷贝项目到本地后安装依赖,本地项目运行不了😂

依据提示在.env文件中新增了SKIP_PREFLIGHT_CHECK=true 方才启动项目😊

报错提示:

企业微信截图_20211213203437

热更新以后,页面点不动

Bug report(问题描述)

热更新以后,页面点不动

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

Other relevant information(格外信息)

  • Your OS: mac
  • Your broswer version:

子标签页同时关闭两个

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

image
image

Other relevant information(格外信息)

  • Your OS: Windows
  • Your broswer version: Chrome, Mircosoft Edge

导航栏切换主题颜色时并未跟随切换

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

image

Other relevant information(格外信息)

  • Your OS: mac air 2021
  • Your broswer version: Chrome119

你的项目目前不支持ie11 能适配吗

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

Other relevant information(格外信息)

  • Your OS:
  • Your broswer version:

建议文档写详细点

Feature request(新功能建议)

比如路由权限的思路可以介绍的详细点,纯开代码有点累,毕竟不知道你的思路的。假如文档把思路写出来了,然后再跟着代码看逻辑的话要好点

遇到一个问题

大佬,您好,我在学习您 的项目的时候遇到了一个问题,在使用redux的时候,我尝试使用react hooks来操作redux,我在使用useSelector来订阅store的时候,我无法获取到state里的值
image
我在控制台中获取到的值是
image
这里可以看到,在redux-logger,state里是存在该值的,请问一下这个是啥问题?

启动报错

D:/Workspace/前端项目/base-react-ts-hooks/src/components/common/myUpload/index.tsx
TypeScript error in D:/Workspace/前端项目/base-react-ts-hooks/src/components/common/myUpload/index.tsx(65,6):
Type '{ children: Element; action: string; onStart: () => void; customRequest({ file, filename }: { file: any; filename: any; }): false | { abort(): void; }; className: string; listType: "picture-card"; showUploadList: false; }' is not assignable to type 'UploadProps'.
Types of property 'customRequest' are incompatible.
Type '({ file, filename }: { file: any; filename: any; }) => false | { abort(): void; }' is not assignable to type '(options: UploadRequestOption) => void'.
Types of parameters '__0' and 'options' are incompatible.
Type 'UploadRequestOption' is not assignable to type '{ file: any; filename: any; }'.
Property 'filename' is optional in type 'UploadRequestOption' but required in type '{ file: any; filename: any; }'. TS2322

63 | 
64 |   return (

65 | <Upload
| ^
66 | className="avatar-uploader"
67 | listType="picture-card"
68 | showUploadList={false}

npm install error

Bug report(问题描述)

npm install error

npm ERR! Could not resolve dependency:
npm ERR! peer react-redux@"^4.0.0 || ^5.0.0 || ^6.0.0" from [email protected]

Fix method

npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps

最好可以解决一下npm 依赖的问题

关闭左侧导航栏后文字消失

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

image

Other relevant information(格外信息)

  • Your OS:
  • Your broswer version:

代码有错误提示

Question(提问)

App.tsx代码有报错提示:spread 类型只能从对象类型创建。

image

这个需要怎么修改

右键菜单功能失效

右键菜单功能失效

Steps to reproduce(问题复现步骤)

鼠标右键菜单事件被阻止,无法弹出原生菜单

npm install error

Bug report(问题描述)

error Couldn't find package "immutable@*" required by "draft-js-multidecorators@^1.0.0" on the "npm" registry.

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

Other relevant information(格外信息)

  • Your OS:
  • Your broswer version:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.