Commit f66522b8 authored by Jenny's avatar Jenny

feat: table width

parent e05a540b
......@@ -4,7 +4,6 @@
<scroll-view scroll-x="true" >
<view class="scroll-view_H">
<u-table
class="normal-table"
:border-width="elementInfo.table.frameWidth"
:border-color="elementInfo.table.frameColor"
:border-style="elementInfo.table.frameStyle"
......@@ -18,7 +17,7 @@
<u-th v-for="(item, index) in columns" :key="index">{{item.title}}</u-th>
</u-tr>
<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]}}
</u-td>
</u-tr>
......@@ -78,7 +77,4 @@
display: flex;
flex-wrap: nowrap;
}
.normal-table {
width: 100%;
}
</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