vue2-highlight-input

1.0.1 • Public • Published

vue2-highlight-input

this vue component can auto change special characters color while inputing

Effect

Instructions

npm i vue2-highlight-input

 

###### Options

- `keywords` Characters used to change color
- `id` the div element id
- `fontSize` font size
- `height` the div height
- `highlightColor` highlight color
 


 ```javascript
    <HighlightInput
          :keywords="keywords"
          :hightLightColor="color"
          :height='100'
          v-model='textValue'
          :fontSize="14"
        />

        export default {
          data() {
            return {
              textValue: "",
              keywords: ["test","key","word",'change'],
              color: "#EB7B68",
                }
            }
          }

Supported version

vue2.x

Readme

Keywords

none

Package Sidebar

Install

npm i vue2-highlight-input

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

13.3 kB

Total Files

4

Last publish

Collaborators

  • oujin