<template>
  <ns-view-list-table v-bind="config" ref="mainRef" />
  <!-- 详情页面 -->
  <Look ref="look" />
  <!-- 状态页面 -->
  <Status ref="status" />
</template>
<script lang="ts">
  import { notificationtableConfig } from './ts/config';
  import Look from './look.vue';
  import Status from './status.vue';
  import { ref } from 'vue';

  export default {
    components: { Look, Status },

    setup() {
      const look = ref(null);
      const status = ref(null);
      const config = notificationtableConfig(look, status);
      return {
        config,
        look,
        status,
      };
    },
  };
</script>
