u-table2放到up-popup里横向滚动无效,设置固定宽度也不行

d***@126.com
- 发布:2025-07-11 17:15
- 更新:2025-07-13 09:48
- 阅读:53



d***@126.com (作者)
</view>
</template>
<template v-else>
<view @click="handleColumnClick(scope)"
style="padding-left: 10rpx; padding-right: 10rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap" style="{ 'font-size': fontTable + 'px',width: scope.column.width + 'px' }"> {{ scope.row[scope.column.key] }}
</view>
</template>
</template>
</u-table2>
</view>
<up-popup :show="mxShow" mode="bottom" closeOnClickOverlay @close="mxShow = false" overlayStyle="{ 'touch-action': 'none' }"> <u-table2 :data="tableData" :columns="columns" height=300 highlightCurrentRow />
</up-popup>
</view>
</template>