Commit f66522b8 authored by Jenny's avatar Jenny

feat: table width

parent e05a540b
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<scroll-view scroll-x="true" > <scroll-view scroll-x="true" >
<view class="scroll-view_H"> <view class="scroll-view_H">
<u-table <u-table
class="normal-table"
:border-width="elementInfo.table.frameWidth" :border-width="elementInfo.table.frameWidth"
:border-color="elementInfo.table.frameColor" :border-color="elementInfo.table.frameColor"
:border-style="elementInfo.table.frameStyle" :border-style="elementInfo.table.frameStyle"
...@@ -18,7 +17,7 @@ ...@@ -18,7 +17,7 @@
<u-th v-for="(item, index) in columns" :key="index">{{item.title}}</u-th> <u-th v-for="(item, index) in columns" :key="index">{{item.title}}</u-th>
</u-tr> </u-tr>
<u-tr v-for="(cell, cellIndex) in chartTables" :key="cellIndex" @tap="cellClick(cell)"> <u-tr v-for="(cell, cellIndex) in chartTables" :key="cellIndex" @tap="cellClick(cell)">
<u-td v-for="(item, index) in columns" :key="index"> <u-td style="width: 300rpx;" v-for="(item, index) in columns" :key="index">
{{cell[item.dataIndex]}} {{cell[item.dataIndex]}}
</u-td> </u-td>
</u-tr> </u-tr>
...@@ -78,7 +77,4 @@ ...@@ -78,7 +77,4 @@
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
} }
.normal-table {
width: 100%;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment