<template>
  <layout-card>
    <div id="printContent">
      <layout-hidden-view :hidden-id="HIDDEN_ID" />
    </div>
    <div class="tc mt-10" v-if="print">
      <el-button type="primary" v-print="'#printContent'">打印</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 } = route.query;
defineProps({
  print: {
    type: Boolean,
    default: false,
  },
});
</script>

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