Giter VIP home page Giter VIP logo

react-antd-admin's People

Contributors

boxui avatar jiangxy 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  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

react-antd-admin's Issues

我喜欢你这样的中文注释

作为一个运维人员想做点开发的东西,重要学的是**。
所以我特别喜欢的这种中文注释,清楚,明白,关键还漂亮。
总而言之,言而总之,我love it

如何实现菜单的级联

Hi,你好,再次打扰你...
我想问一下如何实现下拉框的级联选择,不是官网的效果。
例如:我选择北京,然后第二个下拉框出现海淀,西城等

求救:有没有下载文件的成熟方案

楼主工程里的方案是window.open,由于后台用了Security,在Header里需要加Authorization才能通过。工程里用的superagent好像也无法下载文件。请问有谁知道如何解决。

src: url('../../icon/iconfont.eot?t=1493863686309');

为什么在index.less里面不支持这种格式,我应该怎么改,是不是因为这块的配置问题
test: /.less$/,
loader: 'style!css!' + less?{"sourceMap":true,"modifyVars":${JSON.stringify(lessLoaderVars)}}, // 用!去链式调用loader

Meteor Crud Integration

Hi! I think your job with the CRUD and the tab behavior it's just awsome.

I'm using Meteor+React +Antd and it's really smooth, i'm doing my own cruds but didn't get to the point of abstraction for doing just one component to work with any collection, so i'm considering the possibility to integrate your job with Meteor.

Is there a simple way to archive this?

I would really appreciate your help.

PD: Sorry for my bad english, my native language it's spanish xd.
PD2: I imagine an integration with simple schema or something like that

如何动态改变innerform或innertable的显示

感谢大神为我们提供如此强大好用的功能,我这里有这么个功能经常遇到,不知道如何能够实现,谢谢了!

比如innerform中有一个下拉列表,另外有三个filed:A1(下拉形式),B1(日期类型),C1(数字类型)innertable同样有三个column A2(下拉形式),B2(日期类型),C2(数字类型)
当值为A时,innerform中A1显示B1,C1隐藏innertable中A2显示B2,C2隐藏
当值为B时,innerform中B1显示A1,C1隐藏innertable中B2显示A2,C2隐藏
当值为C时,innerform中C1显示A1,B1隐藏innertable中C2显示A2,B2隐藏

或者说当值为D时innerform中某个字段取消验证,当值为ABC是需要验证

报告一个小 bug:utils 里 date.format 中文显示问题

原有

var week = {
    "0": "/u65e5",
    "1": "/u4e00",
    "2": "/u4e8c",
    "3": "/u4e09",
    "4": "/u56db",
    "5": "/u4e94",
    "6": "/u516d"
};

正确

var week = {
    "0": "\u65e5",
    "1": "\u4e00",
    "2": "\u4e8c",
    "3": "\u4e09",
    "4": "\u56db",
    "5": "\u4e94",
    "6": "\u516d"
};

后面的 /u 同上

调试代码时,更改devtool配置,依然看不到源文件

尝试通过Chrome打断点来调试代码,更改了webpack.config.js里的配置文件

将 //devtool: 'eval-source-map',
更改为 devtool: 'source-map',
但是在浏览器中F12看到的依然是编译后的文件
image

楼主在写项目的时候是通过什么途径来调试代码的?

拖更是不好的

我要忏悔😓

最近工作事情实在很多,抽不出时间更新。。。
过了11.11应该好多了
不能挖坑不填啊

CRUD模式修改

现有模式是新增,编辑弹出窗口。但这种方式如果要跳转到编辑画面,就很难实现。
我们原来把一览页面,新增,编辑做成平级的,可以来回切换,入口根据传入值,判断显示哪个页面。
请问这样改,在这个系统要如何修改。

菜单的动态显示

请问你如何实现菜单动态显示的。

目前我这的需求,后台返回菜单数据,前台根据返回的数据动态的显示,请问可以做到么?

如何跨域?

