d9a54f8ef2c1cedae4b95f78f68acc484ccf3b3f.svn-base 670 B

1234567891011121314151617181920212223242526272829
  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>
  5. </template>
  6. <script>
  7. export default {
  8. props: {
  9. data: {
  10. type: Array,
  11. default: () => []
  12. },
  13. schema: {
  14. type: Array,
  15. default: () => []
  16. },
  17. chartStyle: {
  18. require: false,
  19. type: Object,
  20. default: () => {
  21. return {
  22. height: '500px'
  23. }
  24. }
  25. }
  26. }
  27. }
  28. </script>