DetailModal.vue 853 B

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