Commit b94109e6 by 李伟康

style(dailyNewspaper): 优化日报详情页面样式和结构

- 将主要内容包装在 report-content 容器中,提升布局结构
- 调整高度计算方式,从 calc(100% - 96rpx) 改为 100%,简化样式
- 移除多余 margin 和定位样式,改用更简洁的内边距设置
- 为列表项添加底部圆角和背景色,改善视觉效果
- 在表格自定义单元格中添加 text 标签包裹,确保文本渲染正确
- 优化滚动区域设置,将 overflow-y 属性移至内容容器
1 parent 2d0434c3
......@@ -2,29 +2,30 @@
<view class="daily-report">
<view class="common-title">
</view>
<template v-if="loadComplete">
<template v-if="list.length">
<template v-for="(item, index) in list">
<view
class="list-box"
:key="index"
v-if="item.children && item.children.length"
>
<view class="list-title">{{ item.label }}</view>
<Table
:columns="item.columns"
:data="item.dataList"
tableStyle="padding-right:32rpx"
isDetail
<view class="report-content">
<template v-if="loadComplete">
<template v-if="list.length">
<template v-for="(item, index) in list">
<view
class="list-box"
:key="index"
v-if="item.children && item.children.length"
>
</Table>
<view class="list-title">{{ item.label }}</view>
<Table
:columns="item.columns"
:data="item.dataList"
tableStyle="padding-right:32rpx"
isDetail
>
</Table>
</view>
</view>
</template>
</template>
<nothing v-else />
</template>
<nothing v-else />
</template>
</view>
</view>
</template>
......@@ -108,26 +109,25 @@ export default {
<style scoped lang='scss'>
.daily-report {
height: calc(100% - #{toRpx(96)});
height: 100%;
position: relative;
overflow-y: auto;
margin: 48rpx;
border-radius: 32rpx;
padding: 48rpx 0;
.common-title {
position: absolute;
top: 0;
left: 0;
}
.list-box {
// position: absolute;
// width: calc(100% - #{toRpx(96)});
// height: calc(100% - #{toRpx(80)});
//
.report-content {
height: 100%;
overflow-y: auto;
border-radius: 32rpx;
background: #fff;
// top: 48rpx;
// left: 50%;
// transform: translateX(-50%);
padding: 0 0 32rpx 32rpx;
margin: 0 48rpx;
box-sizing: border-box;
padding-bottom: 32rpx;
}
.list-box {
padding-left: 32rpx;
overflow-x: auto;
.list-title {
font-size: 32rpx;
......
......@@ -38,7 +38,7 @@
:maxLength="i.rules.maxLength"
>
<template v-slot:customCell="{row, colIndex}">
{{ formatValue(row[colIndex].value) }}
<text>{{ formatValue(row[colIndex].value) }}</text>
</template>
</Table>
</template>
......
......@@ -58,7 +58,7 @@
@clickAdd="addItem(index)"
>
<template v-slot:customCell="{row, colIndex}">
{{ formatValue(row[colIndex].value) }}
<text>{{ formatValue(row[colIndex].value) }}</text>
</template>
</Table>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!