<template>
  <layout-card>
    <div id="printContent">
      <layout-hidden-view :hidden-id="HIDDEN_ID" :list-type="LIST_TYPE" />
    </div>
    <div v-if="print" class="tc mt-10">
      <el-button v-print="'#printContent'" type="primary">打印</el-button>
    </div>
  </layout-card>
</template>

<script setup>
import LayoutHiddenView from "@/components/hidden_view/index.vue";
import { useRoute } from "vue-router";

const route = useRoute();
const { HIDDEN_ID, LIST_TYPE } = route.query;
defineProps({
  print: {
    type: Boolean,
    default: false,
  },
});
</script>

<style scoped lang="scss"></style>