我java后台是在本地跑的,返回一个json。localhost:8080
我把react-antd-admin设置为localhost:9090,想访问localhost:8080/bpm/pi时。
1,我在webpack.config.js中加入proxy怎么代理不过去?还是显示在localhost:9090/bpm/pi;
2,为什么我在config.js的api中修改host,能跨域到localhost:8080,但是返回:
XMLHttpRequest cannot load http://localhost:8080/bpm/pi. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9090' is therefore not allowed access.
这个项目上线的话是不需要跨域的,所以不能修改java代码。我改怎么改?

npm run prod 报错

[email protected] prod D:\2017ToDo\MyDo\React\react-antd-admin-master
NODE_ENV=production webpack --progress --colors --config webpack.config.prod.js -p --display-error-details

'NODE_ENV' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "prod"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] prod: NODE_ENV=production webpack --progress --colors --config webpack.config.prod.js -p --display-error-details
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prod script 'NODE_ENV=production webpack --progress --colors --config webpack.config.prod.js -p --display-error-details'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-antd-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! NODE_ENV=production webpack --progress --colors --config webpack.config.prod.js -p --display-error-details
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-antd-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-antd-admin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\2017ToDo\MyDo\React\react-antd-admin-master\npm-debug.log

注销问题求解

登录后,使用token进行权限控制。注销的话,请问如果修改APP组件上的login状态。一层层往上回调?

能否多页签显示内容

意思是点击左边菜单的时候,右边显示的内容是一个页签,在点个菜单,又出来一个页签..
你现在点了菜单后 会把你上一次的内容替换掉...不知道我描述得你能懂否....语言组织
不是很好。。。

IE11下,查询按钮按下出错

Unhandled promise rejection TypeError: 调用的对象无效
SCRIPT65535: 调用的对象无效
throttleByAnimationFrame.js (35,13)。

非常好用

功能太强大,不但提高了页面开发效率,而且加载资源也减少了很多。然后提几个建议,说错了别打我

  • DBTable上传到NPM,方便其他项目的引入
  • CRUD操作增加权限的概念
  • 数组=>表单的解析工具独立出来其他地方重用
  • schema文件按业务模块拆分
  • 主要的就是上面这些,其他还挺多细节需要完善的,很佩服楼主搞后端的,前端也可以这么赞

热重载在某些情况下会有问题

热重载失效会有2种情况:

情况一

直接修改示例 test.dataSchema.js 后,无法载入内容,一直在 loading,控制台无错误。
2017-06-17_104217

情况二

<Route path="users" tableName="users" getComponent={DBTableContainer} />

修改 schema 后,无法载入内容,控制台错误是

getRouteParams.js:14 Uncaught TypeError: Cannot read property 'path' of undefined
at getRouteParams

临时解决方法

在每次修改后手动刷新页面。

尝试解决

查看了 react-hot-loade 文档,好像说 router v3 异步route 支持不全,不知道是不是这个原因。

React Router v3 is not fully supported (e.g. async routes). If you want to get most of React Hot Loader, consider switching to React Router v4. If you want to understand the reasoning, it's good to start in React Router v4 FAQ

多个页面对应同一个侧边栏和面包屑?

比如说一个列表页,我点击进入详情页,但侧边栏和面包屑都不需要变化。我不知道目前能实现这个功能不。
我是这么实现的在menu.js中将key设置成数组

key: ['alone', 'detail']

然后在遍历的时候处理一下,但是我遇到了一个问题,在Sidebar中改变items后,再从Breadcrumb中取出的sidebarMenu跟改变后的一样。
可以明明是从menu.js中取出来的啊,我改Sidebar为什么会影响到menu.js呢?

重构DBTable组件

采用React组件化的开发方式,简洁清晰的整理了InnerForm的实现,InnerTable类似。
sunchenguang@72d89d6

重点是queryForm.js, 通过拆分组件和逻辑,来让整个流程清晰。
希望这个思路能有帮助。

TAB模式

请问那个Demo,TAB模式是什么意思?

一些建议

项目思路很好,但是代码耦合太严重,没有良好的模块化组件化,特别是DBTable组件,过于复杂繁琐,一点也不清晰,不利于维护,想把它拆分好一点,都不好拆。
另外注释适当就行了,没见过这么多注释的。。

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.