jiangxy / react-antd-admin Goto Github PK
View Code? Open in Web Editor NEW用React和Ant Design搭建的一个通用管理后台
Home Page: http://jiangxy.github.io/react-antd-admin
License: Apache License 2.0
用React和Ant Design搭建的一个通用管理后台
Home Page: http://jiangxy.github.io/react-antd-admin
License: Apache License 2.0
if (requestId == null) {
requestId = reqAnimFrame(later(args));
}
};
调用对象无效
作为一个运维人员想做点开发的东西,重要学的是**。
所以我特别喜欢的这种中文注释,清楚,明白,关键还漂亮。
总而言之,言而总之,我love it
Hi,你好,再次打扰你...
我想问一下如何实现下拉框的级联选择,不是官网的效果。
例如:我选择北京,然后第二个下拉框出现海淀,西城等
楼主工程里的方案是window.open,由于后台用了Security,在Header里需要加Authorization才能通过。工程里用的superagent好像也无法下载文件。请问有谁知道如何解决。
有没有意向增加响应式设计?类似 zuiidea/antd-admin 的浅度响应式设计。这样,兼容手机界面。
业务模块越来越多时不考虑分包吗?
全部打包在一个js中
为什么在index.less里面不支持这种格式,我应该怎么改,是不是因为这块的配置问题
test: /.less$/,
loader: 'style!css!' + less?{"sourceMap":true,"modifyVars":${JSON.stringify(lessLoaderVars)}}
, // 用!去链式调用loader
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
整个页面我只想留下我自己开发的页面,开发完成后最后部署服务器,页面上无关的东西我想去掉,比如页面左侧栏以及页面顶端以及页尾这些内容,大家知道在哪里可以去掉吗?我不需要这些
如题,下一次升级,楼主打算用 react-router v4+么?
感谢大神为我们提供如此强大好用的功能,我这里有这么个功能经常遇到,不知道如何能够实现,谢谢了!
比如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是需要验证
就见到index,有个统一设置。
原有
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
同上
defaultExpandAllRows 不起作用。手工可以点开。试了一下,底层应该是可以的。
如题
Demo也没看到效果
如题
想把options设置为动态获取
我要忏悔😓
最近工作事情实在很多,抽不出时间更新。。。
过了11.11应该好多了
不能挖坑不填啊
怎么把登录页面去掉呢??严重影响开发效率了,我想直接跳转到我自己的页面,
只能通过文字设置 favicon 没有生效
现有模式是新增,编辑弹出窗口。但这种方式如果要跳转到编辑画面,就很难实现。
我们原来把一览页面,新增,编辑做成平级的,可以来回切换,入口根据传入值,判断显示哪个页面。
请问这样改,在这个系统要如何修改。
header, 面包屑, tab都应该固定在顶部, 不应该随内容固定啊
请问你如何实现菜单动态显示的。
目前我这的需求,后台返回菜单数据,前台根据返回的数据动态的显示,请问可以做到么?
请问主从关系的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代码。我改怎么改?
你好,我想修改结构后table字段的间距。
字段少的时候,间距太大,请问是在哪里修改?
谢谢!
[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状态。一层层往上回调?
对某条记录编辑操作时,发现为空也能提交,请问一下要怎么改
意思是点击左边菜单的时候,右边显示的内容是一个页签,在点个菜单,又出来一个页签..
你现在点了菜单后 会把你上一次的内容替换掉...不知道我描述得你能懂否....语言组织
不是很好。。。
Unhandled promise rejection TypeError: 调用的对象无效
SCRIPT65535: 调用的对象无效
throttleByAnimationFrame.js (35,13)。
功能太强大,不但提高了页面开发效率,而且加载资源也减少了很多。然后提几个建议,说错了别打我
热重载失效会有2种情况:
直接修改示例 test.dataSchema.js
后,无法载入内容,一直在 loading,控制台无错误。
<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
Cannot read property 'getFieldDecorator' of undefined
sample里没有相关例子,看代码有sorter的设定,不知道怎么用?能否提示一下。
登陆成功后 不管在哪个页面点击浏览器自带的刷新按钮 都会回到登录页面 这个是有特殊的配置么 按说不该这样
你好,注销后地址不对 链接404 应该是退回到登录页面吧?
目前写的这个mock局限性太大了,想扩展一下都好困难,Jiangxy大大能改成用mockjs吗
比如说一个列表页,我点击进入详情页,但侧边栏和面包屑都不需要变化。我不知道目前能实现这个功能不。
我是这么实现的在menu.js中将key设置成数组
key: ['alone', 'detail']
然后在遍历的时候处理一下,但是我遇到了一个问题,在Sidebar中改变items后,再从Breadcrumb中取出的sidebarMenu跟改变后的一样。
可以明明是从menu.js中取出来的啊,我改Sidebar为什么会影响到menu.js呢?
输入guest/guest出错,出现: invalid username or password, 请联系管理员
采用React组件化的开发方式,简洁清晰的整理了InnerForm的实现,InnerTable类似。
sunchenguang@72d89d6
重点是queryForm.js
, 通过拆分组件和逻辑,来让整个流程清晰。
希望这个思路能有帮助。
请问那个Demo,TAB模式是什么意思?
项目思路很好,但是代码耦合太严重,没有良好的模块化组件化,特别是DBTable组件,过于复杂繁琐,一点也不清晰,不利于维护,想把它拆分好一点,都不好拆。
另外注释适当就行了,没见过这么多注释的。。
如题
后台如果返回
addonBefore: ( < Icon type = "user" / > ),
// 扩展接口, 决定了这一列渲染成什么样子
render: (text, record) => text,
test.dataSchema.js
这两个类型的数据, 我测试后发现失败。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.