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

使用Dialog 自定义footer 使用column 排列 在debug情况下可以显示出所有,但是在非debug情况下 显示不了按钮 #91

Open
zyHit-GitHub opened this issue Mar 31, 2020 · 1 comment

Comments

@zyHit-GitHub
Copy link

不清楚是不是 渲染时间的问题,debug的时候,渲染的慢些,就把所有纵向排列的按钮显示出来了,非debug就不能显示出来 ,都挤在一起了

@zyHit-GitHub
Copy link
Author

zyHit-GitHub commented Mar 31, 2020

在Dialog/index.js 文件里面
flex: operationsLayout === 'column' ? null : 1
选择column 的情况下 flex:null 导致显示有问题

所以换个表达方式
const columnStyle = operationsLayout === 'column' ? { flexDirection: 'row'}:{flex:1, flexDirection: 'row'};

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

1 participant