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
问题描述: 当设置了并列的两个纵向滚动的 list 后,再给他们各自增加 header 组件在安卓上的显示不正确。 ios 能正常显示。
list
header
代码如下:
<template> <div class="list-wrap"> <list class="menu-left"> <header> <text class="header-left">left header</text> </header> <cell class="menu-item" repeat="menu"> <text class="menu-name">{{ name }}</text> </cell> </list> <list class="menu-right"> <header> <text class="header-right">right header</text> </header> <cell class="menu-item" repeat="menu"> <text class="menu-name">{{ name }}</text> </cell> </list> </div> </template> <script> module.exports = { data: { menu: [ { name: 1.2 }, { name: 1.8 }, { name: 1.9 }, { name: 9.8 }, { name: 6.8 }, ], }, }; </script> <style> .list-wrap { margin-top: 30px; flex-direction: row; flex: 1; background-color: #fff; } .menu-left { flex: 4; background-color: #f8f8f8; } .menu-right { flex: 8; } .header-left { color: red; } .header-right { color: blue; } .menu-name { padding-left: 20px; padding-right: 20px; padding-top: 36px; padding-bottom: 36px; lines: 3; text-overflow: ellipsis; color: #666; font-size: 24px; } .menu-item { border-top-width: 1px; border-top-style: solid; border-top-color: #ededed; } </style>
期望各自的 list 都能正确渲染和处理自己下面的 header 组件。但实际在安卓中 header 组件看起来是占了整个屏幕的宽度。 截图如下:
正常的ios截图如下:
系统版本信息:
The text was updated successfully, but these errors were encountered:
复现了,我看一下
Sorry, something went wrong.
* [android] fix alibaba/weex#2200
e010903
已修复
* [android] fix the wrong header location (#135)
d58fce9
* * [android] fix alibaba/weex#2200 * * [android] restore
misakuo
No branches or pull requests
问题描述:
当设置了并列的两个纵向滚动的
list
后,再给他们各自增加header
组件在安卓上的显示不正确。 ios 能正常显示。代码如下:
期望各自的
list
都能正确渲染和处理自己下面的header
组件。但实际在安卓中header
组件看起来是占了整个屏幕的宽度。截图如下:
正常的ios截图如下:
系统版本信息:
The text was updated successfully, but these errors were encountered: