UNPKG

vue3-highlight

Version:

### 功能介绍 > 实现了一个句子根据查询字词进行高亮显示的功能,查询的字词的输入格式为数组(为了 > 兼容分词查询功能),根据字词数组的内容进行多个词的高亮展示。使用模板差值 {{ }} 和 > v-text,而不是v-html进行高亮字词的展示,减少XSS攻击的风险

43 lines (42 loc) 1.09 kB
{ "name": "vue3-highlight", "version": "0.2.6", "private": false, "scripts": { "serve": "vue-cli-service serve src/demo/main.js", "build": "vue-cli-service build src/demo/main.js", "build-component": "vue-cli-service build --target lib --name vue3-highlight src/index.ts" }, "dependencies": { "core-js": "^3.6.5", "vue": "^3.0.0" }, "main": "src/index.ts", "devDependencies": { "@typescript-eslint/eslint-plugin": "^2.33.0", "@typescript-eslint/parser": "^2.33.0", "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-plugin-typescript": "~4.5.0", "@vue/cli-service": "~4.5.0", "@vue/compiler-sfc": "^3.0.0", "@vue/eslint-config-airbnb": "^5.0.2", "@vue/eslint-config-typescript": "^5.0.2", "eslint": "^6.7.2", "eslint-plugin-import": "^2.20.2", "eslint-plugin-vue": "^7.0.0-0", "typescript": "~3.9.3" }, "files": [ "src" ], "license": "MIT", "keywords": [ "vue3", "highlight", "component", "vue-highlight", "高亮", "选中" ] }