Skip to content

Commit 6264c5a

Browse files
committed
MINOR: feat: add page prop to BIMDataPDFViewer
1 parent 12a1549 commit 6264c5a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/BIMDataPDFViewer/BIMDataPDFViewer.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
width="100%"
2323
height="100%"
2424
type="application/pdf"
25-
:data="pdfUrl"
25+
:data="`${pdfUrl}${page > 1 ? '#page=' + page : ''}`"
2626
></object>
2727
</template>
2828
</div>
@@ -40,6 +40,10 @@ export default {
4040
pdf: {
4141
type: [Object, File],
4242
},
43+
page: {
44+
type: Number,
45+
default: 1,
46+
},
4347
},
4448
setup(props) {
4549
const loading = ref(false);

0 commit comments

Comments
 (0)