We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
功能请求
v2.9.6
2.8更新至2.9后,lineStyle 对单元格 max-height 不生效,查看源码后,发现只适配了height 属性,当不提供height 属性时,cellMaxHeight 被替换成了none,导致行自适应高度不生效。需设置成lineStyle: 'height: 200px; height: auto;' 才生效。 另外,希望单选框、复选框新增颜色样式。
// 计算单元格最大高度 layui.each(rules, function(i, rule) { rule = rule.split(':'); if (rule[0] === 'height') { var val = parseFloat(rule[1]); if (!isNaN(val)) cellMaxHeight = (val - 1) + 'px'; return true; } });
No response
Chrome 120.0.6099.225(正式版本) (64 位)
The text was updated successfully, but these errors were encountered:
用 css 属性替代实现:https://layui.dev/docs/2/table/#options
css
Sorry, something went wrong.
No branches or pull requests
议题条件
议题类型
功能请求
使用版本
v2.9.6
问题描述
2.8更新至2.9后,lineStyle 对单元格 max-height 不生效,查看源码后,发现只适配了height 属性,当不提供height 属性时,cellMaxHeight 被替换成了none,导致行自适应高度不生效。需设置成lineStyle: 'height: 200px; height: auto;' 才生效。
另外,希望单选框、复选框新增颜色样式。
业务代码
截图补充
No response
浏览器
Chrome 120.0.6099.225(正式版本) (64 位)
演示地址
No response
友好承诺
The text was updated successfully, but these errors were encountered: