<template>
  <BasicModal @register="register" title="预警详情" width="100%" v-bind="$attrs" @ok="onSubmit" @cancel="onSubmit" :defaultFullscreen="true">
    <div> 1223 </div>
  </BasicModal>
</template>
<script lang="ts" setup>
  import { onMounted, ref, defineEmits, onUnmounted, watch } from 'vue';
  import { BasicModal, useModalInner } from '/@/components/Modal';
  import deviceTable from '/@/views/vent/deviceManager/deviceTable/index.vue';

  const emit = defineEmits(['close', 'register']);
  const props = defineProps({});

  // 注册 modal
  const [register, { closeModal }] = useModalInner();

  async function onSubmit() {
    emit('close');
    closeModal();
  }

  onMounted(async () => {});
  onUnmounted(() => {});
</script>
<style scoped lang="less">
  @import '/@/design/theme.less';
  @import '/@/design/vent/modal.less';
</style>
