File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
packages/vue-pdf/src/components/layers Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,9 @@ Default: `null`
116116Highlight on the page the searched text or the searched array of text.
117117
118118``` vue
119- <VuePDF :pdf="pdf" text-layer hightlight -text="javascript" />
119+ <VuePDF :pdf="pdf" text-layer highlight -text="javascript" />
120120
121- <VuePDF :pdf="pdf" text-layer :hightlight -text="['javascript', 'trace-based']" />
121+ <VuePDF :pdf="pdf" text-layer :highlight -text="['javascript', 'trace-based']" />
122122```
123123
124124## highlight-options <badge type =" tip " text =" v1.9 " vertical =" middle " />
@@ -136,7 +136,7 @@ Default:
136136Settings for how to find the [ highlight-text] ( #highlight-text ) on page's text.
137137
138138``` vue
139- <VuePDF :pdf="pdf" text-layer hightlight -text="javascript" :highlight-options="{
139+ <VuePDF :pdf="pdf" text-layer highlight -text="javascript" :highlight-options="{
140140 completeWords: true,
141141 ignoreCase: false
142142 }"
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ features:
2929 details : Set a scale, width, height or fit the PDF page with parent width
3030 - icon : 🔆
3131 title : Highlight Text
32- details : Search and hightlight text
32+ details : Search and highlight text
3333 - icon : ©️
3434 title : Watermark
3535 details : Watermark your pages to protect your content
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const props = defineProps<{
1515 viewport? : PageViewport ;
1616 highlightText? : string | string [];
1717 highlightOptions? : HighlightOptions ;
18- hightlightPages ? : number [];
18+ highlightPages ? : number [];
1919}>();
2020
2121const emit = defineEmits <{
@@ -48,7 +48,7 @@ async function findAndHighlight(reset = false) {
4848
4949 if (
5050 props .highlightText &&
51- (! props .hightlightPages || props .hightlightPages .includes (page ! .pageNumber ))
51+ (! props .highlightPages || props .highlightPages .includes (page ! .pageNumber ))
5252 ) {
5353 const queries =
5454 typeof props .highlightText === " string"
You can’t perform that action at this time.
0 commit comments