# vue-highlight-input **Repository Path**: kingengine/vue-highlight-input ## Basic Information - **Project Name**: vue-highlight-input - **Description**: vue3输入组件,输入时高亮匹配关键字 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-03-18 - **Last Updated**: 2024-06-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue3 组件模拟input,可以一边输入,一边高亮匹配关键字 示例效果: ![image](http://8.138.101.95/highlight-input.gif) ## npm使用 ```sh npm i vue3-highlight-input ``` ## 在vue main.js中 ```sh import highlightInput from 'vue3-highlight-input' import 'vue3-highlight-input/style.css' app.use(highlightInput) ``` ## 单组件中 ```sh ``` ## 参数: `keywords: 关键字数组 ['关键字1', '关键字2']` `color: 高亮颜色 #F56C6C` ## 项目运行 ```sh npm install ``` ### Compile and Hot-Reload for Development ```sh npm run dev ``` ### Type-Check, Compile and Minify for Production ```sh npm run build ```