index.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <script lang="ts" setup>
  2. /**
  3. * @Name: index.vue
  4. * @Description: 历史详情
  5. * @Author: Cheney
  6. */
  7. import { useTableHeight } from '/@/utils/useCustomHeight';
  8. const isShowHistory = defineModel({ default: false });
  9. const props = defineProps({
  10. rowData: <any>Object,
  11. title: String
  12. });
  13. const { rowData, title } = props;
  14. console.log("(index.vue: 15)=> rowData", rowData);
  15. const heightObj = { topBar: 50, cardMargin: 8, cardPadding: 20 };
  16. const { tableHeight } = useTableHeight(heightObj);
  17. </script>
  18. <template>
  19. <div class="drawer-container">
  20. <el-drawer
  21. ref="editDrawer"
  22. v-model="isShowHistory"
  23. :show-close="false"
  24. direction="btt"
  25. size="85%"
  26. style="background-color:#F3F4FB;"
  27. :title="`${title} - 历史详情`">
  28. <div class="sticky top-0" style="background-color:#F3F4FB; min-height: 20px; z-index: 2"></div>
  29. <div class="px-5">
  30. <el-card>12341</el-card>
  31. <el-card :body-style="{ height: tableHeight + 'px' }">
  32. <div class="h-full overflow-hidden">
  33. <vxe-table height="100%">
  34. <vxe-column type="seq"></vxe-column>
  35. <vxe-column type="seq"></vxe-column>
  36. <vxe-column type="seq"></vxe-column>
  37. <vxe-column type="seq"></vxe-column>
  38. <vxe-column type="seq"></vxe-column>
  39. </vxe-table>
  40. </div>
  41. </el-card>
  42. </div>
  43. </el-drawer>
  44. </div>
  45. </template>
  46. <style scoped>
  47. .drawer-container :deep(.el-drawer__header) {
  48. border-bottom: none;
  49. font-weight: 500;
  50. }
  51. .drawer-container :deep(.el-drawer__title) {
  52. font-size: 18px;
  53. }
  54. </style>