1.0.7 • Published 3 years ago

vue3-highlight-text v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Vue3 Highlight Text

a vue3 directive of highlight text

Installation

npm install --save vue3-highlight-text
or
yarn add --save vue3-highlight-text

Quick Start

// vue project main file
import HighlightText from 'vue3-highlight-text'

app.directive('highlight', HighlightText({
  mode?: string,
  color?: string
}))
<template>
  <div>
    <span v-highlight="{
      mode?: string,
      color?: string,
      className?: string,
      content?: string,
      keyword: string
    }">
  </div>
</tempalte>

If not use content property, the innerText of the directive wrapper will be as content.

<template>
  <div>
    <span v-highlight="{ keyword: string }">innerText</span>
  </div>
</tempalte>
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago