DetailModal.vue 855 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <BasicModal @register="register" title="预警详情" width="100%" v-bind="$attrs" @ok="onSubmit" @cancel="onSubmit" :defaultFullscreen="true">
  3. <div> 1223 </div>
  4. </BasicModal>
  5. </template>
  6. <script lang="ts" setup>
  7. import { onMounted, ref, defineEmits, onUnmounted, watch } from 'vue';
  8. import { BasicModal, useModalInner } from '/@/components/Modal';
  9. import deviceTable from '/@/views/vent/deviceManager/deviceTable/index.vue';
  10. const emit = defineEmits(['close', 'register']);
  11. const props = defineProps({});
  12. // 注册 modal
  13. const [register, { closeModal }] = useModalInner();
  14. async function onSubmit() {
  15. emit('close');
  16. closeModal();
  17. }
  18. onMounted(async () => {});
  19. onUnmounted(() => {});
  20. </script>
  21. <style scoped lang="less">
  22. @import '/@/design/theme.less';
  23. @import '/@/design/vent/modal.less';
  24. </style>