Skip to content

Commit

Permalink
Merge pull request #10 from siaikin/fix
Browse files Browse the repository at this point in the history
fix: fix document code
  • Loading branch information
siaikin authored Sep 10, 2024
2 parents 2ce4aa5 + 27ef0be commit 2aac5d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/examples/PrintByComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ import ComponentToPrint from "./ComponentToPrint.vue";
const componentRef = ref();
const state = reactive({ text: "old boring text" });
const getComponentToPrint = () => {
return componentRef.value;
};
// #endregion script
</script>

// #region template
<template>
<vue-to-print
:content="getComponentToPrint"
:content="componentRef"
document-title="AwesomeFileName"
remove-after-print
>
Expand Down

0 comments on commit 2aac5d3

Please sign in to comment.