Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

感谢作者用了几天感觉还不错,有个小问题请求一下 #66

Open
heguorong opened this issue May 25, 2018 · 2 comments
Open

Comments

@heguorong
Copy link

1.这个Dbtable如果改成树形的表格请问一下有方案吗?
还是作者大大也遇到过这个问题,不知道您用的什么方案,

@jiangxy
Copy link
Owner

jiangxy commented May 25, 2018

不好意思啊 我实际中也没有用过TreeTable
参考下这个issue? #40

@heguorong
Copy link
Author

已解决这个问题了,再问您个问题哈,就是表单弹出的窗口现在是一行显示1个?如果我要一行显示很多个的话,需要改动那一块的代码
colWrapper(formItem, field) {
return (getFieldDecorator, forUpdate, keysToUpdate) => {
// 表单用于更新时, 可以只显示部分字段
if (forUpdate === true && keysToUpdate && !keysToUpdate.has(field.key)) {
return null;
}
return (<FormItem key={field.key} label={field.title} labelCol={{ span: 4 }} wrapperCol={{ span: 20 }}>
{formItem(getFieldDecorator, forUpdate)}
);
}
},

改这里也只是让input框变窄了,一行并不能显示两个字段

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants