f5200cb0bc3053204b607124dcd40c13a4a38310.svn-base 802 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <el-table :data="data" :style="chartStyle" :height="chartStyle.height" highlight-current-row border stripe :header-cell-style="{padding: '5px 0'}" :cell-style="{padding: '5px 0'}">
  3. <!-- <el-table-column v-for="item in schema" :key="item.Column" :prop="item.Column" :label="item.name" align="center" /> -->
  4. <el-table-column v-for="item in schema" :key="item.Column" :prop="item.Column" :label="item.Comment" align="center" />
  5. </el-table>
  6. </template>
  7. <script>
  8. export default {
  9. props: {
  10. data: {
  11. type: Array,
  12. default: () => []
  13. },
  14. schema: {
  15. type: Array,
  16. default: () => []
  17. },
  18. chartStyle: {
  19. require: false,
  20. type: Object,
  21. default: () => {
  22. return {
  23. height: '500px'
  24. }
  25. }
  26. }
  27. }
  28. }
  29. </script>