d***@126.com
d***@126.com
  • 发布:2025-07-13 09:50
  • 更新:2025-07-13 09:50
  • 阅读:22

#插件讨论# 【 零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。 - UviewPlus 】u-table2放到up-popup里横向滚动无效,设置固定宽度也不行

分类:uni-app

u-table2放到up-popup里横向滚动无效,设置固定宽度也不行
<template> <view> <view> <u-table2 :data="tableData3" :columns="columns3" height=300 highlightCurrentRow @row-click="rowClick"> <template #cell="scope"> <template v-if="scope.column.key === 'edt'"> <view style="width: 50px;display: flex; flex-direction: row; justify-content: center; align-items: center;"> <up-button type="primary" :style="{ 'font-size': fontTable + 'px' }" custom-style="{ color: 'red',padding: '0',border: 'none',fontSize: '15px',backgroundColor: 'blue'}" @click="mxDel(scope)">删除</up-button>
</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>

2025-07-13 09:50 负责人:无 分享
已邀请:

要回复问题请先登录注册