冷凝胶前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.2 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <script>
  2. export default {
  3. name: 'outWarehouseDetail',
  4. props:{
  5. height:{
  6. type:Number,
  7. default:300
  8. },
  9. dataList:{
  10. type:Array,
  11. default:()=>[]
  12. },
  13. columnList:{
  14. type:Array,
  15. default:()=>[]
  16. },
  17. loading:{
  18. type:Boolean,
  19. default:false
  20. }
  21. },
  22. data(){
  23. return{
  24. }
  25. },
  26. methods:{
  27. },
  28. }
  29. </script>
  30. <template>
  31. <div>
  32. <el-table :data="dataList" border v-loading="loading" style="width: 100%" :height="height">
  33. <el-table-column
  34. v-for="(item,index) in columnList" :key="index"
  35. :sortable="item.columnSortable"
  36. :prop="item.columnProp"
  37. :header-align="item.headerAlign"
  38. :show-overflow-tooltip="item.showOverflowTooltip"
  39. :align="item.align"
  40. :fixed="item.fixed==''?false:item.fixed"
  41. :min-width="item.columnWidth"
  42. :label="item.columnLabel">
  43. <template slot-scope="scope">
  44. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  45. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  46. style="width: 100px; height: 80px"/></span>
  47. </template>
  48. </el-table-column>
  49. </el-table>
  50. </div>
  51. </template>
  52. <style scoped>
  53. </style>