Commit 98af80fd authored by root's avatar root

feature:add table component

parent a6492a84
<template>
<view >
<scroll-view scroll-x="true" >
<view class="scroll-view_H">
<u-table >
<u-tr>
<u-th style="width: 150px;" v-for="(item, index) in elementInfo.table.column" :key="index">{{item.title}}</u-th>
</u-tr>
<u-tr v-for="(cell, cellIndex) in elementData.dataList.chartTables" :key="cellIndex" >
<u-td style="width: 150px;" v-for="(item, index) in elementInfo.table.column" :key="index">
{{cell[item.dataIndex]}}
</u-td>
</u-tr>
</u-table>
</view>
</scroll-view>
</view>
</template>
<script>
import echartElementData from '@/mixins/echartElementData.js'
export default {
name:"NormalTable",
mixins: [echartElementData],
data() {
return {
};
},
methods: {
initChart() {
this.$nextTick(() => {
this.endVal = this.elementData.dataList.endVal
})
},
}
}
</script>
<style>
.scroll-view_H{
width: 100%;
display: flex;
flex-wrap: nowrap;
}
</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