detail.vue 810 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <script setup>
  2. import { ref } from 'vue';
  3. import Form from './components/form.vue';
  4. import { onLoad } from '@dcloudio/uni-app';
  5. const type = ref();
  6. onLoad(options => {
  7. type.value = options.type;
  8. });
  9. </script>
  10. <template>
  11. <view class="page">
  12. <scroll-view scroll-y="true" style="height: 100%">
  13. <Form ref="formRef" :type="type"></Form>
  14. </scroll-view>
  15. </view>
  16. </template>
  17. <style lang="scss" scoped>
  18. @import '@/style/work-order-segmented.scss';
  19. .page {
  20. padding-bottom: 0;
  21. }
  22. .footer-btn {
  23. display: flex;
  24. justify-content: flex-end;
  25. align-items: center;
  26. padding: 0 32px;
  27. height: 100%;
  28. gap: 0 32px;
  29. & > uni-button {
  30. margin: 0;
  31. }
  32. }
  33. :deep(.mini-btn) {
  34. height: 38px !important;
  35. font-size: 16px !important;
  36. }
  37. </style>